Solution for offline or unauthorized problems when ADB connects Android 4.2.2 version of mobile phone

Source: Internet
Author: User

I have a Huawei X1 mobile phone, version is Android 4.2.2, but before using the ADB connection (including USB/TCP) when the total inexplicable offline or unauthorized problems, today to understand the reasons and solve:

1. Online says from 4.2.2, the ADB connection has been added with the authentication confirmation function, that is, when using USB connection, a confirmation dialog will appear on the phone. The user clicks confirm to continue. ADB devices displays a status of unauthorized before the user confirms or when there are other authentication-related issues. After confirmation, the Android phone will add a row of key data on the/data/misc/adb/adb_keys file, presumably this key should be the RSA public key of the PC user running ADB. After the user of this PC runs the ADB connection to this phone, the Authentication confirmation dialog box will no longer appear.

2. The above mentioned is the mobile phone and adb (PC-side client) version is 4.2.2 or more of the situation. However, if the ADB version is old (does not support authentication), and the Android phone is a new version, then the connection is definitely not successful, the display status is offline, not unauthorized,android phone will not appear on the confirmation dialog box. At this time often users do not know what is going on.

3. If the ADB client does not use USB to connect to the phone, but instead uses TCP (the phone needs to start ADBD) to connect to the phone, for example: ADB connect 192.168.1.10, it is estimated that due to the Android version of the bug (I do not know the subsequent version of the Fix?), The Authentication confirmation dialog box does not appear when you connect, causing unauthorized problems. Then the solution is: first with the USB connection and confirm, the Android phone saved the PC user's key, the use of TCP connection can be directly successful.


ADB connects Android 4.2.2 version of mobile phone with a workaround for offline or unauthorized problems

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.