A lot of people feel uneasy when someone is using their phone to “check something”. Even though my Xiaomi Mi 9 (review) isn’t filled with filth and compromising search history, letting someone “play with it” triggers “I so want to look over your shoulder and monitor everything you do with my phone!” mode. On the other hand, neither of us wants to show the distrust, and don’t have the time to lock/disable/remove compromising apps before handing the phone out. What if you could increase your privacy with a fingertip? I’ll show you how to disable apps with a fingerprint.
How to disable apps with a fingerprint
This isn’t the new idea. My Xiaomi Mi 9 already comes with a “second space” option to load a user profile based on the PIN keyed in. But if you don’t have that option on your mobile phone, you can secure the phone with Tasker.
Previously, I had to use a plugin to achieve this. The plugin wouldn’t work for every phone and there was no option to recognise individual fingerprints. Now, you can detect which finger had been used to unlock the phone and create custom profiles based on that and do a couple of more Tasker tricks.
You will need the following:
- AutoTools Root Add-on
Let’s modify my old tutorial and make it compatible with the new LogCat option. You can download the tutorial file, but it’s likely you have to search the LogCat entries again as fingerprint entries are dependant on the ROM and the phone that you are using. In case you wonder, I’m using the tips from this post to name and organise my profiles.
fid = in your entries, as this will store the ID associated with your fingerprint. Create a profile for each fingerprint.
To enable and disable apps I need root. AutoTools Root Add-on comes with an option to disable/enable apps. Disabled apps will be force-stopped, removed from the app drawer and any folders on your home screen. These apps won’t fetch notifications, but data will be still accessible via similar apps. I can limit the exposure by disabling file manager apps and the Google Play Store to prevent someone from installing new apps.
Unfortunately, there is no way to restore the shortcuts placed on the home screen. I will need to drag each icon manually when the app is enabled again. I’m using Nova Launcher, which comes with a handy backup/restore option just for that. Sadly, not integrated with Tasker and restore has to be done manually.
Capture other fingerprints
What if I wanted to enrol a fingerprint that belongs to someone else. I’d imagine asking them to scan the finger while I try to capture the
fid with LogCat is far from ideal.
If the fingerprint is already enrolled, I can use this helper task. It will capture
fid of each fingerprint enrolled (test on your own first, as you may need to change the LogCat trigger so it would work on your phone) and store it in an array.
I can pass the prepped mobile phone to my “victim” to unlock it. As soon as this happens – a new
fid will be added to
I can monitor what fingerprints had been used to unlock my mobile. I can take advantage of this knowledge and get a notification if someone unlocked the phone without my knowledge.
Next time I use my finger to unlock the phone, it will show me if another authorised person unlocked it since my last unlock. To achieve it, I created a simple counter that counts the number of times the phone is unlocked with a specific fingerprint.
The value is reset each time I unlock the phone, and if the unlock count
isSet it will display a notification that someone had unlocked my phone before me.
Please note, I bear no responsibility for any relationships destroyed thanks to this trick. 😁😁😁
Whether you are going to use this Tasker project for good or evil, you know how to disable apps with a fingerprint. I hope you can use this knowledge to increase phone security and prevent others from "accidentally" stumbling on your social apps. I will continue to use this profile to manage push notifications from work-related applications. I don't like to be bothered when I'm home. If you have any questions about this project, leave it in this Reddit thread.
Download project files here. Bear in mind that Patreon supporters have early access to project files and videos.