How to Turn Off the Terminal Using the AIDL Interface
The system provides the AIDL interface to turn off terminal, When connect the service, the package name is com.wizarpos.wizarviewagentassistant, and the class name is com.wizarpos.wizarviewagentassistant.SilenceService. When the application uses the interface, it must import wizarviewagentassistant and add permissions to the Android manifest file.
Permission
The application declares the following permissions in the manifest:
android.permission.CLOUDPOS_REBOOT
API Overview
shutdown
boolean shutdown(boolean confirm, boolean wait);
Enable/Disable mobile data.
Parameters | |
---|---|
confirm | boolean: true/false. |
wait | boolean: true/false. |
Returns | |
---|---|
boolean | whether success. |
Download
AIDL file
Please download the AIDL file. About how to bind service, please refer to the demo in How to set APN.