Updated on 2026-08-27 GMT+08:00

Updating Files

Scenarios

Files deployed on cloud phones need to be updated.

For example, if the /data/local/tmp/test.sh script has a new version, you need to update the new version to cloud phones.

Procedure

  1. Pack the new file into a TAR package and push it to the shared space of the cloud phone server. For details, see 1, 2, and 3 in Presetting Files.
  2. Update the file to cloud servers.

    Method 1: Restart cloud phones to deploy the file on them automatically.

    Method 2: Run appctrl applyConfig to deploy the file. For details, see appctrl Commands.

    1. If a file is associated with your services, for example, it is closely related to your application whose version matters, the file needs to be updated when the application is updated.
    2. When resetting a cloud phone, only the files in the last pushed configuration file package will be deployed. So, pack all required files instead of just the updated ones every time you update a configuration file package.

      For example, the configuration file package deployed contains 1.txt and 2.txt. Now, 2.txt needs to be updated. You need to pack 1.txt and the updated 2.txt and push them. If you only pack and push the updated 2.txt, only 2.txt will be deployed after the cloud phone reset.