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

Commit af4cfc5c authored by Neil Fuller's avatar Neil Fuller
Browse files

Add a new constant to TimeZoneRulesDataContract

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 8e2a8575)
parent 13b17b29
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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 {
+6 −0
Original line number Diff line number Diff line
@@ -40,6 +40,12 @@ public final class TimeZoneRulesDataContract {
    /** A content:// style uri to the authority for the time zone data content provider */
    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.