|
|
(17 intermediate revisions by 3 users not shown) |
Line 1: |
Line 1: |
| Provides the AIDL interface to help the third-party app to manage the admin password.
| | {{Migrating|https://smartpossdk.gitbook.io/cloudpossdk/faq/settings-menu/change-administrators-login-password}} |
| == Permission ==
| |
| The app declares the following permission 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 >
| |
| 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.
| |
| |}
| |
| | |
| | |
| === <big>Is admin password</big>===
| |
| <syntaxhighlight lang="java">boolean isAdminPwd(String pwd);</syntaxhighlight >
| |
| Returns 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.
| |
| |}
| |
| | |
| === <big>Reset</big> ===
| |
| <syntaxhighlight lang="java">boolean reset(String pwd);</syntaxhighlight >
| |
| Reset 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 whold project demo]
| |