Skip to content

Commit aa87f9f

Browse files
author
tiann
committed
FIX: getContentProvider for Android Q
1 parent 79f939e commit aa87f9f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

VirtualApp/lib/src/main/java/com/lody/virtual/client/hook/proxies/am/MethodProxies.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,9 @@ public String getMethodName() {
196196

197197
@Override
198198
public int getProviderNameIndex() {
199+
if (BuildCompat.isQ()) {
200+
return 1;
201+
}
199202
return 0;
200203
}
201204

@@ -1413,6 +1416,9 @@ public Object call(Object who, Method method, Object... args) throws Throwable {
14131416

14141417

14151418
public int getProviderNameIndex() {
1419+
if (BuildCompat.isQ()) {
1420+
return 2;
1421+
}
14161422
return 1;
14171423
}
14181424

0 commit comments

Comments
 (0)