Making my app a device owner doesn't work
问题 I need to update my application silently (as described here). So I need to make my app a device owner in phone SAMSUNG S6. I use dpm command through adb shell command, so I provision my device (remove all account from Settings->Accounts), enable developer mode, enable debugging, install my app as usual (install it with Android Studio for example) and then run command: adb shell dpm set-device-owner <PACKAGE-NAME>/.DeviceAdminComponent But I get a next error: java.lang.IllegalStateException: