Android Question Kiosk app not working on samsung

techknight

Well-Known Member
Licensed User
Longtime User
So, I am following the instructions here:

https://www.b4x.com/android/forum/threads/device-owner-tasklock-kiosk-apps-2017.81765/page-2

However the ADB setip isnt working properly. on my Samsung Tab E, I keep getting this:

B4X:
Z:\android-sdk\platform-tools>adb shell dpm set-device-owner b4a.example/anywher
esoftware.b4a.objects.AdminReceiver2
java.lang.SecurityException: Neither user 2000 nor current process has com.samsu
ng.android.knox.permission.KNOX_PROXY_ADMIN_INTERNAL.,com.sec.enterprise.permiss
ion.MDM_PROXY_ADMIN_INTERNAL
        at android.os.Parcel.readException(Parcel.java:1704)
        at android.os.Parcel.readException(Parcel.java:1654)
        at android.app.admin.IDevicePolicyManager$Stub$Proxy.setActiveAdmin(IDev
icePolicyManager.java:5894)
        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:315)

Z:\android-sdk\platform-tools>

looks like a Knox block.

any ideas?
 

techknight

Well-Known Member
Licensed User
Longtime User
Figured it out. I had to un-enroll the device from Knox. We had it on our corporate Knox account in case it gets stolen, it can be tracked/locked out. So if your running knox, it becomes the defacto admin app.
 
Upvote 0
Top