[Xposed General] Ambious:
My module (for HTC Sense 6 roms) needs to access (and hook into) some functions in "android.policy.jar", which I previously achieved by:

if (lpparam.packageName.equals("android")) {
Log.i(LOG_TAG,"Hooked into Android Policy.");
Class<?> PhoneWindowManager = findClass("com.android.internal.policy.impl.PhoneWindowManager",lpparam.classLoader);

etc. and it worked fine.

When Xposed for Lollipop came out, [MENTION=4419114]rovo89[/MENTION] mentioned that hooking into system processes now has to be done, well, how I've done it above.

Problem is that it doesn't work.

The "android" package is no longer intercepted, and obviously nothing in it is accessible with this method.

The log also makes it seem as if the Xposed bridge itself can't attach itself to the system service:

02-16 21:10:33.701 I/Xposed ( 468): -----------------
02-16 21:10:33.711 I/Xposed ( 468): Starting Xposed binary version 60, compiled for SDK 21
02-16 21:10:33.711 I/Xposed ( 468): Phone: HTC One_M8 (HTC), Android version 5.0.1 (SDK 21)
02-16 21:10:33.711 I/Xposed ( 468): ROM: LRX22C release-keys
02-16 21:10:33.711 I/Xposed ( 468): Build fingerprint: htc/htc_europe/htc_m8:5.0.1/LRX22C/448934.10:user/release-keys
02-16 21:10:33.711 I/Xposed ( 468): Platform: armeabi-v7a, 32-bit binary, system server: yes
02-16 21:10:33.711 I/Xposed ( 468): SELinux enabled: yes, enforcing: yes
02-16 21:10:33.711 I/Xposed ( 468): -----------------
02-16 21:10:33.711 I/Xposed ( 468): Added Xposed (/system/framework/XposedBridge.jar) to CLASSPATH
02-16 21:10:34.061 I/Xposed ( 468): Detected ART runtime
02-16 21:10:34.081 I/Xposed ( 468): Found Xposed class de/robv/android/xposed/XposedBridge, now initializing
02-16 21:10:34.441 I/Xposed ( 468): Initializing XposedBridge version 61
02-16 21:10:34.581 I/Xposed ( 468): Loading modules from /data/app/com.pyler.youtubebackgroundplayback-1/base.apk
02-16 21:10:34.681 I/Xposed ( 468): Loading class com.pyler.youtubebackgroundplayback.YouTubeBackgroundPlayback
02-16 21:10:34.691 I/Xposed ( 468): Loading modules from /data/app/de.robv.android.xposed.mods.appsettings-1/base.apk
02-16 21:10:34.711 I/Xposed ( 468): Loading class de.robv.android.xposed.mods.appsettings.XposedMod
02-16 21:10:34.731 E/Xposed ( 468): de.robv.android.xposed.XposedHelpers$ClassNotFoundError: java.lang.ClassNotFoundException: com.android.server.NotificationManagerService
02-16 21:10:34.731 E/Xposed ( 468):	at de.robv.android.xposed.XposedHelpers.findClass(XposedHelpers.java:52)
02-16 21:10:34.731 E/Xposed ( 468):	at de.robv.android.xposed.XposedHelpers.findAndHookMethod(XposedHelpers.java:136)
02-16 21:10:34.731 E/Xposed ( 468):	at de.robv.android.xposed.mods.appsettings.XposedMod.initZygote(XposedMod.java:289)
02-16 21:10:34.731 E/Xposed ( 468):	at de.robv.android.xposed.XposedBridge.loadModule(XposedBridge.java:469)
02-16 21:10:34.731 E/Xposed ( 468):	at de.robv.android.xposed.XposedBridge.loadModules(XposedBridge.java:418)
02-16 21:10:34.731 E/Xposed ( 468):	at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:105)
02-16 21:10:34.731 E/Xposed ( 468): Caused by: java.lang.ClassNotFoundException: com.android.server.NotificationManagerService
02-16 21:10:34.731 E/Xposed ( 468):	at java.lang.Class.classForName(Native Method)
02-16 21:10:34.731 E/Xposed ( 468):	at java.lang.Class.forName(Class.java)
02-16 21:10:34.731 E/Xposed ( 468):	at external.org.apache.commons.lang3.ClassUtils.getClass(ClassUtils.java:823)
02-16 21:10:34.731 E/Xposed ( 468):	at de.robv.android.xposed.XposedHelpers.findClass(XposedHelpers.java:50)
02-16 21:10:34.731 E/Xposed ( 468):	... 5 more
02-16 21:10:34.731 E/Xposed ( 468): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.android.server.NotificationManagerService" on path: DexPathList[[zip file "/system/framework/XposedBridge.jar"],nativeLibraryDirectories=[/system/lib, /vendor/lib, system/vendor/lib, system/vendor/lib/egl, system/lib/hw]]
02-16 21:10:34.731 E/Xposed ( 468):	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java)
02-16 21:10:34.731 E/Xposed ( 468):	at java.lang.ClassLoader.loadClass(ClassLoader.java)
02-16 21:10:34.731 E/Xposed ( 468):	at java.lang.ClassLoader.loadClass(ClassLoader.java)
02-16 21:10:34.731 E/Xposed ( 468):	... 9 more
02-16 21:10:34.731 E/Xposed ( 468):	Suppressed: java.lang.ClassNotFoundException: com.android.server.NotificationManagerService
02-16 21:10:34.731 E/Xposed ( 468):	at java.lang.Class.classForName(Native Method)
02-16 21:10:34.731 E/Xposed ( 468):	at java.lang.BootClassLoader.findClass(ClassLoader.java)
02-16 21:10:34.731 E/Xposed ( 468):	at java.lang.BootClassLoader.loadClass(ClassLoader.java)
02-16 21:10:34.731 E/Xposed ( 468):	... 11 more
02-16 21:10:34.731 E/Xposed ( 468):	Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available
02-16 21:10:34.771 E/Xposed ( 468): java.lang.NoSuchMethodError: com.android.server.pm.PackageManagerService#grantPermissionsLPw(android.content.pm.PackageParser.Package,boolean)#exact
02-16 21:10:34.771 E/Xposed ( 468):	at de.robv.android.xposed.XposedHelpers.findMethodExact(XposedHelpers.java:179)
02-16 21:10:34.771 E/Xposed ( 468):	at de.robv.android.xposed.XposedHelpers.findAndHookMethod(XposedHelpers.java:129)
02-16 21:10:34.771 E/Xposed ( 468):	at de.robv.android.xposed.mods.appsettings.hooks.PackagePermissions.initHooks(PackagePermissions.java:59)
02-16 21:10:34.771 E/Xposed ( 468):	at de.robv.android.xposed.mods.appsettings.XposedMod.initZygote(XposedMod.java:297)
02-16 21:10:34.771 E/Xposed ( 468):	at de.robv.android.xposed.XposedBridge.loadModule(XposedBridge.java:469)
02-16 21:10:34.771 E/Xposed ( 468):	at de.robv.android.xposed.XposedBridge.loadModules(XposedBridge.java:418)
02-16 21:10:34.771 E/Xposed ( 468):	at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:105)

This could be something specific to HTC Sense roms, but I really have no idea.

What could be the cause of this? What should I try or look into?

Any help or ideas would be appreciated.