summaryrefslogtreecommitdiff
path: root/location
diff options
context:
space:
mode:
author Lee Shombert <shombert@google.com> 2024-09-16 13:30:59 -0700
committer Lee Shombert <shombert@google.com> 2024-09-17 17:06:40 -0700
commitef881f533c9f0eff33728129f7c4d70abe56521a (patch)
tree60b3cb5d6ddbb697c3728cb1042e7f56c702b744 /location
parentfeaa25f828313c707a9258ef1a1b472cd7ef5b32 (diff)
Rename legacy cache keys
This CL renames legacy PropertyInvalidatedCache keys to match the new naming convention, which is "cache_key.<module>.<name>", where the module is one of "system_server", "telephony", or "bluetooth". The rename is entirely in the framework. There is no backcompat issue. Invalid cache keys are logged, unless the flag is true, in which case a fatal exception is thrown. Tested with a special image that removed the SELinux policies that permitted the legacy property names to work. Booted the image and verified no selinux violations in logcat. This means no caches were using the legacy properties. Test: booted the image and verified that no caches with non-standard names existed in the system. Verification used the output of `dumpsys cacheinfo`. Flag: EXEMPT refactor Bug: 366552454 Change-Id: Icfc43980def04c8aefaa4097a38eabbc7ca3b054
Diffstat (limited to 'location')
-rw-r--r--location/java/android/location/LocationManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/location/java/android/location/LocationManager.java b/location/java/android/location/LocationManager.java
index 63424892ec72..306643d8477e 100644
--- a/location/java/android/location/LocationManager.java
+++ b/location/java/android/location/LocationManager.java
@@ -451,7 +451,7 @@ public class LocationManager {
private static final long MAX_SINGLE_LOCATION_TIMEOUT_MS = 30 * 1000;
private static final String CACHE_KEY_LOCATION_ENABLED_PROPERTY =
- "cache_key.location_enabled";
+ PropertyInvalidatedCache.createSystemCacheKey("location_enabled");
static ILocationManager getService() throws RemoteException {
try {