HOST: Ubuntu 14.04
OS: Android 4.4
Plugin Android Device and run the command:
I find my device information like this:
Then go to Settings —-> Storage —-> USB computer connection, Select MTP or PTP. Ubuntu will popup a window like this:
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 .
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.