How to Change the Terminal Administrator's Login Password: Difference between revisions
 (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   | Provide the AIDL interface to help the third-party app to manage the admin password.  | ||
== Permission ==  | == Permission ==  | ||
The app declares the follow permission in the manifest.  | The app declares the follow permission in the manifest.  | ||
| Line 13: | Line 13: | ||
|}  | |}  | ||
==   | == API Overview==  | ||
=== modify ===  | === <big>modify</big> ===  | ||
    boolean modifyAdminPwd(String oldPwd, String newPwd);  |     boolean modifyAdminPwd(String oldPwd, String newPwd);  | ||
Modify admin password.  | |||
'''  | {|class="wizarpostable"  | ||
|-  | |||
! scope="row" colspan="2" | Parameters  | |||
|-  | |||
| oldPwd || '''String:''' old admin password.  | |||
|-  | |||
| newPwd || '''String:'''  new admin password.  | |||
|}  | |||
{|  | {|  | ||
|-  | |-  | ||
|   | |     | ||
|}  | |||
{|class="wizarpostable"  | |||
|-  | |-  | ||
|   | !  scope="row" colspan="2" | Returns  | ||
|-  | |||
|  boolean || true is success, false is failure.  | |||
|}  | |}  | ||
=== is admin password===  | |||
=== <big>is admin password</big>===  | |||
   boolean isAdminPwd(String pwd);  |    boolean isAdminPwd(String pwd);  | ||
Returned true if the pwd is the real admin password.  | |||
'''  | {|class="wizarpostable"  | ||
|-  | |||
! scope="row" colspan="2" | Parameters  | |||
|-  | |||
| pwd || '''String:''' admin password.  | |||
|}  | |||
{|  | {|  | ||
|-  | |-  | ||
|   | |     | ||
|}  | |||
{|class="wizarpostable"  | |||
|-  | |||
!  scope="row" colspan="2" | Returns  | |||
|-  | |||
|  boolean || true is success, false is failure.  | |||
|}  | |}  | ||
=== reset ===  | |||
=== <big>reset</big> ===  | |||
    boolean reset(String pwd);  |     boolean reset(String pwd);  | ||
Reset admin password.  | |||
'''  | {|class="wizarpostable"  | ||
|-  | |||
! scope="row" colspan="2" | Parameters  | |||
|-  | |||
| pwd || '''String:''' the real admin password.  | |||
|}  | |||
{|  | {|  | ||
|-  | |-  | ||
|   | |     | ||
|}  | |}  | ||
{|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/AdminPwdDemo.zip whold project demo]  | Please download the [ftp://sdkuser:wizsdkar@ftp.wizarpos.com/AdminPwdDemo.zip whold project demo]  | ||
Revision as of 06:40, 4 May 2018
Provide the AIDL interface to help the third-party app to manage the admin password.
Permission
The app declares the follow permission in the manifest.
| Permission | Function | 
|---|---|
| android.permission.ADMIN_PWD_MODIFY | modify admin password | 
| android.permission.ADMIN_PWD | get admin password | 
| android.permission.ADMIN_PWD_RESET | reset admin password | 
API Overview
modify
boolean modifyAdminPwd(String oldPwd, String newPwd);
Modify admin password.
| Parameters | |
|---|---|
| oldPwd | String: old admin password. | 
| newPwd | String: new admin password. | 
| Returns | |
|---|---|
| boolean | true is success, false is failure. | 
is admin password
boolean isAdminPwd(String pwd);
Returned true if the pwd is the real admin password.
| Parameters | |
|---|---|
| pwd | String: admin password. | 
| Returns | |
|---|---|
| boolean | true is success, false is failure. | 
reset
boolean reset(String pwd);
Reset admin password.
| Parameters | |
|---|---|
| pwd | String: the real admin password. | 
| Returns | |
|---|---|
| boolean | true is success, false is failure. | 
Download
Please download the whold project demo