Files
app_Settings/src/com/android/settings
mxyyiyi 7bfa060c5f Take as Unrestricted Mode in the UI if current Mode is Unknown.
- Battery usage mode MODE_UNKNOWN is (1) apps in allowlist and (2) app's OP_RUN_ANY_IN_BACKGROUND = MODE_IGNORED.
For this case, mode should be displayed as Unrestricted on UI since it is in allowlist; and should be logged as unknown mode for the potential compatibility issues.

- After Backup & Restore, the MODE_UNKNOWN will be reset to Optimized(Default) Mode on target device.

Bug: 372831500
Test: manual
Test: atest BatteryOptimizeUtilsTest
Test: atest AppOptModeSharedPreferencesUtilsTest
Flag: EXEMPT for simple fix
Change-Id: Ic18e026f71a4a50ffa1711e2ca0782aeb8b33076
2024-10-15 15:53:29 +08:00
..
2024-10-08 11:12:41 +08:00
2024-03-29 04:22:45 +00:00
2024-03-29 04:22:45 +00:00
2024-04-16 09:10:39 +00:00
2024-10-11 04:00:17 +00:00
2024-06-17 18:13:37 +08:00
2024-06-28 14:54:15 -07:00
2024-09-27 08:47:52 +00:00
2024-09-12 15:08:28 +08:00
2023-10-11 15:43:20 +00:00
2023-06-28 17:48:55 +00:00
2024-05-30 15:25:35 +00:00
2024-10-08 11:12:41 +08:00
2024-09-10 20:15:41 +00:00
2024-09-17 20:21:48 +00:00