Codota Logo
FakeLocMark.<init>
Code IndexAdd Codota to your IDE (free)

How to use
com.lody.virtual.helper.utils.marks.FakeLocMark
constructor

Best Java code snippets using com.lody.virtual.helper.utils.marks.FakeLocMark.<init> (Showing top 15 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
OutputStreamWriter o =
  • Codota IconOutputStream out;new OutputStreamWriter(out)
  • Codota IconOutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
  • Codota IconHttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
  • Smart code suggestions by Codota
}
origin: android-hacker/VirtualXposed

  @FakeLocMark("fake scan result")
  private final class GetScanResults extends ReplaceCallingPkgMethodProxy {

    public GetScanResults() {
      super("getScanResults");
    }

    @Override
    public Object call(Object who, Method method, Object... args) throws Throwable {
//            noinspection unchecked
      if (isFakeLocationEnable()) {
        new ArrayList<ScanResult>(0);
      }
      return super.call(who, method, args);
    }
  }

origin: android-hacker/VirtualXposed

@FakeLocMark("cell location")
static class GetCellLocation extends ReplaceCallingPkgMethodProxy {
  public GetCellLocation() {
    super("getCellLocation");
  }
  @Override
  public Object call(Object who, Method method, Object... args) throws Throwable {
    if (isFakeLocationEnable()) {
      VCell cell = VirtualLocationManager.get().getCell(getAppUserId(), getAppPkg());
      if (cell != null) {
        return getCellLocationInternal(cell);
      }
    }
    return super.call(who, method, args);
  }
}
origin: android-hacker/VirtualXposed

@FakeLocMark("cell location")
static class GetAllCellInfo extends ReplaceCallingPkgMethodProxy {
  public GetAllCellInfo() {
    super("getAllCellInfo");
  }
  @Override
  public Object call(Object who, Method method, Object... args) throws Throwable {
    if (isFakeLocationEnable()) {
      List<VCell> cells = VirtualLocationManager.get().getAllCell(getAppUserId(), getAppPkg());
      if (cells != null) {
        List<CellInfo> result = new ArrayList<CellInfo>();
        for (VCell cell : cells) {
          result.add(createCellInfo(cell));
        }
        return result;
      }
    }
    return super.call(who, method, args);
  }
}
origin: android-hacker/VirtualXposed

@FakeLocMark("neb cell location")
static class GetNeighboringCellInfo extends ReplaceCallingPkgMethodProxy {
  public GetNeighboringCellInfo() {
    super("getNeighboringCellInfo");
  }
  @Override
  public Object call(Object who, Method method, Object... args) throws Throwable {
    if (isFakeLocationEnable()) {
      List<VCell> cells = VirtualLocationManager.get().getNeighboringCell(getAppUserId(), getAppPkg());
      if (cells != null) {
        List<NeighboringCellInfo> infos = new ArrayList<>();
        for (VCell cell : cells) {
          NeighboringCellInfo info = new NeighboringCellInfo();
          mirror.android.telephony.NeighboringCellInfo.mLac.set(info, cell.lac);
          mirror.android.telephony.NeighboringCellInfo.mCid.set(info, cell.cid);
          mirror.android.telephony.NeighboringCellInfo.mRssi.set(info, 6);
          infos.add(info);
        }
        return infos;
      }
    }
    return super.call(who, method, args);
  }
}
origin: android-hacker/VirtualXposed

@FakeLocMark("Fake wifi bssid")
@FakeDeviceMark("fake wifi MAC")
private final class GetConnectionInfo extends MethodProxy {
  @Override
  public String getMethodName() {
    return "getConnectionInfo";
  }
  @Override
  public Object call(Object who, Method method, Object... args) throws Throwable {
    WifiInfo wifiInfo = (WifiInfo) method.invoke(who, args);
    if (isFakeLocationEnable()) {
      mirror.android.net.wifi.WifiInfo.mBSSID.set(wifiInfo, "00:00:00:00:00:00");
      mirror.android.net.wifi.WifiInfo.mMacAddress.set(wifiInfo, "00:00:00:00:00:00");
    }
    if (VASettings.Wifi.FAKE_WIFI_STATE) {
      return createWifiInfo();
    }
    if (wifiInfo != null) {
      mirror.android.net.wifi.WifiInfo.mMacAddress.set(wifiInfo, getDeviceInfo().wifiMac);
    }
    return wifiInfo;
  }
}
origin: darkskygit/VirtualApp

  @FakeLocMark("fake scan result")
  private final class GetScanResults extends ReplaceCallingPkgMethodProxy {

    public GetScanResults() {
      super("getScanResults");
    }

    @Override
    public Object call(Object who, Method method, Object... args) throws Throwable {
//            noinspection unchecked
      if (isFakeLocationEnable()) {
        new ArrayList<ScanResult>(0);
      }
      return super.call(who, method, args);
    }
  }

