DroidForums.net is the original Verizon Android Forum! Registered Users do not see these ads. Please Register - It's Free!
Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: ADB Push -- Permission Denied

  1. Senior Droid
    vpshockwave's Avatar
    Member #
    16076
    Join Date
    Dec 2009
    Posts
    164
    Phone
    Droid
    #1

    Angry ADB Push -- Permission Denied

    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 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?
  2.  
     
     
     
  3. Droid
    IEatCake's Avatar
    Member #
    22347
    Join Date
    Jan 2010
    Location
    Pittsburgh, PA
    Posts
    63
    Phone
    Moto Droid, HTC Eris
    #2
    Quote 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...
  4. Senior Droid
    vpshockwave's Avatar
    Member #
    16076
    Join Date
    Dec 2009
    Posts
    164
    Phone
    Droid
    #3
    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.
  5. Droid
    IEatCake's Avatar
    Member #
    22347
    Join Date
    Jan 2010
    Location
    Pittsburgh, PA
    Posts
    63
    Phone
    Moto Droid, HTC Eris
    #4
    Quote 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...
  6. Senior Droid
    vpshockwave's Avatar
    Member #
    16076
    Join Date
    Dec 2009
    Posts
    164
    Phone
    Droid
    #5
    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.
  7. Droid
    IEatCake's Avatar
    Member #
    22347
    Join Date
    Jan 2010
    Location
    Pittsburgh, PA
    Posts
    63
    Phone
    Moto Droid, HTC Eris
    #6
    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...
  8. Senior Droid
    vpshockwave's Avatar
    Member #
    16076
    Join Date
    Dec 2009
    Posts
    164
    Phone
    Droid
    #7
    Quote 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.
  9. Droid
    IEatCake's Avatar
    Member #
    22347
    Join Date
    Jan 2010
    Location
    Pittsburgh, PA
    Posts
    63
    Phone
    Moto Droid, HTC Eris
    #8
    You are correct, sorry its been a long day...
    Tigers love pepper... they hate cinnamon...
  10. Droid
    IEatCake's Avatar
    Member #
    22347
    Join Date
    Jan 2010
    Location
    Pittsburgh, PA
    Posts
    63
    Phone
    Moto Droid, HTC Eris
    #9
    adb shell

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

    if my linux serves me right
    Tigers love pepper... they hate cinnamon...
  11. Senior Droid
    vpshockwave's Avatar
    Member #
    16076
    Join Date
    Dec 2009
    Posts
    164
    Phone
    Droid
    #10
    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 : )
Page 1 of 2 12 LastLast

Links

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Similar Threads

  1. the superuser permission thing
    By SwordOfWar in forum Android Hacks and Help
    Replies: 9
    Last Post: 03-11-2010, 12:17 PM
  2. Help! "permission denied"
    By dredge in forum Android Hacks and Help
    Replies: 10
    Last Post: 01-03-2010, 11:25 PM
  3. Wifi tether permission denied
    By Ack in forum Android Hacks and Help
    Replies: 4
    Last Post: 12-24-2009, 11:25 AM
  4. No push for POP
    By ToddP0530 in forum Android General Discussions
    Replies: 16
    Last Post: 11-07-2009, 08: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 failed to copy
,
adb push failed to copy permission denied
,

adb push permission denied

,
failed on cross-device link
,
failed to copy permission denied
,
failed to push selection: permission denied
Click on a term to search our site for related topics.
Find us on Google+