gpt4 book ai didi

android - 错误: Unknown admin: ComponentInfo

转载 作者:行者123 更新时间:2023-12-02 14:01:50 27 4
gpt4 key购买 nike

可以找到 list 文件here .

可以找到DeviceAdminReceiver类here

agent_device_xml 定义如下:

<?xml version="1.0" encoding="utf-8"?>
<device-admin xmlns:android="http://schemas.android.com/apk/res/android">
<uses-policies>
<limit-password />
<watch-login />
<reset-password />
<force-lock />
<wipe-data />
<expire-password />
<encrypted-storage />
<disable-camera />
</uses-policies>

命令执行并出错:

adb shell dpm set-device-owner org.wso2.iot.agent.services/.AgentDeviceAdminReceiver
Error: Unknown admin: ComponentInfo{org.wso2.iot.agent.services/org.wso2.iot.agent.services.AgentDeviceAdminReceiver}

这是日志猫。

06-21 13:58:54.053 11499-12787/org.wso2.iot.agent E/Volley: [714] NetworkDispatcher.run: Unhandled exception java.lang.SecurityException: Admin ComponentInfo{org.wso2.iot.agent/org.wso2.iot.agent.services.AgentDeviceAdminReceiver} does not own the device
java.lang.SecurityException: Admin ComponentInfo{org.wso2.iot.agent/org.wso2.iot.agent.services.AgentDeviceAdminReceiver} does not own the device
at android.os.Parcel.readException(Parcel.java:1689)
at android.os.Parcel.readException(Parcel.java:1641)
at android.app.admin.IDevicePolicyManager$Stub$Proxy.setAutoTimeRequired(IDevicePolicyManager.java:6759)
at android.app.admin.DevicePolicyManager.setAutoTimeRequired(DevicePolicyManager.java:3377)
at org.wso2.iot.agent.services.operation.OperationManagerDeviceOwner.setAutoTimeRequired(OperationManagerDeviceOwner.java:681)
at org.wso2.iot.agent.services.operation.OperationProcessor.doTask(OperationProcessor.java:219)
at org.wso2.iot.agent.services.operation.OperationProcessor.setPolicyBundle(OperationProcessor.java:267)
at org.wso2.iot.agent.services.operation.OperationProcessor.doTask(OperationProcessor.java:125)
at org.wso2.iot.agent.services.MessageProcessor.performOperation(MessageProcessor.java:130)
at org.wso2.iot.agent.services.MessageProcessor.onReceiveAPIResult(MessageProcessor.java:327)
at org.wso2.iot.agent.proxy.APIController$9.parseNetworkResponse(APIController.java:383)
at com.android.volley.NetworkDispatcher.run(NetworkDispatcher.java:123)
06-21 13:58:54.054 11499-11499/org.wso2.iot.agent E/APIController: com.android.volley.VolleyError: java.lang.SecurityException: Admin ComponentInfo{org.wso2.iot.agent/org.wso2.iot.agent.services.AgentDeviceAdminReceiver} does not own the device

如何解决此问题以使应用程序成为设备所有者。

最佳答案

乍一看,您似乎在接收者名称中缺少“.services”,并且包名称不应包含“.services”。

尝试:adb shell dpm set-device-owner org.wso2.iot.agent/.services.AgentDeviceAdminReceiver

关于android - 错误: Unknown admin: ComponentInfo,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44687903/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com