Related
I've been wanting to set up adb for a while, but just don't know how to do it. There are numerous guides, and each say different things generally. Things that hold me back from setting up are:
1) does it make a difference what guide I use if I'm already a root user? *Cause I am.
2) when I run cmd as administrator, I get C:\Windows\system32 instead of just C:\
3) I don't know whether my computer is 32 bit or 64 bit.
4) Which are the right files I need in order to do this?
Could someone please point me in the right direction? My computer runs windows vista.
Just put the sdk on your c drive and rename the sdk folder to android-sdk-windows
Now don't run cmd as administrator, just type this in standard command prompt.
cd c:/android-sdk-windows/tools
and you should be able to use adb. Make sure debugging is checked in settings on your phone. You will find it in manage apps/development.
If that doesn't work maybe this will help.
http://forum.xda-developers.com/showthread.php?t=694250
http://forum.xda-developers.com/showthread.php?t=879701
Sent from my PC36100
Also make sure that your tools folder has the adb.exe file in it or you are going to get a
"adb shell not recognized as an internal or external batch command" took me about 20 minutes of.retyping adb shell to figure it out haha..
The reason i say that is because if you have a fresh dl of SDK within the last.couple of weeks then the adb.exe file has been moved and is no longer in your tools folder.
As for the command prompt. Open cmd then type
Cd/
Will take you straight to your C: directory if your not sure where to go from there type "dir" then cd to whatever folder your sdk is in
or type "cd(space).." like "cd .." Then do it again however many times you need to until it backs you all the way down to the c:
Click start and right click on computer then click properties, it will tell you there if your 64 or 32 bit.
Sent from my SAMSUNG-SGH-I897 using XDA App
Thanks guys for the help. Sorry, but I'm not sure where to get the sdk, is this it: http://developer.android.com/sdk/index.html ?
Also, what drivers do I need to install on my phone?
guih said:
Thanks guys for the help. Sorry, but I'm not sure where to get the sdk, is this it: http://developer.android.com/sdk/index.html ?
Also, what drivers do I need to install on my phone?
Click to expand...
Click to collapse
If you check that first link I posted above it has everything you're about to ask lol. Go to control panel on ur comp, navigate to system, and it will tell you if your machine is 32 or 64bit.
And yes that's the sdk. I'd download the first zip in the post and extract it to your c drive.
Sent from my PC36100
Moving adb to the /tools folder from /platform-tools will will Bork some other features of the sdk.
lol sorry man what threw me off is the "installing drivers" thing. Ok, do I also need to download that installer file as well or do I just take the sdk and extract it to the C drive? I'm sorry for these noob questions, I just don't want to mess up anything.
Don't worry about the questions. That's what we're here for. Yes, extract it to your C: drive. Adb is located in the platform-tools folder.
Sent from my Gin and Tonic using XDA App
guih said:
lol sorry man what threw me off is the "installing drivers" thing. Ok, do I also need to download that installer file as well or do I just take the sdk and extract it to the C drive? I'm sorry for these noob questions, I just don't want to mess up anything.
Click to expand...
Click to collapse
Its cool were just trying not to confuse you as much, maybe a video will help...or not lol
http://www.youtube.com/watch?v=y6K1XLmafPc&feature=youtube_gdata_player
Sent from my PC36100
I have a tools folder and a platform folder.. I'm guessing I use the tools folder?
guih said:
I've been wanting to set up adb for a while, but just don't know how to do it. There are numerous guides, and each say different things generally. Things that hold me back from setting up are:
1) does it make a difference what guide I use if I'm already a root user? *Cause I am.
2) when I run cmd as administrator, I get C:\Windows\system32 instead of just C:\
3) I don't know whether my computer is 32 bit or 64 bit.
4) Which are the right files I need in order to do this?
Could someone please point me in the right direction? My computer runs windows vista.
Click to expand...
Click to collapse
1). It doesn't really matter what guide you use, just as long as they give you correct directions.
2) Press the windows key (between Ctrl & Alt) and type "cmd" then press enter. Then once you're in command prompt, just type "CD\"
3) Right click "My Computer" then go to properties. Look for system type, and it'll tell you whether you're 32-bit or 64-bit. I believe most people have 32-bit.
4) All you need is this file.
guih said:
I have a tools folder and a platform folder.. I'm guessing I use the tools folder?
Click to expand...
Click to collapse
No, run the SDK Manager to get the platform-tools folder.
EDIT:
The SDK Manager is located in the folder that you extracted and probably renamed. For instance, mine is located here C:\AndroidSDK\SDK Manager.exe (If you can't locate it, let me know).
After you run the SDK Manager you only need the Android SDK platform-tools, revision 5 package
(Sorry about the double post)
dirkyd3rk said:
Its cool were just trying not to confuse you as much, maybe a video will help...or not lol
http://www.youtube.com/watch?v=y6K1XLmafPc&feature=youtube_gdata_player
Sent from my PC36100
Click to expand...
Click to collapse
so far this video is helping me incredibly! lol
guih said:
so far this video is helping me incredibly! lol
Click to expand...
Click to collapse
WOW! I must've looked over that post. That's a good video. Well, good luck.
I'm waiting for the platform-tools to download... in the video the guys moves all that is in platform-tools into his tools folder. Should I do that, though someone mentioned it could bork something?
guih said:
I'm waiting for the platform-tools to download... in the video the guys moves all that is in platform-tools into his tools folder. Should I do that, though someone mentioned it could bork something?
Click to expand...
Click to collapse
Follow the video young Jedi.....
Sent from my PC36100
oh my god...IT WORKS. THANK YOU EVERYONE SO MUCH FOR EVERYTHING!
guih said:
oh my god...IT WORKS. THANK YOU EVERYONE SO MUCH FOR EVERYTHING!
Click to expand...
Click to collapse
You're welcome. Congrats. Have fun! LOL
guih said:
oh my god...IT WORKS. THANK YOU EVERYONE SO MUCH FOR EVERYTHING!
Click to expand...
Click to collapse
No problem man. May the force be with you......lol
Sent from my PC36100
guih said:
...Should I do that, though someone mentioned it could bork something?
Click to expand...
Click to collapse
If adb is the only tool you are going to use in the SDK you don't have to worry about it. If you do ever use another tool and you get an error about adb not present in the /platform-tools folder you can always just move it back.
Hi all, I had to reinstall the android
sdk during the upgrade to windows
8 but now I can't download the
platform-tools.
All what I can see when I open the
sdk manager is this (I'm connected
to network but there aren't
packages to download):
forum.xda-developers.com/attachment.php?attachmentid=1443514&d=1351616322
Do you know how can I solve that?
Thanks in advance
Regards
Elia
Sdk manager should work on Windows 8. Using it on mine. Maybe reinstalling the whole thing?
Hazou said:
Sdk manager should work on Windows 8. Using it on mine. Maybe reinstalling the whole thing?
Click to expand...
Click to collapse
Already tried but didn't work.. I will try again this evening. Can you send me the platform-tools folder in a zip? Just in case it won't work.
elia222 said:
Already tried but didn't work.. I will try again this evening. Can you send me the platform-tools folder in a zip? Just in case it won't work.
Click to expand...
Click to collapse
Do you have Java SE Development Kit(JDK) installed ?
optimusodd said:
Do you have Java SE Development Kit(JDK) installed ?
Click to expand...
Click to collapse
Yes, I have. And I've also already installed the usb adb drivers.
elia222 said:
Yes, I have. And I've also already installed the usb adb drivers.
Click to expand...
Click to collapse
Have you tried a clean install ?Uninstalling the existing one and reinstall it again.
http://developer.android.com/sdk/index.html
optimusodd said:
Have you tried a clean install ?Uninstalling the existing one and reinstall it again.
http://developer.android.com/sdk/index.html
Click to expand...
Click to collapse
Yes, and tried with both the .exe and the .zip methods.
Maybe this evening around midnight GMT+1 i can get you a zip file. but cant help you earlier i think. Maybe someone with windows 7 and all files can send u them, before me. As far as i know they are almost or exactly the same.
Hazou
Here you go.Hope this helps.
optimusodd said:
Here you go.Hope this helps.
Click to expand...
Click to collapse
Thanks a lot! Now I can use adb and fastboot :good:
However I still can't figure out why I can't find any package with the sdk manager
elia222 said:
Thanks a lot! Now I can use adb and fastboot :good:
However I still can't figure out why I can't find any package with the sdk manager
Click to expand...
Click to collapse
You are most welcome.
Uhmm,are connected to the internet ?
Also make sure that your firewall,antivirus or anyother security software is not interfering/conflicting.Disable them before running the installer.
Run SDK Manager as an Administrator(Right Click on SDK Manager>select run as an Administrator).
Hope this helps.Good luck.
optimusodd said:
You are most welcome.
Uhmm,are connected to the internet ?
Also make sure that your firewall,antivirus or anyother security software is not interfering/conflicting.Disable them before running the installer.
Run SDK Manager as an Administrator(Right Click on SDK Manager>select run as an Administrator).
Hope this helps.Good luck.
Click to expand...
Click to collapse
Yes, I'm connected
I will try again this evening, at least now I can use adb :laugh:
Got this same problem here.
I'm using Kaspersky Anti-Virus 2013.
To be able to install plataform-tools from SDK Manager, disable your anti-virus (in my case: Kaspersky Anti-Virus 2013) and run SDK Manager (no need to run in Administrator mode). Every package will show properly on your screen and you'll be able to install them.
I'm also having problems accessing fastboot in Windows 8...
usaff22 said:
I'm also having problems accessing fastboot in Windows 8...
Click to expand...
Click to collapse
# 11
Platforms tool zip is attached in #9.
Hope this helps.
optimusodd said:
# 11
Platforms tool zip is attached in #9.
Hope this helps.
Click to expand...
Click to collapse
Is it different to the SDK? I already have the SDK, wondering if it's just a duplicate.
Sent from my locked, tampered ville
usaff22 said:
Is it different to the SDK? I already have the SDK, wondering if it's just a duplicate.
Sent from my locked, tampered ville
Click to expand...
Click to collapse
It's just the platform-tools folder present in the sdk, nothing different from the official one
Yesterday I've tried again and now the sdk manager works! Although I haven't done anything to make it work :silly:
usaff22 said:
Is it different to the SDK? I already have the SDK, wondering if it's just a duplicate.Sent from my locked, tampered ville
Click to expand...
Click to collapse
That's platform tools folder.Do you have platform-tools folder inside android-sdk folder ?(C:\Android\android-sdk)
You said you were having problems accessing fastboot in Windows 8.In case of elia222,he was unable to download the platform-tools.Are you facing the same problem ?
optimusodd said:
That's platform tools folder.Do you have platform-tools folder inside android-sdk folder ?(C:\Android\android-sdk)
You said you were having problems accessing fastboot in Windows 8.In case of elia222,he was unable to download the platform-tools.Are you facing the same problem ?
Click to expand...
Click to collapse
No, I'm able to access and download platform-tools, however unable to connect to the device. Both my One S, my brother's Sensation and my Wildfire won't connect.
usaff22 said:
No, I'm able to access and download platform-tools, however unable to connect to the device. Both my One S, my brother's Sensation and my Wildfire won't connect.
Click to expand...
Click to collapse
Disable your firewall,antivirus or anyother security software before running the installer.
Also,run SDK Manager as an Administrator(Right Click on SDK Manager>select run as an Administrator).
I have a gsm Galaxy Nexus and I just wanted to find out what commands to use to flash a boot image from the terminal. I used to use flash_img command but that doesn't work on the GN.
daggerxXxsin said:
I have a gsm Galaxy Nexus and I just wanted to find out what commands to use to flash a boot image from the terminal. I used to use flash_img command but that doesn't work on the GN.
Click to expand...
Click to collapse
you need to have a working flash_image file in your /system/bin/.
http://forum.xda-developers.com/showthread.php?t=1443017
Will this work? It says ICS on it though..
daggerxXxsin said:
http://forum.xda-developers.com/showthread.php?t=1443017
Will this work? It says ICS on it though..
Click to expand...
Click to collapse
well, there no working flash_image files in that thread. but, there is an alternative method of flashing via terminal there.
simms22 said:
well, there no working flash_image files in that thread. but, there is an alternative method of flashing via terminal there.
Click to expand...
Click to collapse
Oh shoot I think I posted the wrong link. Oh well, I guess I'll see if I can Google the right path for the boot partition and try that command.
I am trying to put my original ROM back on my phone. When I go into recovery and select the backup using cwm I get bad md5 error and then it reboots back to Cyanogen mod. Looking for some help. Thanks
Try This: http://www.ikevinshah.com/fix-how-to-recover-from-md5-mismatch-cwm-backup-nandroid-backup.html
I've tried it, it works. Good Luck. There is alot of information on this error. Ever since using OBackup, ive never ran into this problem again.
youngnex said:
Try This: http://www.ikevinshah.com/fix-how-to-recover-from-md5-mismatch-cwm-backup-nandroid-backup.html
I've tried it, it works. Good Luck. There is alot of information on this error. Ever since using OBackup, ive never ran into this problem again.
Click to expand...
Click to collapse
Thank you... Im a little new at this but where do i find the "via adb"? Thank you!
sugewhite said:
Thank you... Im a little new at this but where do i find the "via adb"? Thank you!
Click to expand...
Click to collapse
If you use terminal emulator from Google Play, no need to worry about ADB. ADB is android debug bridge, Android command line for Windows computer. In other words, terminal emulator does the same thing on your phone that ADB does on computer for your phone. Most of the time you can input same commands on your phone through terminal emulator, that you would input if your phone was connected to computer via ADB. In this case it says CMD/terminal, meaning it should work either way.
Sent from my hybrid GalaxyS3
joeyhdownsouth said:
If you use terminal emulator from Google Play, no need to worry about ADB. ADB is android debug bridge, Android command line for Windows computer. In other words, terminal emulator does the same thing on your phone that ADB does on computer for your phone. Most of the time you can input same commands on your phone through terminal emulator, that you would input if your phone was connected to computer via ADB. In this case it says CMD/terminal, meaning it should work either way.
Sent from my hybrid GalaxyS3
Click to expand...
Click to collapse
What im trying to rstore is my original rom. I dont have a bckup folder in CWM. It is actually in download/recovery.
If I'm not mistaken I believe your nandroid would be in clock work mod folder?
Sent from my SPH-L710 using Xparent Cyan Tapatalk 2
sugewhite said:
What im trying to rstore is my original rom. I dont have a bckup folder in CWM. It is actually in download/recovery.
Click to expand...
Click to collapse
I will leave this ? alone because I haven't ran CWM in a long time.
Sent from my hybrid GalaxyS3
I still havent figured out how to get it back. My backups for some reason is in mnt/shell/emulated/clockworkmod/backup/sg3-orig
When i go to do the rm nandroid.md5 I get a no file exists... Any ideas?
How to ROOT your T-Mobile Galaxy S4 on a Mac / Linux PC using Heimdall
Before you do ANYTHING, start here:
Download and install Heimdall: http://www.glassechidna.com.au/products/heimdall/
And Install libusbx: http://libusbx.org/
What is Heimdall?
Heimdall is a cross-platform open-source tool suite used to flash firmware (aka ROMs) onto Samsung Galaxy S devices.
What is libusbx?
libusbx is a library that provides generic access to USB devices. As a library, it is meant to be used by developers, to facilitate the production of applications that communicate with USB hardware.
Click to expand...
Click to collapse
Onto the magic..
1. Download CF-Root by Chainfire here: http://forum.xda-developers.com/showthread.php?t=2294005
2. Unzip the file: CF-Auto-Root-jfltetmo-jfltetmo-sghm919.zip
3. Unzip the file called "CF-Auto-Root-jfltetmo-jfltetmo-sghm919.tar.md5" that is inside the original zip file.
4. You should end up with "recovery.img" and "cache.img.ext4" (Put them on your desktop or somewhere easy to navigate to!)
5. Put your phone into download mode. (Hold Volume down + Power + Home button)
6. Connect your phone to your computer.
6. Open your favorite Terminal program on your computer. (I use the stock Mac Terminal)
7. Run the following command:
sudo heimdall flash --RECOVERY *RECOVERY DIRECTORY* --CACHE *CACHE DIRECTORY*
NOTE: Replace *RECOVERY DIRECTORY* and *CACHE DIRECTORY* to the full path of where the file is on your computer!
NOTE: --RECOVERY and --CACHE are CASE SENSITIVE!
For example: heimdall flash --recovery C:\Users\user\Desktop\recovery.img --cache C:\Users\user\Desktop\cache.img.ext4
8. Your phone should reboot.
NOTE: Sometimes the device does *not* boot into recovery mode and root your device. Just do the entire procedure again if this happens. If it still will not install root and such, then after flashing, pull the battery, and boot with VolUp+Home+Power button to boot into recovery manually. This will start the install process.
9. Done!
Note: This does not install a custom recovery, but you can download ROM Manager from the Play Store and install ClockworkMod Recovery using that. Alternatively, you can flash a recovery.img using the same way you flashed these two files. (heimdall flash --recovery *RECOVERY DIRECTORY*)
Click to expand...
Click to collapse
Getting an error?
If you receive this error message:
Initialising connection…
Detecting device…
Claiming interface…
ERROR: Claiming interface failed!
it’s because you have used the Samsung Kies software, which you should uninstall at once, but as it adds some kernel extensions, run this as well:
A. Launch Terminal
B. Get Root and run these:
sudo sh
kextunload -b com.devguru.driver.SamsungComposite
kextunload -b com.devguru.driver.SamsungACMData
kextunload -b com.devguru.driver.SamsungACMControl
C. Try again!
Click to expand...
Click to collapse
thanks, But a couple of qns.
1. USB debugging should be turned on or off?
2. when I put the device in download mode, it asks up to cancel and down continue in download mode. What to press?
If i put down, it says - downloading do not turn off. At this time, I've not run the heimdall command yet on terminal. (Ubuntu).
The error thats spit out is:
Initialising connection...
Detecting device...
libusbx: error [op_open] libusbx couldn't open USB device /dev/bus/usb/001/007: Permission denied.
libusbx: error [op_open] libusbx requires write access to USB device nodes.
ERROR: Failed to access device. libusb error: -3
didadi said:
thanks, But a couple of qns.
1. USB debugging should be turned on or off?
2. when I put the device in download mode, it asks up to cancel and down continue in download mode. What to press?
If i put down, it says - downloading do not turn off. At this time, I've not run the heimdall command yet on terminal. (Ubuntu).
The error thats spit out is:
Initialising connection...
Detecting device...
libusbx: error [op_open] libusbx couldn't open USB device /dev/bus/usb/001/007: Permission denied.
libusbx: error [op_open] libusbx requires write access to USB device nodes.
ERROR: Failed to access device. libusb error: -3
Click to expand...
Click to collapse
1. It does not matter.
2. Yes, you press volume down to continue.
As for that error, try installing this on your Linux setup: http://libusbx.org/
It should have been bundled with Heimdall for Linux but maybe it isn't.
theexel said:
1. It does not matter.
2. Yes, you press volume down to continue.
As for that error, try installing this on your Linux setup: http://libusbx.org/
It should have been bundled with Heimdall for Linux but maybe it isn't.
Click to expand...
Click to collapse
Hmm,still the same err,but I guess I was able to detect S4.
I did install libusbx from source, by
./configure && make && make install && sudo ldconfig - blah.
Then tried to use heimdall flash command/action.
Try using sudo before the heimdall command.
sudo heimdall flash ....
theexel said:
Try using sudo before the heimdall command.
sudo heimdall flash ....
Click to expand...
Click to collapse
hmm,sudo is able to write,but stil one error, "recovery" not found in specified PIT as below. One last step?
--------
Downloading device's PIT file...
PIT file download successful.
ERROR: Partition "recovery" does not exist in the specified PIT.
Ending session...
Rebooting device...
Releasing device interface...
Re-attaching kernel driver...
---------- Post added at 11:07 PM ---------- Previous post was at 11:05 PM ----------
heimdall flash --RECOVERY ./clockworkmod_6.0.3.2_jfltespr.img --no-reboot - May be like this?
---------- Post added at 11:13 PM ---------- Previous post was at 11:07 PM ----------
Alright,thank you very much!. I am rooted. Exact command to run is:
sudo heimdall flash --RECOVERY /path_to_recovery/recovery.img --CACHE /path_to_cache/cache.img.ext4
Fantastic! thanks
Glad you got it sorted!
Sent from my SGH-M919 using Tapatalk 4
theexel said:
Glad you got it sorted!
Sent from my SGH-M919 using Tapatalk 4
Click to expand...
Click to collapse
Would this also work if say...I bricked my phone?
I run windows virtualized on OpenSUSE, but the USB drivers for windows won't work in a virtual environ. I can never be too sure if I can get my hands on a windows PC.
nyloxy said:
Would this also work if say...I bricked my phone?
I run windows virtualized on OpenSUSE, but the USB drivers for windows won't work in a virtual environ. I can never be too sure if I can get my hands on a windows PC.
Click to expand...
Click to collapse
You'd probably need to flash the whole Samsung Stock firmware not just the files I listed above, but yes, it should be possible, bud. :good:
If you want me to check it out for you and write a tutorial, I'll be more than happy to me.
theexel said:
You'd probably need to flash the whole Samsung Stock firmware not just the files I listed above, but yes, it should be possible, bud. :good:
If you want me to check it out for you and write a tutorial, I'll be more than happy to me.
Click to expand...
Click to collapse
Thanks for the info! Quick tutorial would be the bomb! I just got into rooting and flashing a few weeks ago and I never want to go back! :victory:
Started using the Infamous Alpha. Currently on 8.6, and it's rock solid. I just worry that there may be a time in the near future that I brick my S4 and I'm no longer a fan of windozzz!
Just 3 big steps.
1.Download and install Heimdall: http://www.glassechidna.com.au/products/heimdall/
2. Install libusbx. You need to download the sources and compile them. Usual ./configure, make , make install.
Use sudo su and then compile.
you may have to do , sudo apt-get install libudev-dev before compiling the libusbx libs.
3.Onto the magic..
..as said in post 1....
Make sure to use sudo for the heimdall flash ...Needless to say use the caps.!
Then install cwm from the Google Play and then you are Golden.
Thank you again to theexel for quick replies thru my earlier posts.:good:
Added a fix for a possible error:
If you receive this error message:
Initialising connection…
Detecting device…
Claiming interface…
ERROR: Claiming interface failed!
Can somebody make a video on how to do this?
This sounds confusing and I don't wanna brick my phone lol
I'm willing to donate to whoever does a video!
So will this wipe my phone?
[email protected] said:
So will this wipe my phone?
Click to expand...
Click to collapse
No. It will only root your phone.
flemingg said:
There is nothing can be done without the libraries files.
Click to expand...
Click to collapse
Library files?
Noob help with installing libusbx?
Hi Guys,
First off kudos and many thanks Exel for posting this. Also, sorry to bug you all with such a noob question but may I bother someone to post the exact commands/syntax for installing libusbx on/in mac os x 10.8.x? I've tried looking online and may not be using the right keywords to get the information I need.
Thanks loads for all the help you guys,
nv_gck
Re: Noob help with installing libusbx?
NV_GCK said:
Hi Guys,
First off kudos and many thanks Exel for posting this. Also, sorry to bug you all with such a noob question but may I bother someone to post the exact commands/syntax for installing libusbx on/in mac os x 10.8.x? I've tried looking online and may not be using the right keywords to get the information I need.
Thanks loads for all the help you guys,
nv_gck
Click to expand...
Click to collapse
Hi Guys,
Please ignore my last request. I figured it out from the INSTALL file in the libusbx source code. Also, I did it without installing the full Xcode IDE on my Mac, just the Xcode terminal tools. Have successfully rooted.
Thanks again Exel
NV_GCK said:
Hi Guys,
Please ignore my last request. I figured it out from the INSTALL file in the libusbx source code. Also, I did it without installing the full Xcode IDE on my Mac, just the Xcode terminal tools. Have successfully rooted.
Thanks again Exel
Click to expand...
Click to collapse
Glad you got it working!
It would really be worth it to mention that you actually have to compile libusbx from source. I spent a half hour Googling before coming to this realization.
Hey there fellas, spent the last couple hours trying to get this to work and keep getting hung up in terminal here,
Code:
Invalid argument: folder/recovery.img
Any help?