Created
July 11, 2019 05:54
-
-
Save Areizen/dc133ff0f533c97a77e0fb038c28d883 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function bypassCheckProperties() { | |
/* | |
* Function used to bypass common checks to | |
* Android OS properties | |
* Bypass the props checking from this git : https://github.com/strazzere/anti-emulator | |
* | |
*/ | |
const SystemProperties = Java.use('android.os.SystemProperties') | |
const String = Java.use('java.lang.String') | |
const Properties = { | |
"init.svc.qemud": null, | |
"init.svc.qemu-props": null, | |
"qemu.hw.mainkeys": null, | |
"qemu.sf.fake_camera": null, | |
"qemu.sf.lcd_density": null, | |
"ro.bootloader": "xxxxx", | |
"ro.bootmode": "xxxxxx", | |
"ro.hardware": "xxxxxx", | |
"ro.kernel.android.qemud": null, | |
"ro.kernel.qemu.gles": null, | |
"ro.kernel.qemu": "xxxxxx", | |
"ro.product.device": "xxxxx", | |
"ro.product.model": "xxxxxx", | |
"ro.product.name": "xxxxxx", | |
"ro.serialno": null | |
} | |
SystemProperties.get.overload('java.lang.String').implementation = function(x){ | |
console.log(x) | |
if (x in Properties){ | |
console.log('Returning ' + Properties[x]) | |
return Properties[x] | |
} | |
return this.get(x) | |
} | |
} | |
Java.perform(function () { | |
bypassCheckProperties() | |
}) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment