-
Notifications
You must be signed in to change notification settings - Fork 112
Open
Description
Hello All,
I noticed that android 11 uses a different constructor for the BiometricPrompt$AuthenticationResult() function as you can find here: https://developer.android.com/reference/android/hardware/biometrics/BiometricPrompt.AuthenticationResult
Because of this the script will throw an error as it is expecting 2 arguments but gets 3.
Error: BiometricPrompt$AuthenticationResult(): argument types do not match any of:
.overload('android.hardware.biometrics.BiometricPrompt$CryptoObject', 'int')
at X (frida/node_modules/frida-java-bridge/lib/class-factory.js:563)
at value (frida/node_modules/frida-java-bridge/lib/class-factory.js:966)
at e (frida/node_modules/frida-java-bridge/lib/class-factory.js:547)
at <anonymous> (/fingerprint-bypass-via-exception-handling.js:65)
at apply (native)
at ne (frida/node_modules/frida-java-bridge/lib/class-factory.js:613)
at <anonymous> (frida/node_modules/frida-java-bridge/lib/class-factory.js:592)
Changing authenticationResultObj.$new(cryptoInst,null,0); to authenticationResultObj.$new(cryptoInst,0);
And authenticationResultObj.$new(crypto,null,0); to authenticationResultObj.$new(crypto,0); respectively should fix the issue.
Made a quick fix and posted it on frida codeshare here:
https://codeshare.frida.re/@krapgras/android-biometric-bypass-update-android-11/
WarrDaddyWarrDaddy
Metadata
Metadata
Assignees
Labels
No labels