Checklist
Feature description
Add DuressPassword feature.
Hello, pls add DuressPassword feature (wipe phone data when DuressPassword entered). On most firmwares keyboards can work on lock screen and you can do it. You can use
DevicePolicyManager.wipeData(flags);
or if target sdk >=34 , this may not work and you can use instead it:
DevicePolicyManager.setMaximumFailedPasswordsForWipe(AdminReceiver, 1);
before send incorrect (Duress) password to system.
You need for first variant:
<uses-policies>
<wipe-data />
</uses-policies>
For second:
<uses-policies>
<wipe-data />
<watch-login/>
</uses-policies>
and any target sdk.
To store duress password just use hash , for example sha256 or Argon.
Example how to do it you can see via this apps:
DuressKeyboard (target sdk<=33):
https://github.com/pofesk0/lastcodeduresskeyboard
https://f-droid.org/packages/duress.keyboard
DuressKeyboardLite (target sdk>=34 and you can use this example for any sdk 8+ if you want):
https://github.com/pofesk0/DuressKeyboardLite
https://f-droid.org/packages/duress.keyboard.lite
Why do you want this feature?
This feature need to help people under duress to wipe phone data by entering special panic code without unlock phone.
Additional information
No response
Checklist
Feature description
Add DuressPassword feature.
Hello, pls add DuressPassword feature (wipe phone data when DuressPassword entered). On most firmwares keyboards can work on lock screen and you can do it. You can use
or if target sdk >=34 , this may not work and you can use instead it:
before send incorrect (Duress) password to system.
You need for first variant:
For second:
and any target sdk.
To store duress password just use hash , for example sha256 or Argon.
Example how to do it you can see via this apps:
DuressKeyboard (target sdk<=33):
https://github.com/pofesk0/lastcodeduresskeyboard
https://f-droid.org/packages/duress.keyboard
DuressKeyboardLite (target sdk>=34 and you can use this example for any sdk 8+ if you want):
https://github.com/pofesk0/DuressKeyboardLite
https://f-droid.org/packages/duress.keyboard.lite
Why do you want this feature?
This feature need to help people under duress to wipe phone data by entering special panic code without unlock phone.
Additional information
No response