简体   繁体   English

NFC设备所有者供应和诺克斯

[英]NFC Device Owner Provisioning and Knox

Firstly, apologies if this is an inappropriate place for this question as it is not strictly a code question but I am struggling to find any relevant resources anywhere else. 首先,如果这是一个不适合这个问题的地方,请道歉,因为它不是严格的代码问题,但我在其他地方努力寻找任何相关资源。

We have a solution based around using a Samsung devices, currently S7s, as a fully managed device with an application registered as "Device Owner" which then manages some additional files and applications necessary to the product. 我们的解决方案基于使用三星设备(目前为S7s)作为完全受管理的设备,其应用程序注册为“设备所有者”,然后管理产品所需的一些其他文件和应用程序。 This is provisioned onto the device via NFC after factory resetting, via another phone running a custom application to generate the NFC message. 在工厂重置之后,通过运行自定义应用程序的另一部电话生成NFC消息,通过NFC将其提供给设备。

This is all done independently of any MDM or EMM system, with the Device Owner application provided by a server on our closed network, and it is all handled by native android functionality rather than involving knox at all. 这些都是独立于任何MDM或EMM系统完成的,设备所有者应用程序由我们的封闭网络上的服务器提供,并且它全部由本机android功能处理,而不是完全涉及knox。

This was originally developed on S7s running android version 6.0 and Knox 2.7 and worked perfectly. 这最初是在运行Android 6.0和Knox 2.7的S7上开发的,并且运行良好。

However, we are currently in the process of setting up a duplicate system that ideally needs to function exactly the same as the previous but the devices we ordered now come with Android version 8.0 and Knox 3.1 and this seems to be the source of some issues. 但是,我们目前正在设置一个复制系统,理想情况下需要与之前的功能完全相同,但我们现在订购的设备附带Android版本8.0和Knox 3.1,这似乎是一些问题的根源。

On the first attempt at provisioning the device via NFC as before the process succeeds and the device owner is set successfully, seemingly without any issues. 在第一次尝试通过NFC配置设备之前,过程成功并且设备所有者设置成功,似乎没有任何问题。

When the device was then factory reset to test the process again however, after the NFC message is sent a popup is instantly shown saying: "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" 然后,当设备出厂时重置以再次测试该过程时,在发送NFC消息后,会立即显示弹出窗口:“无法创建工作配置文件”“安全策略阻止创建受管设备,因为自定义操作系统是或已安装在此设备上“

This is happening before the phone even attempts to connect to the network and download our application, so the issue cannot be there. 这种情况发生在手机甚至试图连接到网络并下载我们的应用程序之前,所以问题不存在。

The phone was new out of the box and had never even been set up before being initially provisioned, so there is zero chance an actual custom firmware has been deployed and just for sanity sake I verified that the Knox warranty void bit was still set to 0x0 which it was. 这款手机是开箱即用的,在最初配置之前从未设置过,因此实际定制固件的部署机会为零,只是为了理智,我确认Knox保修无效位仍然设置为0x0它是谁。

I know that as of Knox 3.0(?), it was much more heavily integrated with the built in android enterprise functionality but I was under the impression it could still be used without and ideally I would like to avoid having to do any unnecessary Knox SDK integration. 我知道,从Knox 3.0(?)开始,它与内置的android企业功能更加集成,但我觉得它仍然可以在没有使用的情况下使用,理想情况下我想避免不必使用任何不必要的Knox SDK积分。 If there is something I have to do through Knox to allow this functionality as currently the devices are essentially useless after one factory reset. 如果我需要通过Knox做一些事情以允许此功能,因为目前设备在一次恢复出厂后基本上没用。

If anybody has any insight why this would be happening or how I could resolve it, that would be greatly appreciated. 如果有人有任何见解为什么会发生这种情况或如何解决它,那将非常感激。

In case anybody experiences this same issue, I received a response from a Samsung employee: 如果有人遇到同样的问题,我收到了三星员工的回复:

This is an issue related to DRK and is due to an invalid time certificate on the device. 这是与DRK相关的问题,是由于设备上的时间证书无效。 To fix this, you will need update the time on the device by either connecting to wifi or cellular data, or by manually changing it in the set-up screen. 要解决此问题,您需要通过连接到wifi或蜂窝数据或在设置屏幕中手动更改设备来更新设备上的时间。 After this is done you will be able to provision the device. 完成此操作后,您将能够配置设备。

( https://seap.samsung.com/forum-topic/knox-and-nfc-device-owner-provisioning ) https://seap.samsung.com/forum-topic/knox-and-nfc-device-owner-provisioning

Seems to be a bug with the Samsung operating system, or perhaps an intentional decision to help negate a security concern. 似乎是三星操作系统的一个错误,或者可能是故意决定帮助否定安全问题。

Anyway, I hope this helps someone in the future. 无论如何,我希望这有助于将来的某些人。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM