Merge "Do not throw exception if storage app data isolation is not enabled"

This commit is contained in:
Ricky Wai
2022-01-17 12:53:08 +00:00
committed by Android (Google) Code Review

View File

@@ -259,7 +259,8 @@ public final class Sm {
public void runDisableAppDataIsolation() throws RemoteException {
if (!SystemProperties.getBoolean(
ANDROID_VOLD_APP_DATA_ISOLATION_ENABLED_PROPERTY, false)) {
throw new IllegalStateException("Storage app data isolation is not enabled.");
System.err.println("Storage app data isolation is not enabled.");
return;
}
final String pkgName = nextArg();
final int pid = Integer.parseInt(nextArg());