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

Commit 29fdb253 authored by Jonathan Klee's avatar Jonathan Klee
Browse files

Whitelist AppLounge on /e/OS to access Google account

parent 9652c310
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -79,6 +79,11 @@ public class AccountAuthenticator extends AbstractAccountAuthenticator {
    }

    public boolean isPackageOverrideAllowed(Account account, String requestingPackage, String overridePackage, CertData overrideCertificate) {
        if (requestingPackage.equals("foundation.e.apps")) {
            Log.d(TAG, "Request is coming from AppLounge. Whitelist AppLounge on /e/OS");
            return true;
        }

        // Always allow for self package
        if (requestingPackage.equals(context.getPackageName())) return true;
//        if (requestingPackage.equals("org.microg.example.authwithoverride")) return true;