Hello Team,
I am developing a KIOSK Mode stand alone application for Wear OS(Samsung Watch 4, Wear OS 3.5). For KIOSK mode I am using device owner permission using ADB and used device DevicePolicyManager class to handle hardware button and status bar etc.
My Issue is, I am not able to open System WIFI settings which navigate to outside of KIOSK mode.Just for your information I can open system bluetooth settings without disabling KIOSK mode. 1 more information case 3 code work perfectly if your KIOSK mode is disable
I tried:-
Case1.
context.startActivity(Intent("com.google.android.clockwork.settings.connectivity.wifi.ADD_NETWORK_SETTINGS"))
Case 2.
val intent = Intent(Settings.ACTION_WIFI_SETTINGS)
intent.flags = Intent.FLAG_ACTIVITY_NEW_TASK
intent.addCategory(Intent.CATEGORY_LAUNCHER)
startActivity(intent)
Case 3.
startActivity(Intent(Settings.ACTION_WIFI_SETTINGS))
If any one have any idea or workaround. Much appreciate your inputs!
y
yschimke
12/02/2022, 7:48 AM
I'm not able to suggest anything, but if you suspect its a bug or limitations that would require a code change, raising a bug is probably worthwhile. Or maybe someone suggests a workaround
@Kseniia Shumelchyk Issue occured when we have KIOSK mode.
Without KIOSK mode its work fine!
For KIOSK we have provision to open any app we need to add into whitelist to access it! But Bluetooth was working without adding into whitelist! So i assume that WIFI settings also will work without adding into white list of packages into Device Policy Manager.