How to Set up ADB - Droid Eris Android Development

I see that a few of you have been asking how to set up ADB.. I hope this helps!
Step 1: Download the Android SDK from http://developer.android.com/sdk/index.html The Windows file is called android-sdk_r4-windows.zip. Extract the files to your C: drive so that you now have the folder C:\android-sdk-windows
Now open up command prompt and type these codes:
1: Code:
cd C:\android-sdk-windows\tools
2: Code:
adb devices
If you've been following this guide you will see your phone's serial number. If you get "device not found" error, you either need to make sure you the drivers were properly installed or make sure you enable USB debugging AFTER you connect the USB cable. Continue on once you get the proper phone serial output.
You shouldn't have to install anything other than the HTC Sync... And the only reason you install HTC Sync is for the drivers.. You dont have to install anything for ADB just put the extracted file on the C:\ drive.... And then whenever you wanna Push or Pull a file with ADB, just put that file in the C:\android-sdk-windows\tools file....

Related

ADB?

Well, I have HTCSync installed, but I don't understand what to do now with ADB.exe+dll files and sync. Can someone please elaborate? Oh and i alrdeady have librs+librs_jni for my cousins eris.
Step 1: Download the Android SDK from http://developer.android.com/sdk/index.html The Windows file is called android-sdk_r4-windows.zip. Extract the files to your C: drive so that you now have the folder C:\android-sdk-windows
Now open up command prompt and type these codes:
1: Code:
cd C:\android-sdk-windows\tools
2: Code:
adb devices
If you've been following this guide you will see your phone's serial number. If you get "device not found" error, you either need to make sure you the drivers were properly installed or make sure you enable USB debugging AFTER you connect the USB cable. Continue on once you get the proper phone serial output.
You shouldn't have to install anything other than the HTC Sync... And the only reason you install HTC Sync is for the drivers.. You dont have to install anything for ADB just put the extracted file on the C:\ drive.... And then whenever you wanna Push or Pull a file with ADB, just put that file in the C:\android-sdk-windows\tools file....

ADB Problem with HTC Magic Vodafone

Hello, I install the android SDK correctly and install all correct drivers, all correct files from the google repository, and reading on unlockr, you need to type CMD and enter a few commands, the final one being ADB devices, which is meant to bring up your device serial/id but doesnt show nothing for me, i deleted all drivers with a program, and it re-installs them, I put the phone into debug mode too, but whatever i try, i cant root my magic (32B), please help!!!!
i have followed every single guide but cant blooming root my phone!!!
HELP!!!!!!!!
Install the HTC Sync software first. If this connects correctly and recognizes your phone, then the ADB will find it too. I use it as a test, whether the drivers are installed correctly or not.
To start the ADB, you have to navigate to the folder where the SDK was extracted using the CMD Prompt, and then into /tools. There you type ADB and the command you want to execute.
done that mate, going to /tools and then adb devices and its meant to say a device serial, but on mine it shows nothing
As far as I know, you have to have a recovery installed to access adb.
Write "fastboot devices" while in /tools to see if the drivers are OK. When you install a recovery, adb should be accessible.

[Q] Error: adb is not recogzined as an internal or external command

Error: adb is not recogzined as an internal or external command, operable program or batch file???
i successfully installed the android sdk 08 and still got this message.
Has winxp, tmobile GT
I had this same exact problem, but I was just able to get it working. First, this website is helped a lot:
http://www.londatiga.net/it/how-to-use-android-adb-command-line-tool/
Also, make sure you download the Java SDK package from the link given on that website.
Second, when the website says to "Run Windows command line tool (cmd) and go to D:\android-sdk-windows\tool" open command prompt and enter this code:
cd (enter the path to where the android SDK was installed), for example:
cd C:\android\android-sdk-windows\platform-tools
Notice how I entered "platform-tools" instead of just "tools" because this is the folder where the adb file is download with the android SDK. After you do this, you should then be able to apply adb codes (make sure the screen on your tab is on because you will have to accept superuser prompts, therefore your tab needs to be rooted).
Every time you open command prompt, you will have to enter:
cd thentheplacewheretheandroidSDKisinstalled
as stated above before you are able to enter adb commands.
Hope this helps!
@caveman999 is giving good advice. Working in the command window is weird to those who did not use old pc-dos environment.
You have to be in the tools directory or you have to edit your PATH in windows so you can use adb from any prompt.
thnaks for both of you guys i installed the java jdk and also specified the path in environment variables but still error message!
I could only get adb to work error-free when I was in the same directory as adb.exe program. Just change directories cd..(enter) etc until you are in that directory.
tabing said:
Error: adb is not recogzined as an internal or external command, operable program or batch file???
i successfully installed the android sdk 08 and still got this message.
Click to expand...
Click to collapse
I had the same error, until I downloaded and placed the .adb files accordingly.
Source: http://theunlockr.com/2009/10/06/how-to-set-up-adb-usb-drivers-for-android-devices/
"UPDATE: If it says adb not found or something similar, download the ADB files and extract them into the Tools folder of the SDK (they were taken out by Google in the R08 version for some reason and need to be put back)."
download adb files from here: http://www.megaupload.com/?d=RTEY0Q97
The important thing is to put the files really under the "tools" folder.
When you check out above Source I am sure your problem will be solved
Thank you all problem solved
tabing said:
Thank you all problem solved
Click to expand...
Click to collapse
Glad to here it. Why not hit a few thanks buttons?!

Cannot Revoke USB Debugging Authorizations

