Merge "Fix dynsystem.BootCompletedReceiver"
This commit is contained in:
@@ -21,7 +21,6 @@ import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.os.UserHandle;
|
||||
import android.os.image.DynamicSystemClient;
|
||||
import android.os.image.DynamicSystemManager;
|
||||
|
||||
|
||||
/**
|
||||
@@ -41,15 +40,6 @@ public class BootCompletedReceiver extends BroadcastReceiver {
|
||||
return;
|
||||
}
|
||||
|
||||
DynamicSystemManager dynSystem =
|
||||
(DynamicSystemManager) context.getSystemService(Context.DYNAMIC_SYSTEM_SERVICE);
|
||||
|
||||
boolean isInUse = (dynSystem != null) && dynSystem.isInUse();
|
||||
|
||||
if (!isInUse) {
|
||||
return;
|
||||
}
|
||||
|
||||
Intent startServiceIntent = new Intent(
|
||||
context, DynamicSystemInstallationService.class);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user