OSDN Git Service

Add a new constant to TimeZoneRulesDataContract
authorNeil Fuller <nfuller@google.com>
Fri, 28 Jul 2017 13:31:57 +0000 (14:31 +0100)
committerNeil Fuller <nfuller@google.com>
Mon, 31 Jul 2017 17:20:05 +0000 (18:20 +0100)
This enables time zone data app code (provided by Google)
to check the manifest (provided by the OEM) uses the right permission
without referencing internal manifest permission Strings directly.

Bug: 64139059
Test: Ran internal xTS tests
Change-Id: I4b1a8608beff3b5218ecf5162cfe8e31027e2007
(cherry picked from commit 8e2a85752b9b45e3294c5e94a6a882329433054f)

api/system-current.txt
core/java/android/provider/TimeZoneRulesDataContract.java

index 41f6353..1d6673e 100644 (file)
@@ -38650,6 +38650,7 @@ package android.provider {
 
   public final class TimeZoneRulesDataContract {
     field public static final java.lang.String AUTHORITY = "com.android.timezone";
+    field public static final java.lang.String READER_PERMISSION = "android.permission.UPDATE_TIME_ZONE_RULES";
   }
 
   public static final class TimeZoneRulesDataContract.Operation {
index 33d2588..7a5ae1d 100644 (file)
@@ -41,6 +41,12 @@ public final class TimeZoneRulesDataContract {
     private static final Uri AUTHORITY_URI = Uri.parse("content://" + AUTHORITY);
 
     /**
+     * The permission that the reader of the ContentProvider must possess.
+     */
+    public static final String READER_PERMISSION =
+            android.Manifest.permission.UPDATE_TIME_ZONE_RULES;
+
+    /**
      * Defines fields exposed through the {@link Operation#CONTENT_URI} for describing a time zone
      * distro operation.
      */