Make use of config for auto-created guest users
If frameworks config config_guestUserAutoCreated=true, then Settings will: - Create a new guest user any time the current guest user is removed - Show "Guest" instead of "Add guest" - Show "Reset guest" instead of "Remove guest" Bug: 188542158 Test: With config_guestUserAutoCreated=true, delete current guest user using adb (`adb shell cmd user list -v --all` to find the user ids, then remove each guest user with `adb shell pm remove-user <id>`), then as owner, open multi-users settings page. Check that there is a item for "Guest" instead of "Add guest". Select "Guest", then confirm there is an item for "Reset guest" (it should be disabled). Select "Switch to guest", then switch back to owner. Open the multi-users settings page again. Check that "Reset guest" is now enabled. Tap "Reset guest", and press confirmation button, named "Reset". You should be take back to the main multi-user settings page and still see "Guest". Wait a few seconds, then use adb to confirm there is a guest user present. Test: With config_guestUserAutoCreated=true, switch to guest user, open multi-users settings page, check that there is an option to "Reset guest". Select "Reset guest", and press confirmation button, named "Reset". Phone should switch back to last active user, and QS tile should now show "Guest" instead of "Add guest". Run `adb shell cmd user list -v --all` to confirm guest has a new user id. Test: With config_guestUserAutoCreated=false, confirm that "Add guest" and "Remove guest" features remain unchanged Change-Id: I7d5b81bd2e5c6b999ae18cd6b1280ae0496db94b
Loading
Please register or sign in to comment