origin: bzsome/VirtualApp-x326

  @FakeLocMark("fake scan result")
  private final class GetScanResults extends ReplaceCallingPkgMethodProxy {

    public GetScanResults() {
      super("getScanResults");
    }

    @Override
    public Object call(Object who, Method method, Object... args) throws Throwable {
//            noinspection unchecked
      if (isFakeLocationEnable()) {
        new ArrayList<ScanResult>(0);
      }
      return super.call(who, method, args);
    }
  }

origin: darkskygit/VirtualApp

@FakeLocMark("cell location")
static class GetCellLocation extends ReplaceCallingPkgMethodProxy {
  public GetCellLocation() {
    super("getCellLocation");
  }
  @Override
  public Object call(Object who, Method method, Object... args) throws Throwable {
    if (isFakeLocationEnable()) {
      VCell cell = VirtualLocationManager.get().getCell(getAppUserId(), getAppPkg());
      if (cell != null) {
        return getCellLocationInternal(cell);
      }
    }
    return super.call(who, method, args);
  }
}
origin: bzsome/VirtualApp-x326

@FakeLocMark("cell location")
static class GetCellLocation extends ReplaceCallingPkgMethodProxy {
  public GetCellLocation() {
    super("getCellLocation");
  }
  @Override
  public Object call(Object who, Method method, Object... args) throws Throwable {
    if (isFakeLocationEnable()) {
      VCell cell = VirtualLocationManager.get().getCell(getAppUserId(), getAppPkg());
      if (cell != null) {
        return getCellLocationInternal(cell);
      }
    }
    return super.call(who, method, args);
  }
}
origin: darkskygit/VirtualApp

@FakeLocMark("cell location")
static class GetAllCellInfo extends ReplaceCallingPkgMethodProxy {
  public GetAllCellInfo() {
    super("getAllCellInfo");
  }
  @Override
  public Object call(Object who, Method method, Object... args) throws Throwable {
    if (isFakeLocationEnable()) {
      List<VCell> cells = VirtualLocationManager.get().getAllCell(getAppUserId(), getAppPkg());
      if (cells != null) {
        List<CellInfo> result = new ArrayList<CellInfo>();
        for (VCell cell : cells) {
          result.add(createCellInfo(cell));
        }
        return result;
      }
    }
    return super.call(who, method, args);
  }
}
origin: bzsome/VirtualApp-x326

@FakeLocMark("cell location")
static class GetAllCellInfo extends ReplaceCallingPkgMethodProxy {
  public GetAllCellInfo() {
    super("getAllCellInfo");
  }
  @Override
  public Object call(Object who, Method method, Object... args) throws Throwable {
    if (isFakeLocationEnable()) {
      List<VCell> cells = VirtualLocationManager.get().getAllCell(getAppUserId(), getAppPkg());
      if (cells != null) {
        List<CellInfo> result = new ArrayList<CellInfo>();
        for (VCell cell : cells) {
          result.add(createCellInfo(cell));
        }
        return result;
      }
    }
    return super.call(who, method, args);
  }
}
origin: bzsome/VirtualApp-x326

@FakeLocMark("neb cell location")
static class GetNeighboringCellInfo extends ReplaceCallingPkgMethodProxy {
  public GetNeighboringCellInfo() {
    super("getNeighboringCellInfo");
  }
  @Override
  public Object call(Object who, Method method, Object... args) throws Throwable {
    if (isFakeLocationEnable()) {
      List<VCell> cells = VirtualLocationManager.get().getNeighboringCell(getAppUserId(), getAppPkg());
      if (cells != null) {
        List<NeighboringCellInfo> infos = new ArrayList<>();
        for (VCell cell : cells) {
          NeighboringCellInfo info = new NeighboringCellInfo();
          mirror.android.telephony.NeighboringCellInfo.mLac.set(info, cell.lac);
          mirror.android.telephony.NeighboringCellInfo.mCid.set(info, cell.cid);
          mirror.android.telephony.NeighboringCellInfo.mRssi.set(info, 6);
          infos.add(info);
        }
        return infos;
      }
    }
    return super.call(who, method, args);
  }
}
origin: darkskygit/VirtualApp

