1

我以前使用DevicePolicyManager 的密码工作正常。最近我通过短信安装了指纹锁设备,但我的应用程序无法解锁指纹。是否有任何安卓代码可用于重置指纹?

public class DemoDeviceAdminReceiver extends DeviceAdminReceiver {
  DevicePolicyManager devicePolicyManager;
    public void onReceive(Context context, Intent intent) {
        super.onReceive(context, intent);
        this.devicePolicyManager = (DevicePolicyManager) context.getSystemService("device_policy");
        this.devicePolicyManager.resetPassword("", 1);

    }

}

参考以下文件:https ://developer.android.com/guide/topics/admin/device-admin.html

4

0 回答 0