Merge "Add calls for NFC WSC token creation"
This commit is contained in:
committed by
Android (Google) Code Review
commit
2517be5b72
@@ -128,5 +128,7 @@ interface IWifiManager
|
||||
boolean isBatchedScanSupported();
|
||||
|
||||
void pollBatchedScan();
|
||||
|
||||
String getWpsNfcConfigurationToken(int netId);
|
||||
}
|
||||
|
||||
|
||||
@@ -929,6 +929,21 @@ public class WifiManager {
|
||||
} catch (RemoteException e) { }
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a configuration token describing the network referenced by {@code netId}
|
||||
* of MIME type application/vnd.wfa.wsc. Can be used to configure WiFi networks via NFC.
|
||||
*
|
||||
* @return hex-string encoded configuration token
|
||||
* @hide
|
||||
*/
|
||||
public String getWpsNfcConfigurationToken(int netId) {
|
||||
try {
|
||||
return mService.getWpsNfcConfigurationToken(netId);
|
||||
} catch (RemoteException e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Return dynamic information about the current Wi-Fi connection, if any is active.
|
||||
* @return the Wi-Fi information, contained in {@link WifiInfo}.
|
||||
|
||||
Reference in New Issue
Block a user