Skip to main content

Device Options

Description

IDeviceOptions

This is used with DeviceFilter when generating JSON data to spoof device information with LSPosed. With this class, you can customize spoofing layers beyond basic device filtering.

Properties

AddCanvasNoise

  • bool? AddCanvasNoise { get; set; }
    Adds Canvas noise.

    Description:
    Enables Canvas fingerprint modification to avoid exact matches across devices.


AddGpu

  • bool? AddGpu { get; set; }
    Adds GPU spoofing.

    Description:
    Enables GPU/WebGL information spoofing. Randomizes GPU vendor/renderer strings according to DeviceFilter.GpuVendor.


AddWebView

  • bool? AddWebView { get; set; }
    Adds WebView access.

    Description:
    Provides the ability to execute JavaScript in applications containing WebView. By default, WebView access in non-browser applications is always disabled. The android.webkit.WebView element must be present in the element tree.


AddWiFiEmulation

  • bool? AddWiFiEmulation { get; set; }
    Adds Wi-Fi emulation.

    Description:
    Emulates a WiFi connection. Used for firmware that does not detect internet connectivity when WiFi is disabled.

Examples

var filter = new DeviceFilter();
filter.Country = "us"; // Choose country

var options = new DeviceOptions();
options.AddCanvasNoise = true; // Add canvas noise
options.AddGpu = true; // Add fake GPU
options.AddWebView = true; // Enable WebView JavaScript access
options.AddWiFiEmulation = true; // Emulate WiFi

var json = instance.DroidInstance.Settings.GenerateRandomLSPosedSettings(filter, options); // Generate random data for LSPosed spoofing based on the filter and options
instance.DroidInstance.Settings.SetLSPosedSettings(json); // Apply the spoofed data