How to silence install、update、delete: Difference between revisions

From wizarPOS
No edit summary
No edit summary
Line 1: Line 1:
Provide the AIDL interface to help the third-party app to implment silence [#install|install]/uninstall/upload app or reboot device.
Provide the AIDL interface to help the third-party app to implment silence [[#install|install]]/[[#uninstall|uninstall]]/[[#update|update]] app or [[#reboot |reboot]] device.
== Permission ==
== Permission ==
The app declares the follow permission in the manifest.
The app declares the follow permission in the manifest.
Line 14: Line 14:


== API Overview==
== API Overview==
=== install ===
=== <big>install</big> ===
   boolean install(String apkPath,String adminPassword);
   boolean install(String apkPath,String adminPassword);
Silence install.
Silence install.
Line 38: Line 38:




=== uninstall ===
=== <big>uninstall</big> ===
   boolean uninstall(String packageName,String adminPassword);
   boolean uninstall(String packageName,String adminPassword);
Silence uninstall.
Silence uninstall.
Line 61: Line 61:




=== update===
=== <big>update</big>===
   boolean update(String apkPath,String adminPassword);
   boolean update(String apkPath,String adminPassword);
Silence update.
Silence update.
Line 84: Line 84:




=== reboot===
=== <big>reboot</big>===
   boolean reboot(String adminPassword);
   boolean reboot(String adminPassword);
Silence reboot.
Silence reboot.

Revision as of 06:50, 4 May 2018

Provide the AIDL interface to help the third-party app to implment silence install/uninstall/update 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

API Overview

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
boolean 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
boolean 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
boolean 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
boolean true is success, false is failure.


Download

Please download the whold project demo