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

Commit 3586d52d authored by Adam Bookatz's avatar Adam Bookatz Committed by Android (Google) Code Review
Browse files

Merge "Ensure SystemApps get SMS AppOp permissions" into main

parents 6b3a33c0 218ae37f
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -239,6 +239,12 @@ public class PhoneFactory {
                }
                Rlog.i(LOG_TAG, "defaultSmsApplication: " + packageName);

                if (sFeatureFlags.smsMmsDeliverBroadcastsRedirectToMainUser()) {
                    // Explicitly call this, even if the user has no default Sms application, to
                    // ensure that the System apps have the appropriate permissions.
                    SmsApplication.grantPermissionsToSystemApps(context);
                }

                // Set up monitor to watch for changes to SMS packages
                SmsApplication.initSmsPackageMonitor(context);