Yohei Yukawa
e2a7bddbe1
Set flagForceAscii for device password entries
...
Since the beginning [1], ChooseLockPassword#validatePassword() has never
accepted non-ASCII characters [2]. Hence we can safely specify
EditorInfo#IME_FLAG_FORCE_ASCII so that IMEs can optimize their UX based
on this flag. Note that EditorInfo#IME_FLAG_FORCE_ASCII is just a hint
for the IME so there should be no behavior change in the system side.
Note also that EditorInfo#IME_FLAG_FORCE_ASCII has been used in KeyGuard
(keyguard_password_view.xml) since JB MR-1 [3] so this flag is considered
to be well tested.
[1]: 00d2476d8f
[2]: Only character c where 32 <= c <= 126 is accepted
[3]: Id75286113771ca1407e9db182172b580f870b612
Test: Run `adb shell dumpsys input_method` when the password entry
field is focused to make sure that 'imeOptions' parameter
has 0x80000000 bit. Tested the following scenarios:
- PIN on a direct-boot disabled device
- PIN on a direct-boot enabled device
- Password on a direct-boot disabled device
- Password on a direct-boot enabled device
Fixes: 27858858
Change-Id: I3075e24c6dac4d49f4d0e56a0d4d8434a323754d
2017-03-28 16:42:17 +00:00
..
2016-05-23 18:50:05 +00:00
2017-02-24 14:57:31 -05:00
2017-03-23 10:34:06 -07:00
2016-12-14 22:41:58 +00:00
2016-04-20 15:10:08 -04:00
2016-04-20 15:10:08 -04:00
2016-04-20 15:10:08 -04:00
2016-12-14 22:41:58 +00:00
2017-02-14 16:45:23 -08:00
2016-12-14 22:41:58 +00:00
2016-12-14 22:41:58 +00:00
2016-12-14 22:41:58 +00:00
2016-12-14 22:41:58 +00:00
2016-12-14 22:41:58 +00:00
2016-12-14 22:41:58 +00:00
2016-12-14 22:41:58 +00:00
2016-12-14 22:41:58 +00:00
2017-03-28 16:42:17 +00:00
2017-03-28 16:42:17 +00:00
2016-07-22 20:06:42 +00:00
2016-10-28 17:57:23 -07:00
2016-06-16 12:13:11 -07:00
2016-10-28 17:57:23 -07:00
2017-03-16 14:14:44 -07:00
2017-02-16 12:31:49 -08:00
2017-02-16 12:31:49 -08:00
2017-02-16 12:31:49 -08:00
2017-02-16 12:31:49 -08:00
2017-02-16 12:31:49 -08:00
2017-02-14 16:45:23 -08:00
2017-03-28 02:05:50 +00:00
2017-03-23 06:27:40 -07:00
2016-12-05 18:37:12 +00:00
2017-03-23 06:27:40 -07:00
2016-12-05 18:37:12 +00:00
2017-03-23 06:27:40 -07:00
2016-12-05 18:37:12 +00:00
2017-03-23 06:27:40 -07:00
2017-03-23 06:27:40 -07:00
2016-12-05 18:37:12 +00:00
2017-03-23 06:27:40 -07:00
2017-03-23 06:27:40 -07:00
2016-12-05 18:37:12 +00:00
2017-03-23 06:27:40 -07:00
2017-01-10 21:24:59 -08:00
2017-03-23 06:27:40 -07:00
2017-01-10 21:24:59 -08:00
2017-03-23 06:27:40 -07:00
2016-12-05 18:37:12 +00:00
2017-03-23 06:27:40 -07:00
2016-12-05 18:37:12 +00:00
2017-03-23 06:27:40 -07:00
2016-12-05 18:37:12 +00:00
2017-03-23 06:27:40 -07:00
2016-12-05 18:37:12 +00:00
2017-03-23 06:27:40 -07:00
2016-12-05 18:37:12 +00:00
2017-03-23 06:27:40 -07:00
2016-12-05 18:37:12 +00:00
2017-03-23 06:27:40 -07:00
2016-12-05 18:37:12 +00:00
2017-03-23 06:27:40 -07:00
2016-12-05 18:37:12 +00:00
2017-03-23 06:27:40 -07:00
2016-12-05 18:37:12 +00:00
2017-03-23 06:27:40 -07:00
2016-12-05 18:37:12 +00:00
2017-03-23 06:27:40 -07:00
2017-03-23 06:27:40 -07:00
2017-01-10 21:24:59 -08:00
2017-03-23 06:27:40 -07:00
2016-12-05 18:37:12 +00:00
2017-03-23 06:27:40 -07:00
2016-12-05 18:37:12 +00:00
2017-03-23 06:27:40 -07:00
2016-12-05 18:37:12 +00:00
2017-03-23 06:27:40 -07:00
2016-12-05 18:37:12 +00:00
2017-03-23 06:27:40 -07:00
2017-01-10 21:24:59 -08:00
2017-03-23 06:27:40 -07:00
2017-01-10 21:24:59 -08:00
2017-03-23 06:27:40 -07:00
2016-12-05 18:37:12 +00:00
2017-03-23 06:27:40 -07:00
2016-12-05 18:37:12 +00:00
2017-03-23 06:27:40 -07:00
2016-12-05 18:37:12 +00:00
2017-03-23 06:27:40 -07:00
2017-03-23 06:27:40 -07:00
2016-12-05 18:37:12 +00:00
2017-03-23 06:27:40 -07:00
2017-01-10 21:24:59 -08:00
2017-03-23 06:27:40 -07:00
2016-12-05 18:37:12 +00:00
2017-03-23 06:27:40 -07:00
2016-12-05 18:37:12 +00:00
2017-03-23 06:27:40 -07:00
2016-12-05 18:37:12 +00:00
2017-03-23 06:27:40 -07:00
2017-03-23 06:27:40 -07:00
2017-01-10 21:24:59 -08:00
2017-03-23 06:27:40 -07:00
2017-03-23 06:27:40 -07:00
2017-01-10 21:24:59 -08:00
2017-03-23 06:27:40 -07:00
2016-12-05 18:37:12 +00:00
2017-03-23 06:27:40 -07:00
2017-01-10 21:24:59 -08:00
2016-07-06 14:59:33 -07:00
2017-03-23 06:27:40 -07:00
2017-03-23 06:27:40 -07:00
2016-12-05 18:37:12 +00:00
2017-03-23 06:27:40 -07:00
2016-12-05 18:37:12 +00:00
2017-03-23 06:27:40 -07:00
2017-01-10 21:24:59 -08:00
2017-03-23 06:27:40 -07:00
2017-01-10 21:24:59 -08:00
2017-03-23 06:27:40 -07:00
2017-03-23 06:27:40 -07:00
2017-01-10 21:24:59 -08:00
2017-03-23 06:27:40 -07:00
2017-03-23 06:27:40 -07:00
2017-01-10 21:24:59 -08:00
2017-03-23 06:27:40 -07:00
2016-12-05 18:37:12 +00:00
2017-03-23 06:27:40 -07:00
2017-03-23 06:27:40 -07:00
2016-12-05 18:37:12 +00:00
2017-03-23 06:27:40 -07:00
2017-01-10 21:24:59 -08:00
2017-03-23 06:27:40 -07:00
2016-12-05 18:37:12 +00:00
2017-03-23 06:27:40 -07:00
2016-12-05 18:37:12 +00:00
2017-03-23 06:27:40 -07:00
2016-12-05 18:37:12 +00:00
2017-03-23 06:27:40 -07:00
2016-12-05 18:37:12 +00:00
2017-03-23 06:27:40 -07:00
2016-12-05 18:37:12 +00:00
2017-03-23 06:27:40 -07:00
2016-12-05 18:37:12 +00:00
2017-03-23 06:27:40 -07:00
2017-03-23 06:27:40 -07:00
2016-12-05 18:37:12 +00:00
2017-03-23 06:27:40 -07:00
2016-12-05 18:37:12 +00:00
2017-03-23 06:27:40 -07:00
2017-01-10 21:24:59 -08:00
2017-03-23 06:27:40 -07:00
2016-12-05 18:37:12 +00:00
2017-03-23 06:27:40 -07:00
2016-12-05 18:37:12 +00:00
2017-03-23 06:27:40 -07:00
2016-10-20 17:20:56 -07:00
2017-03-15 13:26:54 -07:00
2016-09-29 11:30:49 -07:00
2017-02-27 17:45:05 -08:00
2017-02-27 17:45:05 -08:00
2016-12-05 18:37:12 +00:00
2017-03-23 06:27:40 -07:00
2017-01-10 21:24:59 -08:00
2017-03-23 06:27:40 -07:00
2017-01-10 21:24:59 -08:00
2017-03-23 06:27:40 -07:00
2016-12-05 18:37:12 +00:00
2017-03-23 06:27:40 -07:00
2016-12-05 18:37:12 +00:00
2017-03-23 06:27:40 -07:00
2016-12-05 18:37:12 +00:00
2017-03-23 06:27:40 -07:00
2016-12-05 18:37:12 +00:00
2017-03-23 06:27:40 -07:00
2017-01-10 21:24:59 -08:00
2017-03-23 06:27:40 -07:00
2017-01-10 21:24:59 -08:00
2017-03-23 06:27:40 -07:00
2016-12-05 18:37:12 +00:00
2017-03-23 06:27:40 -07:00
2016-12-05 18:37:12 +00:00
2017-03-23 06:27:40 -07:00
2016-12-05 18:37:12 +00:00
2017-03-23 06:27:40 -07:00
2016-12-05 18:37:12 +00:00
2017-03-23 06:27:40 -07:00
2016-12-05 18:37:12 +00:00
2017-03-28 01:27:24 +00:00