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

Commit 2a9fc961 authored by Jonathan Klee's avatar Jonathan Klee
Browse files

Merge branch '2858-s-fix-gapps' into 'v2.6-s'

Spoof signingInfo for microG

See merge request e/os/android_frameworks_base!258
parents 1d5fa839 9ab7622b
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -3379,6 +3379,14 @@ public class PackageManagerService extends IPackageManager.Stub
                if (isSystemApp(packageInfo.applicationInfo)) {
                    generateFakeSignature(p).ifPresent(fakeSignature -> {
                        packageInfo.signatures = new Signature[]{fakeSignature};
                        packageInfo.signingInfo = new SigningInfo(
                                new SigningDetails(
                                        new Signature[] {fakeSignature},
                                        SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3,
                                        null,
                                        null
                                )
                        );
                    });
                }