Enable USB debugging mode and configure usb ota mode for Android

Source: Internet
Author: User

It is too troublesome to manually enable the USB debugging mode after each android system startup.

Therefore, the init. RC file and default. Prop file are modified to enable the USB debugging mode automatically at startup and enable the usb ota mode for Android.

This makes it much easier.

Add the following content to init. RC:

On Property: persist. Service. ADB. Enable = 1 Write/sys/bus/platform/Drivers/usb20_otg/force_usb_mode 2 start adbd

Add the following content to the default. Prop file:

Persist. Service. ADB. Enable = 1

Re-create the image and update the boot. IMG and recovery. IMG of the Board.

After Android is started, check the device file and find that it is correctly written into the file. It turns out to be 1.

Shell @ Android:/$ CAT/sys/bus/platform/Drivers/usb20_otg/force_usb_mode 2

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.