So I've come across a quirk that I haven't been able to resolve and haven't noticed before getting my G5. When I run
Code:
adb devices
on my computer with my phone connected, it shows my device but says unauthorized. I cannot seem to authorize my device. I have tried:
Revoke USB Debugging Authorizations (option not available in Developer Options)
Delete adb_keys in /data/misc/adb/ (No adb_keys file in the folder)
Create adb_keys file on my computer using the computers public key (Phone deletes this file on boot)
I realize this is more of a general Android question, but as it hasn't happened to me on any other phone, I wanted to see if anyone else was having this trouble.
Same boat here, haven't been able to fix the issue. I believe there's a testboot3.img floating around that fixes it. I downloaded it awhile ago as I keep a eye on everything for this device. But I don't know if it does and if you flash a new boot.img I'd think it would override it. I've tried your method as well.
I am also having this issue. Does anyone have a solution?
To update this for those that need it; this toolkit worked to fix this issue for me in Linux. I just hit the red block in the upper left that says "unauthorized device" when the phone was plugged in. Not sure what the kit did but then my phone finally asked if I wanted to allow the computer access. After doing that I finally got "authorized" when running "adb devices" in ubuntu.
https://forum.xda-developers.com/g5-plus/development/toolkit-moto-g5-plus-toolkit-root-t3605203
A fix if you are running Windows (or Linux)
I just found a fix that worked for me.
(Although i got the "unauthorized" status with the phone running as usual, I didn't get the same problem when in recovery mode.)
I followed instructions from this site but needed to change Linux commands to simliar Windows commands: http://www.neuraldump.com/2017/05/how-to-fix-adb-unauthorized-error/
If you are using Windows, you'll need to follow the commands below:
- First things first:
- Phone: Check if you have a file called adb_keys located at: /data/misc/adb/adb_keys. If you have it, i would recommend you to backup the file. (I didn't have it.)
- Windows:You'll need to have a file called adbkey.pub located at C:\users\UserAccount\.android\
- Boot into recovery mode.
- Plug your phone into PC.
- Open cmd and run adb devices. It would show "recovery" instead "unauthorized".
- Create a new file called adb_keys file on your PC:
Code:
type NUL > adb_keys
- Now you need to copy the contents from the adbkey.pub to adb_keys, the new file you just created:
adbkey.pub is located at C:\users\UserAccount\.android\
(Needless to say you need to replace "UserAccount" when running the command)
Code:
type c:\users\UserAccount\.android\adbkey.pub > adb_keys
- Upload the adb_keys file to your phone:
Code:
adb push adb_keys /data/misc/adb/adb_keys
- Reboot and run adb devices. It should be working now.
(Thanks to Tony, the guy who posted this fix in his blog).
need help please. Cant do it. I have that problem on my moto g5 plus. Dont understand this. Windows 10 pro computer.
Edit: I solved using the adb_keys from my xperia and using root explorer on my moto g5 plus and paste on data/misc/adb/adb_keys
Awesome! You may need to change permissions like I did from using root user within a debian chroot. Just like ssh keys....
From twrp recovery console.
chmod 0644 /data/misc/adb/adb_keys
chown -u shell /data/misc/adb/adb_keys
That got me authorized and running a root shell to spoof fingerprint before getting past first Hello page of setup
Yep, it works on my side as well on a Samsung galaxy Note 3, RROS 8.6.1, very good tip!:good:
@mnoguti
thank you, this fix my Verizon Note 4 issue with Smali Patcher not detecting my phone.
Thank you! My Galaxy S4 GT-i9505 also had this issue and your guide let me succesfully use adb normally again!
mnoguti said:
A fix if you are running Windows (or Linux)
I just found a fix that worked for me.
(Although i got the "unauthorized" status with the phone running as usual, I didn't get the same problem when in recovery mode.)
I followed instructions from this site but needed to change Linux commands to simliar Windows commands: http://www.neuraldump.com/2017/05/how-to-fix-adb-unauthorized-error/
If you are using Windows, you'll need to follow the commands below:
- First things first:
- Phone: Check if you have a file called adb_keys located at: /data/misc/adb/adb_keys. If you have it, i would recommend you to backup the file. (I didn't have it.)
- Windows:You'll need to have a file called adbkey.pub located at C:\users\UserAccount\.android\
- Boot into recovery mode.
- Plug your phone into PC.
- Open cmd and run adb devices. It would show "recovery" instead "unauthorized".
- Create a new file called adb_keys file on your PC:
Code:
type NUL > adb_keys
- Now you need to copy the contents from the adbkey.pub to adb_keys, the new file you just created:
adbkey.pub is located at C:\users\UserAccount\.android\
(Needless to say you need to replace "UserAccount" when running the command)
Code:
type c:\users\UserAccount\.android\adbkey.pub > adb_keys
- Upload the adb_keys file to your phone:
Code:
adb push adb_keys /data/misc/adb/adb_keys
- Reboot and run adb devices. It should be working now.
(Thanks to Tony, the guy who posted this fix in his blog).
Click to expand...
Click to collapse
Thank you so much, you saved my life

Question How can I download and send files from Windows 10 to WSA

How can I send files from Windows to WSA ?
I will appreciate every help
Hello,
you can send or download files with ADB. Download platform-tools from Google here.
Unpack, open cmd and go to the directory from the unpacked files. Then go to wsa, to developer settings and allow network debugging. Then copy the ip adress that wsa viewing. Go to cmd and run the command
Code:
adb connect <the ip-adress>
replace <the ip-adress> with the ip adress thet you have copyed. when you get a error, retry it.
then run
Code:
adb push C:\patch\to\your\file.file /storage/emulated/0
to push files to wsa home directory.
run
Code:
adb pull /storage/emulated/0/file.file C:\patch\to\folder
to push file to host.
Thanks, but I already uninstall WSA for his high CPU usage.

Categories

Resources