Make WifiDppEnrolleeActivity launches explicit
Bug: 180518134 Test: make RunSettingsRoboTests \ ROBOTEST_FILTER=WifiDppUtilsTest\|WifiDialogActivityTest Test: Manually verified b/180518134 attack is no longer possible Change-Id: I8c4e1e17117582c78671d0e4658bd87715a9a046
This commit is contained in:
@@ -114,9 +114,9 @@ public class WifiDppUtils {
|
||||
* @param ssid The data corresponding to {@code WifiConfiguration} SSID
|
||||
* @return Intent for launching QR code scanner
|
||||
*/
|
||||
public static Intent getEnrolleeQrCodeScannerIntent(String ssid) {
|
||||
final Intent intent = new Intent(
|
||||
WifiDppEnrolleeActivity.ACTION_ENROLLEE_QR_CODE_SCANNER);
|
||||
public static Intent getEnrolleeQrCodeScannerIntent(Context context, String ssid) {
|
||||
final Intent intent = new Intent(context, WifiDppEnrolleeActivity.class);
|
||||
intent.setAction(WifiDppEnrolleeActivity.ACTION_ENROLLEE_QR_CODE_SCANNER);
|
||||
if (!TextUtils.isEmpty(ssid)) {
|
||||
intent.putExtra(EXTRA_WIFI_SSID, ssid);
|
||||
}
|
||||
|
Reference in New Issue
Block a user