Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 790b9de7 authored by Eric Biggers's avatar Eric Biggers
Browse files

Stop allowing nonempty tokens/secrets in "am unlock-user"

It doesn't make sense for the 'am unlock-user' shell command to accept a
token and secret, given that the token is no longer used, and there
isn't really any way for the caller to get the secret if a nonempty
secret is needed.  Therefore, make it so that these two parameters must
be either empty or not specified.  This makes this command more
explicitly only support unlocking users who don't have an LSKF.

Test: atest com.android.server.locksettings
Test: am unlock-user 10
Test: am unlock-user 10 "" ""
Bug: 184723544
Change-Id: Ie4bfac19ba6b753b3434e13be553a654e5a2df35
parent 747a0b78
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment