我在出厂重置后使用 Android-Management API 和 QR 码扫描将设备配置为专用设备。但配置过程失败,因为已安装设备策略应用程序但未能同步策略。我在尝试使用设备策略应用程序手动同步策略时检查了“adb logcat”。adb logcat 显示:
12-03 00:01:53.833 8043 10532 E clouddpc: [PolicyDetailsPreferenceFragment] Error populating policy list for display.
12-03 00:01:53.833 8043 10532 E clouddpc: java.io.FileNotFoundException: /data/user/0/com.google.android.apps.work.clouddpc/files/policies.json (No such file or directory)
12-03 00:01:53.833 8043 10532 E clouddpc: at java.io.FileInputStream.open0(Native Method)
12-03 00:01:53.833 8043 10532 E clouddpc: at java.io.FileInputStream.open(FileInputStream.java:231)
12-03 00:01:53.833 8043 10532 E clouddpc: at java.io.FileInputStream.<init>(FileInputStream.java:165)
12-03 00:01:53.833 8043 10532 E clouddpc: at android.app.ContextImpl.openFileInput(ContextImpl.java:560)
12-03 00:01:53.833 8043 10532 E clouddpc: at android.content.ContextWrapper.openFileInput(ContextWrapper.java:202)
12-03 00:01:53.833 8043 10532 E clouddpc: at deo.c(PG:1)
12-03 00:01:53.833 8043 10532 E clouddpc: at com.google.android.apps.work.clouddpc.ui.statusui.PolicyDetailsPreferenceFragment.az(PG:13)
12-03 00:01:53.833 8043 10532 E clouddpc: at dvp.call(Unknown Source:2)
12-03 00:01:53.833 8043 10532 E clouddpc: at ign.c(PG:1)
12-03 00:01:53.833 8043 10532 E clouddpc: at ift.run(PG:4)
12-03 00:01:53.833 8043 10532 E clouddpc: at igo.run(PG:1)
12-03 00:01:53.833 8043 10532 E clouddpc: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
12-03 00:01:53.833 8043 10532 E clouddpc: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
12-03 00:01:53.833 8043 10532 E clouddpc: at java.lang.Thread.run(Thread.java:764)
12-03 00:02:01.791 8043 8043 I clouddpc: [PolicyDetailsPreferenceFragment] Current state: hasTokenKey=false hasSetupStarted=false wasDeviceEverCompliant=false hasSetupFinished=false
谁能帮我解决这个问题?