I have adb set up correctly because commands like adb pull work fine but when I try to push files to my phone e.g. C:\Users\****\Downloads\filename\ /sdcard/ it returns"cannot stat ';Users\blah\blah\blah no such file or directory exists. Am I putting wrong path in?
Your best bet is to navigate to the folder with the file you wish to push in and hold shift and right click in a blank area. Then click "Open Command Prompt here"
Also remember that if the file name has spaces in, it MUST have quotes around it, or it will not work
Sent from my Galaxy Nexus using Tapatalk 2
diver47591 said:
I have adb set up correctly because commands like adb pull work fine but when I try to push files to my phone e.g. C:\Users\****\Downloads\filename\ /sdcard/ it returns"cannot stat ';Users\blah\blah\blah no such file or directory exists. Am I putting wrong path in?
Click to expand...
Click to collapse
What is the exact command you are using?
Thank you
Quinny899 said:
Your best bet is to navigate to the folder with the file you wish to push in and hold shift and right click in a blank area. Then click "Open Command Prompt here"
Also remember that if the file name has spaces in, it MUST have quotes around it, or it will not work
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
I don't know how to thank you. I have been trying to figure this out on my own for weeks. As soon as I did it your way it was so easy I almost couldn't believe it. Thank you so much.
Problem solved. Thank you for your response!
Related
I have done everything accordingly but I keep getting this error: 'adb' device is not recognized as an internal or external command, operable program or batch file after typing adb device..... plz help!!
You downloaded the sdk and your device drivers?
If you ran the updates, look in your andoid-sdk\tools\ folder and I bet there's a txt file that says adb tools has moved, or adb.exe or something like that.
Go to the folder where it moved to. Copy the path to that folder.
Go to Control panel\System\Advanced Settings\Environmental Variables and then double click on path in the lower window. If there's something in there, add ;<path to adb tools>
For me, it's C:\Android\android-sdk\platform-tools
The easiest way I got adb to work is when I rooted my friends inspire 4g the .zip came with adb and the program and some other stuff so I unzipped it and went to CMD and typed adb and it worked
Sent from my PC36100 using XDA App
HipKat said:
If you ran the updates, look in your andoid-sdk\tools\ folder and I bet there's a txt file that says adb tools has moved, or adb.exe or something like that.
Go to the folder where it moved to. Copy the path to that folder.
Go to Control panel\System\Advanced Settings\Environmental Variables and then double click on path in the lower window. If there's something in there, add ;<path to adb tools>
For me, it's C:\Android\android-sdk\platform-tools
Click to expand...
Click to collapse
yeah I found a .txt saying exactly that n explaining how to get it, im all good now =) now all I need to do is learn to use adb..... being a newb is hard work jeje thanx every1 for ur replies
No prob.....
There are a lot of tutorials on the web. Google is your friend lol
HipKat said:
No prob.....
There are a lot of tutorials on the web. Google is your friend lol
Click to expand...
Click to collapse
Yeah dats exactly what I used, google (its like everybody always has it in them to always use google ) anyways I found one here on xda n I gotta say its pretty simple once u get used to it =)
-Rr!cAn 3v0
I recently purchased a nexus and i am new to this, i have tried everything to root this on a mac and had no success. Has any one else rooted this on a mac? If so could you walk me through it. Thanks in advance!
Are you sure you have ADB and fastboot setup correctly?
What part are you getting stuck at?
I dont think so, i downloaded some things called superboot and i keep messing up in terminal i think...did you use superboot?
Yes sir I did, also on a mac. Here, you might want to checkout this link to make sure you have everything set up properly before you start the superboot process:
http://forum.xda-developers.com/showthread.php?p=9842005
The guide will talk about fastboot towards the bottom, you can download a fastboot file from this page:
http://blog.wapnet.nl/2011/05/setup-adb-and-fastboot-with-android-sdk-on-mac-osx/
Okay, thank you very much, i will try it out and let you know if it wprks
Sounds good, let me know
on the (export PATH=${PATH}: part when your are supposed to drag the folder into text edit im getting just the folder icon instead of (export PATH=${PATH}:/Users/siedkins/android-sdk-mac_86/platform-tools) like the guy said his looked, is that okay, or do I need to start over?
Nevermind, I got it!
Sorry! I was asleep haha if you need more help I'll be checking in
Sent from my Galaxy Nexus using xda premium
Thats fine lol, okay on the Fastboot part when you find SDK/platform-tools in terminal , i type in ls> desktop> SDK > platform-tools and it says its not there and its on my desktop. Am i skipping anything in terminal?
I actually can't get the ls part to work.. I just ignore that part haha but the fastboot file should be in your tools folder of platform-tools I believe
im on the superboot part now...is this a good method? http://www.helloandroid.com/content/root-galaxy-nexus-superboot
Yessir, that is the method I used but I found the instructions in the development forum of the galaxy nexus section.. should be the same method though
Sent from my Galaxy Nexus using xda premium
Okay , last question and ill leave you alone lol, where it says (MAC - Open a terminal window to the directory containing the files, and type 'chmod +x install-superboot-mac.sh' followed by './install-superboot-mac.sh')
I have the sdk located on my desktop, how would i type that in terminal to find it so i can do this step?
Haha, no worries
To get to that folder in terminal, you want to type "cd ~" without the quotation marks, and then you can drag the folder into the terminal window and it the path to that folder should pop up in the terminal, then just hit enter
Okay, thanks alot man, i really appreciate your help
Anytime! Feel free to PM me if you have any other questions!
So everything gone fine till I try to push the framework-res.apk to my phone.
adb push framework-rez.apk /system/framework/
'adb' is not a recongnized as an internal or external command,
know I understand what that means but I installed SDK manager and had no cmd in there so I just used Command Prompt. If that is all of my problem how to I get SDK cmd? It didnt install when I installed the problem.
Omnicide said:
So everything gone fine till I try to push the framework-res.apk to my phone.
adb push framework-rez.apk /system/framework/
'adb' is not a recongnized as an internal or external command,
know I understand what that means but I installed SDK manager and had no cmd in there so I just used Command Prompt. If that is all of my problem how to I get SDK cmd? It didnt install when I installed the problem.
Click to expand...
Click to collapse
It's not enough to just install SDK manager, you also have to install ADB if you want to interface with your phone through your computer. You shouldn't have to go through SDK manager to use ADB once you have it installed, it should work straight through windows command prompt.
http://www.addictivetips.com/mobile/what-is-adb-and-how-to-install-it-android/
That will walk you through installing adb. Good luck.
yoft1 said:
It's not enough to just install SDK manager, you also have to install ADB if you want to interface with your phone through your computer. You shouldn't have to go through SDK manager to use ADB once you have it installed, it should work straight through windows command prompt.
http://www.addictivetips.com/mobile/what-is-adb-and-how-to-install-it-android/
That will walk you through installing adb. Good luck.
Click to expand...
Click to collapse
Well thank you that helped me get pass that issue. Now how do I change the permissions on my phones framework-res.apk?
The error I have now is
"failed to copy 'framework-res.apk' to '/system/framework/framework-res.apl': Read-only file system."
I can't seem to figure a way around this.
Omnicide said:
Well thank you that helped me get pass that issue. Now how do I change the permissions on my phones framework-res.apk?
The error I have now is
"failed to copy 'framework-res.apk' to '/system/framework/framework-res.apl': Read-only file system."
I can't seem to figure a way around this.
Click to expand...
Click to collapse
I had that issue too, how I bypass it is to boot to CWM, go to "mounts and storage", then mount /system (and /data if that's relevant to what you're pushing). Others have used a line of code to mount the system from the PC end, but I find this easier to do through the phone.
yoft1 said:
I had that issue too, how I bypass it is to boot to CWM, go to "mounts and storage", then mount /system (and /data if that's relevant to what you're pushing). Others have used a line of code to mount the system from the PC end, but I find this easier to do through the phone.
Click to expand...
Click to collapse
Thank you that did the trick
Go to the system32 folder on your c drive and copy cmd from there to your tools folder in the sdk.
Now when you want to push, put the files you want to push in the tools folder and then open up the cmd that you placed in that folder, then run the push command.
Sent from my Galaxy Nexus using xda premium
Master&Slave™ said:
Go to the system32 folder on your c drive and copy cmd from there to your tools folder in the sdk.
Now when you want to push, put the files you want to push in the tools folder and then open up the cmd that you placed in that folder, then run the push command.
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Thanks ill give that a try in morning. That would be a better then how im doing it now my stuff is in all random folder and locations to get it to work.
Sent from my SGH-T989 using xda premium
Omnicide said:
Thanks ill give that a try in morning. That would be a better then how im doing it now my stuff is in all random folder and locations to get it to work.
Sent from my SGH-T989 using xda premium
Click to expand...
Click to collapse
That's actually how I do it so it should work for you. Good luck
Sent from my Galaxy Nexus using xda premium
Master&Slave™ said:
That's actually how I do it so it should work for you. Good luck
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
It worked for the file being in that folder and all. But I still have to do it in recovery and unmount system. I still get the read-only error
Alright so I was an idiot and wiped data and internal storage...I figured I could just mount the phone like I could my Thunderbolt, but apparently not. I have adb installed and currently been going to platform-tools folder and opening command window...type adb devices and it shows my device in recovery...which is good. However as soon as I try to do "adb push C:\android-sdk-windows\platform-tools\baldwinguy77_toro_aosp_011913-120824-signed.zip" and it doesn't do anything and just scrolls through all the available commands you can do...I have tried multiple variations of that and nothing seems to work. Help me please, as I need my phone working and I have been trying to figure this out for about an hour now.
CC268 said:
Alright so I was an idiot and wiped data and internal storage...I figured I could just mount the phone like I could my Thunderbolt, but apparently not. I have adb installed and currently been going to platform-tools folder and opening command window...type adb devices and it shows my device in recovery...which is good. However as soon as I try to do "adb push C:\android-sdk-windows\platform-tools\baldwinguy77_toro_aosp_011913-120824-signed.zip" and it doesn't do anything and just scrolls through all the available commands you can do...I have tried multiple variations of that and nothing seems to work. Help me please, as I need my phone working and I have been trying to figure this out for about an hour now.
Click to expand...
Click to collapse
Use side load.
Cwm : reboot recovery > install zip from side load.
In adb > using the side load command ( refer syntax on phone screen, when pH is in side load mode.)
Press thanks if helped
Sent from my Galaxy Nexus using xda app-developers app
Ashwa said:
Use side load.
Cwm : reboot recovery > install zip from side load.
In adb > using the side load command ( refer syntax on phone screen, when pH is in side load mode.)
Press thanks if helped
Sent from my Galaxy Nexus using xda app-developers app
Click to expand...
Click to collapse
I am using TWRP btw...how do I use sideload?? I see it in TWRP...but do I open command prompt and do something special??
EDIT: Ahh...finally figured it out and it installed the ROM! Thanks
CC268 said:
Alright so I was an idiot and wiped data and internal storage...I figured I could just mount the phone like I could my Thunderbolt, but apparently not. I have adb installed and currently been going to platform-tools folder and opening command window...type adb devices and it shows my device in recovery...which is good. However as soon as I try to do "adb push C:\android-sdk-windows\platform-tools\baldwinguy77_toro_aosp_011913-120824-signed.zip" and it doesn't do anything and just scrolls through all the available commands you can do...I have tried multiple variations of that and nothing seems to work. Help me please, as I need my phone working and I have been trying to figure this out for about an hour now.
Click to expand...
Click to collapse
cd C:\android-sdk-windows\platform-tools\
adb push baldwinguy77_toro_aosp_011913-120824-signed.zip /sdcard/
You didn't specify the destination.
Sent from my i9250
Ashwa said:
Use side load.
Cwm : reboot recovery > install zip from side load.
In adb > using the side load command ( refer syntax on phone screen, when pH is in side load mode.)
Press thanks if helped
Sent from my Galaxy Nexus using xda app-developers app
Click to expand...
Click to collapse
bk201doesntexist said:
cd C:\android-sdk-windows\platform-tools\
adb push baldwinguy77_toro_aosp_011913-120824-signed.zip /sdcard/
You didn't specify the destination.
Sent from my i9250
Click to expand...
Click to collapse
But why put /sdcard on the end if there is no sdcard?? By the way I got it to work but didnt put the sdcard on the end
CC268 said:
But why put /sdcard on the end if there is no sdcard??
Click to expand...
Click to collapse
.... Please do some research.
CC268 said:
By the way I got it to work but didnt put the sdcard on the end
Click to expand...
Click to collapse
Through adb? I find that hard to believe, unless you specified another destination.
Sent from my i9250
Let's say I'd create a folder named "storage" on my c: drive, then open it, shift-right click, "open command prompt here". What would be the exact commands to pull and afterwards push the whole content of /sdcard?
Lownita said:
Let's say I'd create a folder named "storage" on my c: drive, then open it, shift-right click, "open command prompt here". What would be the exact commands to pull and afterwards push the whole content of /sdcard?
Click to expand...
Click to collapse
There are maaaaaaany tutorials for this. https://forum.xda-developers.com/android/general/guide-how-to-adb-to-push-pull-files-t3372710
bensen from hell said:
There are maaaaaaany tutorials for this. https://forum.xda-developers.com/android/general/guide-how-to-adb-to-push-pull-files-t3372710
Click to expand...
Click to collapse
I know, but this doesn't apply to my question at all. I need to know which paths I have to prompt in. I know how ADB and fastboot are working in general.
OP3 has "sdcard" mounted under /storage/emulated/0
But there's also a link /sdcard, so that should work too.
Sent from my OnePlus 3 using Tapatalk