The owner of the device on the root galaxy S8

I am trying to raise the internal Demo application to the device owner on my root S8 and you are having problems.

The ways I tried:

1) Providing NFC (as described here )

When using NFC with Android Bean to set the device owner on S8, the message "Unable to create work profile due to security recommendations of your device" is displayed -error

2) Providing Adb (from the console):

Using

dpm set-device-owner my/app/namespace/.DeviceAdmin

in 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_INTERNAL.,com.sec.enterprise.permission.MDM_PROXY_ADMIN_INTERNAL
        at android.os.Parcel.readException(Parcel.java:1693)
        at android.os.Parcel.readException(Parcel.java:1646)
        at android.app.admin.IDevicePolicyManager$Stub$Proxy.setActiveAdmin(IDevicePolicyManager.java:5825)
        at com.android.commands.dpm.Dpm.runSetDeviceOwner(Dpm.java:145)
        at com.android.commands.dpm.Dpm.onRun(Dpm.java:96)
        at com.android.internal.os.BaseCommand.run(BaseCommand.java:51)
        at com.android.commands.dpm.Dpm.main(Dpm.java:41)
        at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
        at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:307)

Adding missing permissions to my manifest didn't change anything.

3) XML ( )

xml , , ,

- , , - , ?

+3
2

, , , , Device Admin:

  • Device Admin ( Android 2.2) , ,
  • ( Android 5.0) , , factory reset .

Device Admin, .

Device Owner,

+2

Freds , , Adb provisioning.

: :

<uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" />
<uses-permission android:name="android.permission.WRITE_SETTINGS" />

<application       
   ...
   android:testOnly="false">

dpm set-device-owner my/app/namespace/.DeviceAdmin

.

, , , , factory reset, , , - .

+2

Source: https://habr.com/ru/post/1684688/


All Articles