Starting point for User Restrictions API
Restrictions saved as key/value pairs, mostly booleans right now but might be expanded to other types later. Save and restore restrictions in the user manager service. Enforce some of the restrictions at the framework level. Some are enforced (also) at the app level, such as in Settings. Change-Id: Id11ffe129cb6a177e094edf79635727388c26f40
This commit is contained in:
@ -1889,7 +1889,7 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
|
||||
mHandler.post(new Runnable() {
|
||||
public void run() {
|
||||
try {
|
||||
ActivityManagerNative.getDefault().switchUser(0);
|
||||
ActivityManagerNative.getDefault().switchUser(UserHandle.USER_OWNER);
|
||||
((UserManager) mContext.getSystemService(Context.USER_SERVICE))
|
||||
.removeUser(userHandle);
|
||||
} catch (RemoteException re) {
|
||||
|
Reference in New Issue
Block a user