Secondary user list

Fix crash in User operation when UID/serial number is empty
Logout current user in secondary user
More user info
This commit is contained in:
BinTianqi
2024-11-24 11:22:07 +08:00
parent c408e3b8ce
commit c40b94b587
10 changed files with 178 additions and 65 deletions

View File

@@ -62,6 +62,7 @@
<string name="on">On</string>
<string name="off">Off</string>
<string name="alias">Alias</string>
<string name="unknown_error">Unknown error</string>
<!--Permissions-->
<string name="click_to_activate">Click to activate</string>
@@ -455,13 +456,17 @@
<string name="support_multiuser">Support multiuser</string>
<string name="system_user">System user</string>
<string name="admin_user">Admin user</string>
<string name="headless_system_user">Headless system user</string>
<string name="demo_user">Demo user</string>
<string name="headless_system_user_mode">Headless system user mode</string>
<string name="creation_time">Creation time</string>
<string name="logout_enabled">Logout enabled</string>
<string name="ephemeral_user">Ephemeral user</string>
<string name="affiliated_user">Affiliated user</string>
<string name="user_id">UserID</string>
<string name="user_serial_number">User serial number</string>
<string name="secondary_users">Secondary users</string>
<string name="user_operation">User operation</string>
<string name="user_not_exist">User does not exist</string>
<string name="serial_number">Serial number</string>
<string name="use_uid">Use UID</string>
<string name="logout_current_user">Logout current user</string>
@@ -640,6 +645,7 @@
<string name="info_suspend_app">A suspended package will not be able to start activities. Its notifications will be hidden, it will not show up in recent activities, will not be able to show toasts or dialogs or ring the device.\nSome apps cannot be suspended, such as device admins, the active launcher and the default dialer.</string>
<string name="info_disable_user_control">User will not be able to clear app data or force-stop packages.</string>
<string name="info_keep_uninstalled_apps">Set a list of apps to keep around as APKs even if no user has currently installed it. </string>
<string name="info_headless_system_user_mode">Headless system user mode means the system user runs system services and some system UI, but it is not associated with any real person and additional users must be created to be associated with real persons.</string>
<string name="info_user_operation">It is recommended to specify a user with serial number, you can also use UID, the UID should be any of the apps in the target user.</string>
<string name="info_affiliated_id">When Device owner create a managed user, the managed user isn\'t affiliated. In order to make the managed user affiliated with the Device owner, you should set same affiliated IDs in main user and managed user</string>
<string name="info_reset_password">Set a new lockscreen password. The length of this password must be at least 4 digits. Keep it empty to remove password.\nIf you set a numeric password that length is 6 or lower, it will set as PIN</string>