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

Commit 0a23ec12 authored by Songchun Fan's avatar Songchun Fan
Browse files

[pm] fix PackageInfo.applicationInfo.targetSdkVersion for archived apps

BUG: 309841702
Test: atest
android.content.pm.cts.PackageManagerTest#testUninstallWithKeepData

Change-Id: Ia82519591a925b01046cc6c70a53361a9335e29d
parent c46f6012
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1525,6 +1525,7 @@ public class ComputerEngine implements Computer {
            ai.volumeUuid = ps.getVolumeUuid();
            ai.storageUuid = StorageManager.convert(ai.volumeUuid);
            ai.setVersionCode(ps.getVersionCode());
            ai.targetSdkVersion = ps.getTargetSdkVersion();
            ai.flags = ps.getFlags();
            ai.privateFlags = ps.getPrivateFlags();
            pi.applicationInfo = PackageInfoUtils.generateDelegateApplicationInfo(