@FakeLocMark("neb cell location")
static class GetNeighboringCellInfo extends ReplaceCallingPkgMethodProxy {
  public GetNeighboringCellInfo() {
    super("getNeighboringCellInfo");
  }
  @Override
  public Object call(Object who, Method method, Object... args) throws Throwable {
    if (isFakeLocationEnable()) {
      List<VCell> cells = VirtualLocationManager.get().getNeighboringCell(getAppUserId(), getAppPkg());
      if (cells != null) {
        List<NeighboringCellInfo> infos = new ArrayList<>();
        for (VCell cell : cells) {
          NeighboringCellInfo info = new NeighboringCellInfo();
          mirror.android.telephony.NeighboringCellInfo.mLac.set(info, cell.lac);
          mirror.android.telephony.NeighboringCellInfo.mCid.set(info, cell.cid);
          mirror.android.telephony.NeighboringCellInfo.mRssi.set(info, 6);
          infos.add(info);
        }
        return infos;
      }
    }
    return super.call(who, method, args);
  }
}
origin: darkskygit/VirtualApp

@FakeLocMark("Fake wifi bssid")
@FakeDeviceMark("fake wifi MAC")
private final class GetConnectionInfo extends MethodProxy {
  @Override
  public String getMethodName() {
    return "getConnectionInfo";
  }
  @Override
  public Object call(Object who, Method method, Object... args) throws Throwable {
    WifiInfo wifiInfo = (WifiInfo) method.invoke(who, args);
    if (isFakeLocationEnable()) {
      mirror.android.net.wifi.WifiInfo.mBSSID.set(wifiInfo, "00:00:00:00:00:00");
      mirror.android.net.wifi.WifiInfo.mMacAddress.set(wifiInfo, "00:00:00:00:00:00");
    }
    if (VASettings.Wifi.FAKE_WIFI_STATE) {
      return createWifiInfo();
    }
    if (wifiInfo != null) {
      mirror.android.net.wifi.WifiInfo.mMacAddress.set(wifiInfo, getDeviceInfo().wifiMac);
    }
    return wifiInfo;
  }
}
origin: bzsome/VirtualApp-x326

@FakeLocMark("Fake wifi bssid")
@FakeDeviceMark("fake wifi MAC")
private final class GetConnectionInfo extends MethodProxy {
  @Override
  public String getMethodName() {
    return "getConnectionInfo";
  }
  @Override
  public Object call(Object who, Method method, Object... args) throws Throwable {
    WifiInfo wifiInfo = (WifiInfo) method.invoke(who, args);
    if (isFakeLocationEnable()) {
      mirror.android.net.wifi.WifiInfo.mBSSID.set(wifiInfo, "00:00:00:00:00:00");
      mirror.android.net.wifi.WifiInfo.mMacAddress.set(wifiInfo, "00:00:00:00:00:00");
    }
    if (VASettings.Wifi.FAKE_WIFI_STATE) {
      return createWifiInfo();
    }
    if (wifiInfo != null) {
      mirror.android.net.wifi.WifiInfo.mMacAddress.set(wifiInfo, getDeviceInfo().wifiMac);
    }
    return wifiInfo;
  }
}
com.lody.virtual.helper.utils.marksFakeLocMark<init>

Popular methods of FakeLocMark

    Popular in Java

    • Making http requests using okhttp
    • orElseThrow (Optional)
      Return the contained value, if present, otherwise throw an exception to be created by the provided s
    • runOnUiThread (Activity)
    • notifyDataSetChanged (ArrayAdapter)
    • RandomAccessFile (java.io)
      Allows reading from and writing to a file in a random-access manner. This is different from the uni-
    • Thread (java.lang)
      A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
    • Charset (java.nio.charset)
      A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
    • Permission (java.security)
      Abstract class for representing access to a system resource. All permissions have a name (whose inte
    • Comparator (java.util)
      A Comparator is used to compare two objects to determine their ordering with respect to each other.
    • HttpServlet (javax.servlet.http)
      Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
    Codota Logo
    • Products

      Search for Java codeSearch for JavaScript codeEnterprise
    • IDE Plugins

      IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Codota for your IDE now