uid ...没有android.permission.UPDATE_APP_OPS_STATS

alm*_*oft 8 security notifications android

从Android 4.3开始,我收到以下stacktraces:

[STACKTRACE] => java.lang.SecurityException: uid 10140 does not have android.permission.UPDATE_APP_OPS_STATS.
    at android.os.Parcel.readException(Parcel.java:1431)
    ...
Run Code Online (Sandbox Code Playgroud)

在以下行抛出异常:

notificationManager.notify(0, notification.build());
Run Code Online (Sandbox Code Playgroud)

我尝试了Android 4.3的新的resticted用户功能,在这个用户下推出了我的应用程序,显示了通知,没有任何问题.

有任何想法吗?

hcp*_*cpl 3

这是当前 Android 版本的一个已知问题。以下是更多后续信息:https ://code.google.com/p/android/issues/detail?id=58043

它已被修复但尚未发布。