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

Commit 6594a07c authored by Justin Klaassen's avatar Justin Klaassen Committed by android-build-merger
Browse files

Enable SMS in carrier demo mode am: f8a10959

am: d9a1ed0c

Change-Id: I2ea950f526f3fbf4e4de7deae930de0a87180cc8
parents f246bea9 d9a1ed0c
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -345,6 +345,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(mInjector.getContentResolver(),
                Settings.Secure.SKIP_FIRST_USE_HINTS, 1, userInfo.id);