Friday, July 29, 2016

Connecting ADB to Android 4.2.2 devices

Enabling Developer mode on devices (phone):
  1. Go to Settings -> About phone
  2. Tap on Build number until message looks like "... you are already a developer ..."
Enabling Developer options on devices:
  1. Go to Settings -> Developer options
  2. Turn it on and let device to allow development settings
  3. Check on USB debugging to enable it and let device to allow debugging via USB
Connect your device to your PC. Notification USB debugging connected will appear.
Run adb devices to make sure the device connected to adb properly.
>adb devices
List of devices attached
J32V2ML17X026640        device
If you have multiple adb.exe on your pc, make adb from Android SDK as default by put reference to this file into path. In Windows:
  1. Go to Control Panel -> System -> Advanced system settings
  2. Go to Environment Variables -> System Variables, then select variable Path then click Edit
  3. Add your path to correct adb.exe location from Android SDK, for example C:\Java\android-sdk-windows\platform-tools
Tested on MITO A150 Android 4.2.2, PC Windows 10 SL, AMD Processor.
To turn off debugging, go to Settings -> Developer Options uncheck on USB debugging. Next time you want to test your application, just check on USB Debugging.
References:

No comments:

Post a Comment