Need Help Following This ADB Tutorial. - Android Q&A, Help & Troubleshooting

I got locked out of my android phone (samsung galaxy s 2) and am trying to make a backup copy of all my stuff before I do a factory reset. I found this tutorial:
http://forum.xda-developers.com/show....php?t=1420351
It seems over my head but I`m desperate to keep my files. So I`ve installed JDK, Eclipse, and the SDK starter pack. After getting the starter pack I downloaded all the recommended stuff and also the Android SDK Tools and Android SDK Platform-Tools. I also got the ADT plugin for Eclipse. After that I think I`ll have everything I need for the tutorial but I`m not sure could someone experienced with ADB let me know.
Also could someone help me start this tutorial. It just starts by saying open a command prompt. How do I do that?

The link to the tutorial is broken. In your post I noticed you did not mention whether of not you also installed the driver for phone and also whether or not you have enabled usb debugging on your phone.
Anyways to answer your question if your on windows 7 hit the start button and where it says search programs and files type in cmd and hit enter. I think that also works in vista. If your on xp just click run under accessories and type cmd.

Related

my situation....please help

rooted via ubuntu and have recovery
i tried doing stuff in windows, but it wont install the drivers properly.
SO I NEED HELP!
what do i do to get this to work?
i want to be able to install 3rd party apps and get rid of att bloatware.
i have no idea where to start.
HELP!!!!!!!!!
thanx
ubuntu or windows...
download the Android SDK for Windows
http://developer.android.com/sdk/index.html
install and download ONLY THE USB DRIVERS
open cmd window, connect usb cable, navigate to the <folder>\tools where you installed, ie. c:\android\tools
paste the following into a small batch file, call it anything you want dot bat,
ie. c:\android\tools\yourname.bat
---cut here--
cd\android\tools
adb remount
adb pull /data/data/com.android.providers.settings/databases/settings.db settings.db
echo update secure set value = 1 where name = 'install_non_market_apps';|sqlite3 settings.db
adb push settings.db /data/data/com.android.providers.settings/databases/settings.db
pause 1
adb reboot
-- cut here--
ok i'll try right now
still must be missing something
what setting is my phone on when i plug it in? recovery? or just regular charge only or hard disk mode?
how do i get the usb drivers to work? when i try to install them is says "windows was unable to install your adb". is there something else i need on my pc?
when i run that .bat file it says a bunch of things, but basically says device not found.
please start from step #0.
there is no one place that has every single step we need to do.
it makes it next to impossible to get this to work.
dh4645 said:
how do i get the usb drivers to work? when i try to install them is says "windows was unable to install your adb". is there something else i need on my pc?
Click to expand...
Click to collapse
I'm not sure I've ever seen this error come up before by anyone. Saying this is impossible isn't really true since several people have gotten it working, and the information is on these forums. The best thing to do would be to go to the IRC channel and get stepped through it. http://webchat.freenode.net/?channels=#liberatedAria
I'm not quite sure what's up with your ADB install, but you should download HTC Sync from the HTC site, because it includes a driver install. http://www.htc.com/us/support/aria-att/downloads/. Then go through the process in the post above. Your phone should be in the "Charge Only" mode when connected to the computer.
ocswing said:
I'm not sure I've ever seen this error come up before by anyone. Saying this is impossible isn't really true since several people have gotten it working, and the information is on these forums. The best thing to do would be to go to the IRC channel and get stepped through it. http://webchat.freenode.net/?channels=#liberatedAria
I'm not quite sure what's up with your ADB install, but you should download HTC Sync from the HTC site, because it includes a driver install. http://www.htc.com/us/support/aria-att/downloads/. Then go through the process in the post above. Your phone should be in the "Charge Only" mode when connected to the computer.
Click to expand...
Click to collapse
i know it's not impossible, it's just that usually when the people explaining the steps to accomplish this leave out steps that they think is common knowledge/sense, but is not to total noobs.
it would be nice to have a definitive step-by-step guide:
step 1 - root your phone (this was actually really easy with the ubuntu cd)
step 2 - go back to windows and download/install these specific programs . . . (i did not know i needed htc sync, the steps i saw said just to use the sdk and the usb drivers in there to set up my phone)
step 3 - enable debugging on phone, plug your phone into pc and use charge only. (don't we use recovery for anything, i've seen steps about having this open and using the mount /system to do stuff)
step 4 - get the adb usb drivers to install properly (i guess this is my main issue at the moment...is that what is causing the device not found error when i run the .bat file?)
step 5 - copy and paste code into notepad an save as a .bat file.
step 6 - run the .bat file (within cmd? double click on the file? does it matter?)
step 7 - ????
alternate step 2 through whatever - use the ubuntu cd to do everything... (???)
dh4645 said:
i know it's not impossible, it's just that usually when the people explaining the steps to accomplish this leave out steps that they think is common knowledge/sense, but is not to total noobs.
it would be nice to have a definitive step-by-step guide:
step 1 - root your phone (this was actually really easy with the ubuntu cd)
step 2 - go back to windows and download/install these specific programs . . . (i did not know i needed htc sync, the steps i saw said just to use the sdk and the usb drivers in there to set up my phone)
step 3 - enable debugging on phone, plug your phone into pc and use charge only. (don't we use recovery for anything, i've seen steps about having this open and using the mount /system to do stuff)
step 4 - get the adb usb drivers to install properly (i guess this is my main issue at the moment...is that what is causing the device not found error when i run the .bat file?)
step 5 - copy and paste code into notepad an save as a .bat file.
step 6 - run the .bat file (within cmd? double click on the file? does it matter?)
step 7 - ????
alternate step 2 through whatever - use the ubuntu cd to do everything... (???)
Click to expand...
Click to collapse
Run the bat file in the cmd window. Once the bat has successfully run you can unplug the phone and you'll be good to go.
Shad0wguy said:
Run the bat file in the cmd window. Once the bat has successfully run you can unplug the phone and you'll be good to go.
Click to expand...
Click to collapse
so what is the point of the sdk...other than to have the tools folder to run that .bat? so i'm the only one that can't get the sdk usb drivers to work?
and by good to go, u mean i can install 3rd party apps?
how do i get rid of the the at&t bloatware?
There are other threads explaining how to install third party apps and remove ATT bloatware.
Sent from my HTC Liberty using XDA App
The problem with trying to do a step-by-step guide is that things like rooting, removing bloatware, and sideloading apps are all separate processes that require different steps and can be done in multiple ways. Some stuff requires you to be in recovery, some stuff doesn't, and other methods may require additional software. That's why there are specific separate threads that discuss them.
You've rooted your phone already, yay! Now you decide what you want to do next. Remove the bloatware? It's important that you don't lump everything together when trying to figure out what you need to do.
It seems like the first step you need to do is get ADB working and recognizing your phone when it's plugged in. ADB is necessary because it provides all the tools/commands necessary for us to interact with the phone through the command line. Windows is notoriously bad about the USB drivers. That's why the Ubuntu method was streamlined for people so they wouldn't have to deal with it. (Linux and Mac have no such usb driver issues.)
ocswing said:
....
It seems like the first step you need to do is get ADB working and recognizing your phone when it's plugged in. ADB is necessary because it provides all the tools/commands necessary for us to interact with the phone through the command line. Windows is notoriously bad about the USB drivers. That's why the Ubuntu method was streamlined for people so they wouldn't have to deal with it. (Linux and Mac have no such usb driver issues.)
Click to expand...
Click to collapse
thanks for the reply.
yeah i rooted via the ubuntu disc, but then all the other steps people were telling me were using the sdk, getting the drivers, htc sync, yada yada. via windows. so thats the method i've been trying.
is there a step-by-step guide on how to allow 3rd party apps using the ubuntu disc? or... removing bloatware?
is it the same steps, but you just dont have to worry about the drivers?
The steps listed once you're in the SDK are actually the same regardless of what OS you're using.
So for Ubuntu install the SDK. Steps should be the same, just make sure you download the Linux version. Then you'd open a Terminal window (should be called Terminal in Ubuntu.) Then you should be able to use the same commands/steps you find in the other threads.
Since you've been having trouble getting your phone to connect the first thing to do is make sure SDK can actually see your phone. You should be able to open up your Terminal window, navigate to the SDK folder, connect your phone and then type 'adb devices' in the terminal window. It should then list out your phone as HTXXXXXXXX. X being some numbers and letters. If it does show that then you're on your way.
After that I'd go with removing bloatware and the steps listed in this thread. http://forum.xda-developers.com/showthread.php?t=735255
ocswing said:
The steps listed once you're in the SDK are actually the same regardless of what OS you're using.
So for Ubuntu install the SDK. Steps should be the same, just make sure you download the Linux version. Then you'd open a Terminal window (should be called Terminal in Ubuntu.) Then you should be able to use the same commands/steps you find in the other threads.
Since you've been having trouble getting your phone to connect the first thing to do is make sure SDK can actually see your phone. You should be able to open up your Terminal window, navigate to the SDK folder, connect your phone and then type 'adb devices' in the terminal window. It should then list out your phone as HTXXXXXXXX. X being some numbers and letters. If it does show that then you're on your way.
After that I'd go with removing bloatware and the steps listed in this thread. http://forum.xda-developers.com/showthread.php?t=735255
Click to expand...
Click to collapse
ok cool thanks a lot!
i didn't even think to go back to linux to try this stuff until today at work.
i'll check it out later tonight after i mow the lawn and eat dinner....priorities...
i tried in windows one last time. it actually found the htc sync drivers (i in/uninstalled htc snyc earlier...i guess thats what did it)
adb devices command finds my phone, but when i try and run that .bat file, it goes through a bunch of things, but basically says:
remount failed: operation not permitted
failed to copy...
permission denied
all those types of things. then it says to hit enter and then it restarts my phone
???
did u try installing HTC sync connect phone to htc sync, then unistall the htc sync software usb drivers should stay behind
b_atman said:
did u try installing HTC sync connect phone to htc sync, then unistall the htc sync software usb drivers should stay behind
Click to expand...
Click to collapse
i said i did that above...that was the only way i got the usb drivers to work/recognize my phone...the sdk ones didnt work)
my phone is recognized when i run adb devices command
i'm having issues when i run the .bat file as i said in my last post
my bad
maybe i missed it, after you did the mount command did you do the read/writes permissions change?
b_atman said:
my bad
maybe i missed it, after you did the mount command did you do the read/writes permissions change?
Click to expand...
Click to collapse
uuu, no, whats that?
i thought i just had to open cmd and run the .bat file
so what did i miss now? ha
thanks for your help!
i ran this .bat file
cd\android\tools
adb remount
adb pull /data/data/com.android.providers.settings/databases/settings.db settings.db
echo update secure set value = 1 where name = 'install_non_market_apps';|sqlite3 settings.db
adb push settings.db /data/data/com.android.providers.settings/databases/settings.db
pause 1
adb reboot

