- What's New
- Service Overview
- Billing
- Getting Started
-
User Guide
- Buying a Cloud Phone Server
- Accessing the Cloud Phone
- Cloud Phone Management
- Cloud Phone Server Management
-
Using AOSP
- Overview
- Automatic Application Authorization
- Loading Pictures
- Rooting
- Startup Script
- Automatic Installation of Applications
- Hiding Virtual Keys
- Hiding the Status Bar
- Disabling the Notification System
- Disabling Screenshot Protection
- Simulating Location Information
- App Installation Whitelist
- App Installation Blacklist
- Forcibly Installing a 32-Bit Application
- Dynamically Changing the System Language
- Background Process Management
- Texture Compression
- Restarting a Cloud Phone
- Device Emulation
- Cloud Phone Audio and Video
- Configuring a Route
- Permission Management
- Adjusting Resource Quotas
- Monitoring
- CTS
- Appendix
-
Best Practices
- Best Practices of Connecting to General-Purpose Cloud Phones
-
Best Practices of Cloud Phone Application Sharing
- Overview of Application Sharing
-
Usage Guide to Application Sharing
- Purchasing a Cloud Phone Server That Supports Application Sharing
- Preparing the TAR Package of an Application
- Pushing the TAR Package of an Application to a Cloud Phone Server
- Using the appctrl Command to Manage Shared Applications
- Deleting an Application
- Presetting Configuration Files by Sharing Applications
- appctrl Commands
- Installing an Application on Cloud Phones in Batches
- Modifying the Cloud Phone GPS Location
- Using the Cloud Phone Camera
- Using STF to Manage Cloud Phones in Batches
- Allowing a Cloud Phone Server to Access a Public Network Outside the Chinese Mainland
- Delegating CPH to Operate OBS Buckets
- Changing the AOSP Version of a Cloud Phone
- Change History
-
API Reference
- Before You Start
- API Overview
- Calling APIs
- Getting Started
-
Cloud Phone Server APIs
-
Cloud Phone Servers
- Querying cloud phone servers
- Querying the Details of a Cloud Phone Server
- Querying Flavors of Cloud Phone Servers
- Purchasing a Cloud Phone Server
- Restarting Cloud Phone Servers
- Changing the Cloud Phone Server for a Cloud Phone
- Pushing Shared Storage Files
- Querying Shared Storage Files
- Deleting Shared Storage Files
- Pushing Shared Applications
- Deleting a Shared Application
- Changing the Flavor of a Cloud Phone Server
- Modifying the Name of a Cloud Phone Server
- Bandwidth
-
Cloud Phones
- Querying Cloud Phones
- Querying Cloud Phone Details
- Obtaining the Cloud Phone Access Information
- Querying Cloud Phone Flavors
- Querying the Image of a Cloud Phone
- Resetting Cloud Phones
- Restarting Cloud Phones
- Stopping Cloud Phones
- Editing the Name of a Cloud Phone
- Updating Properties of Cloud Phones
- Exporting Data from Cloud Phones
- Restoring Data of Cloud Phones
- Diverting Cloud Phone Traffic
- Expanding the Data Disk of a Cloud Phone
- Tasks
- Keys
- Encoding Services
- ADB Commands
- Tags
- Images
-
Cloud Phone Servers
- Permissions Policies and Supported Actions
- Common Parameters
- Appendix
-
FAQs
-
Consulting
- What Are the Advantages of Huawei Cloud Phone Compared with Other Similar Solutions?
- Does Cloud Phone Support iOS?
- Are There Cloud Phone Root Permissions?
- Does Each Cloud Phone Has an Independent Public IP Address?
- How Is CPH Billed?
- How Do I Obtain the Project ID?
- How Do I Install Applications on a Cloud Phone?
- How Long Does It Take to Activate a Server After I Purchase It?
- What Should I Do If I Can't Find My Cloud Phone Server on the CPH Console?
- How Long Will Resources Be Released After My Cloud Phone Server Expires?
- What Can I Do If the Private Key File Is Lost?
- How Can I Know Whether the SSH Service Has Been Installed on My Local Device?
- What Are Common ADB Commands?
- Does the Cloud Phone Support Cameras?
- Does the Cloud Phone Support Facial Recognition?
- What Are the Security Group Authorization Rules for Cloud Phones Using Custom Networks?
-
SSH Tunnel Faults
- What Can I Do If the SSH Tunnel Fails to Be Established When I Access the Cloud Phone over the Public Network?
- What Does Message "Authorized users only. All activities may be monitored and reported." Indicate?
- What Can I Do If Message "too open" Is Displayed When I Am Establishing the SSH Tunnel?
- What Can I Do If Message "Permission denied" Is Displayed When I Am Establishing the SSH Tunnel?
- What Can I Do If Message "no match mac found" Is Displayed When I Am Establishing the SSH Tunnel?
- What Can I Do If Message "no matching key exchange method found" Is Displayed When I Am Establishing the SSH Tunnel?
- How Do I Keep an SSH Session Uninterrupted?
- What Can I Do If I Failed to Establish an SSH Tunnel?
- What Can I Do If an Error Occurs When I Invoke the Cloud Phone Query API?
- ADB Connection Faults
-
Consulting
- General Reference
Show all
Copied.
Managing Cloud Phones in Batches
By calling the ADB command API to push or install the Android package (APK) installation file stored in the Object Storage Service (OBS) bucket to cloud phones in batches, you can efficiently manage cloud phones in batches. This section describes how to install APKs on cloud phones to manage cloud phones in batches.
You can install and update the APK in either of the following ways:
- Run the install command through the API. For details, see Installing the APK.
- Grant the read permission to the installation package in the OBS bucket to the CPH built-in account, and install and update the APK by file push. For details, see Pushing Files.
Constraints and Limitations
CPH has the following restrictions on batch management risk and security:
- The following control commands are supported:
shell: Enable the remote interactive shell on the cloud phone.
install: Install the software package on the cloud phone.
uninstall: Remove the software package from the cloud phone.
push: Copy a file or folder from the local device to the cloud phone.
- Improper control commands and instructions will cause the cloud phone to malfunction and cannot be recovered.
- To run the install or push command, strictly follow the instructions in Procedure, and build an APK data bucket inclusively used for batch cloud phone management to isolate the data from other data.
- To run the install or push command, the file must be in .tar format. The files in the compressed package should include all the files required by AOSP.
- On the same cloud phone server, the time consumed by file push is directly proportional to the number of files pushed.
Procedure
The following procedure demonstrates how to create a bucket for storing files and how to set permissions for the bucket. You can install and update APK only by invoking APIs.
- Log in to the management console.
- In the Service List, choose Storage > Object Storage Service.
The Buckets page is displayed.
- In the upper right corner, click Create Bucket.
Figure 1 Creating a bucket for batch management of cloud phones
- Region: Select the region where the cloud phone server is located. The specified region cannot be changed after the bucket is created.
- Default Storage Class: Select Standard.
- Bucket Policy: Select Private.
For details about other parameters, see Creating a Bucket.
- Click Create Now.
Wait until the bucket is successfully created.
- Click the name of the created bucket, choose Objects in the navigation pane on the left, and click Create Folder.
Figure 2 Objects
- Create a folder named file_{project_id}_01 and store files in the file_{project_id}_01 folder.
{project_id} indicates the project ID in the region where the cloud phone server is located. For details about how to obtain the project ID, see How Do I Obtain the Project ID?Figure 3 Creating the file_{project_id}_01 folder
NOTE:
- If there are a large number of cloud phones, you can create multiple folders, for example, file_{project_id}_01 and file_{project_id}_02, to improve the management efficiency.
- Name the folder with a timestamp or function to ease package management, for example, file_{project_id}_01/20190506122012/xxxx.tar.
- If you have hundreds of thousands of cloud phones, develop the application market based on OBS to install and upgrade the APK.
- In the navigation pane on the left, choose Permissions > Bucket Policy. On the displayed page, click Create.
Figure 4 Creating a bucket policy
- Select Directory read and write to grant the read and write permissions of the specified directory in the OBS bucket to the CPH built-in account. Click Use Policy Template.
Figure 5 Select Template
- For the Configure Policy step, configure the required parameters and click Next.
- Principal: Select Other account.
- Account ID: Enter the CPH built-in account.
CAUTION:
The CPH built-in account is mandatory and must contain the following information. You cannot enter the ID of your own account.
Account ID: 529375c06c6340f299819082b3051225
IAM User ID: 10208a4cf0944e339f523d9943ba02d3
- User Policy: Select Include specified users.
Figure 6 Configure Policy
- For resource, select Specified object in the current bucket and enter the resource name file_{project_id}_*, for example, file_0503ddaa18000ff21ff0c009e65d5482_*. Select Include specified resources for Resource Strategy and click Next.
Figure 7 Specified objects
- Confirm the policy and click Create.
Figure 8 Confirm Policy
- Click Objects. Place the .tar package to be installed in the file_{project_id}_01 folder. Call the ADB command API to test a cloud phone and check whether the authorization is successful.
The following ADB command APIs are supported:
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