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:

Deploying the Application of the New Version

See Deploying Applications.