Merge "Check for null ApplicationInfo object in SMS."
This commit is contained in:
committed by
Android (Google) Code Review
commit
54ee825371
@@ -3975,7 +3975,7 @@ class StorageManagerService extends IStorageManager.Stub
|
||||
if (mIsFuseEnabled && hasMtp) {
|
||||
ApplicationInfo ai = mIPackageManager.getApplicationInfo(packageName,
|
||||
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/
|
||||
return Zygote.MOUNT_EXTERNAL_ANDROID_WRITABLE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user