Update Role Passwords API
Interface Details
Package Name: 'com.wizarpos.wizarviewagentassistant'
Class Name: 'com.wizarpos.wizarviewagentassistant.AdminPwdMainService'
Before using the interface, ensure the package is imported and necessary permissions are added to the Android manifest file.
Required Permissions
Include the following permissions in your application's manifest:
'android.permission.USER_PWD': permission for isUserPwd.
'android.permission.USER_PWD_MODIFY': permission for forceModifyUserPwd, enableUserLogin.
API Functions
isUserPwd
boolean isUserPwd(String pwd);
Checks if the provided string ('pwd') is the current user password.
pwd
the user role password. It can not be null
boolean
a boolean representation of the result.
true if success. false if failure.
forceModifyUserPwd
boolean forceModifyUserPwd(String newPwd);
Modifies the user role password to the new password ('newPwd').
newPwd
the new user role password. It can not be null
boolean
a boolean representation of the result.
true if success. false if failure.
enableUserLogin
boolean enableUserLogin(boolean eneable);
Enables or disables user role login based on the boolean value ('enable').
eneable
for the user login setting, a boolean value is used: true enables user login, while false disables it.
boolean
a boolean representation of the result.
true if success. false if failure.
Code Snippet and AIDL File
Access the necessary code snippets and download the AIDL file for implementation.
<!-- AdminPwdMainService -->
<uses-permission android:name="android.permission.USER_PWD"/>
<uses-permission android:name="android.permission.USER_PWD_MODIFY"/>
boolean result = adminPwdService.forceModifyUserPwd(newPwd);
boolean isUserPwd = adminPwdService.isUserPwd(newPwd);
ComponentName comp = new ComponentName (
"com.wizarpos.wizarviewagentassistant",
"com.wizarpos.wizarviewagentassistant.AdminPwdMainService");
Last updated