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

Commit 53adef23 authored by Abhishek Aggarwal's avatar Abhishek Aggarwal
Browse files

Settings: mark eDrive as safe to be opened by accountManager

parent cb3135bd
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -196,6 +196,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);