mirror of
https://github.com/rhunk/SnapEnhance.git
synced 2025-06-12 05:07:46 +02:00
fix: device spoof global state
This commit is contained in:
@ -57,7 +57,6 @@ open class ConfigContainer(
|
||||
fun toJson(): JsonObject {
|
||||
val json = JsonObject()
|
||||
properties.forEach { (propertyKey, propertyValue) ->
|
||||
Logger.debug("${propertyKey.name} => $propertyValue")
|
||||
val serializedValue = propertyValue.getNullable()?.let { propertyKey.dataProcessor.serializeAny(it) }
|
||||
json.add(propertyKey.name, serializedValue)
|
||||
}
|
||||
|
@ -9,6 +9,8 @@ import me.rhunk.snapenhance.hook.Hooker
|
||||
|
||||
class DeviceSpooferHook: Feature("device_spoofer", loadParams = FeatureLoadParams.ACTIVITY_CREATE_ASYNC) {
|
||||
override fun asyncOnActivityCreate() {
|
||||
if (context.config.spoof.globalState != true) return
|
||||
|
||||
val fingerprint by context.config.spoof.device.fingerprint
|
||||
val androidId by context.config.spoof.device.androidId
|
||||
|
||||
|
Reference in New Issue
Block a user