File tree 1 file changed +11
-4
lines changed
VirtualApp/lib/src/main/java/com/lody/virtual/client/hook/proxies/am
1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -1780,10 +1780,17 @@ public GetPackageProcessState() {
1780
1780
// For Android 11
1781
1781
static class RegisterReceiverWithFeature extends RegisterReceiver {
1782
1782
public RegisterReceiverWithFeature () {
1783
- // http://aospxref.com/android-11.0.0_r21/xref/frameworks/base/core/java/android/app/IActivityManager.aidl?fi=IActivityManager#124
1784
- mIIntentReceiverIndex = 3 ;
1785
- mIntentFilterIndex = 4 ;
1786
- mRequiredPermissionIndex = 5 ;
1783
+ if (BuildCompat .isS ()) {
1784
+ // http://aospxref.com/android-12.0.0_r3/xref/frameworks/base/core/java/android/app/IActivityManager.aidl?fi=IActivityManager#127
1785
+ mIIntentReceiverIndex = 4 ;
1786
+ mIntentFilterIndex = 5 ;
1787
+ mRequiredPermissionIndex = 6 ;
1788
+ } else {
1789
+ // http://aospxref.com/android-11.0.0_r21/xref/frameworks/base/core/java/android/app/IActivityManager.aidl?fi=IActivityManager#124
1790
+ mIIntentReceiverIndex = 3 ;
1791
+ mIntentFilterIndex = 4 ;
1792
+ mRequiredPermissionIndex = 5 ;
1793
+ }
1787
1794
}
1788
1795
1789
1796
@ Override
You can’t perform that action at this time.
0 commit comments