Android Question Service to monitor PW attempts

PFlores81

Active Member
Licensed User
Longtime User
Since I have not found what I was looking for in the search no matter how I worded it. I am going to ask here. I need to create a service that will monitor unlock attempts, and after so many attempts, proceed to reboot and wipe the device.

It has been a bit since I have played with the service modules, anyone want to point me in the right direction for this?
 

NJDude

Expert
Licensed User
Longtime User
The capturing of attempts might be possible using BroadcastReceiver, but rebooting and wiping will be near impossible since only SYSTEM apps will have access to that, not sure if even rooted devices will allow it.
 
Upvote 0

PFlores81

Active Member
Licensed User
Longtime User
The capturing of attempts might be possible using BroadcastReceiver, but rebooting and wiping will be near impossible since only SYSTEM apps will have access to that, not sure if even rooted devices will allow it.
The app has device administration. I have tested it with a widget to ensure that it will wipe data. It does in fact wipe the data of the device as well as the internal storage of the device. From there a standard wipe in recovery will be needed as for some reason, it locks the internal storage as read only.
 
Upvote 0

PFlores81

Active Member
Licensed User
Longtime User
I see, so, basically what you want is that after X failed attempts to unlock the system the app will wipe the device?, not sure if that can be captured.
Yes sir, that is what I am looking for. I know it can be monitored but I am not sure exactly how to implement it in B4A.
 
Upvote 0
Top