Merge "Remove a TODO as no work needs to be done" into rvc-dev am: a32954ec22 am: ca6a0f9999 am: 6b39d37d39 am: 3c4a4a4bb3

Change-Id: I6e2f8ba45c602422d04279b63f6e8536d26e34ff
This commit is contained in:
Abhijeet Kaur
2020-04-06 13:56:10 +00:00
committed by Automerger Merge Worker

View File

@@ -1268,6 +1268,7 @@ public class Environment {
public static boolean isExternalStorageLegacy(@NonNull File path) {
final Context context = AppGlobals.getInitialApplication();
final int uid = context.getApplicationInfo().uid;
// Isolated processes and Instant apps are never allowed to be in scoped storage
if (Process.isIsolated(uid)) {
return false;
}
@@ -1277,8 +1278,6 @@ public class Environment {
return false;
}
// TODO(b/150672994): Compat flags do not override instant app and isolated process's
// behavior.
boolean defaultScopedStorage = Compatibility.isChangeEnabled(DEFAULT_SCOPED_STORAGE);
boolean forceEnableScopedStorage = Compatibility.isChangeEnabled(
FORCE_ENABLE_SCOPED_STORAGE);