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

Commit 3e8a90e8 authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Android (Google) Code Review
Browse files

Merge "Temporarily grant legacy storage to certain apps."

parents 08b88c45 0ebbd460
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -3688,8 +3688,17 @@ class StorageManagerService extends IStorageManager.Stub
            } else if (mPmInternal.isInstantApp(packageName, UserHandle.getUserId(uid))) {
                return Zygote.MOUNT_EXTERNAL_NONE;
            } else {
                // STOPSHIP: remove this temporary workaround once developers
                // fix bugs where they're opening _data paths in native code
                switch (packageName) {
                    case "com.facebook.katana": // b/123996076
                    case "jp.naver.line.android": // b/124767356
                    case "com.mxtech.videoplayer.ad": // b/124531483
                        return Zygote.MOUNT_EXTERNAL_LEGACY;
                    default:
                        return Zygote.MOUNT_EXTERNAL_WRITE;
                }
            }
        } catch (RemoteException e) {
            // Should not happen
        }