Skip to content

Commit

Permalink
可能适配了安卓12
Browse files Browse the repository at this point in the history
  • Loading branch information
kooritea committed Dec 20, 2021
1 parent 64edf4f commit 632d03f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# fcmfix(Android 10 & 11)
# fcmfix(Android 10 & 11 & 12?)

使用xposed让被完全停止的应用响应fcm,让fcm送达率达到100%,不错过任何通知

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,12 @@ protected void beforeHookedMethod(MethodHookParam methodHookParam) throws Throwa
if(Build.VERSION.SDK_INT == Build.VERSION_CODES.Q){
intent_args_index = 2;
appOp_args_index = 9;
}else if(Build.VERSION.SDK_INT > Build.VERSION_CODES.Q){
}else if(Build.VERSION.SDK_INT == Build.VERSION_CODES.R){
intent_args_index = 3;
appOp_args_index = 10;
}else if(Build.VERSION.SDK_INT == 31){
intent_args_index = 3;
appOp_args_index = 11;
}
Intent intent = (Intent) methodHookParam.args[intent_args_index];
if(intent != null && intent.getPackage() != null && intent.getFlags() != Intent.FLAG_INCLUDE_STOPPED_PACKAGES && "com.google.android.c2dm.intent.RECEIVE".equals(intent.getAction())){
Expand Down

0 comments on commit 632d03f

Please sign in to comment.