Xiaomi phone root process and solution unable to get View server version from device issue

Source: Internet
Author: User

Note: To resolve unable to get view server version from device, also root first, the following first describes the root process

First, Xiaomi phone root process

1. First to set up the Xiaomi account on the phone, located in the settings-Xiaomi account

2. Login http://www.miui.com/, there is an "unlock" menu in the upper right corner of the webpage, such as a red box

Figure 1

3. Use the account set on the phone or the generated user ID and password login, apply for Xiaomi account unlock permission, 3 days or so can receive SMS

4. After receiving the text message, login SMS prompt URL http://www.miui.com/unlock/, download the solution tool, such as

Figure 2

5. Unzip the unlock package now down, the file directory is as follows

Figure 3

6. Run MiFlashUnlock.exe, login account, such as

Figure 4

7. After successful login, the tool will verify that the account has been authorized to unlock, after the successful verification, enter the following interface

Figure 5

8. Follow the steps marked in the red box below in Figure 2 and wait for the unlock

9. After the successful unlocking, restart the phone, in the MiFlashUnlock.exe interface will have reboot command, you can click directly, you can also long press the boot button

10. Enter the mobile phone to the Security Center-the Authorization management interface, click Root Rights Management, and then the system automatically root

           

Figure 6

So the root process of the Xiaomi phone is complete.

Second, the following again solve the problem of unable to get view server version from device

In fact, once the Xiaomi phone root succeeds, the unable to get View server version from device problem also means that it has been resolved.

Input command in DOS window ADB Shell Service Call window 3

Return Result: Result:parcel (00000000 00000000 ' ... '), meaning view server does not start

Execute the following command to bind the port and start view Server adb Shell Service Call window 1 i32 4939

The return value: Result:parcel (00000000 00000001 ' ... ') means that the view server starts, and the automated test tool, Monkeyrunner, etc. can access the UI controls of the Xiaomi phone.

Iii. description of the ADB Shell Service command

The ADB shell service can send messages to the Android service,

The specific usage is as follows: Usage:service [-h|-?]

Service List

Service Check Service

Service Call service CODE [i32 INT | s16 STR] ...

Options:

I32:write the integer INT into the send parcel.

S16:write the UTF-16 string STR into the send parcel.

The ADB shell Service list lists the Andorid systems that provide all the service such as:

1. Bind port to start viewserver adb Shell Service Call window 1 i32 $port

2. Stop viewserver adb shell Service Call window 2

3. Check if Viewserver is running ADB Shell Service Call window 3

Xiaomi phone root process and solution unable to get View server version from device issue

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.