Android modified USB flash drive name

Source: Internet
Author: User

Mtk

How does the MTP feature in the PC side drive letter name show how to modify?
There are two ways to use one of these:
A) Modify

<span style= "FONT-FAMILY:ARIAL;FONT-SIZE:12PX;" >/alps/frameworks/base/media/java/android/mtp/mtpdatabase.javaprivate int Getdeviceproperty (int property, long[ ] Outintvalue, Char[]outstringvalue) {String devicename;devicename = systemproperties.get ("Ro.product.name"); DeviceName = "Yournamehere"; int lengthdevicename = Devicename.length ();</span>

b) Modify the value of the Ro.product.name
In alps/build/tools/buildinfo.sh, find the name of the macro that corresponds to Ro.product.name, which is
Product_Name;
Add or modify the definition of the macro in the Alps/build/target/product/<project>.mk file, such as:
Product_Name: = Mylabelname
Note You cannot have spaces.


RDA 8810

\device\rda\<project>\<project>.mk

Target_board: = XXXX


Android modified USB flash drive name

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.