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

Commit fcf473ba authored by John Wu's avatar John Wu Committed by Android (Google) Code Review
Browse files

Merge "Introduce the sharedUserMaxSdkVersion attribute"

parents 4cffc46a 5c65211e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1291,6 +1291,7 @@ package android {
    field public static final int shareInterpolator = 16843195; // 0x10101bb
    field @Deprecated public static final int sharedUserId = 16842763; // 0x101000b
    field @Deprecated public static final int sharedUserLabel = 16843361; // 0x1010261
    field public static final int sharedUserMaxSdkVersion;
    field public static final int shell = 16844180; // 0x1010594
    field public static final int shortcutDisabledMessage = 16844075; // 0x101052b
    field public static final int shortcutId = 16844072; // 0x1010528
+5 −0
Original line number Diff line number Diff line
@@ -996,6 +996,11 @@ public class ParsingPackageUtils {

    private static ParseResult<ParsingPackage> parseSharedUser(ParseInput input,
            ParsingPackage pkg, TypedArray sa) {
        int maxSdkVersion = anInteger(0, R.styleable.AndroidManifest_sharedUserMaxSdkVersion, sa);
        if ((maxSdkVersion != 0) && maxSdkVersion < Build.VERSION.RESOURCES_SDK_INT) {
            return input.success(pkg);
        }

        String str = nonConfigString(0, R.styleable.AndroidManifest_sharedUserId, sa);
        if (TextUtils.isEmpty(str)) {
            return input.success(pkg);
+7 −0
Original line number Diff line number Diff line
@@ -395,6 +395,12 @@
         this attribute unnecessary. -->
    <attr name="sharedUserLabel" format="reference" />

    <!-- The maximum device SDK version for which the application will remain in the user ID
         defined in sharedUserId. Used when the application wants to migrate out of using shared
         user ID, but has to maintain backwards compatibility with the API level specified
         and before. -->
    <attr name="sharedUserMaxSdkVersion" format="integer" />

    <!-- Internal version code.  This is the number used to determine whether
         one version is more recent than another: it has no other meaning than
         that higher numbers are more recent.  You could use this number to
@@ -1650,6 +1656,7 @@
        <attr name="revisionCode" />
        <attr name="sharedUserId" />
        <attr name="sharedUserLabel" />
        <attr name="sharedUserMaxSdkVersion" />
        <attr name="installLocation" />
        <attr name="isolatedSplits" />
        <attr name="isFeatureSplit" />
+1 −0
Original line number Diff line number Diff line
@@ -3295,6 +3295,7 @@
  <eat-comment />

  <staging-public-group type="attr" first-id="0x01df0000">
    <public name="sharedUserMaxSdkVersion" />
  </staging-public-group>

  <staging-public-group type="id" first-id="0x01de0000">