adb push question

Discussion in 'Android Hacks and Help' started by JhankG, Jan 26, 2010.

  1. JhankG

    JhankG Silver Member

    Joined:
    Nov 1, 2009
    Messages:
    3,090
    Likes Received:
    0
    Trophy Points:
    101
    Location:
    Summerfield, NC
    Ratings:
    +0
    I am trying to push a file using adb, but have not had to run that command in quite a while now. To cd into my tools directory, the command is (I'm on a Mac):

    cd /Users/JHGodwin/Desktop/androidfolder/tools/

    What would the command be to push a file within that tools folder (in bold above) to the system/bin (or xbin) folder on the Droid?
     
  2. Finnstang

    Finnstang Member

    Joined:
    Nov 2, 2009
    Messages:
    159
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    adb push ./filename /system/xbin/

    To go to /system though, then it needs to be in rw mode...if you are using a newer Sholes ROM, you can just do adb remount first and then the above command.
     
  3. JhankG

    JhankG Silver Member

    Joined:
    Nov 1, 2009
    Messages:
    3,090
    Likes Received:
    0
    Trophy Points:
    101
    Location:
    Summerfield, NC
    Ratings:
    +0
    Ah ha! I was leaving out the ./ in front of the filename. Thank you!


    Does anyone know if doing a wipe and clean install of ROMS deletes files in the system/xbin folders? Is there any way to see if the file I am looking for is still there?
     
  4. JhankG

    JhankG Silver Member

    Joined:
    Nov 1, 2009
    Messages:
    3,090
    Likes Received:
    0
    Trophy Points:
    101
    Location:
    Summerfield, NC
    Ratings:
    +0
    Any ideas?
     
  5. Finnstang

    Finnstang Member

    Joined:
    Nov 2, 2009
    Messages:
    159
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    Anything in /system will disappear. You can adb shell to your phone and then do:

    cd /system/xbin
    ls

    That will spit out a directory listing of everything in the /system/xbin directory.
     
  6. gentlefury

    gentlefury Member

    Joined:
    Dec 27, 2009
    Messages:
    442
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
  7. JhankG

    JhankG Silver Member

    Joined:
    Nov 1, 2009
    Messages:
    3,090
    Likes Received:
    0
    Trophy Points:
    101
    Location:
    Summerfield, NC
    Ratings:
    +0
  8. JhankG

    JhankG Silver Member

    Joined:
    Nov 1, 2009
    Messages:
    3,090
    Likes Received:
    0
    Trophy Points:
    101
    Location:
    Summerfield, NC
    Ratings:
    +0
    OK, after running this:

    Hank-local-3:~ JHGodwin$ cd /Users/JHGodwin/Desktop/androidfolder/tools/
    Hank-local-3:tools JHGodwin$ ./adb shell


    I am getting this: sh-4.1#

    What is that? I used to get the $ sign after running ./adb shell.
     
    #8 JhankG, Jan 26, 2010
    Last edited: Jan 26, 2010
  9. JhankG

    JhankG Silver Member

    Joined:
    Nov 1, 2009
    Messages:
    3,090
    Likes Received:
    0
    Trophy Points:
    101
    Location:
    Summerfield, NC
    Ratings:
    +0
    OK, I think I need to reflash the flash_image file. Do I need to put this in the root of my sdcard to push it?
     
Search tags for this page
adb push command to push a file to my droid dna
,
adb push file to droid dna
,
adb push files
,

adb push rom

,
adb push setpropex /system/xbin/
,
how to adb push rom into phone
,
how to push font bootloop tru adb
,
push file to droid incredible 2
,
push file to galaxy s3 with adb command