[Safer intents] System
To avoid implicit intents, make intents launch explicitly. Bug: 323061508 Test: build Change-Id: Iaf5466f3acd3293e738f450e0117e180b93d4e1c
This commit is contained in:
@@ -195,7 +195,7 @@ public class GraphicsDriverEnableAngleAsSystemDriverController
|
||||
|
||||
@VisibleForTesting
|
||||
void rebootDevice(Context context) {
|
||||
final Intent intent = new Intent(Intent.ACTION_REBOOT);
|
||||
final Intent intent = new Intent(Intent.ACTION_REBOOT).setPackage("android");
|
||||
context.startActivity(intent);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user