ADB Push -- Permission Denied
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 ...
-
ADB Push -- Permission Denied
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.
What's going on here? How do I get this on?
-
-

Originally Posted by
vpshockwave
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.
What's going on here? How do I get this on?
Try the second part there with su access and remounting with -rw access.
Tigers love pepper... they hate cinnamon...
-
Thanks for the response.
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.
-

Originally Posted by
vpshockwave
Thanks for the response.
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 10: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...
-

Originally Posted by
IEatCake
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?
Thanks for all the help so far.
-
You are correct, sorry its been a long day...
Tigers love pepper... they hate cinnamon...
-
adb shell
$ dd if=/sdcard/browser.apk of=/data/local/browser.apk
if my linux serves me right
Tigers love pepper... they hate cinnamon...
-
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.
I think we're making progress though : )
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
Similar Threads
-
By SwordOfWar in forum Droid Hacks
Replies: 9
Last Post: 03-11-2010, 01:17 PM
-
By dredge in forum Droid Hacks
Replies: 10
Last Post: 01-04-2010, 12:25 AM
-
By Ack in forum Droid Hacks
Replies: 4
Last Post: 12-24-2009, 12:25 PM
-
By ToddP0530 in forum Droid General Discussions
Replies: 16
Last Post: 11-07-2009, 09:10 AM
Search tags for this page
adb cross-device link
,
adb failed to copy permission denied
,
adb permission denied
,
adb permission denied push
,
adb push
,
adb push access denied
,
adb push failed to copy
,
adb push permission denied
,
adb push su
,
adb push su sdcard su permission denied
,
adb push system
,
adb push to system
,
android adb push permission denied
,
chmod bad mode
,
failed cross-device link
,
failed on cross-device link
,
failed to copy permission denied
,
failed to copy su to '/sdcard//su': permission denied
,
failed to push selection: permission denied
,
permission denied adb push
Click on a term to search our site for related topics.