Skip to content

Commit 79f939e

Browse files
author
tiann
committed
FIX: new override ContentProvider.call sig for Android Q.
1 parent b2521df commit 79f939e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

VirtualApp/lib/src/main/java/com/lody/virtual/client/hook/providers/ProviderHook.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ public Object invoke(Object proxy, Method method, Object... args) throws Throwab
155155
try {
156156
String name = method.getName();
157157
if ("call".equals(name)) {
158+
if (!(args[start + 2] instanceof Bundle)) {
159+
start++;
160+
}
158161
String methodName = (String) args[start];
159162
String arg = (String) args[start + 1];
160163
Bundle extras = (Bundle) args[start + 2];

0 commit comments

Comments
 (0)