|
|
(11 intermediate revisions by 2 users not shown) |
Line 1: |
Line 1: |
| An AIDL interface that is open to applications to manage terminal administrator passwords.
| | {{Migrating|https://smartpossdk.gitbook.io/cloudpossdk/faq/settings-menu/change-administrators-login-password}} |
| == Permission ==
| |
| The application declares the following permissions in the manifest:
| |
| {| class="wikitable" | |
| |-
| |
| ! 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==
| |
| === <big>Modify</big> ===
| |
| <syntaxhighlight lang="java">boolean modifyAdminPwd(String oldPwd, String newPwd);</syntaxhighlight >
| |
| Modifies 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.
| |
| |}
| |
| | |
| === <big>Is admin password</big>===
| |
| <syntaxhighlight lang="java">boolean isAdminPwd(String pwd);</syntaxhighlight >
| |
| Returns true if the parameter 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.
| |
| |}
| |
| | |
| === <big>Reset</big> ===
| |
| <syntaxhighlight lang="java">boolean reset(String pwd);</syntaxhighlight >
| |
| Resets admin password.
| |
| | |
| {|class="wizarpostable"
| |
| |-
| |
| ! scope="row" colspan="2" | Parameters
| |
| |-
| |
| | pwd || '''String:''' the real admin password.
| |
| |}
| |
| {|
| |
| |-
| |
| |
| |
| |}
| |
| {|class="wizarpostable"
| |
| |-
| |
| ! scope="row" colspan="2" | Returns
| |
| |-
| |
| | boolean || true is success, false is failure.
| |
| |}
| |
| | |
| == Download ==
| |
| Please download the [ftp://sdkuser:wizsdkar@ftp.wizarpos.com/AdminPwdDemo.zip whole project demo]
| |