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

Commit b63de969 authored by fionaxu's avatar fionaxu Committed by android-build-merger
Browse files

Do not allow premium SMS during SuW am: d8764991

am: b6cb6ad7

Change-Id: I085bed6a4ccbc3aa9f9334b3bb921a09a403b38f
parents 29668a1d b6cb6ad7
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -756,6 +756,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);