Every time when I try to remount, and push edited apk file to the device, I get this message "remount failed: operation not permitted". Do anybody know how to fix it?
Sorry for my english...
were are you trying to push the file to?
To the system/app
why don't you use root explorer and copy the app that way and set the permissions then restart your phone?
Because when I try that I get error. It says that some files are missing, but I changed just couple of images.
try these
adb shell
su
adb push app.apk system/app/app.apk
When I type su I get this message "adb: permission denied
If you are using a 2.1 rom, you need to edit the default.prop file in the boot.img ramdisk. I am uploading a modified Quarx 2.1 kernel soon that will enable adb remount and adb push (to system directories) just wait around 30 mins and it should be up on here.
Jack
Take a look in the Development section, I have posted the new kernel there.
Hope it helps,
Jack
I'm using Mur4ik's Cyanogenmod 7 2.3.4 M4..
What will i get with new kernel?
Dario000 said:
I'm using Mur4ik's Cyanogenmod 7 2.3.4 M4..
What will i get with new kernel?
Click to expand...
Click to collapse
Don't flash my kernel. It doesn't work for 2.3. It should be enabled with the kernel by default. Try re-flashing the 2.3.4 M4 boot.img again. But do not flash my kernel.
Jack
I'm back on stock 2.1... I have installed your kernel but still I can't remount and push files
Dario000 said:
I'm back on stock 2.1... I have installed your kernel but still I can't remount and push files
Click to expand...
Click to collapse
Try doing "adb root" then try remount then push.
Jack
JackG256 said:
Try doing "adb root" then try remount then push.
Jack
Click to expand...
Click to collapse
I get this message "error: device not found"
Dario000 said:
I get this message "error: device not found"
Click to expand...
Click to collapse
Turn on USB Debugging in settings. (Go into Settings>Applications>Development>USB Debugging)
Jack
JackG256 said:
Turn on USB Debugging in settings. (Go into Settings>Applications>Development>USB Debugging)
Jack
Click to expand...
Click to collapse
I already did it, and when I try to remount I get this "remount failed: Operation not permitted"
Dario000 said:
I already did it, and when I try to remount I get this "remount failed: Operation not permitted"
Click to expand...
Click to collapse
Try doing adb shell, if you see a # sign, then it should work
Jack
JackG256 said:
Try doing adb shell, if you see a # sign, then it should work
Jack
Click to expand...
Click to collapse
I se $ sign
Dario000 said:
I se $ sign
Click to expand...
Click to collapse
Ok now there type su and enter then quickly check your phone and accept superuser permissions then you should see # if so you're done
Sent from my GT540 using XDA App
lavero.burgos said:
Ok now there type su and enter then quickly check your phone and accept superuser permissions then you should see # if so you're done
Sent from my GT540 using XDA App
Click to expand...
Click to collapse
I get this:
C:\Users\Korisnik>adb shell
$ su
su
#
I typed adb remount and I get:
# adb remount
adb remount
adb: not found
#
Related
PatF said:
From the terminal
Code:
# su
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3
# cp /sdcard/download/MyFaves.apk /system/app
Click to expand...
Click to collapse
keeps saying mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 not found anyone help?
what are you trying to do/why are you trying to run that command? Theres a few ways to do the same things thats why...
pack said:
what are you trying to do/why are you trying to run that command? Theres a few ways to do the same things thats why...
Click to expand...
Click to collapse
....well tell me how to do it..... I get it on the phone but force closes...
pack said:
what are you trying to do/why are you trying to run that command? Theres a few ways to do the same things thats why...
Click to expand...
Click to collapse
He's trying to figure out how to get myFaves onto his Cyan rom
Kush.Kushâ„¢ said:
....well tell me how to do it..... I get it on the phone but force closes...
Click to expand...
Click to collapse
Next time, just tell him what you're doing because he's not a mind reader and he probably knows another way to put it on your phone
try from recovery mount card
and put file in sdk tools folder
adb shell mount
adb push MyFaves.apk /system/app
or try
adb push MyFaves.apk /data/app
sitimber said:
try from recovery mount card
and put file in sdk tools folder
adb shell mount
adb push MyFaves.apk /system/app
or try
adb push MyFaves.apk /data/app
Click to expand...
Click to collapse
I don't have sdk or adb I'm noob!!!!! I have android 1.6 and cyan 4.2.4.
I had it working fine on 4.2.3.1 obvously I had 1.6
Kush.Kushâ„¢ said:
I don't have sdk or adb I'm noob!!!!! I have android 1.6 and cyan 4.2.4.
I had it working fine on 4.2.3.1 obvously I had 1.6
Click to expand...
Click to collapse
how did you get the recovery on the phone fastboot??
if so you have sdk tools and adb
sitimber said:
how did you get the recovery on the phone fastboot??
if so you have sdk tools and adb
Click to expand...
Click to collapse
I downloaded the recovery and a flash app and loaded the recovery.
http://www.4shared.com/file/151592077/bf889ae/SetupinstallAPK.html
ok i found this tool on xda not sure where
if your running windows unzip install program move your file from the sd card to the pc
double click your MyFaves.apk hopefully your connect via usb and click install give it 30 sec and see if it installs
also go here and download sdk tools cause your gonna need them
http://developer.android.com/sdk/index.html
sitimber said:
also go here and download sdk tools cause your gonna need them
http://developer.android.com/sdk/index.html
Click to expand...
Click to collapse
Can't do it now no comp but ill try wen u go home in 5days.
I am running custom rom Rooted 2.1 v0.3.
Ever since flashing to the custom rom, when i try to push a file, such as:
adb push bootanimation.zip /system/media
I get the error:
Failed to copy.... Read-only file system.
I didn't have this error before flashing to the rom. Does this have something to do with superuser whitelist?
I have tired:
mount -oremount,rw /dev/block/mtdblock3 /system
and it didn't work and I tired:
adb remount
winch returned:
Operation not permitted.
This is ticking me off since I didn't have this problem until flashing the rom.
EDIT: Now if I try:
adb push bootanimation.zip /system/media,
I get:
Permission denied.
This is crazy.
I need help also. Rooting for first time and trying to get recovery.img on and keep getting read only errors. Tried remount to no avail. Help please
su
mount -o rw,remount /Dev/block/mtdblock3 /system
file system is case sensitive!
if anyone know what command to execute an install or push of "any.apk" via Android Terminal Emulator. It would help me greatly.
p.s.
make sure you have developer mode enabled "settings" and accept su permissions. Also have BusyBox
fKngFtd said:
su
mount -o rw,remount /Dev/block/mtdblock3 /system
file system is case sensitive!
if anyone know what command to execute an install or push of "any.apk" via Android Terminal Emulator. It would help me greatly.
p.s.
make sure you have developer mode enabled "settings" and accept su permissions. Also have BusyBox
Click to expand...
Click to collapse
...it's a lowercase d in dev.
mount -o rw,remount /dev/block/mtdblock3 /system
n2imagination said:
I need help also. Rooting for first time and trying to get recovery.img on and keep getting read only errors. Tried remount to no avail. Help please
Click to expand...
Click to collapse
I had the same problem. From what I could tell, I had the wrong ADB driver somehow. So I downloaded the drivers from the HTC website and went to device manager (Win7) and updated the driver software which fixed the problem. But I think i just lucked out when i stumbled onto that, I feel a blind retard with epilepsy trying to draw a circle on an etch-a-sketch when I'm doing things like rooting. But, it couldn't hurt to try it.
fKngFtd said:
su
if anyone know what command to execute an install or push of "any.apk" via Android Terminal Emulator. It would help me greatly.
Click to expand...
Click to collapse
adb install -l whatever.apk (from tools dir in sdk)
`mods said:
I am running custom rom Rooted 2.1 v0.3.
Ever since flashing to the custom rom, when i try to push a file, such as:
adb push bootanimation.zip /system/media
I get the error:
Failed to copy.... Read-only file system.
I didn't have this error before flashing to the rom. Does this have something to do with superuser whitelist?
I have tired:
mount -oremount,rw /dev/block/mtdblock3 /system
and it didn't work and I tired:
adb remount
winch returned:
Operation not permitted.
This is ticking me off since I didn't have this problem until flashing the rom.
EDIT: Now if I try:
adb push bootanimation.zip /system/media,
I get:
Permission denied.
This is crazy.
Click to expand...
Click to collapse
Did you ever get this fixed? I have the same problem!
I have the same problem also. I've been using SDK just fine for over a month or two, and now that I'm on V3, no worky. Somethings obviously going on. But what?!
LexusBrian400 said:
I have the same problem also. I've been using SDK just fine for over a month or two, and now that I'm on V3, no worky. Somethings obviously going on. But what?!
Click to expand...
Click to collapse
I think the proper permissions were not set for this ROM. Hopefully jcase can modify the file and re-upload the ROM =)
at least that's what I've gathered... someone PLEASE correct me if I'm wrong
edit: I looked at the script file and it seems like rw permissions are set properly???
jcase - any insight?
I personally get a bunch of "Out of memory" errors when trying to follow the recovery walk-through.
post baleeted
Hello,im sorry for asking all theese questions lately but i am really confused.could someone post how to adb push and adb shell from like the first cmd line.because i do
cd C:\android-sdk-windows\tools
adb remount
Remount failed no such file or directory
extra info. i am rooted i have recovery and su i have samsung driver installed usb debugging checked.thank you everyone i really appreciate all the help.
Can Any1 Help?
II5StarII Swag said:
Can Any1 Help?
Click to expand...
Click to collapse
Adb push is to send something to the phone. You needt to put that file in your tools directory on the computer, then navigate there as you demonstrated properly.
Adb push FILENAME /Location/
To access the shell
Adb shell
$ not root access
# root access
To mount the file system with th adb remount command, you need busybox installed. Otherwise you have to mount it from the shell (sorry don't have the long ass command memorized, but its all over here)
Sent from my SPH-D700 using XDA App
I'm trying to push a file to /system/app but it's read-only. I know there's a command to allow me to write to it, but do I need to be rooted to do so? I'm attempting to put SprintZone.apk back in /system/app so I can update firmware. Feel free to PM me on this, too...I'm not doing so well hahaha.
Thanks,
-Rob
TheRob44 said:
I'm trying to push a file to /system/app but it's read-only. I know there's a command to allow me to write to it, but do I need to be rooted to do so? I'm attempting to put SprintZone.apk back in /system/app so I can update firmware. Feel free to PM me on this, too...I'm not doing so well hahaha.
Thanks,
-Rob
Click to expand...
Click to collapse
You need to mount r/w
Sent from my Epic 4G
...
Thanks for the tip. Can you let me know the proper adb commands to get this done? Also, after I'm finished, what are the commands to unmount?
Thanks!
-Rob
TheRob44 said:
Thanks for the tip. Can you let me know the proper adb commands to get this done? Also, after I'm finished, what are the commands to unmount?
Thanks!
-Rob
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=719542
I'm not taking credit for the answer just the time it took to search for it.
TheRob44 said:
Thanks for the tip. Can you let me know the proper adb commands to get this done? Also, after I'm finished, what are the commands to unmount?
Thanks!
-Rob
Click to expand...
Click to collapse
Put the file in the android sdk tools folder
Use adb commands
Adb remount
Adb push exactfilename.apk /system/app
Sent from my SPH-D700 using Tapatalk
I think its something like this...
adb shell
su
mount -t rfs -o remount,rw /dev/block/stl9 /system
Click to expand...
Click to collapse
then what I had to do was instead of the usual:
mv /sdcard/yourfile.ext /system/app/yourfile.ext
Click to expand...
Click to collapse
I had to type this:
busybox mv /sdcard/yourfile.ext /system/app/yourfile.ext
Click to expand...
Click to collapse
it was either MV or CP
Sorry, I am not a programmer....
None of theese work for me and i have driver installed,sdk folder im using the right path but nothing it says adb not found 8(
I'm pretty sure you can just do this:
Adb shell
Su
Remount rw
That was enough to let me edit my build.Prop when root explorer wasn't remounting correctly.
Although I would recommend root explorer for stuff like this... remounts on the epic now and it let's you Remount in the application without adb. I think it's $0.99 in the market and we'll worth it.
Sent from my superphone using the XDA App
I second the suggestion of root explorer.
Sent from my (rooted) SPH-D700 using Tapatalk
I've noticed weirdness using mv or cp sometimes even using -f.
This always worked for me without fail:
cat dir/file.ext > /system/app/file.ext
Of course, you'll need to type the proper dir(s) and file.
Sent from my SPH-D700 using Tapatalk
Thread moved to General.
What I had to type was
cd\
cd android-sdk-windows\tools
adb devices
Adb shell
Su
Then it dropped me to the #
Hope that helps. Btw, I'm running windows vista 64bit
Sent from my SPH-D700 using my fingures.
Right guys,
Im trying to list the apk's in /data/app through adb so i can pull one of them!
I keep getting an error opendir failed permission denied!
BUT!!! I can get into /system/app fine with no problems.
Im running darkyy's 9.5 with his new kernel. Could this be a problem?
Its strange how i can get in system/app but not data/app
I have never had this problem in the past.
Code:
C:\Users\Paul>cd c:\AndroidSDK\platform-tools
c:\AndroidSDK\platform-tools>adb shell ls /data/app
opendir failed, Permission denied
c:\AndroidSDK\platform-tools>
zolah said:
Right guys,
Im trying to list the apk's in /data/app through adb so i can pull one of them!
I keep getting an error opendir failed permission denied!
BUT!!! I can get into /system/app fine with no problems.
Im running darkyy's 9.5 with his new kernel. Could this be a problem?
Its strange how i can get in system/app but not data/app
I have never had this problem in the past.
Code:
C:\Users\Paul>cd c:\AndroidSDK\platform-tools
c:\AndroidSDK\platform-tools>adb shell ls /data/app
opendir failed, Permission denied
c:\AndroidSDK\platform-tools>
Click to expand...
Click to collapse
Either :
adb root
adb shell ls /data/app
or
adb shell
su
ls /data/app
Reason /system is accessible is because system is ro by default. So they allow you to browse it knowing u won't be able to do anything w/o root. Whereas /data is rw and hence they restrict you, unless you have root.
Fyi : Wrong section to ask questions.
Daneshm90 said:
Either :
adb root
adb shell ls /data/app
or
adb shell
su
ls /data/app
Reason /system is accessible is because system is ro by default. So they allow you to browse it knowing u won't be able to do anything w/o root. Whereas /data is rw and hence they restrict you, unless you have root.
Fyi : Wrong section to ask questions.
Click to expand...
Click to collapse
I am rooted with superuser...
zolah said:
I am rooted with superuser...
Click to expand...
Click to collapse
The default superuser timeout is 10 secs, either increase it or keep looking at your screen.
PS : Have you tried a an app called Mount R/W? works great.
zolah said:
I am rooted with superuser...
Click to expand...
Click to collapse
Im confused, what are you implying by that response ?
To me that statement was equivalent to "The sky is blue"
Daneshm90 said:
Im confused, what are you implying by that response ?
To me that statement was equivalent to "The sky is blue"
Click to expand...
Click to collapse
..... sigh
You was telling me that i have to have root and su to be able to poke around in /data... i said i am rooted with su obviously as im on custom rom...
zolah said:
..... sigh
You was telling me that i have to have root and su to be able to poke around in /data... i said i am rooted with su obviously as im on custom rom...
Click to expand...
Click to collapse
Yes, but by default, if u dont run
adb root....ur not running the shell in root mode
Also on most roms if u run :
adb shel
u'll see $......
when u type su
u see #
So to enter # mode u need root but still need to execute either adb root or adb shell n then su.
Hope that clears it.
install android commander and forget about command line for simple listing and coping tasks
Sent from my GT-I9000 using Tapatalk
This is what i get ...
Code:
C:\Users\Paul>cd c:\AndroidSDK\platform-tools
c:\AndroidSDK\platform-tools>adb root
adbd cannot run as root in production builds
c:\AndroidSDK\platform-tools>adb shell
/ $ su
su
ls /data/app
ls /data/app
Permission denied
/ $ ls /data/app
opendir failed, Permission denied
/ $
zolah said:
This is what i get ...
Code:
C:\Users\Paul>cd c:\AndroidSDK\platform-tools
c:\AndroidSDK\platform-tools>adb root
adbd cannot run as root in production builds
c:\AndroidSDK\platform-tools>adb shell
/ $ su
su
ls /data/app
ls /data/app
Permission denied
/ $ ls /data/app
opendir failed, Permission denied
/ $
Click to expand...
Click to collapse
I dont see a # anywhere in there...
Are u accepting the dialog on ur phone when u type su ?
There shud b a popup on ur phone once u do that.
Am I being daft or is root explorer 10 times easier than using adb for this?
Sent from my GT-I9000 using XDA Premium App
woolf clubs said:
Am I being daft or is root explorer 10 times easier than using adb for this?
Sent from my GT-I9000 using XDA Premium App
Click to expand...
Click to collapse
Maybe he's trying to learn how to navigate using adb. Very useful skillset to acquire imho.
But yes for general purpose, a gui is better.
the plot thickens...
Ill fill you guys in from the start in a short story..
Updated to darkyy v9.5 from v9.3
I thought the phone went a bit funny when it loaded the first boot as on the boot animation it vibrated like crazy and the animation started again as it was going to loop but then the phone loaded...
Been using the phone a few days and everything fine and wanted to pull an app from /data/app
All the above stuff happened and it wouldnt let me.
I thought something wasnt right so i took out the battery for a few minutes and put it back in and went into download mode and plugged my phone into computer to see of odin would still recognise it ok...
My windows vista computer started installing device drivers???? ive had this phone 7 months and plugged in about 100,000,000 times lol
Odin recognised my phone so i rebooted and tried again and now it works fine...
Something weird going on there which is concerning me with it installing new drivers...
This is what i get now and used to get before when i used adb...
Code:
C:\Users\Paul>cd c:\AndroidSDK\platform-tools
c:\AndroidSDK\platform-tools>adb shell ls /data/app
FasterFix.apk
Vending.apk
com.adobe.flashplayer-1.apk
com.android.wallpapersetandsave-1.apk
com.darkyrom.darkyconfig-1.apk
com.ebproductions.android.launcher-1.apk
com.google.maps.apk
com.google.youtube.apk
org.projectvoodoo.controlapp-1.apk
circular_battery_indicator.apk
com.androidapps.spareparts.apk
com.haxor-1.apk
com.sgsinfo.apk
com.sgstoolbox.apk
de.Fr4gg0r.SGS.Tools-1.apk
neldar.bln.control.free-1.apk
ymst.android.homeswitcherfroyo-1.apk
com.android.vending-1.apk
com.handcent.nextsms-1.apk
com.keramidas.TitaniumBackup-1.apk
com.pants.sc.lite-1.apk
com.navigon.navigator_select-1.apk
org.adwfreak.launcher-1.apk
com.speedsoftware.rootexplorer-1.apk
com.anddoes.fancywidget.pro-1.apk
adw.creativethemez.gingerbread-1.apk
com.quoord.tapatalkxda.activity-1.apk
c:\AndroidSDK\platform-tools>
Thank you for all the responses by the way...
Any one have any idea what could have happened?
woolf clubs said:
Am I being daft or is root explorer 10 times easier than using adb for this?
Sent from my GT-I9000 using XDA Premium App
Click to expand...
Click to collapse
For what i was doing no because i wanted to just quickly pull an apk, decompile it and edit something and compile it and push it back...
Daneshm90 said:
Maybe he's trying to learn how to navigate using adb. Very useful skillset to acquire imho.
But yes for general purpose, a gui is better.
Click to expand...
Click to collapse
I know how to navigate with adb very well. I just couldnt figure out why i was being blocked from entering /data/app...
I even have a video tutorial in my sig that i made showing how to use adb and its commands...
Seems a quick battery pull did the trick although i still now dont know why new drivers where auto installed on reboot to my pc