diff options
| author | Abhijeet Kaur <abkaur@google.com> | 2020-04-06 12:36:11 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2020-04-06 12:36:11 +0000 |
| commit | a32954ec2256daab873db1fdc9e4a88942e19032 (patch) | |
| tree | e30b7dae0ef39169396294d8c785df37a3ebd0ec /core/java | |
| parent | ee171cad0854c8b82f16e96745abf7d43010bfa8 (diff) | |
| parent | fd83d9dbb7b30402941f0382eb0f6a326b8380c2 (diff) | |
Merge "Remove a TODO as no work needs to be done" into rvc-dev
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/os/Environment.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/java/android/os/Environment.java b/core/java/android/os/Environment.java index ae65f1d0bd05..5f8c4f5cdf27 100644 --- a/core/java/android/os/Environment.java +++ b/core/java/android/os/Environment.java @@ -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); |
