TechKnow

Author Topic: ** TechKnow's ADB SETUP GUIDE **  (Read 4277 times)

0 Members and 1 Guest are viewing this topic.

Offline HcH

  • TechKnow Owner, Ethical Hacker
  • Administrator
  • Uber Member
  • *****
  • Posts: 9936
  • Karma: +2284/-111
** TechKnow's ADB SETUP GUIDE **
« on: December 26, 2014, 05:14:31 PM »
Hello TechKnow members and visitors, welcome to:

TechKnow's ADB SETUP GUIDE


Part1: Introduction to Android Debug Bridge

this is a quick guide to get started using ADB. First things first, what is ADB? ADB stands for 'Android Debug Bridge' and is a way to communicate to your device using your personal computer. The Uberizer is a Android modification tool that relies on ADB to make changes to your device. For example, if your device has ADB enabled and is connected to your personal computer, you can use the Uberizer to easily and quickly change the build.prop of your device or, batch install many APKs which you have downloaded on your personal computer. This is just an example of how you can use ADB, there's more!


Part2: Getting your setup ready to ADB

In order to ADB, you must have:
 - 2.1 ADB Activated on your Android device.
 - 2.2 The ADB.exe for Windows (Download Google Android Debug Bridge Rev.11 exe for Windows here)
 - 2.3 Get a ADB Driver for your Device (Download Android ADB Drivers here) (Warning, Windows 8.x users read here!!!)


Part3: Enabling ADB on Android Devices

Through the version of Android, the way howto enable ADB has changed a couple of times, here are the instructions on howto enable ADB on any version of Android until today.

Enabling ADB on Android 2.3 (Gingerbread) and prior:
Check 'Settings' \ 'Applications' \ 'Development' \ 'USB debugging'

Enabling ADB on Android 4.0 (ICS - Ice Cream Sandwich) and 4.1 (JB - JellyBean):
Enable ADB in settings \ developer options \ USB debugging

Enabling ADB on Android 4.2/4.4/5.x and higher (KitKat/Lollipop):
On Android 4.2 and higher, the Developer options screen is hidden by default. To make it visible, go to Settings > About phone and tap Build number seven times. Return to the previous screen to find Developer options at the bottom.


Part4: Getting ADB.exe and check for a device

In order to get ADB into action, you will need to download the ADB.exe with it's dll's: (Download Google Android Debug Bridge Rev.11 exe for Windows here), start a command prompt (WINKEY+R, enter 'CMD'<enter>) navigate to the location of ADB.exe, enter 'ADB devices'<enter>, if all is well, it should show your device-id!






FAQ:

FAQ#01: adb.exe returns "error: device offline" but the ADB driver is installed for sure!
A: Yes, this happens on devices running 4.2.2 and up, they demand a more secure way of ADB communication using a certificate.

FAQ#02: I can not change options for ADB in the Developers menu, it is greyed out.
A: In the right top corner , there is a slider I/O, switch it and the options for ADB will become available.

FAQ#03: ADB still fails
A: Check the following:
- MTP should be enabled in the settings/connections screen.
- Make sure you have a proper data usb cable, there are plenty of charger only cables out there. If your PC doesn't even recognize a device is being connected to it, then you need to try another cable.
- Try to revoke the USB Debugging authorization on Developer Options menu.
- Try using adb kill-server and the adb usb commands.
- Try to reconnect your device.
- Try reboot your device.
- Turn USB Debugging OFF and ON again.


HcH
« Last Edit: June 10, 2016, 03:35:09 PM by HardcoreHacker »

Offline HcH

  • TechKnow Owner, Ethical Hacker
  • Administrator
  • Uber Member
  • *****
  • Posts: 9936
  • Karma: +2284/-111
Re: ** TechKnow's ADB SETUP GUIDE **
« Reply #1 on: February 09, 2015, 03:10:44 PM »
Added new information about secure ADB :)

Offline huckleberrypie

  • Sr. Member
  • ****
  • Posts: 498
  • Karma: +241/-1
  • Unterganger.
  • Tablet / Size / Model: KingCom Joypad Q71 (Allwinner A31s/7")
Re: ** TechKnow's ADB SETUP GUIDE **
« Reply #2 on: February 09, 2015, 03:40:02 PM »
Vtech took things a step further by not providing any vendor/product ID lines to android_winusb.inf for their Innotab Max. Adding them to the said file would allow Windows to detect the device and thus be able to use ADB, but you have to do another step in order to have full access besides in recovery.

Offline HcH

  • TechKnow Owner, Ethical Hacker
  • Administrator
  • Uber Member
  • *****
  • Posts: 9936
  • Karma: +2284/-111
Re: ** TechKnow's ADB SETUP GUIDE **
« Reply #3 on: February 20, 2015, 12:37:45 PM »
Vtech took things a step further by not providing any vendor/product ID lines to android_winusb.inf for their Innotab Max. Adding them to the said file would allow Windows to detect the device and thus be able to use ADB, but you have to do another step in order to have full access besides in recovery.
Interesting! Archos also did something like this but I couldn't make it work even with the modifications:

For Windows users only: Install the Archos ADB USB Driver for Windows. The driver is available at the ARCHOS support ftp (ftp://support.archos.com). Instructions how to install the driver are available at USB Driver for Windows site on Android Developers.

Add Archos vendor ID (0x0e79) to adb_usb.ini in .android folder in your home directory:
Windows: echo 0x0e79 >> "%USERPROFILE%.androidadb_usb.ini"
Macos: echo "0x0e79" >> ~/.android/adb_usb.ini
Linux: echo "0x0e79" >> ~/.android/adb_usb.ini

For Linux users only: You need to add a udev rule if ADB only works as root:
Create a file /etc/udev/rules.d/51-android.rules that contains the following lines:
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device",
ENV{PRODUCT}=="e79/*", MODE="0666"
SUBSYSTEM=="usb", SYSFS{idVendor}=="e79", MODE="0666"
Make the rule known to udev with the following command:
udevadm control --reload-rules (or udevcontrol reload_rules on older systems)


Archos messed up BAD on their drivers, I have the 101 Copper here and the Xenon 80b model (for work). Neither of these is ADB-ing with the instructions OR driver from the Archos website, that is a very sad thing. I modified the existing Archos driver to support these models as well.

Will be soon uploaded to TechKnow :)

HcH
« Last Edit: February 20, 2015, 12:41:35 PM by HardcoreHacker »

Offline HcH

  • TechKnow Owner, Ethical Hacker
  • Administrator
  • Uber Member
  • *****
  • Posts: 9936
  • Karma: +2284/-111
Re: ** TechKnow's ADB SETUP GUIDE **
« Reply #4 on: May 11, 2015, 11:34:51 AM »
Updated the guide! Added a lot more fixes after I've just struggeled to get a Samsung S4 connected on my PC @ work for a co-worker :)

Also fixed some spelling errors and added a few links.

HcH