Merge "Temporarily grant legacy storage to certain apps."

This commit is contained in:
Jeff Sharkey
2019-02-20 16:13:23 +00:00
committed by Android (Google) Code Review

View File

@@ -3688,7 +3688,16 @@ class StorageManagerService extends IStorageManager.Stub
} else if (mPmInternal.isInstantApp(packageName, UserHandle.getUserId(uid))) {
return Zygote.MOUNT_EXTERNAL_NONE;
} else {
return Zygote.MOUNT_EXTERNAL_WRITE;
// 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