Friday, August 30, 2013

Android 4.2.2 Device Offline / Copy files to Android Phone

if you have properly installed adb and you tried all of the remedies mentioned at above the listen to my remedy:
The reason to appearing "device offline" in android 4.2.2 is that android has a security feature in 4.2.2 that create a whitelist of usb ports that can be used as debugging port.
After plugging deivce in usb and entering the command "adb devices" a popup window will be raised in your device and ask you to accept the connection:
popup window to accept RSA fingerprint of your usb
After accepting RSA fingerprint of you usb you can now issue the "adb devices" again and see the device is no longer offline,
If you dont see the popup window, the reason is your adb version is old, your adb version must ne at least 1.0.31 (you can see the version using the command "adb version"). if version is older than 1.0.31 then update your platform-tools package using latest updates from google
that's it

share|improve this answer
$ cat /etc/udev/rules.d/51-android.rulesUBSYSTEM=="usb", ATTR{idVendor}=="NNNN", MODE="0666", GROUP="thegroup"
$ sudo chmod a+r /etc/udev/rules.d/51-android.rules
$ adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached
XXXXXXXX device
$ adb push <local_file> /mnt/sdcard/Music

No comments: