Loading api/system-current.txt +1 −0 Original line number Original line Diff line number Diff line Loading @@ -389,6 +389,7 @@ package android.app { field public static final String OPSTR_POST_NOTIFICATION = "android:post_notification"; field public static final String OPSTR_POST_NOTIFICATION = "android:post_notification"; field public static final String OPSTR_PROJECT_MEDIA = "android:project_media"; field public static final String OPSTR_PROJECT_MEDIA = "android:project_media"; field public static final String OPSTR_READ_CLIPBOARD = "android:read_clipboard"; field public static final String OPSTR_READ_CLIPBOARD = "android:read_clipboard"; field public static final String OPSTR_READ_DEVICE_IDENTIFIERS = "android:read_device_identifiers"; field public static final String OPSTR_READ_ICC_SMS = "android:read_icc_sms"; field public static final String OPSTR_READ_ICC_SMS = "android:read_icc_sms"; field public static final String OPSTR_READ_MEDIA_AUDIO = "android:read_media_audio"; field public static final String OPSTR_READ_MEDIA_AUDIO = "android:read_media_audio"; field public static final String OPSTR_READ_MEDIA_IMAGES = "android:read_media_images"; field public static final String OPSTR_READ_MEDIA_IMAGES = "android:read_media_images"; Loading core/java/android/app/AppOpsManager.java +1 −0 Original line number Original line Diff line number Diff line Loading @@ -1159,6 +1159,7 @@ public class AppOpsManager { @SystemApi @SystemApi public static final String OPSTR_ACCESS_ACCESSIBILITY = "android:access_accessibility"; public static final String OPSTR_ACCESS_ACCESSIBILITY = "android:access_accessibility"; /** @hide Read device identifiers */ /** @hide Read device identifiers */ @SystemApi public static final String OPSTR_READ_DEVICE_IDENTIFIERS = "android:read_device_identifiers"; public static final String OPSTR_READ_DEVICE_IDENTIFIERS = "android:read_device_identifiers"; /** @hide Query all packages on device */ /** @hide Query all packages on device */ public static final String OPSTR_QUERY_ALL_PACKAGES = "android:query_all_packages"; public static final String OPSTR_QUERY_ALL_PACKAGES = "android:query_all_packages"; Loading telephony/common/com/android/internal/telephony/SmsApplication.java +3 −3 Original line number Original line Diff line number Diff line Loading @@ -205,7 +205,7 @@ public final class SmsApplication { < android.os.Process.FIRST_APPLICATION_UID) { < android.os.Process.FIRST_APPLICATION_UID) { return contextUserId; return contextUserId; } else { } else { return UserHandle.getUserId(callingUid); return UserHandle.getUserHandleForUid(callingUid).getIdentifier(); } } } } Loading Loading @@ -811,10 +811,10 @@ public final class SmsApplication { // This should never happen in prod -- unit tests will put the receiver into a // This should never happen in prod -- unit tests will put the receiver into a // unusual state where the pending result is null, which produces a NPE when calling // unusual state where the pending result is null, which produces a NPE when calling // getSendingUserId. Just pretend like it's the system user for testing. // getSendingUserId. Just pretend like it's the system user for testing. userId = UserHandle.USER_SYSTEM; userId = UserHandle.SYSTEM.getIdentifier(); } } Context userContext = mContext; Context userContext = mContext; if (userId != UserHandle.USER_SYSTEM) { if (userId != UserHandle.SYSTEM.getIdentifier()) { try { try { userContext = mContext.createPackageContextAsUser(mContext.getPackageName(), 0, userContext = mContext.createPackageContextAsUser(mContext.getPackageName(), 0, UserHandle.of(userId)); UserHandle.of(userId)); Loading Loading
api/system-current.txt +1 −0 Original line number Original line Diff line number Diff line Loading @@ -389,6 +389,7 @@ package android.app { field public static final String OPSTR_POST_NOTIFICATION = "android:post_notification"; field public static final String OPSTR_POST_NOTIFICATION = "android:post_notification"; field public static final String OPSTR_PROJECT_MEDIA = "android:project_media"; field public static final String OPSTR_PROJECT_MEDIA = "android:project_media"; field public static final String OPSTR_READ_CLIPBOARD = "android:read_clipboard"; field public static final String OPSTR_READ_CLIPBOARD = "android:read_clipboard"; field public static final String OPSTR_READ_DEVICE_IDENTIFIERS = "android:read_device_identifiers"; field public static final String OPSTR_READ_ICC_SMS = "android:read_icc_sms"; field public static final String OPSTR_READ_ICC_SMS = "android:read_icc_sms"; field public static final String OPSTR_READ_MEDIA_AUDIO = "android:read_media_audio"; field public static final String OPSTR_READ_MEDIA_AUDIO = "android:read_media_audio"; field public static final String OPSTR_READ_MEDIA_IMAGES = "android:read_media_images"; field public static final String OPSTR_READ_MEDIA_IMAGES = "android:read_media_images"; Loading
core/java/android/app/AppOpsManager.java +1 −0 Original line number Original line Diff line number Diff line Loading @@ -1159,6 +1159,7 @@ public class AppOpsManager { @SystemApi @SystemApi public static final String OPSTR_ACCESS_ACCESSIBILITY = "android:access_accessibility"; public static final String OPSTR_ACCESS_ACCESSIBILITY = "android:access_accessibility"; /** @hide Read device identifiers */ /** @hide Read device identifiers */ @SystemApi public static final String OPSTR_READ_DEVICE_IDENTIFIERS = "android:read_device_identifiers"; public static final String OPSTR_READ_DEVICE_IDENTIFIERS = "android:read_device_identifiers"; /** @hide Query all packages on device */ /** @hide Query all packages on device */ public static final String OPSTR_QUERY_ALL_PACKAGES = "android:query_all_packages"; public static final String OPSTR_QUERY_ALL_PACKAGES = "android:query_all_packages"; Loading
telephony/common/com/android/internal/telephony/SmsApplication.java +3 −3 Original line number Original line Diff line number Diff line Loading @@ -205,7 +205,7 @@ public final class SmsApplication { < android.os.Process.FIRST_APPLICATION_UID) { < android.os.Process.FIRST_APPLICATION_UID) { return contextUserId; return contextUserId; } else { } else { return UserHandle.getUserId(callingUid); return UserHandle.getUserHandleForUid(callingUid).getIdentifier(); } } } } Loading Loading @@ -811,10 +811,10 @@ public final class SmsApplication { // This should never happen in prod -- unit tests will put the receiver into a // This should never happen in prod -- unit tests will put the receiver into a // unusual state where the pending result is null, which produces a NPE when calling // unusual state where the pending result is null, which produces a NPE when calling // getSendingUserId. Just pretend like it's the system user for testing. // getSendingUserId. Just pretend like it's the system user for testing. userId = UserHandle.USER_SYSTEM; userId = UserHandle.SYSTEM.getIdentifier(); } } Context userContext = mContext; Context userContext = mContext; if (userId != UserHandle.USER_SYSTEM) { if (userId != UserHandle.SYSTEM.getIdentifier()) { try { try { userContext = mContext.createPackageContextAsUser(mContext.getPackageName(), 0, userContext = mContext.createPackageContextAsUser(mContext.getPackageName(), 0, UserHandle.of(userId)); UserHandle.of(userId)); Loading