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

Commit 1692cf9c authored by Jonathan Klee's avatar Jonathan Klee
Browse files

Spoof signingInfo for microG

Spoof PackageInfo signingInfo + signatures so that G suite apps
does not complain anymore.
parent 065ec3d4
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -1572,6 +1572,14 @@ public class ComputerEngine implements Computer {
            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
                            )
                    );
                });
            }