diff options
| author | 2023-08-15 13:43:35 +0000 | |
|---|---|---|
| committer | 2023-10-04 01:19:05 +0000 | |
| commit | 0a016bbab6b8aa9ed758af72e1bc4db2277dfbc8 (patch) | |
| tree | bf748bcdbb096937ca64f691fa2d73ff0a8695c2 /libs/androidfw/FileStream.cpp | |
| parent | 14f2d20ed3d0b354b443639cd12e1fe3e9c306d8 (diff) | |
feat(force invert): force force-dark if force invert is enabled
Force invert always forces apps dark, even if the developer has used one
of the opt-out APIs. It also ignores the dark theme setting, since that
can be overridden by the app.
Bug: 282821643
Test: atest ViewRootImplTest
Test: manual:
0. `adb shell device_config set_sync_disabled_for_tests persistent && adb shell device_config put accessibility android.view.flags.force_invert_color true`
1. `setprop debug.hwui.force_dark 1 && cmd uimode night yes"`
2. Most apps will be dark, except ones that opt-out (e.g. Twitter).
3. `setprop debug.hwui.force_dark 0 && settings put secure accessibility_force_invert_color_enabled 1 && cmd uimode night no`
4. All apps will be dark, regardless if they opt-out (e.g. Twitter).
Change-Id: I425b401c3e1a59d9c9d9445c6c056613d4da7982
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions