Setting Device Owner app problem “Workspace has been locked” Android Oreo 8.1

别说谁变了你拦得住时间么 提交于 2019-12-11 20:04:33

问题


0

I've been using my app as a deviceOwner App since lollipop. I have a new device here which I want to be DeviceOwner too.

It is a Samsung galaxy Tab A 10.5(2018) SM-T590.

I am currently running this Version of the rom: T590XXU2ASC1.

I am not using NFC method. I usualy create the /data/system/device_owner.xml file by myself. But since it is not working I tryed this method:

1-Factory reset the tablet in recovery mode

2-Pass through the annoying startup menus

3-Set lock screen to none

4-Enable Usb Debugging

5-Install my app adb install MyApplicaton.apk

6-adb shell dpm set-device-owner com.example.myapplication/.MyApplicationReceiver It always says success when i execute the command.

7-Start my app, i can pin/unpin my app without problem.

8-Reboot, and then the famous message appears everytime: Workspace has been locked Unauthorized software has been installed on your device.Workspace has been locked to prevent any unauthorized access. Contact your admin.

Then if i press on the FACTORY DATA RESET button the workspace app crashes then pops back.

I tryed the kioskModeDemo app and the androidDeviceOwner sample app and they all do the same problem.

Anybody have any hints of why this is not working anymore on Android 8(oreo)?

Thanks


回答1:


I found the problem: Once you oem unlock(custom os) your device on a certain samsung knox level API, you can't be device owner anymore on this device.

This is from Samsung Knox page: "Cannot create work profile" "The security policy prevents the creation of a managed device because a custom OS is or has been installed on this device". https://seap.samsung.com/forum-topic/knox-and-nfc-device-owner-provisioning

The device could be vulnerable to potential attacks with custom os.



来源:https://stackoverflow.com/questions/56176490/setting-device-owner-app-problem-workspace-has-been-locked-android-oreo-8-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!