Enable SMS in carrier demo mode
am: f8a10959d2
Change-Id: Icc96ba3c6fafa5df0327297ed81f8c8dff8818fe
This commit is contained in:
@@ -353,6 +353,10 @@ public class RetailDemoModeService extends SystemService {
|
|||||||
um.setUserRestriction(UserManager.DISALLOW_OUTGOING_CALLS, false, user);
|
um.setUserRestriction(UserManager.DISALLOW_OUTGOING_CALLS, false, user);
|
||||||
// Disallow rebooting in safe mode - controlled by user 0
|
// Disallow rebooting in safe mode - controlled by user 0
|
||||||
um.setUserRestriction(UserManager.DISALLOW_SAFE_BOOT, true, UserHandle.SYSTEM);
|
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.putIntForUser(getContext().getContentResolver(),
|
||||||
Settings.Secure.SKIP_FIRST_USE_HINTS, 1, userInfo.id);
|
Settings.Secure.SKIP_FIRST_USE_HINTS, 1, userInfo.id);
|
||||||
|
|||||||
Reference in New Issue
Block a user