Help rooting Tb

I need help rooting my Tb , does anyone have a video or direct me to one that can help! I don't know how to use ADB!
I would take the time to learn ADB or wait until a one click is out. Learning ADB while rooting your phone could easily break it.
what os are you using?
svalle713 said:
I need help rooting my Tb , does anyone have a video or direct me to one that can help! I don't know how to use ADB!
Click to expand...
Click to collapse
Honestly just take the time to read the procedure, other help topics on these forums, and take your time when actually going through the procedure.
I had never used ADB either or rooted an android phone for that matter, and I gotta say, rooting the TBolt was cake.
I just took my time with it ensuring I typed in the commands properly.
But if you need a video, here you go: http://www.droid-life.com/2011/03/22/video-rooting-the-htc-thunderbolt/
what drivers do we need for the process, are they only the htc sync drivers? where can these be found?
Android SDK should be extracted/installed straight onto the C:\ directory to make it easy. Open the android-sdk folder and in it is a program sdkmanager.exe, open that and you can reject all of the downloads but scroll down and install one called the "google usb driver package" which may be necessary, I'm not sure (you should also have the htc sync drivers installed)
The contents from the "exploit.zip" should be extracted into the folder "platform-tools" within the android-sdk folder. Plug in your phone to the usb and open the command prompt. To get started open the command prompt (like a dos prompt) and get the prompt into the folder 'platform-tools' and type "adb devices" then hit enter. If your phone is connected and you have "usb debugging" enabled on your phone from the settings, your phone should appear and you can begin the instructions from jcase

