Loading api/system-current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -1756,6 +1756,7 @@ package android.content.pm { field public static final int PROTECTION_FLAG_SYSTEM_TEXT_CLASSIFIER = 65536; // 0x10000 field public static final int PROTECTION_FLAG_TELEPHONY = 4194304; // 0x400000 field public static final int PROTECTION_FLAG_WELLBEING = 131072; // 0x20000 field public static final int PROTECTION_FLAG_WIFI = 8388608; // 0x800000 field @Nullable public final String backgroundPermission; field @StringRes public int requestRes; } Loading api/test-current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -773,6 +773,7 @@ package android.content.pm { field public static final int PROTECTION_FLAG_TELEPHONY = 4194304; // 0x400000 field public static final int PROTECTION_FLAG_VENDOR_PRIVILEGED = 32768; // 0x8000 field public static final int PROTECTION_FLAG_WELLBEING = 131072; // 0x20000 field public static final int PROTECTION_FLAG_WIFI = 8388608; // 0x800000 field @Nullable public final String backgroundPermission; } Loading core/java/android/content/pm/PermissionInfo.java +15 −0 Original line number Diff line number Diff line Loading @@ -248,6 +248,17 @@ public class PermissionInfo extends PackageItemInfo implements Parcelable { @TestApi public static final int PROTECTION_FLAG_TELEPHONY = 0x400000; /** * Additional flag for {@link #protectionLevel}, corresponding * to the <code>wifi</code> value of * {@link android.R.attr#protectionLevel}. * * @hide */ @SystemApi @TestApi public static final int PROTECTION_FLAG_WIFI = 0x800000; /** @hide */ @IntDef(flag = true, prefix = { "PROTECTION_FLAG_" }, value = { PROTECTION_FLAG_PRIVILEGED, Loading @@ -270,6 +281,7 @@ public class PermissionInfo extends PackageItemInfo implements Parcelable { PROTECTION_FLAG_INCIDENT_REPORT_APPROVER, PROTECTION_FLAG_APP_PREDICTOR, PROTECTION_FLAG_TELEPHONY, PROTECTION_FLAG_WIFI, }) @Retention(RetentionPolicy.SOURCE) public @interface ProtectionFlags {} Loading Loading @@ -516,6 +528,9 @@ public class PermissionInfo extends PackageItemInfo implements Parcelable { if ((level & PermissionInfo.PROTECTION_FLAG_TELEPHONY) != 0) { protLevel += "|telephony"; } if ((level & PermissionInfo.PROTECTION_FLAG_WIFI) != 0) { protLevel += "|wifi"; } return protLevel; } Loading core/res/AndroidManifest.xml +1 −1 Original line number Diff line number Diff line Loading @@ -2955,7 +2955,7 @@ @hide --> <permission android:name="android.permission.INTERNAL_SYSTEM_WINDOW" android:protectionLevel="signature|telephony" /> android:protectionLevel="signature|telephony|wifi" /> <!-- @SystemApi Allows an application to use {@link android.view.WindowManager.LayoutsParams#SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS} Loading core/res/res/values/attrs_manifest.xml +3 −0 Original line number Diff line number Diff line Loading @@ -298,6 +298,9 @@ <!-- Additional flag from base permission type: this permission can be automatically granted to the system telephony apps --> <flag name="telephony" value="0x400000" /> <!-- Additional flag from base permission type: this permission can be automatically granted to the system wifi app--> <flag name="wifi" value="0x800000" /> </attr> <!-- Flags indicating more context for a permission group. --> Loading Loading
api/system-current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -1756,6 +1756,7 @@ package android.content.pm { field public static final int PROTECTION_FLAG_SYSTEM_TEXT_CLASSIFIER = 65536; // 0x10000 field public static final int PROTECTION_FLAG_TELEPHONY = 4194304; // 0x400000 field public static final int PROTECTION_FLAG_WELLBEING = 131072; // 0x20000 field public static final int PROTECTION_FLAG_WIFI = 8388608; // 0x800000 field @Nullable public final String backgroundPermission; field @StringRes public int requestRes; } Loading
api/test-current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -773,6 +773,7 @@ package android.content.pm { field public static final int PROTECTION_FLAG_TELEPHONY = 4194304; // 0x400000 field public static final int PROTECTION_FLAG_VENDOR_PRIVILEGED = 32768; // 0x8000 field public static final int PROTECTION_FLAG_WELLBEING = 131072; // 0x20000 field public static final int PROTECTION_FLAG_WIFI = 8388608; // 0x800000 field @Nullable public final String backgroundPermission; } Loading
core/java/android/content/pm/PermissionInfo.java +15 −0 Original line number Diff line number Diff line Loading @@ -248,6 +248,17 @@ public class PermissionInfo extends PackageItemInfo implements Parcelable { @TestApi public static final int PROTECTION_FLAG_TELEPHONY = 0x400000; /** * Additional flag for {@link #protectionLevel}, corresponding * to the <code>wifi</code> value of * {@link android.R.attr#protectionLevel}. * * @hide */ @SystemApi @TestApi public static final int PROTECTION_FLAG_WIFI = 0x800000; /** @hide */ @IntDef(flag = true, prefix = { "PROTECTION_FLAG_" }, value = { PROTECTION_FLAG_PRIVILEGED, Loading @@ -270,6 +281,7 @@ public class PermissionInfo extends PackageItemInfo implements Parcelable { PROTECTION_FLAG_INCIDENT_REPORT_APPROVER, PROTECTION_FLAG_APP_PREDICTOR, PROTECTION_FLAG_TELEPHONY, PROTECTION_FLAG_WIFI, }) @Retention(RetentionPolicy.SOURCE) public @interface ProtectionFlags {} Loading Loading @@ -516,6 +528,9 @@ public class PermissionInfo extends PackageItemInfo implements Parcelable { if ((level & PermissionInfo.PROTECTION_FLAG_TELEPHONY) != 0) { protLevel += "|telephony"; } if ((level & PermissionInfo.PROTECTION_FLAG_WIFI) != 0) { protLevel += "|wifi"; } return protLevel; } Loading
core/res/AndroidManifest.xml +1 −1 Original line number Diff line number Diff line Loading @@ -2955,7 +2955,7 @@ @hide --> <permission android:name="android.permission.INTERNAL_SYSTEM_WINDOW" android:protectionLevel="signature|telephony" /> android:protectionLevel="signature|telephony|wifi" /> <!-- @SystemApi Allows an application to use {@link android.view.WindowManager.LayoutsParams#SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS} Loading
core/res/res/values/attrs_manifest.xml +3 −0 Original line number Diff line number Diff line Loading @@ -298,6 +298,9 @@ <!-- Additional flag from base permission type: this permission can be automatically granted to the system telephony apps --> <flag name="telephony" value="0x400000" /> <!-- Additional flag from base permission type: this permission can be automatically granted to the system wifi app--> <flag name="wifi" value="0x800000" /> </attr> <!-- Flags indicating more context for a permission group. --> Loading