From 020c739a38d863b9b8e36d848f9a472d81ce4554 Mon Sep 17 00:00:00 2001 From: kooritea Date: Sat, 7 Dec 2024 00:13:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BA=86android15=E7=9A=84ho?= =?UTF-8?q?ok=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/build.gradle | 2 +- .../main/java/com/kooritea/fcmfix/xposed/BroadcastFix.java | 3 +++ app/src/main/res/values/array.xml | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index e3649e3..7c71999 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -7,7 +7,7 @@ android { applicationId "com.kooritea.fcmfix" minSdkVersion 29 targetSdkVersion 34 - versionCode 45 + versionCode 46 versionName "dev" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" diff --git a/app/src/main/java/com/kooritea/fcmfix/xposed/BroadcastFix.java b/app/src/main/java/com/kooritea/fcmfix/xposed/BroadcastFix.java index 73c227c..590b498 100644 --- a/app/src/main/java/com/kooritea/fcmfix/xposed/BroadcastFix.java +++ b/app/src/main/java/com/kooritea/fcmfix/xposed/BroadcastFix.java @@ -76,6 +76,9 @@ protected void startHook(){ if(parameters[13].getType() == int.class){ appOp_args_index = 13; } + } else if(Build.VERSION.SDK_INT == 35){ + intent_args_index = 3; + appOp_args_index = 13; } if(intent_args_index == 0 || appOp_args_index == 0){ intent_args_index = 0; diff --git a/app/src/main/res/values/array.xml b/app/src/main/res/values/array.xml index bb1ec8b..21e9283 100644 --- a/app/src/main/res/values/array.xml +++ b/app/src/main/res/values/array.xml @@ -2,7 +2,7 @@ android - com.miui.powerkeeper - + +