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

From wizarPOS
(Created page with "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 permissi...")
 
No edit summary
Line 1: Line 1:
Provide the AIDL interface to help the third-party app to implment silence install/uninstall/upload app or reboot device.
Provide the AIDL interface to help the third-party app to implment silence [#install|install]/uninstall/upload app or reboot device.
== Permission ==
== Permission ==
The app declares the follow permission in the manifest.
The app declares the follow permission in the manifest.
Line 13: Line 13:
|}
|}


== Functions ==
== API Overview==
=== install ===
=== install ===
   boolean install(String apkPath,String adminPassword);
   boolean install(String apkPath,String adminPassword);
silence install.
Silence install.


'''Parameters'''
{|class="wizarpostable"
|-
! scope="row" colspan="2" | Parameters
|-
| apkPath || '''String:''' the path of the apk.
|-
| adminPassword || '''String:''' the POS adminstrator login password, default is 99999999.
|}
{|
{|
|-
|-
| ''apkPath'' || String || the path of the apk.
|  
|}
{|class="wizarpostable"
|-
!  scope="row" colspan="2" | Returns
|-
|-
| ''adminPassword'' || String ||  the POS adminstrator login password, default is 99999999.
| boolean || true is success, false is failure.
|}
|}
'''Returns'''
 
true is success, false is failure.


=== uninstall ===
=== uninstall ===
   boolean uninstall(String packageName,String adminPassword);
   boolean uninstall(String packageName,String adminPassword);
silence uninstall
Silence uninstall.
'''Parameters'''
{|class="wizarpostable"
|-
! scope="row" colspan="2" | Parameters
|-
| apkPath || '''String:''' the path of the apk.
|-
| adminPassword || '''String:''' the POS adminstrator login password, default is 99999999.
|}
{|
{|
|-
|-
| ''apkPath'' || String || the path of the apk.
|  
|}
{|class="wizarpostable"
|-
|-
| ''adminPassword'' || String || the POS adminstrator login password, default is 99999999.
!  scope="row" colspan="2" | Returns
|-
| boolean || true is success, false is failure.
|}
|}
'''Returns'''
 
true is success, false is failure.


=== update===
=== update===
   boolean update(String apkPath,String adminPassword);
   boolean update(String apkPath,String adminPassword);
silence update
Silence update.
'''Parameters'''
{|class="wizarpostable"
|-
! scope="row" colspan="2" | Parameters
|-
| apkPath || '''String:''' the path of the apk.
|-
| adminPassword || '''String:''' the POS adminstrator login password, default is 99999999.
|}
{|
{|
|-
|-
| ''apkPath'' || String || the path of the apk.
|  
|}
{|class="wizarpostable"
|-
!  scope="row" colspan="2" | Returns
|-
|-
| ''adminPassword'' || String ||  the POS adminstrator login password, default is 99999999.
| boolean || true is success, false is failure.
|}
|}
'''Returns'''
 
true is success, false is failure.
 
=== reboot===
=== reboot===
   boolean reboot(String adminPassword);
   boolean reboot(String adminPassword);
silence reboot
Silence reboot.
'''Parameters'''
{|class="wizarpostable"
|-
! scope="row" colspan="2" | Parameters
|-
| adminPassword || '''String:''' the POS adminstrator login password, default is 99999999.
|}
{|
{|
|-
|-
| ''adminPassword'' || String ||  the POS adminstrator login password, default is 99999999.
|  
|}
|}
'''Returns'''
{|class="wizarpostable"
true is success, false is failure.
|-
!  scope="row" colspan="2" | Returns
|-
|  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 06:45, 4 May 2018

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

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