Motorola Droid Forum Logo
Motorola Droid Forum Logo - Right

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 ...

Navigation Navigation » Droid Forum - Verizon Droid & the Motorola Droid Forum > Droid Hacking > Droid Hacks » ADB Push -- Permission Denied

Droid Hacks Discussions on hacking and rooting Android Phones. Unofficial DROID hacks belong in here.

Reply
 
LinkBack Thread Tools Display Modes
Old 01-07-2010, 08:26 PM   #1
Senior Droid
 
vpshockwave's Avatar
 
Member #16076
Join Date: Dec 2009
Posts: 164
Phone: Droid
Angry 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?
vpshockwave is offline   Reply With Quote
Old 01-07-2010, 08:33 PM   #2
Droid
 
IEatCake's Avatar
 
Member #22347
Join Date: Jan 2010
Location: Pittsburgh, PA
Posts: 63
Phone: Moto Droid, HTC Eris
Originally Posted by vpshockwave View Post

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...
IEatCake is offline   Reply With Quote
Old 01-07-2010, 08:35 PM   #3
Senior Droid
 
vpshockwave's Avatar
 
Member #16076
Join Date: Dec 2009
Posts: 164
Phone: Droid
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.
vpshockwave is offline   Reply With Quote
Old 01-07-2010, 08:40 PM   #4
Droid
 
IEatCake's Avatar
 
Member #22347
Join Date: Jan 2010
Location: Pittsburgh, PA
Posts: 63
Phone: Moto Droid, HTC Eris
Originally Posted by vpshockwave View Post
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...
IEatCake is offline   Reply With Quote
Old 01-07-2010, 09:30 PM   #5
Senior Droid
 
vpshockwave's Avatar
 
Member #16076
Join Date: Dec 2009
Posts: 164
Phone: Droid
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.
vpshockwave is offline   Reply With Quote
Old 01-07-2010, 09:40 PM   #6
Droid
 
IEatCake's Avatar
 
Member #22347
Join Date: Jan 2010
Location: Pittsburgh, PA
Posts: 63
Phone: Moto Droid, HTC Eris
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...
IEatCake is offline   Reply With Quote
Old 01-07-2010, 09:42 PM   #7
Senior Droid
 
vpshockwave's Avatar
 
Member #16076
Join Date: Dec 2009
Posts: 164
Phone: Droid
Originally Posted by IEatCake View Post
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.
vpshockwave is offline   Reply With Quote
Old 01-07-2010, 09:49 PM   #8
Droid
 
IEatCake's Avatar
 
Member #22347
Join Date: Jan 2010
Location: Pittsburgh, PA
Posts: 63
Phone: Moto Droid, HTC Eris
You are correct, sorry its been a long day...
__________________
Tigers love pepper... they hate cinnamon...
IEatCake is offline   Reply With Quote
Old 01-07-2010, 09:51 PM   #9
Droid
 
IEatCake's Avatar
 
Member #22347
Join Date: Jan 2010
Location: Pittsburgh, PA
Posts: 63
Phone: Moto Droid, HTC Eris
adb shell

$ dd if=/sdcard/browser.apk of=/data/local/browser.apk

if my linux serves me right
__________________
Tigers love pepper... they hate cinnamon...
IEatCake is offline   Reply With Quote
Old 01-07-2010, 09:57 PM   #10
Senior Droid
 
vpshockwave's Avatar
 
Member #16076
Join Date: Dec 2009
Posts: 164
Phone: Droid
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 : )
vpshockwave is offline   Reply With Quote
Reply



Lower Navigation
Go Back   Droid Forum - Verizon Droid & the Motorola Droid Forum > Droid Hacking > Droid Hacks

Divider
Droid Accessories Store


Visitors found this page by searching for these keywords:

adb push permission denied

,
adb failed to copy permission denied
,
cannot push to system permission denied
,
adb push file to droid
,
adb push
,
adb Cross-device link
,
adb push to system
,
Permission denied adb push
,
"adb push" "Permission denied"
,
adb push access denied
,
adb mount
,
adb push failed
,
adb cross device link
,
adb push permision denied
,
adb devices permission denied
,
android adb push permission denied
,
adb '-f' - Cross-device link
,
adb push system
,
adb failed to copy is a directory
,
adb push failed to copy permission denied
,
build.prop market fix
,
./adb push access denied
,
adb push sdcard "failed to copy"
,
adb mount sdcard
,
adb push /system

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
the superuser permission thing SwordOfWar Droid Hacks 9 03-11-2010 12:17 PM
Help! "permission denied" dredge Droid Hacks 10 01-03-2010 11:25 PM
Wifi tether permission denied Ack Droid Hacks 4 12-24-2009 11:25 AM
No push for POP ToddP0530 Droid General Discussions 16 11-07-2009 08:10 AM