Updating the Version of an Application
Servers of Storage 2.0 (Recommended)
Uninstall an application from your cloud phone.
Push the latest application.
Run the appctrl start command to start the application of the latest version.
Servers of Storage 1.0
To update the version of an application, delete the application of the earlier version from the server and deploy the application of the new version.
Deleting the Application of an Earlier Version
- Example API
POST https://{CPH Endpoint}/v1/{project_id}/cloud-phone/phones/share-files Header: Content-Type: application/json X-Auth-Token: ${token} Body: { "file_paths": [ "/data/app/${package_name}-1", "/data/app/${package_name}-2", "/data/data/${package_name}", "/data/media/0/Android/data/${package_name}" ], "server_ids": [ "${server_id1}", "${server_id2}" ] }
Delete the following files from the shared storage on servers ${server_id1} and ${server_id2}:
/data/app/${package_name}-1
/data/app/${package_name}-2
/data/data/${package_name}
/data/media/0/Android/data/${package_name}
Parameter descriptions:- Obtain the values of parameters such as CPH Endpoint, project_id, and ${token} by referring to Installing Applications on a Cloud Phone.
- The content of file_paths is the same as that of include_files in Generating the TAR Package of the Application and Pushing It to the OBS Bucket. package_name indicates the package name of the current application.
- server_ids indicates IDs of servers where the application is deployed. You can enter multiple server IDs. To obtain the server IDs, call the API for Querying Cloud Phone Servers.
- Example
For details, see Deleting a Shared Storage File in the Cloud Phone Host API Reference.
Deploying the Application of the New Version
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