Optimize code

Pop a toast instead of crash when creating user failed
Add popToast function
Update READMEs
This commit is contained in:
BinTianqi
2025-08-21 09:11:36 +08:00
parent b3d746083f
commit c745eb25a9
13 changed files with 97 additions and 81 deletions

View File

@@ -57,7 +57,7 @@ Solutions:
> [!NOTE]
> Some systems have features such as app cloning and children space, which are usually users.
### MIUI
### MIUI & HyperOS
```text
java.lang.SecurityException: Neither user 2000 nor current process has android.permission.MANAGE_DEVICE_ADMINS.
@@ -65,7 +65,7 @@ java.lang.SecurityException: Neither user 2000 nor current process has android.p
Solutions:
- Enable `USB debugging (Security setting)` in developer options.
- Execute activating command in root shell.
- Or execute activating command in root shell.
### ColorOS
@@ -75,6 +75,14 @@ java.lang.IllegalStateException: Unexpected @ProvisioningPreCondition
Solution: Use OwnDroid testkey version
### Samsung
```text
user limit reached
```
Samsung restricts Android's multiple users feature. There is currently no solution.
## API
| ID | Extras | Minimum Android version |