Tsung-Mao Fang f5062c2df8 Guard FallbackHome activity behind permission
An attacker can launch FallbackHome of the Settings app
to reset unlock time. This would prevent the device from
sleeping because it runs the following code:
PowerManager#userActivity().

However, running PowerManager.userActivity() requires
android.permission.DEVICE_POWER or android.permission.USER_ACTIVITY.

So, let's add a permission to guard this activity.

Test: Rebuilt a rom and see no side effect.
Bug: 246543238
Change-Id: I23a1e352f76cbec3e8c07a1b58b94615f2779121
2022-09-30 15:31:47 +08:00
2022-04-14 09:55:36 +00:00
2019-04-04 12:49:15 -07:00
2019-11-25 20:28:35 +09:00
2022-06-24 05:58:57 +00:00
2020-02-03 01:03:46 +00:00
Description
No description provided
3.1 GiB
Languages
Java 89.8%
Kotlin 10.2%