How to Change the Terminal Administrator's Login Password: Difference between revisions
(→Modify) |
(→Reset) |
||
Line 60: | Line 60: | ||
=== <big>Reset</big> === | === <big>Reset</big> === | ||
<syntaxhighlight lang="java">boolean reset(String pwd);</syntaxhighlight > | <syntaxhighlight lang="java">boolean reset(String pwd);</syntaxhighlight > | ||
Resets admin password. | |||
{|class="wizarpostable" | {|class="wizarpostable" | ||
Line 78: | Line 78: | ||
| 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/AdminPwdDemo.zip whold project demo] | Please download the [ftp://sdkuser:wizsdkar@ftp.wizarpos.com/AdminPwdDemo.zip whold project demo] |
Revision as of 03:29, 19 November 2018
Provides the AIDL interface to help the third-party app to manage the admin password.
Permission
The app declares the following 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);
Modifies 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);
Returns 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);
Resets admin password.
Parameters | |
---|---|
pwd | String: the real admin password. |
Returns | |
---|---|
boolean | true is success, false is failure. |
Download
Please download the whold project demo