So can somebody tell me how to install adb (where to download it?) and how can i change kernel?
Hey...
I used the following vid on youtube:
http://www.youtube.com/watch?v=uVU8vQVKo6I&feature=related
When you set the environmental variables you have to add another path than in the video cause the developers changed the directory where adb.exe is located. Just search in the sdk folder where the adb.exe is located (i think its not the tools fodler anymore but now its the platform-tools folder) and once you are in that subfodler, copy the "address" and paste it in the environmental variables.
I'm trying to push my thanks meter, so if this was helpful please hit the thanks button
Greetz Dom
ricola7 said:
Hey...
I used the following vid on youtube:
http://www.youtube.com/watch?v=uVU8vQVKo6I&feature=related
When you set the environmental variables you have to add another path than in the video cause the developers changed the directory where adb.exe is located. Just search in the sdk folder where the adb.exe is located (i think its not the tools fodler anymore but now its the platform-tools folder) and once you are in that subfodler, copy the "address" and paste it in the environmental variables.
I'm trying to push my thanks meter, so if this was helpful please hit the thanks button
Greetz Dom
Click to expand...
Click to collapse
Thanks i'll try
Related
Hello Everyone
OK so this is a really newb question but I was confused on the syntax of the adb pull command. I know the syntax is:
adb pull <remote> <local>I am confused on the remote an local part. Which one of these is the file to copy from the phone and which is the location to put the copied file?
Being that the command says copy files from device that would lead me to think that local would be the file you want to copy and remote is where you want the file to go, but I am not certain.
How do you structure the path to where you want to copy the file to? If it is going to the computer how do you start it, if you want to copy it to the sdcard of the phone how do you start it?
Thanks
dsMA said:
Hello Everyone
OK so this is a really newb question but I was confused on the syntax of the adb pull command. I know the syntax is:
adb pull <remote> <local>I am confused on the remote an local part. Which one of these is the file to copy from the phone and which is the location to put the copied file?
Being that the command says copy files from device that would lead me to think that local would be the file you want to copy and remote is where you want the file to go, but I am not certain.
How do you structure the path to where you want to copy the file to? If it is going to the computer how do you start it, if you want to copy it to the sdcard of the phone how do you start it?
Thanks
Click to expand...
Click to collapse
If your using Mac OS you can use my app to do it
Anyway, remote is the device. Local is the computer. so it could be like ./adb pull /sdcard/img.jpg /user/you/desktop/
Edit: just re-read your post.
Are you saying you want to push files to the device???
that would be ./adb push (file on computer) location on device (i.e. /sdcard/ or /system/app, etc)
I have learned alot from this site so i figured i'd give something back. these are the the two easiest methods i have found for setting up the android debug bridge. one for windows and one for linux... these instructions should work for any version of windows.
first make sure you download the latest sdk by going to android.com and clicking on developers.
windows:
after you have download the sdk, unzip it to your desktop. rename it to sdk. cut the UNzipped folder on the desktop that you just renamed by right clicking and hitting "cut" then go to start>my computer>c: and paste the folder here. now go into the new "sdk" folder and right click on the "tools" folder and click "send to" then choose "desktop (as shortcut)" you should now have a shortcut on the desktop called "tools-shortcut"
now for the easy part: hold shift and right click on tools-shorcut, holding shift adds the option "open command window here" to the context menu that comes up so click on that. now just make sure your phone is connected to the computer and on ur phone debugging is enabled (menu>applications>development>debugging). on ur command window that came up you should see a black box with white text and the cmd should be c:\sdk\tools> just type "adb devices" and you should see your phone under "list of devices attached" if you do see it you should be able to start running adb commands
adb pull "/location to file or folder on phone" -(the pulled folder or file will be in the tools folder we created earlier which you can still access by clicking on the tools-shortcut on your desktop)
adb push "name of file or folder to be placed on the phone sdcard" -(make sure the file or folder you wish to place on the phone has been placed in the "tools" folder on the computer, again its the same folder the "tools-shortcut" opens up)
hint and examples: i have found a good way to back up and reinstall all ur apps using just adb push and pull. just experimenting and playing around with it i have found you can accomplish installing with just knowing these commands above... if you plan to data wipe and flash a new rom but you don't want to go through the tedious task of reinstalling and you have a rooted android phone then you may use this method to backup/reinstall ALL of your apps. plus this will give you good practice using adb.
backup example:
adb pull /data/app .... let it finish
adb pull /data/app-private ...let it finish
now you should have ALL of ur apps in ur tools folder on ur computer! in the tools folder, create a new folder and name it what u want, i named mine APPS4EVO because i have an evo and and epic and some apps don't work for both so i keep them seperate. cut and paste all of ur apps and put them into your newly made folder. now back to the adb window
restore example:
adb push /APPS4EVO /data/app/
this will push all of your apps in your backed up folder you made earlier to the folder where apps go when they are installed and if you wait 1-10 minutes depending on how many apps you have you should be able to see them on ur phone as if you had installed them one by one. also notice the space between /APPS4EVO and /data/app/ the space seperates the folder from inside ur tools folder you wish to install and the location you wish to put them on ur phone. please be aware that you do not need to type c:\sdk\tools\APPS4EVO because the command window is already being ran in the tools folder, so the location would just be /APPS4EVO in my case.
adb shell -opens up the terminal shell to run commands specifically for the phone, while in the shell you cannot run other "adb xxxxx" commands, you will have to exit the shell by typing "exit"
OPTIONAL: i marked this as optional bc with the above it is not necessary... i have never done this and my adb works great but i have seen it often in other tutorials around the web.... i believe its only necessary on windows 7 and maybe vista. go to start then right click on "my computer" and click on "properties" then in the left pane click on "advanced system settings" then in the window that pops up click on "environment varables" button, in the next window that pops up, under "system variables" scroll down to the "path" variable and double click it. in the "variable value" box do NOT erase anything but add ";c:\sdk\tools" (without quotations). then click ok on all the windows cuz ur done.
thats all for windows.
linux (ubuntu)
extract the sdk to your home/name/ folder and rename it to sdk. now right click on the folder and go to permissions and make sure (run as executable) is checked, now go into the folder and do the same permission change to the tools directory.
now you should be able to run adb commands in the terminal when your phone is connected. same as in windows except your commands will be preceded by your tools folder location....
FOR EXAMPLE:
/home/jay/sdk/tools/adb devices
/home/jay/sdk/tools/adb push xxxx xxx
/home/jay/sdk/tools/adb pull xxxx
EXTRA:
if your having troubles connecting ur phone to ur computer over usb, even after installing drivers, like i sometimes have with my epic, you can download "wireless adb" from the market which i found to be surprisingly easy to use, just like if u were connected by usb, except under adb devices you will show up as your gateway address not ur device name but trust it still works the same.
good luck everyone, i hope this post isn't redundant and i really hope i help someone out there just starting! adb is confusing at first.
Hello mates,
I am trying to Copy the BUSYBOX file to my /data/local/bin directory. But when i use the 'push' command it say adb: command not found. Hereby i have attached the image of my terminal.
Would you please help me in copying my files to the directory "/data/bin/local"
Also, where should i put the files which i need to copy. Eg. Since i need to copy 'busybox' to the /data/local/bin/, should i put the busybox in my Desktop, i.e. /home/android/platform-tools directory?
You should've not run the command from within the adb shell. Just go to the tools folder and type "adb push busybox data/local/bin" ofcourse without the ""
The busybox should be indeed be present in the folder from witch you run adb, in your case the "tool" folder.
Good luck!
Erwin
Sent from my HTC Wildfire using XDA App
@ErwinP.
Thanks for rectifying this mistake.
It worked.
You're welcome! I had to learn it the hard way myself, so I'm happy ik I can help someone! ;-)
I have been trying to install TWRP and I keep running into a wall. Everytime I try to run Kindle Fire Utility it does this (attachment).'' 'findstr' not recognized as an internal external command, operational program or batch file.''
I have rooted with BR3, I believe I have the right drivers too. Under manage devices I see "Android Phone" and "ADB Composite Interface".
I really need some help here. I have searched the forums and google and can't seem to find exactly what I need.
This is the tutorial I was following when I noticed the discrepancy
http://www.youtube.com/watch?v=JqKZLMaRSgc&feature=relmfu
type "set" at a command prompt and check the "path" variable for "c:\windows\system32"
btw your os/bit would be helpful
another good practice is to move kfu to c:\ and rename it to "kfu" that it is c:\kfu
it don't like spaces in the path
b63 said:
type "set" at a command prompt and check the "path" variable for "c:\windows\system32"
btw your os/bit would be helpful
another good practice is to move kfu to c:\ and rename it to "kfu" that it is c:\kfu
it don't like spaces in the path
Click to expand...
Click to collapse
Thank you, I am on Windows 7 Starter 32 Bit.
did you do the above things ?
success ? - no success ?
findstr.exe is a system command and located in c:\windows\system32
if it's not found usually the path to your system32 directory is missing
here how to set:
http://geekswithblogs.net/renso/archive/2009/10/21/how-to-set-the-windows-path-in-windows-7.aspx
simply add it to PATH with a ; as delimiter
b63 said:
did you do the above things ?
success ? - no success ?
findstr.exe is a system command and located in c:\windows\system32
if it's not found usually the path to your system32 directory is missing
here how to set:
http://geekswithblogs.net/renso/archive/2009/10/21/how-to-set-the-windows-path-in-windows-7.aspx
simply add it to PATH with a ; as delimiter
Click to expand...
Click to collapse
I am working on it as I type this. I already have c:\kfu set up. Now reading that tutorial and hopefully get it to where it needs to be.
ADB Push/Pull Simple GuideTo Push a single file from PC to Android, in this case a ROM.zip, you must place the ROM.zip inside the same folder as your ADB and Fastboot files. Right click anywhere inside that folder while holding the shift key down to open the cmd prompt and run these commands:
adb devices
adb push ROM.zip /sdcard
To Push multiple files at once using a single command do this:
In your SDK/Platform-tools folder, or whever you have your ADB files, create a folder called "tmp"
Place all the files you want to push into the tmp folder then run this command:
adb devices
adb push tmp /sdcard
--Simple eh?
To Pull a file (In this case a TWRP backup located on the sdcard in a Subfolder of TWRP called BACKUPS) from device to PC or HARDDRIVE.:
Create a folder inside SDKplatform tools or where ever you have your ADB located. I call mine TWRP_Pulls. Inside that folder create a subfolder and give it the name of the backup/File you are pulling. In my case I name the folder by the backups date and numbers.
FOLDER Inside the ADB folder-->TWRP_Pulls
FOLDER Inside TWRP_Pulls-->2016-05-03--17-54-24The full command would look like this:
adb pull /sdcard/TWRP/BACKUPS/ANDROIDSERIAL/2016-05-03--17-54-24_cm_surnia-userdebug_6.0.1_MHC19Q_bdf9ce04cf C:\Users\Name\Desktop\SDK\platform-tools\TWRP_Pulls\2016-05-03--17-54-24
(Where ANDROIDSERIAL is your devices serial number and can be found by entering "adb devices")
Make sure you place a space between the first pull and the /sdcard and another one after the ROM.zip and before the <path to location>
adb pull[Space]/sdcard/TWRP/BACKUPS/ANDROIDSERIAL/
2016-05-03--17-54-24_cm_surnia-userdebug_6.0.1_MHC19Q_bdf9ce04cf[SPACE]C:\Users\Name\Desktop\SDK\platform-tools\TWRP_Pulls\2016-05-03--17-54-24============================================================
CREATED BY: BillyMumphry for educational purposes only. I hope it will help some people as I know I sure fumbled with these Push Pull commands when I was learning.
------------------------------------------------------------------------------------------------------------
* If anyone has any questions or additions fell free to comment or PM or email me:[email protected]