Change Administrator's Login Password
AIDL Interface for Managing Terminal Administrator Passwords
Required Permissions
Applications must declare the specified permissions in their manifest to use this AIDL interface.
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 Admin Password
This function allows the modification of the admin password. Provide the current password ('oldPwd') and the new password ('newPwd') as arguments.
oldPwd
old admin password.
newPwd
new admin password.
boolean
a boolean representation of the result.
true if success. false if failure.
Check Admin Password
Returns 'true' if the provided password ('pwd') matches the current admin password.
pwd
admin password.
boolean
a boolean representation of the result.
true if success. false if failure.
Reset Password (System APK Only)
Resets the admin password. Due to security reasons, this method is exclusive to system APKs and cannot be called by third-party apps.
pwd
the current admin password.
boolean
a boolean representation of the result.
true if success. false if failure.
Project Demo Download
Last updated