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

Commit 946ef041 authored by Tyler Freeman's avatar Tyler Freeman
Browse files

feat(force invert): add ability to force-enable or disable force invert

per-package

This allows us to debug apps that may be added to the hardcoded device
config blocklist, or have force invert enabled or disabled by other criteria.

Fix: 435745894
Bug: 432555538
Flag: android.view.accessibility.force_invert_color
Test: atest frameworks/base/core/tests/coretests/src/android/view/ViewRootImplTest.java
Test: atest frameworks/base/services/tests/uiservicestests/src/com/android/server/accessibility/ForceInvertOverrideStateTest.kt
Test: atest frameworks/base/services/tests/uiservicestests/src/com/android/server/UiModeManagerServiceTest.java
Test: manual:
1. `adb shell settings put system accessibility_force_invert_color_override_packages_to_enable "package_in_config_forceInvertPackageBlocklist"`
2. Verify the package is being force inverted.
Test: manual:
1. `adb shell settings put system accessibility_force_invert_color_override_packages_to_disable "com.fitbit.FitbitMobile,"`
2. Fitbit app should be light theme (not inverted).

Change-Id: If5f7c04d878a26c019b79b08db7179547ad3339c
parent fcc0d7a0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment