Skip to content

Commit

Permalink
fix #149
Browse files Browse the repository at this point in the history
  • Loading branch information
kooritea committed Jun 2, 2024
1 parent f1a4f38 commit 6f1bb2b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ android {
applicationId "com.kooritea.fcmfix"
minSdkVersion 29
targetSdkVersion 34
versionCode 41
versionCode 42
versionName "dev"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
Expand Down
11 changes: 0 additions & 11 deletions app/src/main/java/com/kooritea/fcmfix/xposed/AutoStartFix.java
Original file line number Diff line number Diff line change
Expand Up @@ -131,17 +131,6 @@ protected void beforeHookedMethod(MethodHookParam methodHookParam) {
try {
Class<?> SmartPowerService = XposedHelpers.findClass("com.android.server.am.SmartPowerService", loadPackageParam.classLoader);

printLog("[fcmfix] start hook com.android.server.am.SmartPowerService.isProcessWhiteList");
XposedUtils.findAndHookMethodAnyParam(SmartPowerService, "isProcessWhiteList", new XC_MethodHook() {
@Override
protected void beforeHookedMethod(MethodHookParam methodHookParam) {
String target = (String)methodHookParam.args[1];
if(targetIsAllow(target)) {
methodHookParam.setResult(true);
}
}
});

printLog("[fcmfix] start hook com.android.server.am.SmartPowerService.shouldInterceptBroadcast");
XposedUtils.findAndHookMethodAnyParam(SmartPowerService, "shouldInterceptBroadcast", new XC_MethodHook() {
@Override
Expand Down

0 comments on commit 6f1bb2b

Please sign in to comment.