Improved the spoof device feature

This commit is contained in:
RSR/
2026-03-11 01:47:07 +04:00
parent a4d2513138
commit 181d19424f
7 changed files with 394 additions and 216 deletions

View File

@@ -2296,11 +2296,23 @@
"schedule_failed": "Scheduled snap failed",
"schedule_cancelled_for": "Cancelled for {name}",
"device_model": {
"samsung_s25_ultra": "Samsung Galaxy S25 Ultra",
"google_pixel_10_pro": "Google Pixel 10 Pro",
"oneplus_13": "OnePlus 13",
"xiaomi_15_ultra": "Xiaomi 15 Ultra",
"null": "Device Default"
"none": "Device Default",
"random": "Random",
"Pixel 8 Pro": "Pixel 8 Pro",
"Pixel 9 Pro XL": "Pixel 9 Pro XL",
"Pixel 10": "Pixel 10",
"Pixel 10 Pro": "Pixel 10 Pro",
"Pixel 10 Pro XL": "Pixel 10 Pro XL",
"Pixel 10 Pro Fold": "Pixel 10 Pro Fold",
"Galaxy S23 Ultra": "Galaxy S23 Ultra",
"Galaxy S24 Ultra": "Galaxy S24 Ultra",
"Galaxy S25 Ultra": "Galaxy S25 Ultra",
"OnePlus 15": "OnePlus 15",
"OnePlus Open": "OnePlus Open",
"Xiaomi 15 Ultra": "Xiaomi 15 Ultra",
"OPPO Find X9 Pro": "OPPO Find X9 Pro",
"vivo X100 Pro": "vivo X100 Pro",
"realme GT 6": "realme GT 6"
},
"settings_menu": {
"default": "Default",

View File

@@ -11,6 +11,10 @@ data class PropertyPair<T>(
val name get() = key.name
}
@Suppress("UNCHECKED_CAST")
fun Pair<PropertyKey<*>, PropertyValue<*>>.toPropertyPair(): PropertyPair<Any> =
PropertyPair(first as PropertyKey<Any>, second as PropertyValue<Any>)
enum class FeatureNotice(
val key: String
) {

View File

@@ -19,11 +19,24 @@ class Spoof : ConfigContainer(hasGlobalState = true) {
val spoofDeviceId = container("spoof_device_id", SpoofDeviceIdConfig()) { requireRestart() }
val spoofDevice = boolean("spoof_device") { requireRestart() }
val deviceModel = unique("device_model",
"samsung_s25_ultra",
"google_pixel_10_pro",
"oneplus_13",
"xiaomi_15_ultra"
) {
"none",
"random",
"Pixel 8 Pro",
"Pixel 9 Pro XL",
"Pixel 10",
"Pixel 10 Pro",
"Pixel 10 Pro XL",
"Pixel 10 Pro Fold",
"Galaxy S23 Ultra",
"Galaxy S24 Ultra",
"Galaxy S25 Ultra",
"OnePlus 15",
"OnePlus Open",
"Xiaomi 15 Ultra",
"OPPO Find X9 Pro",
"vivo X100 Pro",
"realme GT 6"
) {
requireRestart()
customOptionTranslationPath = "features.options.device_model"
}