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

Commit 42dfcc77 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Enable SMS in carrier demo mode" into nyc-mr2-dev

parents e89a950b f8a10959
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -353,6 +353,10 @@ public class RetailDemoModeService extends SystemService {
        um.setUserRestriction(UserManager.DISALLOW_OUTGOING_CALLS, false, user);
        // Disallow rebooting in safe mode - controlled by user 0
        um.setUserRestriction(UserManager.DISALLOW_SAFE_BOOT, true, UserHandle.SYSTEM);
        if (mIsCarrierDemoMode) {
            // Enable SMS in carrier demo mode.
            um.setUserRestriction(UserManager.DISALLOW_SMS, false, user);
        }

        Settings.Secure.putIntForUser(getContext().getContentResolver(),
                Settings.Secure.SKIP_FIRST_USE_HINTS, 1, userInfo.id);