File tree 1 file changed +7
-1
lines changed
VirtualApp/lib/src/main/java/com/lody/virtual/client/hook/proxies/window/session
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 1
1
package com .lody .virtual .client .hook .proxies .window .session ;
2
2
3
+ import android .os .Build ;
3
4
import android .os .IInterface ;
4
5
5
6
import com .lody .virtual .client .hook .base .MethodInvocationProxy ;
6
7
import com .lody .virtual .client .hook .base .MethodInvocationStub ;
7
- import com .lody .virtual .client .hook .base .ReplaceCallingPkgMethodProxy ;
8
8
9
9
/**
10
10
* @author Lody
@@ -22,6 +22,12 @@ public void onBindMethods() {
22
22
addMethodProxy (new BaseMethodProxy ("addToDisplayWithoutInputChannel" ));
23
23
addMethodProxy (new BaseMethodProxy ("addWithoutInputChannel" ));
24
24
addMethodProxy (new BaseMethodProxy ("relayout" ));
25
+
26
+ // http://aospxref.com/android-11.0.0_r21/xref/frameworks/base/core/java/android/view/IWindowSession.aidl#51
27
+ if (Build .VERSION .SDK_INT >= 30 ) {
28
+ addMethodProxy (new BaseMethodProxy ("addToDisplayAsUser" ));
29
+ addMethodProxy (new BaseMethodProxy ("grantInputChannel" ));
30
+ }
25
31
}
26
32
27
33
You can’t perform that action at this time.
0 commit comments