ARMCLOUD Documentation Center
  • 简体中文
  • English
  • 简体中文
  • English
  • Product introduction
  • Product billing
  • Server OpenAPI
    • Usage Guide
    • API Signature v1.0
    • API Reference
    • Error Codes
    • Callback Business Type Codes
    • Instance List
    • Android Instance Property List
    • Changelog
  • Android SDK
    • Example Setup
    • Interface Description
    • Callback Function
    • Error Code
    • Changelog
  • Web H5 SDK
    • Example Setup
    • Interface Description
    • Callback Function
    • Error Code
    • Changelog
  • Windows PC SDK
    • Example Setup
    • Interface Description
    • Callback Function
    • Changelog
  • Edge-Cloud Communication Development
    • AIDL Access Method
    • System Service API (AIIDL)
  • Scenario solutions
    • XP-like LSP Hook framework
    • Dynamic simulation of sensor data
  • ADI Collection Tool
  • FAQ
    • Platform Basics
    • Storage
    • Network Connectivity
    • Application Management
    • Development and Integration
    • Performance Optimization
    • Billing
    • Technical Support
  • Related agreements
    • Cloud Phone SDK Privacy Policy

Interface Method Description

ControlInterface.java (Control Tool Class)

1. void isOpenGms(boolean isOpen)

Description: Enable or disable GMS (Google Mobile Services) functionality.

ParametersTypeDescription
isOpenbooleantrue means enabling GMS, false means disabling GMS

2. void sendMessage(String message)

Description: Send a message.

ParametersTypeDescription
messageStringThe message content that needs to be sent

3. void setGpsLocation(double latitude, double longitude)

Description: Set GPS location.

ParametersTypeDescription
latitudedoubleLatitude values (between -90 and 90)
longitudedoubleLongitude value (between -180 and 180)

4. void setFrame(int width, int height)

Description: Modify screen resolution.

ParametersTypeDescription
widthintScreen width
heightintScreen height

5. void openProxyUser(String ip, int port, String account, String password, String proxyType, String proxyName)

Description: Open a proxy and authenticate using your username and password.

ParametersTypeDescription
ipStringThe IP address of the proxy server
portintThe port number of the proxy server
accountStringAgent account name
passwordStringProxy account password
proxyTypeStringProxy Methods (proxy, VPN)
proxyNameStringProxy name (http-relay, socks5)

6. void openProxy(String ip, int port, String proxyType, String proxyName)

Description: Open a proxy that does not require user authentication.

ParametersTypeDescription
ipStringThe IP address of the proxy server
portintThe port number of the proxy server
proxyTypeStringProxy Methods (proxy, VPN)
proxyNameStringProxy name (http-relay, socks5)

7. void setProxyPassPackageName(String packageName)

Description: Set the name of the application package to bypass proxy access.

ParametersTypeDescription
packageNameStringThe name of the application package that needs to be accessed by bypassing the proxy

8. void closeProxy()

Description: Close the current proxy connection.


9. void startCameraVideo(String path, boolean isLoop)

Description: Start injecting the camera video.

ParametersTypeDescription
pathStringVideo file save path
isLoopbooleanWhether to play videos on repeat: true means loop playback, false means not looping

10. void stopCameraVideo()

Description: Stop the camera video recording.


11. List<String> getProxyPassPackageName()

Description: Retrieve a list of all application package names that bypass proxy access.

Return valueTypeDescription
List<String>List<String>A list of all application package names that bypass proxy access
12. void startImage(String path)

Description: Start loading and display images.

ParametersTypeDescription
pathStringThe path of the image file

RootInterface.java (root utility class)

1. void allRoot(boolean isRoot)

Description: Set whether to enable global root privileges.

ParametersTypeDescription
isRootbooleantrue means enabling global root privileges, false means disabling them

2. void setRootPackageName(String packageName, boolean isRoot)

Description: Set whether the application with the specified package name has root privileges.

ParametersTypeDescription
packageNameStringApp package name
isRootbooleantrue means root permission is enabled, false means disabled

3. boolean isRoot(String packageName)

Description: Check whether the application with the specified package name has root privileges.

ParametersTypeDescription
packageNameStringApp package name
Return valueTypeDescription
Return valuebooleantrue means the app has root privileges, false means it does not

4. boolean isAllRoot()

Description: Check if global root permission is enabled.

Return valueTypeDescription
Return valuebooleantrue means global root permission is enabled, false means not

Actual device information is transmitted to cloud devices

Add the MessageInterface.aidl file to the aidl.cloud.api.server directory Create a Service that inherits from the compiled aidl file MessageInterface.Stub() Implement the message method inside the interface of MessageInterface.Stub().

1. void message(int type, String data)

Description: Message spread

ParametersTypeDescription
typeintMessage type
dataStringNews content

Get the download progress of the task sent by the backend

To create the ApkDownloaderServer directory, you need to use the same path as the aidl path and implement the ApkDownloaderInterface aidl method

1. void apkDownloaderEnd(String packageName, String appName, long taskId)

Description: Notification that the APK download task has ended.

ParametersTypeDescription
packageNameStringApp package name
appNameStringApp name
taskIdlongThe unique identifier for the download task

2. void apkDownloadStart(String packageName, String iconUrl, String appName, long taskId, String path)

Description: Notification that the APK download task has begun.

ParametersTypeDescription
packageNameStringApp package name
iconUrlStringThe URL of the app icon
appNameStringApp name
taskIdlongThe unique identifier for the download task
pathStringAPK download storage path

3. void apkProgress(String packageName, int progress)

Description: Notifies APK download progress.

ParametersTypeDescription
packageNameStringApp package name
progressintCurrent download progress, range 0-100

4. void apkDownloadFail(String packageName)

Description: APK download notification failed.

ParametersTypeDescription
packageNameStringApp package name

Note: Generally, the launcher integrates to display the progress. The package name should be com.android.mxLauncher3. For other package names, you need to get the backend download progress and contact business or customer service for customization

Prev
AIDL Access Method