Device Filter
Please read the Material Usage Rules on this site.
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
- Phone Manufacturer
string Manufacturer { get; set; }
// Examples: Samsung|Pegatron|BYD|OPPO|Inventec|Foxconn|Honor|Huawei|Lenovo
- Phone Brand
string Brand { get; set; }
// Examples: Samsung|Xiaomi|OPPO|Realme|Honor|OnePlus|Huawei|Nothing
- Phone Model
string Model { get; set; }
// Examples: SamsungS24Ultra|Xiaomi14Pro|OPPOFindX7|RealmeGT5Pro|HonorMagic6Pro|OnePlus12|HuaweiP60Pro|Nothing(2)
- Android Version
string Version { get; set; }
// Examples: 12|13|14|15|16
Examples
var settings = instance.DroidInstance.Settings;
var filter = new DeviceFilter(); // Create a filter with data for generation
filter.Brand = "Samsung|Xiaomi|OPPO"; // Choose devices
filter.Version = "10|11|12|13"; // Choose Android version
var json = settings.GenerateRandomLSPosedSettings(project.Profile.Country, filter); // Generate random data for LSPosed spoofing based on the filter
settings.SetLSPosedSettings(json); // Apply the spoofed data