— a/alps/frameworks/base/media/java/android/mtp/MtpDatabase.java
+++ b/alps/frameworks/base/media/java/android/mtp/MtpDatabase.java
@@ -68,6 +68,7 @@ import java.util.Locale;
import java.util.Objects;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.stream.IntStream;
+import android.os.Build;
/**
- MtpDatabase provides an interface for MTP operations that MtpServer can use. To do this, it uses
@@ -685,7 +686,8 @@ public class MtpDatabase implements AutoCloseable {
case MtpConstants.DEVICE_PROPERTY_DEVICE_FRIENDLY_NAME:
// writable string properties kept in shared preferences
value = mDeviceProperties.getString(Integer.toString(property), “”);
-
String fatName = SystemProperties.get("ro.product.name", "");
-
String fatName = "DW12";//Build.getSerial();//SystemProperties.get("ro.product.name", "");
-
Log.d("ycj"," fatName = " + fatName); if(fatName != null && (!fatName.equals(""))) { value = fatName;
效果如图