Eric Biggers 3d9c19f2fd BrightnessTracker: don't create stuff directly in /data/system_de
/data/system_de is only for per-user data; it *must* only contain
per-user encrypted directories.  Only vold should ever create anything
directly in this directory.  In preparation for removing system_server's
write access to this directory (https://r.android.com/2078213), make
BrightnessTracker store its brightness_events.xml file at
/data/system/brightness_events.xml instead of
/data/system_de/brightness_events.xml, and likewise for
ambient_brightness_stats.xml.

Migration happens lazily, except that the old files aren't ever deleted
since the SELinux policy will no longer allow system_server to do that;
the old files just stop being used.  vold will need to handle the
cleanup instead, or we could just leave the files around.

Test: Flashed new build without wiping userdata.  Log shows "Reading
      ambient_brightness_stats.xml from old location" as expected.
      Rebooted.  Log message no longer appears, as expected.  File
      /data/system/ambient_brightness_stats.xml exists, as expected.
Bug: 156305599
Change-Id: I6e0948ac54ec9183348943234d505e7466042963
2022-05-04 22:35:17 +00:00
2022-04-14 21:57:52 +00:00
2022-04-08 12:23:51 +01:00
2022-05-04 20:30:20 +00:00
2022-03-28 09:25:17 -07:00
2021-05-13 08:24:32 +00:00
2022-04-01 16:46:46 +00:00
2022-05-04 20:30:20 +00:00
2021-11-04 14:44:07 +00:00
2022-03-31 19:37:56 -07:00
…
2022-01-05 13:13:50 +00:00
…
…
2022-03-07 08:44:25 +00:00
Description
No description provided
21 GiB
Languages
Java 73.7%
Kotlin 14%
PowerBuilder 5.8%
C++ 5.2%
AIDL 1%