Android 8.0 权限警告(not in privapp-permissions whitelist)解决

android.util.Log$TerribleFailure: Signature|privileged permissions not in privapp-permissions whitelist: {com.tct.gdpr: android.permission.CHANGE_CONFIGURATION, com.tct.gdpr: android.permission.MANAGE_USERS}
    at android.util.Log.wtf(Log.java:299)
    at android.util.Slog.wtf(Slog.java:82)
    at com.android.server.pm.PackageManagerService.systemReady(PackageManagerService.java:23099)
    at com.android.server.SystemServer.startOtherServices(SystemServer.java:1810)
    at com.android.server.SystemServer.run(SystemServer.java:457)
    at com.android.server.SystemServer.main(SystemServer.java:304)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:850)

从Android 8.0开始,实现者可以在/etc/permissions目录中的系统配置XML文件中明确地将特权应用程序列入白名单。未在这些XML文件中明确列出的应用程序未被授予特权权限。
权限白名单添加在/frameworks/base/data/etc/permissions/privapp-permissions-platform.xml

你可能感兴趣的:(Android,android)