Skip to content

Commit c507c63

Browse files
u-fredthestinger
authored andcommitted
fixup! Append AppInfoExt flag for apps signed with Play signing
1 parent 11f4d1e commit c507c63

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

services/core/java/com/android/server/pm/ext/PackageExtInit.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,16 @@ private int getExtFlags() {
6464

6565
var apkSplits = pkg.getSplits();
6666
int apkSplitsSize = apkSplits.size();
67+
boolean allApksFromPlayStore = true;
6768
for (int i = 0; i < apkSplitsSize; ++i) {
68-
if (PlayStoreUtils.isSourceStampPlaySigned(apkSplits.get(i).getPath())) {
69-
flags |= (1 << AppInfoExtFlag.HAS_PLAY_STORE_SOURCE_STAMP_ON_APK_CERTS);
69+
if (!PlayStoreUtils.isSourceStampPlaySigned(apkSplits.get(i).getPath())) {
70+
allApksFromPlayStore = false;
7071
break;
7172
}
7273
}
74+
if (allApksFromPlayStore) {
75+
flags |= (1 << AppInfoExtFlag.HAS_PLAY_STORE_SOURCE_STAMP_ON_APK_CERTS);
76+
}
7377

7478
return flags;
7579
}

0 commit comments

Comments
 (0)