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

Commit 51b3661b authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Adds permission granting to ImsResolver"

parents f7d420da 054de658
Loading
Loading
Loading
Loading
+8 −9
Original line number Diff line number Diff line
@@ -332,15 +332,14 @@ public class ImsServiceController {
    private void grantPermissionsToService() {
        Log.i(LOG_TAG, "Granting Runtime permissions to:" + getComponentName());
        String[] pkgToGrant = {mComponentName.getPackageName()};
        // Uncommented once changes to PackageManager go in (ims_resolver_3_3)
//        try {
//            if (mPackageManager != null) {
//                mPackageManager.grantDefaultPermissionsToEnabledImsServices(pkgToGrant,
//                        mContext.getUserId());
//            }
//        } catch (RemoteException e) {
//            Log.w(LOG_TAG, "Unable to grant permissions, binder died.");
//        }
        try {
            if (mPackageManager != null) {
                mPackageManager.grantDefaultPermissionsToEnabledImsServices(pkgToGrant,
                        mContext.getUserId());
            }
        } catch (RemoteException e) {
            Log.w(LOG_TAG, "Unable to grant permissions, binder died.");
        }
    }

    private void sendImsFeatureCreatedCallback(int slot, int feature) {