Updating the Version of an Application
To update the version of an application, delete the application of the old version from the server and then deploy the application of the new version.
Deleting the Application of the Old 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}, and /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, where package_name indicates the package name of the current application.
- server_ids indicates the ID list of servers where the application is deployed. You can enter multiple server IDs and obtain the server IDs by calling the API for Querying the Cloud Phone Servers.
- Example:
See Deleting a Shared Storage File in the Cloud Phone API Reference.
Deploying the Application of the New Version
Last Article: Deploying Applications
Next Article: Accessing Games
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.