How to Turn Off the Terminal Using the AIDL Interface

From wizarPOS
Revision as of 09:21, 4 July 2022 by Mahong (talk | contribs) (Created page with "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 ''...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.