congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
TelephonyRegistryStub.addMethodProxy
Code IndexAdd Tabnine to your IDE (free)

How to use
addMethodProxy
method
in
com.lody.virtual.client.hook.proxies.telephony.TelephonyRegistryStub

Best Java code snippets using com.lody.virtual.client.hook.proxies.telephony.TelephonyRegistryStub.addMethodProxy (Showing top 3 results out of 315)

origin: android-hacker/VirtualXposed

  @Override
  protected void onBindMethods() {
    super.onBindMethods();
    addMethodProxy(new ReplaceCallingPkgMethodProxy("listen"));
    addMethodProxy(new ReplaceSequencePkgMethodProxy("listenForSubscriber", 1) {
      @Override
      public boolean beforeCall(Object who, Method method, Object... args) {
        if (android.os.Build.VERSION.SDK_INT >= 17) {
          if (isFakeLocationEnable()) {
            for (int i = args.length - 1; i > 0; i--) {
              if (args[i] instanceof Integer) {
                int events = (Integer) args[i];
                events ^= PhoneStateListener.LISTEN_CELL_INFO;
                events ^= PhoneStateListener.LISTEN_CELL_LOCATION;
                args[i] = events;
                break;
              }
            }
          }
        }
        return super.beforeCall(who, method, args);
      }
    });
  }
}
origin: bzsome/VirtualApp-x326

  @Override
  protected void onBindMethods() {
    super.onBindMethods();
    addMethodProxy(new ReplaceCallingPkgMethodProxy("listen"));
    addMethodProxy(new ReplaceSequencePkgMethodProxy("listenForSubscriber", 1) {
      @Override
      public boolean beforeCall(Object who, Method method, Object... args) {
        if (android.os.Build.VERSION.SDK_INT >= 17) {
          if (isFakeLocationEnable()) {
            for (int i = args.length - 1; i > 0; i--) {
              if (args[i] instanceof Integer) {
                int events = (Integer) args[i];
                events ^= PhoneStateListener.LISTEN_CELL_INFO;
                events ^= PhoneStateListener.LISTEN_CELL_LOCATION;
                args[i] = events;
                break;
              }
            }
          }
        }
        return super.beforeCall(who, method, args);
      }
    });
  }
}
origin: darkskygit/VirtualApp

  @Override
  protected void onBindMethods() {
    super.onBindMethods();
    addMethodProxy(new ReplaceCallingPkgMethodProxy("listen"));
    addMethodProxy(new ReplaceSequencePkgMethodProxy("listenForSubscriber", 1) {
      // 傻逼微信
      @Override
      public Object call(Object who, Method method, Object... args) throws Throwable {
        return null;
      }
      @Override
      public boolean beforeCall(Object who, Method method, Object... args) {
        if (android.os.Build.VERSION.SDK_INT >= 17) {
          if (isFakeLocationEnable()) {
            for (int i = args.length - 1; i > 0; i--) {
              if (args[i] instanceof Integer) {
                int events = (Integer) args[i];
                events ^= PhoneStateListener.LISTEN_CELL_INFO;
                events ^= PhoneStateListener.LISTEN_CELL_LOCATION;
                args[i] = events;
                break;
              }
            }
          }
        }
        return super.beforeCall(who, method, args);
      }
    });
  }
}
com.lody.virtual.client.hook.proxies.telephonyTelephonyRegistryStubaddMethodProxy

Popular methods of TelephonyRegistryStub

  • <init>

Popular in Java

  • Finding current android device location
  • compareTo (BigDecimal)
  • getApplicationContext (Context)
  • getSupportFragmentManager (FragmentActivity)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Top 12 Jupyter Notebook Extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now