Some improvement of Create user and User operation

Use User ID in User operation
Add icons to buttons in User operation
Display created user serial number in a dialog
Catch exception when creating user, close #99
Create user in background
This commit is contained in:
BinTianqi
2025-02-08 22:04:35 +08:00
parent 9528d3eb8d
commit 9ecd87da71
6 changed files with 75 additions and 44 deletions

View File

@@ -537,14 +537,13 @@
<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_id" translatable="false">User ID</string>
<string name="user_serial_number">User serial number</string>
<string name="secondary_users">Secondary users</string>
<string name="no_secondary_users">No 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>
<string name="start_in_background">Start in background</string>
<string name="user_operation_switch">Switch</string>
@@ -553,7 +552,7 @@
<string name="create_user_skip_wizard">Skip wizard</string>
<string name="create_user_ephemeral_user">Ephemeral user</string>
<string name="create_user_enable_all_system_app">Enable all system app</string>
<string name="serial_number_of_new_user_is">Serial number of this user: %1$s</string>
<string name="serial_number_of_new_user_is">Serial number of this user: %1$d</string>
<string name="affiliation_id">Affiliation ID</string>
<string name="change_user_icon">Change user icon</string>
<string name="file_picker_instead_gallery">Use file picker instead of gallery</string>
@@ -727,7 +726,6 @@
<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>
<string name="info_screen_timeout">Set the maximum time for user activity until the device will lock. This limits the length that the user can set.\nA value of 0 means there is no restriction.</string>