- 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
Copied.
Basic Concepts
This section describes the basic concepts you need to understand before using CPH.
Servers
Servers are physical servers that provide cloud phones. You obtain cloud phones only after purchasing a server. To purchase a server and obtain the corresponding number of cloud phones, you only need to specify the server type, instance specifications, phone image, and required network configuration. For details, see Buying a Cloud Phone Server.
Quantity
Quantity refers to the number of cloud phones that can be virtualized from a server. For example, if Quantity is 60, you can have 60 cloud phones virtualized from a server.
Cloud Phone Images
Cloud phone images are OSs running on cloud phones, for example, Android. Only Android AOSP 7.1.1 is provided. In the future, Huawei EMUI will be provided. However, other OSs from the third-party vendors such as Xiaomi ROM and Apple iOS cannot be provided duo to commercial authorization and architecture inconsistency.
SSH Tunnels
An SSH tunnel is established between an SSH client and an SSH server to forward network data to a specified port for network communication. The SSH tunnel provides automatic encryption and decryption services to ensure data transmission security.
SSH tunnels support three port forwarding modes: local port forwarding, remote port forwarding, and dynamic port forwarding. The directions of local and remote port forwarding are opposite. Local port forwarding is used when accessing a cloud phone. This document focuses on the working principle of local port forwarding.
Assume that local host A1 is the SSH client and remote cloud host B1 is the SSH server. Log in to host B1 from the host A1 through SSH and specify different port forwarding options (-L, -R, and -D). Then the SSH tunnel between host A1 and host B1 is established and data can be forwarded among different ports.
- Scenarios
A service is running on the remote cloud server B1 and the port number is 2000. The local host A1 needs to access the service. Assume that the IP address of cloud server B1 is 122.x.x.x, and the access address of the service is http://122.x.x.x:2000.
- Why is local port forwarding required?
Generally, only port 22 is enabled on the firewall of the cloud server by default. To access port 2000, modify the firewall. To ensure security, configure the IP addresses that are allowed to access the firewall. However, the public IP address of the cloud server is usually dynamically allocated by the network provider. If the public IP address is changed, the firewall configuration needs to be frequently modified, causing unnecessary troubles.
- What is local port forwarding?
In local port forwarding, requests sent to the local port are forwarded to the destination port. In this way, the service on the destination port can be accessed. Use the -L option to specify the port to be forwarded. The syntax is as follows:
ssh -L Local port: Destination address: Destination port
Example:
ssh -L 3000:targethost:2000 root@122.x.x.x In this example, after you log in to remote cloud server B1 from local host A1, the requests sent to port 3000 of local host A1 are forwarded to port 2000 of remote cloud server B1.
As a result, the local host A1 can access services on the remote cloud server B1 by accessing http://122.x.x.x:2000.
- Extended applications
In the foregoing syntax, the destination address may also be an address of another host. For example, the destination address is a private IP address of the cloud phone, the local host A1 is the local device, and the remote cloud server B1 is the cloud phone server. To access the cloud phone, the command for establishing an SSH tunnel is:
ssh -L Local port: Private IP address of the cloud phone: Destination port Username@Public IP address of the server
In addition, -N and -f are common options for establishing an SSH tunnel.
- -N: indicates that the SSH server is not connected after the SSH tunnel is established. -N and -f are usually used together.
- -f: indicates that the SSH tunnel is running in the background.
ADB
ADB is a command line tool to bridge the communications between an Android device and a desktop computer. It is a unique application of the Android OS. You can use ADB commands to perform a variety of operations, such as installing and debugging apps.
For more information about ADB commands, see What Are Common ADB Commands? or visit https://developer.android.com/studio/command-line/adb.
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