From 68a00bcf3deb11a9e5508821c72eedf1ccc214a5 Mon Sep 17 00:00:00 2001 From: Hall Liu Date: Thu, 21 Nov 2019 16:35:37 -0800 Subject: [PATCH] Add change ID for platform compat Add definition of the change ID for the APN permissions change for platform compat. Bug: 144631034 Test: compiles Change-Id: I6388418453ddec5b4ff45efebd81ffabd62b64ba --- telephony/java/android/provider/Telephony.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/telephony/java/android/provider/Telephony.java b/telephony/java/android/provider/Telephony.java index 15bb00265b110..cbd29d8dfcd72 100644 --- a/telephony/java/android/provider/Telephony.java +++ b/telephony/java/android/provider/Telephony.java @@ -25,6 +25,7 @@ import android.annotation.SdkConstant.SdkConstantType; import android.annotation.SystemApi; import android.annotation.TestApi; import android.annotation.UnsupportedAppUsage; +import android.compat.annotation.ChangeId; import android.content.ComponentName; import android.content.ContentResolver; import android.content.ContentValues; @@ -4033,6 +4034,16 @@ public final class Telephony { @Retention(RetentionPolicy.SOURCE) public @interface Skip464XlatStatus {} + /** + * Compat framework change ID for the APN db read permission change. + * + * In API level 30 and beyond, accessing the APN database will require the + * {@link android.Manifest.permission#WRITE_APN_SETTINGS} permission. This change ID tracks + * apps that are affected because they don't hold this permission. + * @hide + */ + @ChangeId + public static final long APN_READING_PERMISSION_CHANGE_ID = 124107808L; } /**