Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 54ee8253 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Check for null ApplicationInfo object in SMS."

parents b4b24438 0fc9f5ef
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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;
                }
                }