Batch Set Root Privileges, allowing specific APK package names to be specified and supporting up to 20 cloud devices.
POST
/api/v1/cloudPhone/root
Parameter | Type | Required | Description |
---|---|---|---|
image_ids | array | Yes | Cloud phone IDs |
status | integer | Yes | Root Switch: 1 - Enable all; 2 - Disable all; 3 - Enable specified package names; 4 - Disable specified package names |
pkgs | array | No | Package Name(Required when status is 3 or 4) |
{
"image_ids": ["xx"],
"status": 3,
"packages":["xxx","xxx2"]
}
{
"code": 200,
"data": {
"success": [ // Successfully cloud phone IDs
"FnR9i"
],
"fail": [], // Failed cloud phone IDs
"fail_reason": [
"xx": "error message"
]
},
"message": "Success"
}