• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root Need some ADB help please

Kirch21

Android Enthusiast
Dec 9, 2009
293
18
I am trying to push a /system to my droid on a Mac. I have gotten into the sdk/tools folder successfully and i can run adb commands like "./adb devices" to get my serial number so im pretty close i am just stuck

MacBook-Pro:tools Kirch$ ./adb -s 040364F919021012 /push Desktop/system /system

is what i did but its not doing anything

any ideas of what i may be doing wrong?

thanks, kirch
 
no slash in front of push

Also, the items you need to push need to be in the same directory as the adb executable itself. So, if the tools folder has a sub folder called Desktop, and that has a subfolder called system, then the command will work. If not, then you're better off copying that /system folder to the /tools folder under the SDK, and perhaps calling is something like /mysystem (just in case having a folde rnamed /system under /tools creates a problem).

Then your command would be
Code:
adb push /mysystem /system

which should then work.

I had to use a similar method to push the correct folder for the AdamZ Nandroid backup onto my phone, b/c the Zip contained everything in a folder, and I didn't know that, so I used WinRAR to extract it to a folder using the .ZIP name, and then deleted all the old Nandroid backups I had, and tried to restore, and it errored out with a code 25....

Luckily, I understood enough of how to do it that moving the *correct* folder to /sdcard/nandroid worked perfectly fine the first time I tried it.

(Theoretically, it *should* be able to provide you the ability to copy directly from where the folder is stored, but you'd have to go through some hoops, as adb runs from that particular folder, so it may get tricky as you used several /../../.. commands followed by the full path to your folder as it resides on the Desktop - i.e. in Windows 7 the path is c:/users/{your username}/Desktop....)
 
Upvote 0
no slash in front of push

Also, the items you need to push need to be in the same directory as the adb executable itself. So, if the tools folder has a sub folder called Desktop, and that has a subfolder called system, then the command will work. If not, then you're better off copying that /system folder to the /tools folder under the SDK, and perhaps calling is something like /mysystem (just in case having a folde rnamed /system under /tools creates a problem).

Then your command would be
Code:
adb push /mysystem /system

which should then work.

I had to use a similar method to push the correct folder for the AdamZ Nandroid backup onto my phone, b/c the Zip contained everything in a folder, and I didn't know that, so I used WinRAR to extract it to a folder using the .ZIP name, and then deleted all the old Nandroid backups I had, and tried to restore, and it errored out with a code 25....

Luckily, I understood enough of how to do it that moving the *correct* folder to /sdcard/nandroid worked perfectly fine the first time I tried it.

(Theoretically, it *should* be able to provide you the ability to copy directly from where the folder is stored, but you'd have to go through some hoops, as adb runs from that particular folder, so it may get tricky as you used several /../../.. commands followed by the full path to your folder as it resides on the Desktop - i.e. in Windows 7 the path is c:/users/{your username}/Desktop....)

Ok i placed the /system folder into the tools folder in the SDK. I renamed it to /mysystem and ran
Code:
Jason-Kirchmans-MacBook-Pro:tools Kirch$ ./adb devices
List of devices attached 
040364F919021012	device

Jason-Kirchmans-MacBook-Pro:tools Kirch$ ./adb -s 040364F919021012 push /mysystem /system
cannot stat '/mysystem': No such file or directory
Jason-Kirchmans-MacBook-Pro:tools Kirch$

what am i doing wrong now? thanks for the help
 
Upvote 0
Oh, and I think you need to mount the /System partition first, now that I think about it - I am assuming you're booted into recovery, so do that before typing the command in CMD...

Assuming, of course, that you really *do* want to copy a folder of stuff from your computer to the /SYSTEM folder on the DROID....

If not, let's back up to what you are trying to do again.... :D
 
Upvote 0
Oh, and I think you need to mount the /System partition first, now that I think about it - I am assuming you're booted into recovery, so do that before typing the command in CMD...

Assuming, of course, that you really *do* want to copy a folder of stuff from your computer to the /SYSTEM folder on the DROID....

If not, let's back up to what you are trying to do again.... :D

Ok so i need to boot into recovery first and mount /system? doing that now
 
Upvote 0
Code:
Jason-Kirchmans-MacBook-Pro:tools Kirch$ ./adb remount
remount succeeded
Jason-Kirchmans-MacBook-Pro:tools Kirch$ ./adb push /mysystem /system
cannot stat '/mysystem': No such file or directory
Jason-Kirchmans-MacBook-Pro:tools Kirch$

hmm im in recovery, and mounted /system through revovery and through adb remount

any other ideas?
 
Upvote 0
And you have /mysystem located in {your Android SDK folder}/tools/_____, so that it is a subdirectory of tools where adb is?

That is *exactly* how I copied the folder extract from AdamZ's Smoked Glass 4.5 to my sdcard....

I would say it is something on the hone, but the fact is that it is not finding that directory where it is looking....

Give me a screen capture of your cmd window
 
  • Like
Reactions: Kirch21
Upvote 0
And you have /mysystem located in {your Android SDK folder}/tools/_____, so that it is a subdirectory of tools where adb is?

That is *exactly* how I copied the folder extract from AdamZ's Smoked Glass 4.5 to my sdcard....

I would say it is something on the hone, but the fact is that it is not finding that directory where it is looking....

Give me a screen capture of your cmd window

the /system was a .zip folder i unzipped, renamed to /mysystem and placed in Desktop/SDK/tools/

here is a screenshot of my CMD window
Screenshot2010-02-22at122752AM.png
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones