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

Commit 93a71d19 authored by Automerger Merge Worker's avatar Automerger Merge Worker Committed by Android (Google) Code Review
Browse files

Merge "Merge "Logging to aid bug investigation." into rvc-dev am: bb9ea4e1...

Merge "Merge "Logging to aid bug investigation." into rvc-dev am: bb9ea4e1 am: 5bb776d8" into rvc-d1-dev-plus-aosp
parents a23669c5 8dd44535
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1365,6 +1365,7 @@ public class StorageManager {
                String[] packageNames = ActivityThread.getPackageManager().getPackagesForUid(
                        android.os.Process.myUid());
                if (packageNames == null || packageNames.length <= 0) {
                    Log.w(TAG, "Missing package names; no storage volumes available");
                    return new StorageVolume[0];
                }
                packageName = packageNames[0];
@@ -1372,6 +1373,7 @@ public class StorageManager {
            final int uid = ActivityThread.getPackageManager().getPackageUid(packageName,
                    PackageManager.MATCH_DEBUG_TRIAGED_MISSING, userId);
            if (uid <= 0) {
                Log.w(TAG, "Missing UID; no storage volumes available");
                return new StorageVolume[0];
            }
            return storageManager.getVolumeList(uid, packageName, flags);