Loading services/core/java/com/android/server/StorageManagerService.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -3975,7 +3975,7 @@ class StorageManagerService extends IStorageManager.Stub if (mIsFuseEnabled && hasMtp) { if (mIsFuseEnabled && hasMtp) { ApplicationInfo ai = mIPackageManager.getApplicationInfo(packageName, ApplicationInfo ai = mIPackageManager.getApplicationInfo(packageName, 0, UserHandle.getUserId(uid)); 0, UserHandle.getUserId(uid)); if (ai.isSignedWithPlatformKey()) { if (ai != null && ai.isSignedWithPlatformKey()) { // Platform processes hosting the MTP server should be able to write in Android/ // Platform processes hosting the MTP server should be able to write in Android/ return Zygote.MOUNT_EXTERNAL_ANDROID_WRITABLE; return Zygote.MOUNT_EXTERNAL_ANDROID_WRITABLE; } } Loading Loading
services/core/java/com/android/server/StorageManagerService.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -3975,7 +3975,7 @@ class StorageManagerService extends IStorageManager.Stub if (mIsFuseEnabled && hasMtp) { if (mIsFuseEnabled && hasMtp) { ApplicationInfo ai = mIPackageManager.getApplicationInfo(packageName, ApplicationInfo ai = mIPackageManager.getApplicationInfo(packageName, 0, UserHandle.getUserId(uid)); 0, UserHandle.getUserId(uid)); if (ai.isSignedWithPlatformKey()) { if (ai != null && ai.isSignedWithPlatformKey()) { // Platform processes hosting the MTP server should be able to write in Android/ // Platform processes hosting the MTP server should be able to write in Android/ return Zygote.MOUNT_EXTERNAL_ANDROID_WRITABLE; return Zygote.MOUNT_EXTERNAL_ANDROID_WRITABLE; } } Loading