Issue
I am executing one test case using robot framework where I have to install an app and make it as device owner and then check if the same app has become a device owner or not. I have searched though Stack Overflow and other search engine results but there, they have mentioned on how to make an app as device owner but not the way how to check if an app is a device owner.
I have used following command to make my app as device owner :
adb shell dpm set-device-owner com.myapp.package/.main.receiver.DeviceAdminReceiver
Now, I wanted to validate whether it is a device owner or now using ADB command.
Solution
adb shell getprop ro.device_owner
returns true
if device owner mode is enabled.
Answered By - fcarpen
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.