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

Commit 0fc9f5ef authored by Martijn Coenen's avatar Martijn Coenen
Browse files

Check for null ApplicationInfo object in SMS.

Bug: 149448096
Test: builds
Change-Id: I783c35323ecb82721b47c1d97e211b93a2ec0d48
parent 1345eb11
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -3973,7 +3973,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;
                }
                }