This is a discussion on ADB Push -- Permission Denied within the Droid Hacks forums, part of the Droid Hacking category; I've been trying to push the new Milestone browser onto my 2.01 droid (see http://www.droidforums.net/forum/dro...ble-droid.html ). I managed to delete the old Browser.apk, but I ...
I've been trying to push the new Milestone browser onto my 2.01 droid (see Milestone Browser aviable for DROID). I managed to delete the old Browser.apk, but I am unable to push the new one over.
First of all, the phone is rooted. Here's what I'm doing:
adb shell
su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
(at this point I exit out and reopen another command window)
adb push Browser.apk /system/app/Browser.apk
Failed to copy: Permission denied.
Can you put the exact order of commands I should use? I think I tried doing what you're talking about, but I'm not sure.
I would suggest that you just push it to the SD card since you will have rw access to it with an adb push
Code:
adb push <path to browser.apk>/browser.apk /sdcard/browser.apk
Then go to Astro move it to /system/app/.
Essentially using adb you cant access system files (since you aren't root) you would have to use linux commands while logged into the adb shell to push it to your phone. I mean you could chmod the system/app directory to 755 and then push it if you wanted to
__________________
Tigers love pepper... they hate cinnamon...
Alright, I tried pushing both files to my sdcard, then I tried using astro file manager to move them to their corresponding places, but Astro gives me an error deleting the old Browser.apk (I restored it from a backup).
I then used the rm command to remove the old browser.apk (This worked) but Astro still has an error getting the file in.
I guess, my problem is this: How do you get a file off your sdcard and into a system folder?
[EDIT] I tried to chmod the app folder and I get a "Bad Mode" error. This is what I tried:
chmod -R 755 /system/app/
Last edited by vpshockwave; 01-07-2010 at 09:35 PM.
This is probably what you are looking for since you already deleted the browser (which I wouldnt have done, generally rename things to <app>.bak unless you are really hurting for space)
Code:
$ adb shell
# su
# mount -o remount,rw /dev/null /system
# mv /sdcard/browser.apk /system/app/browser.apk
Before all of this you could have pushed the new browser to your phone's sdcard then did this:
Code:
$ adb shell
# su
# mount -o remount,rw /dev/null /system
# mv /system/app/browser.apk /system/app/broswer.bak
# mv /sdcard/browser.apk /system/app/browser.apk
__________________
Tigers love pepper... they hate cinnamon...
This is probably what you are looking for since you already deleted the browser (which I wouldnt have done, generally rename things to <app>.bak unless you are really hurting for space)
Code:
$ adb shell
# su
# mount -o remount,rw /dev/null /system
# mv /sdcard/browser.apk /system/app/browser.apk
Alright tried this. I get a "failed on '/sdcard/browser.apk' - Cross-device link"
Something to do with the fact that one's an SD card and the other is on the device?
Alright, that command executed, but I have no idea what it did. I went to /data/ but there is no local directory. I even tried using su to push it just to the data directory -- I still don't see it though.