Menu Home

How to change Android default Manufacturer and Product name

HOST: Ubuntu 14.04
OS: Android 4.4
Kernel: 3.10.28

Plugin Android Device and run the command:

lsusb -v

I find my device information like this:

default Manufacturer and Product name

default Manufacturer and Product name

Then go to Settings —-> Storage —-> USB computer connection, Select MTP or PTP. Ubuntu will popup a window like this:

default Manufacturer and Product name

default Manufacturer and Product name

That confusion. So I want to change the default manufacturer and product name.

first open the file kernel/drivers/usb/gadget/android.c
Find the line: (in my source file it’s at line 3309)

/* Default strings - should be updated by userspace */
strlcpy(manufacturer_string, "Android",
sizeof(manufacturer_string) - 1);
strlcpy(product_string, "Android", sizeof(product_string) - 1);

Obviously, you just need to change the string “Android” here.

Finally build boot image, flash it. That’s all .

PS:
snapshot3

The name of title and left side column is read from Manufacturer and Product String. If you want to change the name of MTP and PTP, you can read this article.

Categories: android framework linux kernel

Tagged as:

lnmcc

Leave a Reply

Your email address will not be published.