DroidPluginTeam / DroidPluginTeam/DroidPlugin

INotificationManagerHookHandle中三星独有通知处理bug

Open
#210 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
7k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

代码如下:
sHookedMethodHandlers.put("removeEdgeNotification", new removeEdgeNotification(mHostContext));

//三星独有
private class removeEdgeNotification extends HookedMethodHandler {
public removeEdgeNotification(Context context) {
super(context);
}

```
@Override
protected boolean beforeInvoke(Object receiver, Method method, Object[] args) throws Throwable {
int index = 0;
if (args != null && args.length > index) {
if (args[index] instanceof String) {
String pkg = (String) args[index];
if (!TextUtils.equals(pkg, mHostContext.getPackageName())) {
args[index] = mHostContext.getPackageName();
}
}
}
return super.beforeInvoke(receiver, method, args);
}
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.