Updated on 2023-10-11 GMT+08:00

Rooting

Function

By default, applications installed on cloud phones do not have root permissions. CPH lets you centrally grant root permissions to all applications or manage root permissions for each application separately.

How to Use

Grant root permissions to all applications.

If you want all applications on a cloud phone to have root permissions, call the Restarting Cloud Phones API and set ro.com.cph.non_root to 0.

Separately manage root permissions for each application.

If you do not want all applications on a cloud phone to have root permissions by default, call the Restarting Cloud Phones API and set ro.com.cph.non_root to 1.

Then, you can run commands to manage root permissions for each application separately.

Granting root permissions to a specified application:

adb shell cmd activity add-root-permission <PACKAGE>

Canceling root permissions for a specified application:

adb shell cmd activity remove-root-permission <PACKAGE>

Clearing root permissions from all applications with root permissions:

adb shell cmd activity clear-root-permission

Querying applications with root permissions:

adb shell cmd activity show-root-permission

Constraints

<PACKAGE> indicates the package name of an application. You need to restart the applications for the setting to take effect.