IPhone has a setting that will obscure the contents of lock screen notifications until you are recognized by Face ID. Google has implemented the same feature in its Pixel phones, but many Android devices don’t have this option. At least not by default.
If you use Android’s Smart Lock feature to keep your device unlocked when it’s in a trusted environment for easy access, you probably wouldn’t mind seeing the full content of notifications on your lock screen in these situations. But when you’re at work or on the go, your phone is completely locked, so your notifications should be too.
This is the premise behind a new app from developer K4CZP3R. Basically, it hides the sensitive content of all your lock screen notifications unless your device is currently unlocked.
What you need
- Android 9 or higher
- Windows, Mac or Linux computer
: Install TrustNotify
First, grab the TrustNotify app from the Google Play Store. Search for it by name in your Play Store app to install it, or tap the link below to go directly to the download page.
Step 2: Enable Developer Options
In order to work, TrustNotify needs a permission that only ADB can grant. Hence, you need to enable the hidden developer options menu on your phone. So go to Settings -> About phone and then tap “Build number” seven times in quick succession. If you want more help with this part, check out our full tutorial below.
Step 3: Enable USB debugging
Now open your Settings app and go to “System” then “Advanced” to open the new Developer Options menu. On some phones it may be at the very bottom of the Settings menu.
Once in the Developer Options menu, scroll down and enable the toggle next to “Allow USB Debugging” and press “OK” at the prompt. Now connect your phone to your computer and you should see the popup below – select “Always allow” here and press “OK”. And again, for more help, see our full tutorial below.
Step 4: Download Google’s Platform-Tools ZIP on your computer
Now download the software on your computer that will allow you to connect to your phone via ADB. This is a simple ZIP file and comes straight from Google. After downloading, unzip and insert the ZIP platform tools folder on your desktop.
Step 5: Open a command prompt in the Platform-Tools folder
Now you need to open a command prompt on your computer and run it from the correct folder. In Windows, start by pressing the Windows key on your keyboard, then type “cmd” and hit Enter to open the command utility. On Linux or Mac, open the Terminal app from your Applications folder.
Once your command line tool is open, type CD followed by a single space, but don’t press enter yet. Instead, drag it platform tools folder from your desktop and drop it in the top right corner of the command window to fill the entire folder path. Afterwards, go ahead and hit enter. For more help with this part, check out our full guide:
Step 6: Grant additional permissions
Now copy and paste the following line of code into the command prompt and hit enter on your keyboard.
adb shell pm grant xyz.k4czp3r.trustnotify android.permission.WRITE_SECURE_SETTINGS
If you see the default prompt after submitting that command, you’re good to go. But if you get the error “command not found” then send the command below:
./adb shell pm grant xyz.k4czp3r.trustnotify android.permission.WRITE_SECURE_SETTINGS
Step 7: Configure TrustNotify
Go ahead and open the TrustNotify app on your phone now. If you had already opened it before granting the permission through ADB, then you will need to close and reopen the app before it realizes that the permission has been granted.
Go ahead from the main screen and tap the “Settings” button at the bottom. Here, tap the first drop-down menu to choose whether notifications are completely hidden when your phone is locked or whether only their contents are hidden. After that, make sure to turn on the toggle next to “Service starts at boot”.
Step 8: Enable the service
Now that everything is set up, go back to the Summary tab in TrustNotify and turn on the switch next to “Service is off”. If you are having trouble with this app in the future, this is the first setting to check.
Step 9: Hide the notification (optional)
Once you enable the service, TrustNotify will post a continuous notification to prevent it from being cleared from RAM by Android’s memory management system. To hide this notification, long press it and select ‘Turn off notifications’.
Step 10: Enjoy a more private lock screen
Now your phone behaves just like the iPhone and Pixel! If you receive a new notification and the device is locked, the contents of the notification will not be displayed. But if you unlock the phone, or if it has already been kept unlocked by Smart Lock, the contents will be displayed clearly.
Keep your connection safe without a monthly bill. Get a lifetime subscription to VPN Unlimited for all your devices with a one-time purchase from the new Gadget Hacks Shop, and watch Hulu or Netflix with no regional restrictions, increase security when browsing public networks and more.
Buy now (80% discount)>