[Safer intents] Connectivity
To avoid implicit intents, make intents launch explicitly. Bug: 323061508 Test: build Change-Id: I44ff8a789d933f11ba7e68e52055575245276224
This commit is contained in:
@@ -114,7 +114,8 @@ public class WifiWakeupPreferenceController extends TogglePreferenceController i
|
||||
throw new IllegalStateException("No fragment to start activity");
|
||||
}
|
||||
|
||||
final Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);
|
||||
final Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS)
|
||||
.setPackage(mContext.getPackageName());
|
||||
mFragment.startActivityForResult(intent, WIFI_WAKEUP_REQUEST_CODE);
|
||||
return false;
|
||||
} else if (!getWifiScanningEnabled()) {
|
||||
|
||||
@@ -75,6 +75,7 @@ public class WifiDppConfiguratorAuthActivity extends InstrumentedActivity {
|
||||
Intent qrCodeIntent = new Intent();
|
||||
qrCodeIntent.setAction(
|
||||
WifiDppConfiguratorActivity.ACTION_CONFIGURATOR_QR_CODE_GENERATOR);
|
||||
qrCodeIntent.setPackage(getPackageName());
|
||||
qrCodeIntent.putExtras(getIntent());
|
||||
startActivity(qrCodeIntent);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user