Updated on 2023-08-25 GMT+08:00

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:

Deploying the Application of the New Version

See Deploying Applications.