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

Commit 1d25b687 authored by Abhishek Aggarwal's avatar Abhishek Aggarwal Committed by Nishith Khanna
Browse files

Settings: mark eDrive as safe to be opened by accountManager

parent 3c568ed4
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -262,6 +262,11 @@ public class AccountTypePreferenceLoader {
        }
        ActivityInfo resolvedActivityInfo = resolveInfo.activityInfo;
        ApplicationInfo resolvedAppInfo = resolvedActivityInfo.applicationInfo;

        if (resolvedActivityInfo.packageName.equals("foundation.e.drive")) {
            return true;
        }

        try {
            // Allows to launch only authenticator owned activities.
            ApplicationInfo authenticatorAppInf = pm.getApplicationInfo(authDesc.packageName, 0);