docs: bypass creating work profile restriction (#242)

Fix CI build pushing
This commit is contained in:
BinTianqi
2026-02-17 15:44:11 +08:00
parent 2cd2ce4449
commit 9cc465f2d6
6 changed files with 39 additions and 14 deletions

View File

@@ -51,11 +51,7 @@ Solutions:
java.lang.IllegalStateException: Not allowed to set the device owner because there are already several users on the device
```
Solutions:
- Delete secondary users.
> [!NOTE]
> Some systems have features such as app cloning and children space, which are usually users.
Solution: Delete secondary users, including work profile, private space and app cloning.
### Device owner is already set
@@ -91,6 +87,19 @@ user limit reached
Samsung restricts Android's multiple users feature. There is currently no solution.
### Create work profile
On most devices, creating work profile is not allowed by the system when the device owner exist.
Because the system add `no_add_managed_profile` user restriction when a device owner is set.
Device owner can't modify user restrictions set by the system, but if your device is rooted, you can disable this restriction by executing the following commands in adb shell.
```shell
pm set-user-restriction no_add_user 0
pm set-user-restriction no_add_managed_profile 0
pm set-user-restriction no_add_private_profile 0
pm set-user-restriction no_add_clone_profile 0
```
## API
OwnDroid provides an Intent-based API. You need to set the API key in settings and enable the API. The numbers in brackets represent the minimum Android version required.