VMOS Cloud API
  • 简体中文
  • English
  • 简体中文
  • English
  • Product Introduction
  • Product Type
  • Product Billing
  • OpenAPI
    • Getting Started
    • API Documentation
    • LLMs.txt (AI Quick Reference)
    • OpenAPI Spec (for AI & tools)
    • Error Code
    • Instance Property List
    • Android device modification attribute list
    • Callback Task Business Type Codes
    • Changelog
    • Mobile Root Certificate Format Specification
  • Android SDK
    • Example Construction
    • API Documentation
    • Callback Functions
    • Error Code
    • Changelog
  • Web H5 SDK
    • Example Build
    • API Documentation
    • H5 SDK Callback Functions
    • Error Code
    • Change log
  • Windows PC SDK
    • Example Setup
    • API Documentation
    • Callback Functions
    • Changelog
  • Edge-Cloud Communication Development
    • AIDL Integration Method
    • System Service API (AIDL)
  • Similar to XP, LSP Hook framework

    • Xposed-like / LSPosed Framework
    • Sensor Data Dynamic Simulation
  • Related agreements

Callback Task Business Type Codes

Task execution business callback reference codes and reference JSON

Task Business TypetaskBusinessTypeReference Callback JSON
Instance Status999{"padCode":"ACN315009312096256","padStatus":10,"padConnectStatus":0,"taskBusinessType":999}
Instance Restart Task1000{ "endTime": null, "padCode": "AC32010230013", "taskBusinessType": 1000, "taskContent": "", "taskId": 10609, "taskResult": "Success", "taskStatus": 3}
Instance Reset Task1001{"endTime": null,"padCode": "AC32010230014","taskBusinessType": 1001,"taskContent": "","taskId": 10610,"taskResult": "Success","taskStatus": 3 }
Async ADB Task Execution1002{ "cmd": "cd /root;ls", "cmdResult": "/system/bin/sh: cd: /root: No such file or directory", "endTime": 1734942133000, "padCode": "AC32010230014", "taskContent": null, "taskId": 10614, "taskResult": "/system/bin/sh: cd: /root: No such file or directory", "taskStatus": 3}
App Installation Task1003{"endTime": 1734939747000,"padCode": "AC32010230014","taskBusinessType": 1003,"taskContent": "","taskId": 10613,"taskResult": "Success","taskStatus": 3}
App Uninstallation Task1004{"endTime": 1734940052000,"padCode": "AC32010230014","taskBusinessType": 1004,"taskContent": "","taskId": null,"taskResult": "Success","taskStatus": 3}
App Start/Stop Task1007 / 1005{"packageName": "com.quark.browser","padCode": "AC32010230014","taskId": 10618,"taskStatus": 3}
Instance File Upload Task1009{"errorCode": null,"fileId": "cfec132ab3c4e1aff5515c4467d9bbe460","padCode": "AC32010230014","result": true,"taskBusinessType": 1009,"taskId": 10659,"taskResult": "Success","taskStatus": 3}
Instance Upgrade Image Task1012{"endTime": 1734939473335,"padCode": "AC32010230013","taskBusinessType": 1012,"taskContent": "","taskId": 10612,"taskResult": "Success","taskStatus": 3}
One-Click New Device1124{"endTime": 1734947364915,"padCode": "AC32010230012","taskBusinessType": 1124,"taskContent": {"ro.product.system.name": "X7"// ... contains other key-value pairs, only one example shown here},"taskId": 14655,"taskResult": "Success","taskStatus": 3}
Backup Size Calculation1403{"eventType":"backupCalculate","taskBusinessType":1403,"taskId":"100001","padCode":"AC32010601132","taskStatus":3,"status":"ready","totalSize":4294967296}
Image Upload Task4001{"imageId":"img-2505244083465456","taskBusinessType":4001,"taskStatus":-1,"failMsg":"URL address error"}

See Backup Size Calculation Callback for details.

Event Callback Type Codes

Event callbacks use eventType instead of taskBusinessType.

Event TypeeventTypeReference Callback JSON
padCode changepadCodeChange{"eventType":"padCodeChange","oldPadCode":"AC32010601132","newPadCode":"AC32010702556","timestamp":1790553600000}
SMS Sent69{"eventType":69,"timestamp":1788423101737,"eventDetail":{"padCode":"AC32010601132","phoneNumber":"MDcwMjI0MDI4NTM=","smsContent":"RUhfU01TX0UyRV8yNjA5MDNfMTYxMw==","sendTime":1788423101711}}

phoneNumber and smsContent are Base64-encoded. See SMS Sending Event Callback for details.

After the device padCode changes successfully, the same callback returns oldPadCode and newPadCode. See padCode Change Callback for the contract.

Prev
Android device modification attribute list
Next
Changelog