diff --git a/CHANGELOG.md b/CHANGELOG.md index 0ee68bf2c..32ff1cd11 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,7 +20,7 @@ Changelog **Next release** -* ... +* Fixed on demand restricting on some Android Lollipop ROMs (OPPO) [Open issues](https://github.com/M66B/XPrivacy/issues?state=open) diff --git a/src/biz/bokhorst/xprivacy/PrivacyService.java b/src/biz/bokhorst/xprivacy/PrivacyService.java index 57da77870..e6cb9ccba 100644 --- a/src/biz/bokhorst/xprivacy/PrivacyService.java +++ b/src/biz/bokhorst/xprivacy/PrivacyService.java @@ -167,7 +167,7 @@ public static void register(List listError, ClassLoader classLoader, Str XActivityManagerService.setSemaphore(mOndemandSemaphore); // Get context - Field fContext = am.getClass().getDeclaredField("mContext"); + Field fContext = am.getClass().getField("mContext"); fContext.setAccessible(true); mContext = (Context) fContext.get(am);