Panic pin code for wipe device [FEATURE]
Feature request: a second PIN code which wipe the device.
In Settings -> Security near "Screen Lock" add another menu something like "Panic code" there you can configure second pattern or pin code or password. Probably with description and confirmation, that user understand what he doing. On lock screen you can input your normal password/pin/pattern and unlock your device and can input on same field/keyboard/pinpad alternative pinpad which immediatly reset device on factory state without asking confiamations.
Users from some countries are forced to give away their phones on arrest and reveal their PIN code, after which incriminating information is pulled from their phones by the police, leading to further arrests. Typical user story:
In my country (Russia, if you interested) policy try to force political activist unlock their smartphones for collect more evidence. They use tortures and threats of tortures for this. If you you can
t unlock because it wiped they dont have motivation to use tortures.
Source: Android ticket #121372590. The ticket has been supported commented and upvoted by hundreds of people but promptly marked as "Obsolete" by Google.
Factory reset may be not required with full-disk encryption on Android 9: wiping just the LUKS header would be much faster and will likely render the actual OS partition unusable even if the original PIN is eventually extorted from the owner. On Android 10 this might be more challenging as they replaced full-disk encryption with file-based encryption.