Skip to main content

Device Filter

Description

IDeviceFilter

This is used to work with filter settings when generating JSON data to spoof device information with LSPosed.

With this API, you can set filter parameters to pick the right data when generating devices.

Properties

  • Country
string Country { get; set; }

// Examples: us|ru|de|fr
  • Phone Manufacturer
string Manufacturer { get; set; }

// Examples: Samsung|Xiaomi
  • Phone Brand
string Brand { get; set; }

// Examples: Redmi|Poco
  • Phone Model
string Model { get; set; }

// Examples: SM-A505F
  • Android Version
string Version { get; set; }

// Examples: 12|13|14|15|16
  • GPU Vendor
string GpuVendor { get; set; }

// Examples: Qualcomm|ARM

Examples

var filter = new DeviceFilter();
filter.Country = "us"; // Choose country
filter.Version = "12|13|14|15"; // Choose Android version
filter.GpuVendor = "Qualcomm|ARM"; // Choose Gpu vendor

var options = new DeviceOptions();
options.AddCanvasNoise = true; // Add canvas noise
options.AddGpu = true; // Add fake GPU

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