Android over usb-if test considerations and modifications

Source: Internet
Author: User

The USB if itself is a voluntary logo (logo) certification. Products that use or have a USB logo are subject to this test and are intended to ensure that all USB devices are of the required quality. There are two ways to test products: Participate in USB-IF-sponsored compatibility test conferences or private test labs. If the product passes the compatibility test, it will be included in the USB Integrator list, get a tid number, and have the right to use the USB flag. If you have certification requirements, please contact the appropriate test body.
Modify:
1, Alps\mediatek\custom\[project_name]\kernel\battery\battery\cust_charging.h
#define CONFIG_USB_IF 0//disable USB-IF charging
#define CONFIG_USB_IF 1/enable usb-if charging


2, Alps\frameworks\base\services\java\com\android\server\mountservice.java
private void Validatepermission (String perm) {
if (mcontext.checkcallingorselfpermission (perm)! = packagemanager.permission_granted) {
throw new SecurityException (String.Format ("Requires%s permission", perm));
//}
}

Other:
1, over current measurement test configuration, in order to meet usb-if requirements
USB Configured < 500mA
USB Un-configure < 100mA
USB Suspend < 2.5mA
Here the Un-configure, suspend state of the current is small, and the usual charging experience of mobile phone users inconsistent, it is necessary to do a separate version.
2, suspend current is small, please note that the phone other peripherals do not power consumption (such as LED, etc.).
3, MS on the help of the site recommended the use of Belkin 7 self-powered USB 2.0 hub, such as the hub impact test, can be directly connected to the PC port phone.

Android over usb-if test considerations and modifications

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.