summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author David Anderson <dvander@google.com> 2025-03-21 13:24:01 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2025-03-21 13:24:01 -0700
commitf87fa3e8f663421cee8e2893427809132d3a7ff0 (patch)
tree17f61ffb82f838d4b552d11fb906a140dec2c983
parenta17f38cd1aa2306301c605f94fa2438e754e82ec (diff)
parent3572c40de8dfeed8c32b3bfd4104f6990815e9f2 (diff)
Merge "Add new permission android.permission.READ_UPDATE_ENGINE_LOGS" into main
-rw-r--r--core/api/current.txt1
-rw-r--r--core/api/lint-baseline.txt11
-rw-r--r--core/res/Android.bp1
-rw-r--r--core/res/AndroidManifest.xml7
-rw-r--r--data/etc/platform.xml6
5 files changed, 25 insertions, 1 deletions
diff --git a/core/api/current.txt b/core/api/current.txt
index 4a73bf857948..27aa3518f958 100644
--- a/core/api/current.txt
+++ b/core/api/current.txt
@@ -273,6 +273,7 @@ package android {
field public static final String READ_SYNC_SETTINGS = "android.permission.READ_SYNC_SETTINGS";
field public static final String READ_SYNC_STATS = "android.permission.READ_SYNC_STATS";
field @FlaggedApi("com.android.settingslib.flags.settings_catalyst") public static final String READ_SYSTEM_PREFERENCES = "android.permission.READ_SYSTEM_PREFERENCES";
+ field @FlaggedApi("com.android.update_engine.minor_changes_2025q4") public static final String READ_UPDATE_ENGINE_LOGS = "android.permission.READ_UPDATE_ENGINE_LOGS";
field public static final String READ_VOICEMAIL = "com.android.voicemail.permission.READ_VOICEMAIL";
field public static final String REBOOT = "android.permission.REBOOT";
field public static final String RECEIVE_BOOT_COMPLETED = "android.permission.RECEIVE_BOOT_COMPLETED";
diff --git a/core/api/lint-baseline.txt b/core/api/lint-baseline.txt
index 577113b80d84..3895a512abc7 100644
--- a/core/api/lint-baseline.txt
+++ b/core/api/lint-baseline.txt
@@ -1,4 +1,3 @@
-
// Baseline format: 1.0
BroadcastBehavior: android.app.AlarmManager#ACTION_NEXT_ALARM_CLOCK_CHANGED:
Field 'ACTION_NEXT_ALARM_CLOCK_CHANGED' is missing @BroadcastBehavior
@@ -244,6 +243,8 @@ BroadcastBehavior: android.telephony.TelephonyManager#ACTION_SUBSCRIPTION_SPECIF
Field 'ACTION_SUBSCRIPTION_SPECIFIC_CARRIER_IDENTITY_CHANGED' is missing @BroadcastBehavior
BroadcastBehavior: android.telephony.euicc.EuiccManager#ACTION_NOTIFY_CARRIER_SETUP_INCOMPLETE:
Field 'ACTION_NOTIFY_CARRIER_SETUP_INCOMPLETE' is missing @BroadcastBehavior
+
+
DeprecationMismatch: android.accounts.AccountManager#newChooseAccountIntent(android.accounts.Account, java.util.ArrayList<android.accounts.Account>, String[], boolean, String, String, String[], android.os.Bundle):
Method android.accounts.AccountManager.newChooseAccountIntent(android.accounts.Account, java.util.ArrayList<android.accounts.Account>, String[], boolean, String, String, String[], android.os.Bundle): @Deprecated annotation (present) and @deprecated doc tag (not present) do not match
DeprecationMismatch: android.app.Activity#enterPictureInPictureMode():
@@ -380,6 +381,8 @@ DeprecationMismatch: android.webkit.WebViewDatabase#hasFormData():
Method android.webkit.WebViewDatabase.hasFormData(): @Deprecated annotation (present) and @deprecated doc tag (not present) do not match
DeprecationMismatch: javax.microedition.khronos.egl.EGL10#eglCreatePixmapSurface(javax.microedition.khronos.egl.EGLDisplay, javax.microedition.khronos.egl.EGLConfig, Object, int[]):
Method javax.microedition.khronos.egl.EGL10.eglCreatePixmapSurface(javax.microedition.khronos.egl.EGLDisplay, javax.microedition.khronos.egl.EGLConfig, Object, int[]): @Deprecated annotation (present) and @deprecated doc tag (not present) do not match
+
+
FlaggedApiLiteral: android.Manifest.permission#BIND_APP_FUNCTION_SERVICE:
@FlaggedApi contains a string literal, but should reference the field generated by aconfig (android.app.appfunctions.flags.Flags.FLAG_ENABLE_APP_FUNCTION_MANAGER).
FlaggedApiLiteral: android.Manifest.permission#BIND_TV_AD_SERVICE:
@@ -390,6 +393,8 @@ FlaggedApiLiteral: android.Manifest.permission#QUERY_ADVANCED_PROTECTION_MODE:
@FlaggedApi contains a string literal, but should reference the field generated by aconfig (android.security.Flags.FLAG_AAPM_API).
FlaggedApiLiteral: android.Manifest.permission#RANGING:
@FlaggedApi contains a string literal, but should reference the field generated by aconfig (android.permission.flags.Flags.FLAG_RANGING_PERMISSION_ENABLED).
+FlaggedApiLiteral: android.Manifest.permission#READ_UPDATE_ENGINE_LOGS:
+ @FlaggedApi contains a string literal, but should reference the field generated by aconfig (com.android.update_engine.Flags.FLAG_MINOR_CHANGES_2025Q4, however this flag doesn't seem to exist).
FlaggedApiLiteral: android.Manifest.permission#REQUEST_OBSERVE_DEVICE_UUID_PRESENCE:
@FlaggedApi contains a string literal, but should reference the field generated by aconfig (android.companion.Flags.FLAG_DEVICE_PRESENCE).
FlaggedApiLiteral: android.R.attr#adServiceTypes:
@@ -1110,10 +1115,14 @@ RequiresPermission: android.webkit.WebSettings#setBlockNetworkLoads(boolean):
Method 'setBlockNetworkLoads' documentation mentions permissions without declaring @RequiresPermission
RequiresPermission: android.webkit.WebSettings#setGeolocationEnabled(boolean):
Method 'setGeolocationEnabled' documentation mentions permissions without declaring @RequiresPermission
+
+
Todo: android.hardware.camera2.params.StreamConfigurationMap:
Documentation mentions 'TODO'
Todo: android.provider.ContactsContract.RawContacts#newEntityIterator(android.database.Cursor):
Documentation mentions 'TODO'
+
+
UnflaggedApi: android.R.color#on_surface_disabled_material:
New API must be flagged with @FlaggedApi: field android.R.color.on_surface_disabled_material
UnflaggedApi: android.R.color#outline_disabled_material:
diff --git a/core/res/Android.bp b/core/res/Android.bp
index 1199d77d04c6..29da0d6f67ae 100644
--- a/core/res/Android.bp
+++ b/core/res/Android.bp
@@ -181,6 +181,7 @@ android_app {
"ranging_aconfig_flags",
"aconfig_settingslib_flags",
"telephony_flags",
+ "update_engine_aconfig_declarations",
],
}
diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml
index f62ce278f28a..636968dd1152 100644
--- a/core/res/AndroidManifest.xml
+++ b/core/res/AndroidManifest.xml
@@ -5180,6 +5180,13 @@
<permission android:name="android.permission.READ_LOGS"
android:protectionLevel="signature|privileged|development" />
+ <!-- Allows an application to read the update_engine logs
+ <p>Not for use by third-party applications.
+ @FlaggedApi("com.android.update_engine.minor_changes_2025q4") -->
+ <permission android:name="android.permission.READ_UPDATE_ENGINE_LOGS"
+ android:protectionLevel="signature|privileged|development"
+ android:featureFlag="com.android.update_engine.minor_changes_2025q4" />
+
<!-- Configure an application for debugging.
<p>Not for use by third-party applications. -->
<permission android:name="android.permission.SET_DEBUG_APP"
diff --git a/data/etc/platform.xml b/data/etc/platform.xml
index ca20aebf95d8..ea1ce48fe001 100644
--- a/data/etc/platform.xml
+++ b/data/etc/platform.xml
@@ -62,6 +62,12 @@
<permission name="android.permission.READ_LOGS" >
<group gid="log" />
+ <group gid="update_engine_log" />
+ </permission>
+
+ <permission name="android.permission.READ_UPDATE_ENGINE_LOGS"
+ featureFlag="com.android.update_engine.minor_changes_2025q4" >
+ <group gid="update_engine_log" />
</permission>
<permission name="android.permission.ACCESS_MTP" >