Im going CRAZY trying to root!

Heres the deal. I have a MAC with a newly installed hard drive. On my old hard drive I had everything setup with SDK and Adb but that was when I had an HTC Hero. My problem is this: When in terminal my damn computer keeps prompting me for a password but it doesnt allow me to type anything except control C which aborts the program. It never was like that with the old hard drive.
2. Ive dl SDK for MAC unzipped it and saved it to my desktop and my hard drive.
3. When I click on tools it says "adb_has_moved.txt"
4. It says the adb tool has moved to platform-tools/ and if you dont see this directory in your SDK, launch the SDK and AVD manager and install "android SDK Platform-tools and also update my path environment variable to include the platform-tools/ directory, so I can execute adb from any location. What the heck does this mean and how do I fix it. Also how do I know if SDK is installed correctly.
5. I DL some version of eclipse that was recommended from SDK but I dont know how to use that either.
6. I have tried all the root methods shown here in XDA except the on with the Dock since I dont have a dock.
7. Also ADB does not recognize my device and my debug is selected. I cannot get it to find my device.
8. One last question when some instructions say unzipped and move the root exploit to /data/tmp/ is that the file labeled under sdcard/data or is it the one inside the Android Folder listed as "data"
Please anyone help if possible.
let me try that
Stupid question but How do I launch SDK?
laraiza said:
Stupid question but How do I launch SDK?
Click to expand...
Click to collapse
Make sure your phone has USB Debugging Mode enabled. Otherwise, adb will not recognize your device.
Check this thread: http://forum.xda-developers.com/showthread.php?t=879701
However, you will have to modify for MAC.
In my opinion the easiest way to root the Photon is still using the dock method. Otherwise, try the One Click Root method (Torpedo) as mentioned above. Then you don't have to worry about issuing all the commands.
I got it done I got it done. What I did was borrow my daughters windows netbook and the one click method worked on the first try. Thanks to all who replied. I will definitely hit your thanks buttons.
Sent from my MB855 using XDA App
im sorry.. my tool was a one click i dint think i needed to give it instructions.. especially teh part of how to run it on your computer... just fyi.. when invoking sudo (to do things as admin/root) on your computer. you are asked to enter in your password.. as a privacy/security feature it will NOT display any characters.. ergo it looks blank...
as you arent teh first one to run into this issue ill add instructions for mac users ( i know anyone running linux can figure out how to run a bash script, and windows users have a bat file after installing 209387249087 drivers... but they still figure it out ;P)

