Merge "Remove blocking binder calls from isInUse method"

am: 4bef55860f

Change-Id: I2c4274c9c45e0a9347aa7791632e7ff3600edbf9
This commit is contained in:
Howard Chen
2019-12-30 18:40:53 -08:00
committed by android-build-merger

View File

@@ -179,18 +179,7 @@ public class DynamicSystemService extends IDynamicSystemService.Stub implements
@Override @Override
public boolean isInUse() throws RemoteException { public boolean isInUse() throws RemoteException {
boolean gsidWasRunning = "running".equals(SystemProperties.get("init.svc.gsid")); return SystemProperties.getBoolean("ro.gsid.image_running", false);
boolean isInUse = false;
try {
isInUse = getGsiService().isGsiRunning();
} finally {
if (!gsidWasRunning && !isInUse) {
mGsiService = null;
}
}
return isInUse;
} }
@Override @Override