How to Change the Terminal Administrator's Login Password

From wizarPOS
Revision as of 09:14, 23 April 2018 by Mahong (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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 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

Functions

modify

  boolean modifyAdminPwd(String oldPwd, String newPwd);

modify admin password.

Parameters

oldPwd String old admin password.
newPwd String new admin password.

Returns true is success, false is failure.

is admin password

 boolean isAdminPwd(String pwd);

judge if the pwd is the real admin password

Parameters

pwd String admin password.

Returns true is success, false is failure.

reset

  boolean reset(String pwd);

reset admin password.

Parameters

pwd String the real admin password.

Returns true is success, false is failure.

Download

Please download the whold project demo