From dea52482994f8055b89fa0613813affad309ad73 Mon Sep 17 00:00:00 2001 From: Grace Cheng Date: Fri, 25 Mar 2022 03:23:44 +0000 Subject: Switches ADAS allowlist away from string resources Bug: 226440115 Test: manually Change-Id: I3d1434c405a1babee999533afa10710a06f635a1 --- .../android/location/LocationDeviceConfig.java | 32 +++++++++++++++++++--- 1 file changed, 28 insertions(+), 4 deletions(-) (limited to 'location/java/android') diff --git a/location/java/android/location/LocationDeviceConfig.java b/location/java/android/location/LocationDeviceConfig.java index c55eed9211f7..7d22681fc93e 100644 --- a/location/java/android/location/LocationDeviceConfig.java +++ b/location/java/android/location/LocationDeviceConfig.java @@ -23,6 +23,30 @@ package android.location; */ public final class LocationDeviceConfig { + /** + * Package/tag combinations that are allowlisted for ignoring location settings (may retrieve + * location even when user location settings are off), for advanced driver-assistance systems + * only. + * + *

Package/tag combinations are separated by commas (","), and with in each combination is a + * package name followed by 0 or more attribution tags, separated by semicolons (";"). If a + * package is followed by 0 attribution tags, this is interpreted the same as the wildcard + * value. There are two special interpreted values for attribution tags, the wildcard value + * ("*") which represents all attribution tags, and the null value ("null"), which is converted + * to the null string (since attribution tags may be null). This format implies that attribution + * tags which should be on this list may not contain semicolons. + * + *

Examples of valid entries: + * + *

+ */ + public static final String ADAS_SETTINGS_ALLOWLIST = "adas_settings_allowlist"; + /** * Package/tag combinations that are allowedlisted for ignoring location settings (may retrieve * location even when user location settings are off, and may ignore throttling, etc), for @@ -39,10 +63,10 @@ public final class LocationDeviceConfig { *

Examples of valid entries: * *

*/ public static final String IGNORE_SETTINGS_ALLOWLIST = "ignore_settings_allowlist"; -- cgit v1.2.3-59-g8ed1b