Add FAQ to READMEs

Fix #93: list hidden apps in package selector
This commit is contained in:
BinTianqi
2025-01-19 15:02:26 +08:00
parent 2dc760dbe3
commit a21db0da70
3 changed files with 107 additions and 2 deletions

View File

@@ -43,6 +43,57 @@
- 设置屏幕超时
- ...
## 激活
- Shizuku (推荐)
- 在ADB命令行中执行命令: `dpm set-device-owner com.bintianqi.owndroid/.Receiver`
## FAQ
### 激活
#### 设备上有账号
```text
java.lang.IllegalStateException: Not allowed to set the device owner because there are already some accounts on the device
```
解决办法:
- 冻结持有这些账号的app。
- 删除这些账号。
- 使用LSPosed模块 [HookDPM](https://github.com/BinTianqi/HookDPM)。
#### 设备上有多个用户
```text
java.lang.IllegalStateException: Not allowed to set the device owner because there are already several users on the device
```
解决办法:
- 删除次级用户。
- 使用LSPosed模块[HookDPM](https://github.com/BinTianqi/HookDPM)。
> [!NOTE]
> 一些系统有应用克隆、儿童空间等功能,它们通常是用户。
#### MIUI
```text
java.lang.SecurityException: Neither user 2000 nor current process has android.permission.MANAGE_DEVICE_ADMINS.
```
解决办法:
- 在开发者设置中打开`USB debugging (Security setting)`
- 在root命令行中执行激活命令
#### ColorOS
```text
java.lang.IllegalStateException: Unexpected @ProvisioningPreCondition
```
解决办法:使用 OwnDroid testkey 版本
## API
| ID | 描述 | Extras | 最小安卓版本 |