Skip to content

Commit

Permalink
Android 12: getCallStateForSubscription hook
Browse files Browse the repository at this point in the history
  • Loading branch information
imsourcandy committed Apr 14, 2022
1 parent 51296b6 commit 546bf1e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager;
import android.os.Build;
import android.util.Log;

import com.lody.virtual.client.VClientImpl;
import com.lody.virtual.client.core.VirtualCore;
Expand All @@ -14,6 +13,7 @@
import com.lody.virtual.client.hook.base.MethodProxy;
import com.lody.virtual.client.hook.base.ReplaceCallingPkgMethodProxy;
import com.lody.virtual.client.hook.base.ReplaceLastPkgMethodProxy;
import com.lody.virtual.client.hook.base.ReplaceSpecPkgMethodProxy;

import java.lang.reflect.Method;

Expand Down Expand Up @@ -60,6 +60,7 @@ protected void onBindMethods() {
addMethodProxy(new ReplaceCallingPkgMethodProxy("getMergedSubscriberIds"));
addMethodProxy(new ReplaceLastPkgMethodProxy("getRadioAccessFamily"));
addMethodProxy(new ReplaceCallingPkgMethodProxy("isVideoCallingEnabled"));
addMethodProxy(new ReplaceSpecPkgMethodProxy("getCallStateForSubscription", 1));

addMethodProxy(new MethodProxy() {

Expand Down

0 comments on commit 546bf1e

Please sign in to comment.