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

From wizarPOS
No edit summary
No edit summary
Line 15: Line 15:
== API Overview==
== API Overview==
=== <big>install</big> ===
=== <big>install</big> ===
  boolean install(String apkPath,String adminPassword);
    <syntaxhighlight lang="java">boolean install(String apkPath,String adminPassword);</syntaxhighlight >
Silence install.
Silence install.


Line 39: Line 39:


=== <big>uninstall</big> ===
=== <big>uninstall</big> ===
   boolean uninstall(String packageName,String adminPassword);
   <syntaxhighlight lang="java">boolean uninstall(String packageName,String adminPassword);</syntaxhighlight >
Silence uninstall.
Silence uninstall.
{|class="wizarpostable"
{|class="wizarpostable"
Line 62: Line 62:


=== <big>update</big>===
=== <big>update</big>===
   boolean update(String apkPath,String adminPassword);
   <syntaxhighlight lang="java">boolean update(String apkPath,String adminPassword);</syntaxhighlight >
Silence update.
Silence update.
{|class="wizarpostable"
{|class="wizarpostable"
Line 85: Line 85:


=== <big>reboot</big>===
=== <big>reboot</big>===
   boolean reboot(String adminPassword);
   <syntaxhighlight lang="java">boolean reboot(String adminPassword);</syntaxhighlight >
Silence reboot.
Silence reboot.
{|class="wizarpostable"
{|class="wizarpostable"

Revision as of 06:54, 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