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

Commit 51a115fa authored by Mohammed Althaf T's avatar Mohammed Althaf T 😊
Browse files

Merge branch 'lineage-19.1' of e/os/android_frameworks_base into v1-s

Change-Id: Ia1cc9f7c78a819981c3d6c7dd25ed13d0d940c26
parents 80e5f13a 74e3943c
Loading
Loading
Loading
Loading
+12 −8
Original line number Diff line number Diff line
@@ -3379,14 +3379,18 @@ public class PackageManagerService extends IPackageManager.Stub
                if (isSystemApp(packageInfo.applicationInfo)) {
                    generateFakeSignature(p).ifPresent(fakeSignature -> {
                        packageInfo.signatures = new Signature[]{fakeSignature};
                        try {
                            packageInfo.signingInfo = new SigningInfo(
                                    new SigningDetails(
                                        new Signature[] {fakeSignature},
                                            packageInfo.signatures,
                                            SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3,
                                        null,
                                            PackageParser.toSigningKeys(packageInfo.signatures),
                                            null
                                    )
                            );
                        } catch (CertificateException e) {
                            Slog.e(TAG, "Caught an exception when creating signing keys: ", e);
                        }
                    });
                }