API Reference
/- Cloud Phones
- Local API
- Enable app ROOT
Install app on cloud phone
List Available Apps
List Team Apps
Delete Team App
Update Team App Installation Scope
Enable Team App Preinstallation
Update Team App Installation Policy
Update Team App ROOT Setting
Update Team App Target Version
Update Team App Configuration
Operate Team App in Batch
List Installed Apps
Launch App
Restart App
Stop App
Uninstall App
Configure App Accessibility Hiding
Enable app ROOT
Grant ROOT to specific app packages on a Cloud Phone.
- Preconditions: the phone must be powered on and not held by another member. Supported on compatible device models; on incompatible models the call succeeds but has no effect.
- Effect: pushes the package allow-list to the device and, as a side effect, turns the ROOT switch on. Nothing is stored by MoreLogin, so the grant cannot be read back through the API.
- Completion: synchronous acceptance by the service. When ROOT takes effect on the device is device-specific behaviour; MoreLogin does not restart the phone.
- Note: there is currently no endpoint to revoke ROOT for individual packages. Use
/cloudphone/enableRootto turn the global switch off.
Documented business errors: 33300, 33301. See Error Codes for what each code means. Any operation can additionally return the common codes.
- MoreLogin Local endpointhttp://127.0.0.1:40000/api/cloudphone/app/openRoot
curl -i -X POST \
http://127.0.0.1:40000/api/cloudphone/app/openRoot \
-H 'Content-Type: application/json' \
-d '{
"id": "12345678",
"packageNames": [
"com.test"
]
}'Response
{ "code": 0, "data": true, "msg": null, "requestId": "0d8b6f1c-9f4e-4d02-9d1a-7c3f5a1b2c3d" }