How to silence install、update、delete: Difference between revisions
Line 14: | Line 14: | ||
== API Overview== | == API Overview== | ||
=== <big> | === <big>Install</big> === | ||
<syntaxhighlight lang="java">boolean install(String apkPath,String adminPassword);</syntaxhighlight > | <syntaxhighlight lang="java">boolean install(String apkPath,String adminPassword);</syntaxhighlight > | ||
Install silently. | |||
{|class="wizarpostable" | {|class="wizarpostable" | ||
Line 38: | Line 38: | ||
=== <big> | === <big>Uninstall</big> === | ||
<syntaxhighlight lang="java">boolean uninstall(String packageName,String adminPassword);</syntaxhighlight > | <syntaxhighlight lang="java">boolean uninstall(String packageName,String adminPassword);</syntaxhighlight > | ||
Uninstalls silently. | |||
{|class="wizarpostable" | {|class="wizarpostable" | ||
|- | |- | ||
Line 61: | Line 61: | ||
=== <big> | === <big>Update</big>=== | ||
<syntaxhighlight lang="java">boolean update(String apkPath,String adminPassword);</syntaxhighlight > | <syntaxhighlight lang="java">boolean update(String apkPath,String adminPassword);</syntaxhighlight > | ||
Updates silently. | |||
{|class="wizarpostable" | {|class="wizarpostable" | ||
|- | |- | ||
Line 84: | Line 84: | ||
=== <big> | === <big>Reboot</big>=== | ||
<syntaxhighlight lang="java">boolean reboot(String adminPassword);</syntaxhighlight > | <syntaxhighlight lang="java">boolean reboot(String adminPassword);</syntaxhighlight > | ||
Reboots silently. | |||
{|class="wizarpostable" | {|class="wizarpostable" | ||
|- | |- | ||
Line 103: | Line 103: | ||
| boolean || true is success, false is failure. | | boolean || true is success, false is failure. | ||
|} | |} | ||
== Download == | == Download == | ||
Please download the [ftp://sdkuser:wizsdkar@ftp.wizarpos.com/Install&update&Uninstall&RebootDemo_as.rar whold project demo] | Please download the [ftp://sdkuser:wizsdkar@ftp.wizarpos.com/Install&update&Uninstall&RebootDemo_as.rar whold project demo] |
Revision as of 03:36, 19 November 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 following 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);
Install silently.
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);
Uninstalls silently.
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);
Updates silently.
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);
Reboots silently.
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