[Q] someone please guide me

In the Correct way Of Setting up Android SDK i had it set up before i got An New laptop (by luck) and i went on youtube and follow 7 different ways to Set it with the path and stuff i Dont have a mac im on windows 7 the videos i follow i though i had it down right and when i put the command in on the CMD it said it is not recongnized as an enternal blah blah blash
and i only want to use SDK to Root and push apps mods ect on to the phone please and so very much thank you
you dont need the SDK to root or do any of those things. all you need is adb.exe i could be wrong but a lot of the auto-root downloads has all the things you need, maybe even revolution if i remember right. oh and the drivers of course. i went as far as to put adb in my system32 folder and i can run it from the start menu
you know.. WIN+R

[SOLVED] Trouble installing SDK on 64Bit Windows 7

Hey guys, Ive just purchased a new x64 windows7 computer and am having difficulty getting the SDK installed.. I had it on my xp 32bit just fine, but the installer for android sdk wont recognize that I have the Java SE JDK installed and is telling me to set an environment variable to point to it. I am not all that familiar with setting Environment variables, or the new OS, any help would be greatly appreciated thanks. Just looking to get adb running for GB and above for ODIN, not looking to develop.
To install Odin3 and flash roms you don't use adb.exe for any task.
But the answer to your trouble is your path.
I wish that i knew more about ADB, and the SDK...
I did manage to establish a working development environment last spring, but the system I use is only a 32 bit environment.
The time since my setup has been so long ago now, that I have forgotten the particulars of the build. But I did learn a great deal from the guides posted here:
http://www.xda-developers.com/android/all-in-one-guide-to-adb/
Forgive my limited reply, as I desire to help you, but its quite clear that your knowledge of the android SDK exceeds that of mine.
And if you dont mind, I wish ask a question of you.
As you have used the 32 bit SDK successfully in the past, is it possible to copy and transfer all of the files needed to produce a working environment by simply loading said files from one PC to another ??
Or is the environment an individual set of parameters that must be created for use on each machine ??
I have never been successful in my search for an answer to that question.
Im sorry that its such an off topic request, but I truly wish to learn more in my old age....tbank you...g
rangercaptain said:
To install Odin3 and flash roms you don't use adb.exe for any task.
But the answer to your trouble is your path.
Click to expand...
Click to collapse
Thanks for the quick response, yea i gathered that much with the path , just dont know which field to put it in under environment variables or the proper format.. my question is how to properly set environment variables for the sdk to install.. Or just even a workaround for getting ADB up on windows 7.. Had no issues whatsoever on XP.. I Extracted the java.exe to the path the sdk software is looking, and still no luck (i like having ADB to push apks, root or recoveries n such when not looking to ODIN etc) I've tried several different tutorials and can't seem to get past the install of the sdk verifying i have the java se installed. ..
Sent from my SAMSUNG-SGH-I717 using xda app-developers app
gregsarg said:
I wish that i knew more about ADB, and the SDK...
I did manage to establish a working development environment last spring, but the system I use is only a 32 bit environment.
The time since my setup has been so long ago now, that I have forgotten the particulars of the build. But I did learn a great deal from the guides posted here:
http://www.xda-developers.com/android/all-in-one-guide-to-adb/
Forgive my limited reply, as I desire to help you, but its quite clear that your knowledge of the android SDK exceeds that of mine.
And if you dont mind, I wish ask a question of you.
As you have used the 32 bit SDK successfully in the past, is it possible to copy and transfer all of the files needed to produce a working environment by simply loading said files from one PC to another ??
Or is the environment an individual set of parameters that must be created for use on each machine ??
I have never been successful in my search for an answer to that question.
Im sorry that its such an off topic request, but I truly wish to learn more in my old age....tbank you...g
Click to expand...
Click to collapse
My apologies if i sounded sassy in my response, i didn't mean to offend and am very thankful for all that u contribute here on xda and ur response. As for your question, i believe IMO due to the heavy reliance on drivers for the SDK to run for "X" device(s) development is being implemented on, it would more than likely need to be created specific to each machine during the install of each runtime ..but would imagine certain elements could be transferred or copied across. . But again just my guess, for i have not tried. I am new to win 7 and a NEWB to XDA. .. You sir are the mentor in this happenstance. Thanks again for the link and advice.
Sent from my SAMSUNG-SGH-I717 using xda app-developers app
Make sure you installed 64bit java. I had the same problem and it turned out I kept installing the 32bit java. Their downloads can be very confusing.
Right click on "computer" on the start menu or in Windows explorer. Then go to properties.
On the left you will see an option that says "advanced system settings"click on that.
In the new window there will be 5 tabs up top, go to the "advanced" tab which is in the middle.
Once there, at the bottom is a button that says "environmental variables"
Click on that and there will be a new window broken into 2 sections: user variables, and system variables.
Go down to system variables till you see one named "path" select it and choose edit.
Now, you should have the java jre installed.
I have a 64 bit environment with 32 bit java,.That's fine.
The path that is installed to, and what you want to enter into your variable is:
;C\program files (x86)\java\jre7\bin
Close that out.
Now open a command prompt and simply type java, if you get a long list of details that tell you the commands you can use, congratulations java is now in your path.
If it says "java is an unknown command" you have messed up somewhere.
Ok, now that you have adb installed, go to the platform-tools folder.
Copy:
Aapt.exe
Adb.exe
Adbwinapi.dll
Adbwinusbapi.dll
And paste those into your main Windows folder.
Now, you can enter adb command from any directory, you do not have to cd to the platform-tools folder first.
Excellent ....
Many thanks !!.....g
studacris said:
Right click on "computer" on the start menu or in Windows explorer. Then go to properties.
On the left you will see an option that says "advanced system settings"click on that.
In the new window there will be 5 tabs up top, go to the "advanced" tab which is in the middle.
Once there, at the bottom is a button that says "environmental variables"
Click on that and there will be a new window broken into 2 sections: user variables, and system variables.
Go down to system variables till you see one named "path" select it and choose edit.
Now, you should have the java jre installed.
I have a 64 bit environment with 32 bit java,.That's fine.
The path that is installed to, and what you want to enter into your variable is:
;C\program files (x86)\java\jre7\bin
Close that out.
Now open a command prompt and simply type java, if you get a long list of details that tell you the commands you can use, congratulations java is now in your path.
If it says "java is an unknown command" you have messed up somewhere.
Ok, now that you have adb installed, go to the platform-tools folder.
Copy:
Aapt.exe
Adb.exe
Adbwinapi.dll
Adbwinusbapi.dll
And paste those into your main Windows folder.
Now, you can enter adb command from any directory, you do not have to cd to the platform-tools folder first.
Click to expand...
Click to collapse
Thank you very much sir for the indepth instructions. . Between your directions and gregsarg's link i was able to get adb up by using the 32bit ver download instead of the 64bit even though my machine is 64bit... Guess there is at least a little functional backwards compatibility left in win 7 afterall. ..:thumbup::thumbup:
Please re-edit your title so you have [solved]Original Question so others having the same issue can enjoy the given solution. Thank you.

Categories

Resources