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

Commit 5f5b0f0d authored by Chen Xu's avatar Chen Xu Committed by Android (Google) Code Review
Browse files

Merge "Do not allow premium SMS during SuW" into nyc-mr1-dev

parents 1514d575 15f55ca2
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1044,6 +1044,12 @@ public abstract class SMSDispatcher extends Handler {
                return true;    // not a premium short code
            }

            // Do not allow any premium sms during SuW
            if (Settings.Global.getInt(mResolver, Settings.Global.DEVICE_PROVISIONED, 0) == 0) {
                Rlog.e(TAG, "Can't send premium sms during Setup Wizard");
                return false;
            }

            // Wait for user confirmation unless the user has set permission to always allow/deny
            int premiumSmsPermission = mUsageMonitor.getPremiumSmsPermission(
                    tracker.mAppInfo.packageName);