Quantcast
Channel: xda-developers - Galaxy S Plus I9001 Android Development
Viewing all articles
Browse latest Browse all 315

[ADB]ADB v1.0.31 - Fix For ADB Staying Offline in Android 4.2.2

$
0
0
Seems some of the user unable to get the ADB working on Android 4.2.2 as the command prompt always stated that the device is offline so now I open my first thread after I found out the solution

What is ADB?
 
Quote:

ADB, or the Android Debug Bridge, is a development tool included with the Android SDK (Software Developer Kit), which allows for communication from an Android device (such as a phone or tablet) to a personal computer, and vice-versa. This communication can be made over a wifi connection. However more commonly, it is made via a USB cable. adb can also be used by developers for communicating from a computer to a virtual android machine that is also running on the computer.


Android 4.2.2 now enforces RSA authentication via ADB and this is only supported in the latest versions of ADB.
 
Quote:

In Android 4.2.2 (which corresponds to CyanogenMod 10.1), Google implemented some new security features for using ADB. The new "secure debugging" feature requires that you manually approve your computer for an ADB connection. This approval must be done from within the device, and only after any screen lock has been bypassed.
To access your 4.2.2 or higher device via ADB, you MUST ensure you are using a recently-updated Android SDK. Once the SDK (and therefore ADB) has been updated, you must ADB kill-server and ADB start-server any existing ADB daemon running on your computer. The first time you try to connect via ADB, you should receive a prompt on your device to Allow USB debugging? for this device (along with an RSA fingerprint identifying the computer). You may select the Always allow from this computer check box if you want the device to remember this computer, in which case you will not be prompted again when connecting your device to that specific PC.

Information from GitHub

ADB with version of 1.0.31 or later will works for Android 4.2.2

In order to use ADB :

Go to the ADB directory. Example C:\android-sdk-windows\platform-tools
  • Shift + Right click and then click "Open command window here"


  • OR use the command in command prompt
    Code:

    cd C:\android-sdk-windows\platform-tools
    NOTE : You can change the directory based on where you placed the ADB files in your computer by simply changing the command to :
    Code:

    cd <your directory>

To check for ADB version :

Code:

adb version



There are two ways of upgrading your ADB version
  1. Upgrade through Android SDK Manager


  2. Extract the ZIP file that I attached below to the directory you want (example C:\ drive) and redirect your command prompt to the specific directory using "Shift + Right click" or by using the command in command prompt :
    Code:

    cd <your directory>


Before upgrading your ADB :



After upgraded ADB :

If your ADB is working correctly, you will see this when you plug in for the first time.

NOTE : Cyanogenmod (based) ROMs require the following setting to export kernel logs via adb: Settings >> Developer Options >> Root access >> select "Apps and ADB"

NOTE : The RSA key for the host computer is stored in directory /data/misc/adb/adb_keys



After you press the OK button, in command prompt :
Code:

adb devices
NOTE : Some user reported that the ADB over network doesn't works if the option "Always allow from this computer" is not checked. So make sure you select the option if you want to use ADB over network




now you will get something like this and you are done...ENJOY ;)

Attached Thumbnails
Click image for larger version

Name:	Untitled.jpg
Views:	N/A
Size:	132.9 KB
ID:	2093161   Click image for larger version

Name:	Screenshot_2013-07-05-11-45-10.jpg
Views:	N/A
Size:	23.7 KB
ID:	2093165   Click image for larger version

Name:	Version.jpg
Views:	N/A
Size:	19.8 KB
ID:	2094132   Click image for larger version

Name:	Command Window.jpg
Views:	N/A
Size:	85.9 KB
ID:	2094249   Click image for larger version

Name:	Offline.jpg
Views:	N/A
Size:	23.4 KB
ID:	2094272  

Click image for larger version

Name:	Online.jpg
Views:	N/A
Size:	23.2 KB
ID:	2094274  
Attached Files
File Type: rar ADB_1.0.31.rar - [Click for QR Code] (393.8 KB)

Viewing all articles
Browse latest Browse all 315

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>