How to silence install、update、delete
Provide the AIDL interface to help the third-party app to implment silence install/uninstall/upload app or reboot device.
Permission
The app declares the follow permission in the manifest.
| Permission | Function |
|---|---|
| android.permission.CLOUDPOS_INSTALL_SILENCE | silence install |
| android.permission.CLOUDPOS_UNINSTALL_SILENCE | silence uninstall |
| android.permission.CLOUDPOS_REBOOT | silence reboot |
Functions
install
boolean install(String apkPath,String adminPassword);
silence install.
Parameters
| apkPath | String | the path of the apk. |
| adminPassword | String | the POS adminstrator login password, default is 99999999. |
Returns true is success, false is failure.
uninstall
boolean uninstall(String packageName,String adminPassword);
silence uninstall Parameters
| apkPath | String | the path of the apk. |
| adminPassword | String | the POS adminstrator login password, default is 99999999. |
Returns true is success, false is failure.
update
boolean update(String apkPath,String adminPassword);
silence update Parameters
| apkPath | String | the path of the apk. |
| adminPassword | String | the POS adminstrator login password, default is 99999999. |
Returns true is success, false is failure.
reboot
boolean reboot(String adminPassword);
silence reboot Parameters
| adminPassword | String | the POS adminstrator login password, default is 99999999. |
Returns true is success, false is failure.
Download
Please download the whold project demo