summaryrefslogtreecommitdiff
path: root/core/java/android/os/ZygoteProcess.java
diff options
context:
space:
mode:
authorSudheer Shanka <sudheersai@google.com>2019-04-29 10:46:26 -0700
committerSudheer Shanka <sudheersai@google.com>2019-05-08 11:58:05 -0700
commite73ae32b34e7dbfdb08ae3e4abcfa5aa60549df9 (patch)
tree66c72d99ea40f8565a139e064e9297a0ab31a046 /core/java/android/os/ZygoteProcess.java
parent29ff304eb3c558431d301d3a6361997dfa80efc6 (diff)
Remove storage sandboxes related code.
Bug: 131115422 Test: manual Test: atest --test-mapping packages/providers/MediaProvider Test: atest cts/hostsidetests/appsecurity/src/android/appsecurity/cts/ExternalStorageHostTest.java Test: atest DownloadProviderTests Test: atest cts/tests/app/src/android/app/cts/DownloadManagerTest.java Test: atest cts/tests/app/DownloadManagerLegacyTest/src/android/app/cts/DownloadManagerLegacyTest.java Test: atest cts/tests/app/DownloadManagerApi28Test/src/android/app/cts/DownloadManagerApi28Test.java Change-Id: Ib8a10d3a9097c1dc4132a71782d622e9e3c3747d
Diffstat (limited to 'core/java/android/os/ZygoteProcess.java')
-rw-r--r--core/java/android/os/ZygoteProcess.java18
1 files changed, 1 insertions, 17 deletions
diff --git a/core/java/android/os/ZygoteProcess.java b/core/java/android/os/ZygoteProcess.java
index 6478de2612c3..c79eb224dc1f 100644
--- a/core/java/android/os/ZygoteProcess.java
+++ b/core/java/android/os/ZygoteProcess.java
@@ -306,7 +306,6 @@ public class ZygoteProcess {
* @param appDataDir null-ok the data directory of the app.
* @param invokeWith null-ok the command to invoke with.
* @param packageName null-ok the name of the package this process belongs to.
- * @param packagesForUid null-ok all the packages with the same uid as this process.
* @param zygoteArgs Additional arguments to supply to the zygote process.
* @param useSystemGraphicsDriver whether the process uses system graphics driver.
*
@@ -324,8 +323,6 @@ public class ZygoteProcess {
@Nullable String appDataDir,
@Nullable String invokeWith,
@Nullable String packageName,
- @Nullable String[] packagesForUid,
- @Nullable String sandboxId,
boolean useUsapPool,
boolean useSystemGraphicsDriver,
@Nullable String[] zygoteArgs) {
@@ -338,8 +335,7 @@ public class ZygoteProcess {
return startViaZygote(processClass, niceName, uid, gid, gids,
runtimeFlags, mountExternal, targetSdkVersion, seInfo,
abi, instructionSet, appDataDir, invokeWith, /*startChildZygote=*/ false,
- packageName, packagesForUid, sandboxId,
- useUsapPool, useSystemGraphicsDriver, zygoteArgs);
+ packageName, useUsapPool, useSystemGraphicsDriver, zygoteArgs);
} catch (ZygoteStartFailedEx ex) {
Log.e(LOG_TAG,
"Starting VM process through Zygote failed");
@@ -532,7 +528,6 @@ public class ZygoteProcess {
* @param startChildZygote Start a sub-zygote. This creates a new zygote process
* that has its state cloned from this zygote process.
* @param packageName null-ok the name of the package this process belongs to.
- * @param packagesForUid null-ok all the packages with the same uid as this process.
* @param extraArgs Additional arguments to supply to the zygote process.
* @return An object that describes the result of the attempt to start the process.
* @throws ZygoteStartFailedEx if process start failed for any reason
@@ -550,8 +545,6 @@ public class ZygoteProcess {
@Nullable String invokeWith,
boolean startChildZygote,
@Nullable String packageName,
- @Nullable String[] packagesForUid,
- @Nullable String sandboxId,
boolean useUsapPool,
boolean useSystemGraphicsDriver,
@Nullable String[] extraArgs)
@@ -625,14 +618,6 @@ public class ZygoteProcess {
argsForZygote.add("--package-name=" + packageName);
}
- if (packagesForUid != null && packagesForUid.length > 0) {
- argsForZygote.add("--packages-for-uid=" + String.join(",", packagesForUid));
- }
-
- if (sandboxId != null) {
- argsForZygote.add("--sandbox-id=" + sandboxId);
- }
-
argsForZygote.add(processClass);
if (extraArgs != null) {
@@ -1147,7 +1132,6 @@ public class ZygoteProcess {
gids, runtimeFlags, 0 /* mountExternal */, 0 /* targetSdkVersion */, seInfo,
abi, instructionSet, null /* appDataDir */, null /* invokeWith */,
true /* startChildZygote */, null /* packageName */,
- null /* packagesForUid */, null /* sandboxId */,
false /* useUsapPool */, false /*useSystemGraphicsDriver*/,
extraArgs);
} catch (ZygoteStartFailedEx ex) {