Monday 31 August 2015

Mengakses android device yang unaotherized di PC

pernah waktu mau kompile keluar pesan seperti ini:

"PropertyFetcher: AdbCommandRejectedException getting properties for device 430037f2ba0cb0b5: device unauthorized. Please check the confirmation dialog on your device."

nah solusinya adalah me re-authorized android devices caranya seperti ini

1. Check if authorized:
<ANDROID_SDK_HOME>\platform-tools>adb devices
List of devices attached
4df798d76f98cf6d        unauthorized
2. Revoke USB Debugging on phone
If the device is shown as unauthorized, go to the developer options on the phone and click "Revoke USB debugging authorization" (tested with JellyBean & Samsung GalaxyIII).
3. Restart ADB Server:
Then restarted adb server
adb kill-server
adb start-server
4. Reconnect the device
The device will ask if you are agree to connect the computer id. You need to confirm it.
5. Now Check the device
It is now authorized!
adb devices
<ANDROID_SDK_HOME>\platform-tools>adb devices
List of devices attached
4df798d76f98cf6d        device