VMOS Cloud API
  • 简体中文
  • English
  • 简体中文
  • English
  • Product Introduction
  • Product Type
  • Product Billing
  • OpenAPI
    • API Documentation
    • Error Code
    • Instance Property List
    • Android Device Modification Properties List
  • Android SDK
    • Example Construction
    • Interface Description
    • Callback Function
    • Error Code
    • Changelog
  • Web H5 SDK
    • Example Build
    • API description
    • Callback Functions
    • Error Code
    • Change log
  • Windows PC SDK
    • Example Setup
    • API Documentation
    • Callback Functions
    • Changelog
  • Edge-Cloud Communication Development
    • System service interface (aidl)
    • System Service API (AIDL)
  • Similar to XP, LSP Hook framework
  • Related agreements

Interface Method Descriptions

ControlInterface.java (Control Utility Class)

1. void isOpenGms(boolean isOpen)

Description: Enables or disables Google Mobile Services (GMS).

ParameterTypeDescription
isOpenbooleantrue enables GMS, false disables it.

2. void sendMessage(String message)

Description: Sends a message.

ParameterTypeDescription
messageStringThe message content to be sent.

3. void setGpsLocation(double latitude, double longitude)

Description: Sets the GPS location.

ParameterTypeDescription
latitudedoubleLatitude value (between -90 and 90).
longitudedoubleLongitude value (between -180 and 180).

4. void setFrame(int width, int height)

Description: Adjusts screen resolution.

ParameterTypeDescription
widthintScreen width.
heightintScreen height.

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

Description: Activates a proxy with username and password authentication.

ParameterTypeDescription
ipStringProxy server IP address.
portintProxy server port number.
accountStringProxy username.
passwordStringProxy password.
proxyTypeStringProxy type (e.g., proxy, vpn).
proxyNameStringProxy name (e.g., http-relay, socks5).

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

Description: Activates a proxy without requiring user authentication.

ParameterTypeDescription
ipStringProxy server IP address.
portintProxy server port number.
proxyTypeStringProxy type (e.g., proxy, vpn).
proxyNameStringProxy name (e.g., http-relay, socks5).

7. void setProxyPassPackageName(String packageName)

Description: Sets the application package name to bypass the proxy.

ParameterTypeDescription
packageNameStringPackage name of the app to bypass proxy.

8. void closeProxy()

Description: Terminates the current proxy connection.


9. void startCameraVideo(String path, boolean isLoop)

Description: Starts injecting a camera video.

ParameterTypeDescription
pathStringPath where the video file is stored.
isLoopbooleantrue for loop playback, false otherwise.

10. void stopCameraVideo()

Description: Stops camera video recording.


11. List<String> getProxyPassPackageName()

Description: Retrieves a list of application package names that bypass the proxy.

Return ValueTypeDescription
ListList<String>List of package names bypassing the proxy.

12. void startImage(String path)

Description: Loads and displays an image.

ParameterTypeDescription
pathStringPath to the image file.

RootInterface.java (Root Utility Class)

1. void allRoot(boolean isRoot)

Description: Toggles global root access.

ParameterTypeDescription
isRootbooleantrue enables global root access, false disables it.

2. void setRootPackageName(String packageName, boolean isRoot)

Description: Toggles root access for a specific application package.

ParameterTypeDescription
packageNameStringApplication package name.
isRootbooleantrue enables, false disables root access.

3. boolean isRoot(String packageName)

Description: Checks if a specific application package has root access.

ParameterTypeDescription
packageNameStringApplication package name.
Return ValueTypeDescription
Return Valuebooleantrue if the app has root access, false otherwise.

4. boolean isAllRoot()

Description: Checks if global root access is enabled.

Return ValueTypeDescription
Return Valuebooleantrue if global root access is enabled, false otherwise.

Real Machine Message Forwarding to Cloud Machine

Add MessageInterface.aidl file to aidl.cloud.api.server directory.
Create a Service that extends MessageInterface.Stub() and implement the message method in the interface.

1. void message(int type, String data)

Description: Message forwarding.

ParameterTypeDescription
typeintMessage type.
dataStringMessage content.

Fetching Backend-Assigned Task Download Progress

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

Description: Notifies the end of an APK download task.

ParameterTypeDescription
packageNameStringApplication package name.
appNameStringApplication name.
taskIdlongUnique identifier for the task.

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

Description: Notifies the start of an APK download task.

ParameterTypeDescription
packageNameStringApplication package name.
iconUrlStringURL of the application icon.
appNameStringApplication name.
taskIdlongUnique identifier for the task.
pathStringStorage path for the downloaded APK.

3. void apkProgress(String packageName, int progress)

Description: Notifies APK download progress.

ParameterTypeDescription
packageNameStringApplication package name.
progressintCurrent download progress (0–100).

4. void apkDownloadFail(String packageName)

Description: Notifies APK download failure.

ParameterTypeDescription
packageNameStringApplication package name.

Note: Usually, progress is integrated with the launcher package name com.android.mxLauncher3. For other package names, contact business support or customer service for customization.

Prev
System service interface (aidl)