Device Owner Permissions for WSO2 EMM
Clash Royale CLAN TAG#URR8PPP
Device Owner Permissions for WSO2 EMM
I am testing the wso2 emm on an android device. I have set up the EMM server and linked an android device to it by just enrolling the device to the server instead of setting up the work profile. In order to apply some policies like Restricting Bluetooth access, the agent application should be a device owner. How do i set my device as a device owner? Is it possibile only programmatically using 'dpm' or is there any way to do it via the application settings on the phone?
Thank you
2 Answers
2
You can set the agent as Device Owner using adb commands.
adb shell dpm set-device-owner
Beware there is no counter function to undo this operation via adb.
A workaround can be done like this. There is a deprecated method in device policy manager called;
clearDeviceOwnerApp(String packageName)
(https://developer.android.com/reference/android/app/admin/DevicePolicyManager.html#clearDeviceOwnerApp(java.lang.String)
You may create additional button in the agent and implement to execute this method when needed. Otherwise you will have to reset your device in get rid of that (As I know).
The other way is provisioning the device as a Kiosk Device. If you follow those steps, the agent will be installed as the device owner. The kiosk mode will be available on the next release with the docs.
you can set your the device owner using ADB (Android Debug Bridge).
Settings
Build Number
Developer Option
Enable Usb Debug
cmd
powershell
adb devices
.apk
adb shell dpm set-device-owner org.wso2.iot.agent/.services.AgentDeviceAdminReceiver
adb shell dpm set-device-owner org.wso2.iot.agent/.services.AgentDeviceAdminReceiver
This allows the device owner mode.
For more details see : How to enroll android device to wso2 mdm in device owner mode
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.