I am trying to hook into this method in NotificationManagerService using Xposed:
void enqueueNotificationInternal(final String pkg, final String opPkg, final int callingUid,
final int callingPid, final String tag, final int id, final Notification notification,
int[] idOut, int incomingUserId)
For that I am using this hook:
XposedHelpers.findAndHookMethod("com.android.server.notification.NotificationManagerService", loadPackageParam.classLoader,
"enqueueNotificationInternal", String.class, String.class, Integer.class, Integer.class, String.class,
Integer.class, Notification.class, Integer.class, Integer.class, new XC_MethodHook(){
//More code...
});
However this is giving me an error in the Xposed log that the method could not be found. It is probably because of int[] idOut
, because I am not sure what the class of that 'type' of that parameter is. Apparently not Integer.class
, or is it and is something else wrong?