1、修改路径:frameworks/av/media/mtp/MtpServer.cpp
2、修改方法:
MtpResponseCode MtpServer::doGetDeviceInfo() { mData.putString(string); // Manufacturer property_get("ro.product.model", prop_value, "MTP Device"); - string.set(prop_value); + string.set("你要修改成的名称<span style="font-family: Arial, Helvetica, sans-serif;">");</span>
mData.putString(string); // Model string.set("1.0"); mData.putString(string); // Device Version
时间: 2024-10-29 03:39:27