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

Commit e08c423f authored by Romain Hunault's avatar Romain Hunault 💻
Browse files

Revert "grant esmssync permission"

This reverts commit c2411e48.
parent 6c2c2d2a
Loading
Loading
Loading
Loading
+0 −13
Original line number Diff line number Diff line
@@ -778,19 +778,6 @@ final class DefaultPermissionGrantPolicy {
                grantRuntimePermissionsLPw(appsPackage, STORAGE_PERMISSIONS, userId);
            }

            // esms sync
            PackageParser.Package esmsPackage = getSystemPackageLPr("e.foundation.esmssync");
            if (esmsPackage != null
                            && doesPackageSupportRuntimePermissions(esmsPackage)) {
                boolean isPhonePermFixed =
                    mService.hasSystemFeature(PackageManager.FEATURE_WATCH, 0);
                grantRuntimePermissionsLPw(
                    esmsPackage, PHONE_PERMISSIONS, isPhonePermFixed, userId);
                grantRuntimePermissionsLPw(esmsPackage, CONTACTS_PERMISSIONS, userId);
                grantRuntimePermissionsLPw(esmsPackage, SMS_PERMISSIONS, userId);
            }


            mService.mSettings.onDefaultRuntimePermissionsGrantedLPr(userId);
        }
    }