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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot