Interface Method Description
ControlInterface.java (Control Tool Class)
1. void isOpenGms(boolean isOpen)
Description: Enable or disable GMS (Google Mobile Services) functionality.
| Parameters | Type | Description |
|---|---|---|
isOpen | boolean | true means enabling GMS, false means disabling GMS |
2. void sendMessage(String message)
Description: Send a message.
| Parameters | Type | Description |
|---|---|---|
message | String | The message content that needs to be sent |
3. void setGpsLocation(double latitude, double longitude)
Description: Set GPS location.
| Parameters | Type | Description |
|---|---|---|
latitude | double | Latitude values (between -90 and 90) |
longitude | double | Longitude value (between -180 and 180) |
4. void setFrame(int width, int height)
Description: Modify screen resolution.
| Parameters | Type | Description |
|---|---|---|
width | int | Screen width |
height | int | Screen 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.
| Parameters | Type | Description |
|---|---|---|
ip | String | The IP address of the proxy server |
port | int | The port number of the proxy server |
account | String | Agent account name |
password | String | Proxy account password |
proxyType | String | Proxy Methods (proxy, VPN) |
proxyName | String | Proxy 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.
| Parameters | Type | Description |
|---|---|---|
ip | String | The IP address of the proxy server |
port | int | The port number of the proxy server |
proxyType | String | Proxy Methods (proxy, VPN) |
proxyName | String | Proxy name (http-relay, socks5) |
7. void setProxyPassPackageName(String packageName)
Description: Set the name of the application package to bypass proxy access.
| Parameters | Type | Description |
|---|---|---|
packageName | String | The 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.
| Parameters | Type | Description |
|---|---|---|
path | String | Video file save path |
isLoop | boolean | Whether 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 value | Type | Description |
|---|---|---|
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.
| Parameters | Type | Description |
|---|---|---|
path | String | The path of the image file |
RootInterface.java (root utility class)
1. void allRoot(boolean isRoot)
Description: Set whether to enable global root privileges.
| Parameters | Type | Description |
|---|---|---|
isRoot | boolean | true 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.
| Parameters | Type | Description |
|---|---|---|
packageName | String | App package name |
isRoot | boolean | true 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.
| Parameters | Type | Description |
|---|---|---|
packageName | String | App package name |
| Return value | Type | Description |
|---|---|---|
| Return value | boolean | true means the app has root privileges, false means it does not |
4. boolean isAllRoot()
Description: Check if global root permission is enabled.
| Return value | Type | Description |
|---|---|---|
| Return value | boolean | true 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
| Parameters | Type | Description |
|---|---|---|
| type | int | Message type |
| data | String | News 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.
| Parameters | Type | Description |
|---|---|---|
packageName | String | App package name |
appName | String | App name |
taskId | long | The 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.
| Parameters | Type | Description |
|---|---|---|
packageName | String | App package name |
iconUrl | String | The URL of the app icon |
appName | String | App name |
taskId | long | The unique identifier for the download task |
path | String | APK download storage path |
3. void apkProgress(String packageName, int progress)
Description: Notifies APK download progress.
| Parameters | Type | Description |
|---|---|---|
packageName | String | App package name |
progress | int | Current download progress, range 0-100 |
4. void apkDownloadFail(String packageName)
Description: APK download notification failed.
| Parameters | Type | Description |
|---|---|---|
packageName | String | App 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