Check whether the device support DPP for public intent
Check PROCESS_WIFI_EASY_CONNECT_QR_CODE intent. Bug: 122331217 Test: manual test Change-Id: I9bc4007f8c01d11a186640e8ef59be6329350dc9
This commit is contained in:
@@ -78,6 +78,14 @@ public class WifiDppUtils {
|
||||
com.android.settings.core.FeatureFlags.WIFI_SHARING);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns whether the device support WiFi DPP.
|
||||
*/
|
||||
public static boolean isWifiDppEnabled(Context context) {
|
||||
final WifiManager manager = context.getSystemService(WifiManager.class);
|
||||
return manager.isEasyConnectSupported();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns an intent to launch QR code scanner for Wi-Fi DPP enrollee.
|
||||
*
|
||||
|
Reference in New Issue
Block a user