samsung-knox

Making my app a device owner doesn't work

拜拜、爱过 提交于 2020-01-25 06:49:09
问题 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:

Device Owner on rooted Galaxy S8

五迷三道 提交于 2019-12-22 10:42:46
问题 I have been trying to elevate an internal Demo App to Device Owner on my rooted S8 and keep having problems. Ways I have tried: 1) NFC provisioning (as explained here ) When using NFC with Android Bean to set the Device Owner the S8 shows a "Cannot create working profile due to the security guidelines of your device"-error 2) Adb provisioning (from console): When using dpm set-device-owner my/app/namespace/.DeviceAdmin in a windows console I get the following error java.lang.SecurityException

Permission Denial: runUninstall from pm command asks to run as user -1 but is calling from user 0;

你离开我真会死。 提交于 2019-12-07 07:28:51
问题 I'm just upgrade my Android device (Samsung J7Pro) to 9.0 (Pie) and when I want to run any application from Android Studio I face to this problem that says: Permission Denial: runUninstall from pm command asks to run as user -1 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL. I have tried to add INTERACT_ACROSS_USERS_FULL to my AndroidManifest.xml but get the same error. Any help? 回答1: I have found the solution First turn off the developers option

Device Owner on rooted Galaxy S8

二次信任 提交于 2019-12-06 03:47:49
I have been trying to elevate an internal Demo App to Device Owner on my rooted S8 and keep having problems. Ways I have tried: 1) NFC provisioning (as explained here ) When using NFC with Android Bean to set the Device Owner the S8 shows a "Cannot create working profile due to the security guidelines of your device"-error 2) Adb provisioning (from console): When using dpm set-device-owner my/app/namespace/.DeviceAdmin in a windows console I get the following error java.lang.SecurityException: Neither user 2000 nor current process has com.samsung.android.knox.permission.KNOX_PROXY_ADMIN