Enable SMS in carrier demo mode
Fixes: 34861667 Test: manually verified default SMS app works in carrier demo mode. Change-Id: Ic6f1065954e5bb54c6b78b3d604811333f6863e4
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user