googlearchive / android-instant-apps

Migrated:
https://github.com/android/app-bundle
Apache License 2.0
846 stars 277 forks source link

Can not use WiFi related features? #12

Closed df13954 closed 7 years ago

df13954 commented 7 years ago
Caused by: java.lang.SecurityException: Broadcast android.net.wifi.supplicant.STATE_CHANGE not available to instant apps

Caused by: java.lang.SecurityException: Broadcast android.net.wifi.WIFI_STATE_CHANGED not available to instant apps

MethodInvocationProxy : Exception while calling method public abstract android.os.Messenger android.net.wifi.IWifiManager.getWifiServiceMessenger() throws android.os.RemoteException
                                            java.lang.SecurityException: Method class android.net.wifi.IWifiManager$Stub$Proxy.getWifiServiceMessenger not available to instant apps

register: IntentFilter(WifiManager.WIFI_STATE_CHANGED_ACTION); IntentFilter(WifiManager.SUPPLICANT_STATE_CHANGED_ACTION);

keyboardsurfer commented 7 years ago

This is correct. The connectivity states can not be changed through an Instant App. Please refer to the documentation for more info on supported permissions.