FORUMS
Remove All Ads from XDA

 View Poll Results: What ROM are you using?

OxygenOS (Pie)
 
135 Vote(s)
92.47%
OxygenOs (Oreo)
 
2 Vote(s)
1.37%
crDroid
 
1 Vote(s)
0.68%
OmniROM
 
2 Vote(s)
1.37%
LOS
 
0 Vote(s)
0%
AOSP
 
1 Vote(s)
0.68%
MIUI
 
0 Vote(s)
0%
Other custom ROM
 
5 Vote(s)
3.42%

[NO ROOT][15.05.2019] FaceNotify - Show notifications only when you look

218 posts
Thanks Meter: 293
 
Post Reply Email Thread
Announcement from kacperes00: Version 1.5.0 will be ready to download soon!
Notification
FaceNotify by K4CZP3R

Hi, I'm really happy to show you my app.
This app will hide content of your notifications and show it only when it recognizes your face!

I really wanted this IOS-feature on my OnePlus, but could not find an app for this. So I wrote this app!
Installation guide on YouTube

It works with OnePlus 5/5T/6/6T/Xiaomi RN7/Samsung S8/S9/S9+/S10. Other phones are not tested, but it will probably work.
(OS Supported: OxygenOS, crDroid, OmniROM, MIUI)

Send me your logcat dump if you want to have your phone supported! (adb logcat -d > logcat.txt)
Create logcat dump after locking and unlocking your device using face unlock
Upload to gist.github or pastebin and send it to me via PM.
You can send my app log if you are having issues! (Enable it in settings, then send file named Documents/facenotify.txt)


OnePlus and their Oxygen OS Android modification is known as maximizing the stock Android experience. This may be true on the UX front but the exact opposite is valid for background process limits. ~https://dontkillmyapp.com/oneplus
So, try to follow this guide if the service gets killed!

If it still does not work, you can try to install facenotify as system app (will add magisk support for it in the next release!)

Code:
Changelog 1.5.0 (This version is only available through google play)
- Fixed: redirection to face unlock settings (All phones)
- Fixed: device not supported even when it is supported
- Changed: icons in settings
- Fixed: layout of startup check (Now it should work with smaller screen sizes)

Changelog 1.4.9 (This version is only available through google play)
- Changed: versionNameSuffix apperance (x.x.x.beta)
- Added: face unlock settings activity in manifest (this should fix fc on samsung phones)
- Changed: categorized settings
- Fixed: restoreAtInstall would not reset "firstRun" flag
- Deleted: old service functions
- Changed: comp check in settings
- Changed: Face detection scan should be a little bit more faster now
- Changed: logcat check, now system does the heavy part, not the app
- Fixed: Multiple services because startAtBoot service did not check if service is already on
- Fixed: crash on service stop
Fixed: Bug where service would crash because of wrong type of preference

Changelog 1.4.8 (This version is only available through google play)
- Added: Iris, Intelligent scan for samsung devices! (Thanks, @marcovittori and @Mr.Januzi)
- Changed: Backend server api
- Tried to fix: method tester in settings

Changelog 1.4.2 (This version is only available through google play)
- Added: Samsung Galaxy S8/S9/S10 support! (Thanks, @Mr.Januzi)
- Added: Samsung Galaxy S9+ to the supported devices list (SAMSUNG_SM-G965F)
- Fixed: FaceNotify would not work if specified language was set on phone
- Added: Changelog in the app

Changelog 1.4.0 (This version is only available through google play)
- Fixed: now service start itself at boot
- Fixed: Background service (check settings [ignore battery optimisation])
- Changed: Delay after face detection can by any value (in ms)
- Changed: First run screen (clear app data to see it)

Changelog 1.3.3 (This version is only available through google play) 
- Fixed: Crash on start (it was due bad implementation of file reader) 
- Moved: Log viewer to separate activity 
- Changed: Logcat won't contain app facedetection messages (only app logs will do) 
- Changed: Small cosmetic changes

Changelog 1.3.2
- Changed: Detection mode, software is prioritized over hardware

Changelog 1.3.1
- Added: support for MIUI (Tested on Xiaomi Redmi Note 7)
- Added: support for Xiaomi Redmi Note 7 on MIUI
- Changed: Yet another update on background process...
- Added: App log (enable it in settings to log app behaviour)
- Added: Simple "animations" [works with content hiding, not notification hiding]
- Changed: small cosmetic changes
- Changed: cleaned code a little bit
- Changed: "Your phone" name to a human-readable one
- Changed: names of detection modes to (OnePlus (Oxygen OS), AOSP (smartlock), Xiaomi (MIUI))
- Bug 1: In tester, miui option does have Samsung name (it's just a string mismatch) so if there's a true at samsung, choose miui.

Changelog 1.3.0
- Added: support for OmniROM (9.0)
- Added: Another method of background service (need to be tested)
- Added: Bugs to be fixed later
- Added: Will scan logs after the time of unlocking (won't scan old logs which could confuse notification show decision)
- Removed: Not working samsung unlock option
- Bug 1: Sometimes content will overlap 
- Bug 2: You need to tap on a boot notification to start service

Changelog 1.2.7
- Added: Initial support for Samsung Galaxy S9 (probably broken)
- Added: Support for crDroid (on OnePlus 5T, there is a chance it will work on other custom roms)
- Added: Ability to choose 1 of 3 detection options (OOS, Custom ROM, Samsung) [Will add more in the future]
- Added: Test mode in settings, open it, lock your screen and unlock using your face. Then look if a value changes from false to true, if not your phone is not supported :( (send me your logcat)
- Changed: The way of detecting face back to 1.1 (Test)

Changelog 1.2.5 (hotfix)
- Added: Fix button in settings, if your face detection has no effect, please use this button.

Changelog 1.2.4
- Fixed: Restore to defaults had no effect
- Fixed: When hide notification, it would show notification with hidden content
- Fixed: Bug where multiple services will launch causing detection to break
- Fixed: Start on boot not executing

Changelog 1.2
- Added support for non-rooted phones (You will need a one-time adb connection to grant some permissions)
- Added support for OnePlus 5
- Rewrote some functions (preparing for open source release)

Changelog 1.1
- Lowered API, now Oreo devices can install this app
- Added support for OnePlus 5t
- Fixed bug when whole notification will show, but content will be still hidden
- Fixed shortcut to security settings

App will need following permissions (you need root or adb to grant those or my helper app (windows))
Download FaceNotify helper app from downloads section: download
Code:
READ_LOGS - Check status of face recognition (adb shell pm grant k4czp3r.facenotify android.permission.READ_LOGS)
WRITE_SECURE_SETTINGS - Configure notifications settings (adb shell pm grant k4czp3r.facenotify android.permission.WRITE_SECURE_SETTINGS)
DUMP and PACKAGE_USAGE_STATS - Check background service status (adb shell pm grant k4czp3r.facenotify android.permission.DUMP) (adb shell pm grant k4czp3r.facenotify android.permission.PACKAGE_USAGE_STATS)
FAQ
Q: Nothing happens when my face is detected
A: Run Fix logs option in settings

Q: I've just installed facenotify and started service, it does not work
A: Reboot your phone.

Presentation by 4U Tech

Download from Play Store!
FaceNotify - Download


Big thanks to:
@Mr.Januzi- for samsung galaxy s8/s9/s10 support
(and everyone who sent logcats to help me!)

Buy me a beer! paypal.me/KacperSerewis

Sources:
FaceNotify - Helper: https://github.com/K4CZP3R/FaceNotify_helper

XDA:DevDB Information
FaceNotify, Device Specific App for the OnePlus 6

Contributors
kacperes00

Version Information
Status: Beta
Current Beta Version: 1.5.0
Beta Release Date: 2019-05-15

Created 2019-04-03
Last Updated 2019-05-15
Attached Thumbnails
Click image for larger version

Name:	Screenshot_Face_Notify_20190501-023055.png
Views:	3194
Size:	205.0 KB
ID:	4751363   Click image for larger version

Name:	Screenshot_Face_Notify_20190501-023101.png
Views:	3162
Size:	87.9 KB
ID:	4751364   Click image for larger version

Name:	Screenshot_Face_Notify_20190501-023105.png
Views:	3136
Size:	64.3 KB
ID:	4751365   Click image for larger version

Name:	Screenshot_Face_Notify_20190501-023109.png
Views:	3034
Size:	81.5 KB
ID:	4751366  
The Following 78 Users Say Thank You to K4CZP3R For This Useful Post: [ View ] Gift K4CZP3R Ad-Free
 
 
3rd April 2019, 10:01 PM |#2  
tengtengvn's Avatar
Senior Member
Flag Silicon Valley
Thanks Meter: 192
 
More
Great idea. Thanks for making this.
Just FYI for other: On the 6T, I only saw a blank page when I first opened the app. Waited a bit and I could see the buttons.

Sent from my ONEPLUS A6013 using Tapatalk
3rd April 2019, 10:58 PM |#3  
Member
Thanks Meter: 46
 
More
Wow it seems great
3rd April 2019, 11:21 PM |#4  
ddaharu's Avatar
Senior Member
Thanks Meter: 301
 
More
Tried your app and bit worked but when I set it back to default and my notifications still wasn't showing....
4th April 2019, 12:02 AM |#5  
SpY311's Avatar
Junior Member
Flag Saint Petersburg
Thanks Meter: 11
 
More
Quote:
Originally Posted by ddaharu

Tried your app and bit worked but when I set it back to default and my notifications still wasn't showing....

Settings - Security & lock screen - Lock screen preferences - On lock screen - Show all notification content.
4th April 2019, 12:04 AM |#6  
ddaharu's Avatar
Senior Member
Thanks Meter: 301
 
More
Quote:
Originally Posted by SpY311

Settings - Security & lock screen - Lock screen preferences - On lock screen - Show all notification content.

thanks mate. This is a great app. Thanks a lot for it. Maybe I can shoot you some ideas of my own. 😉
4th April 2019, 12:14 AM |#7  
SpY311's Avatar
Junior Member
Flag Saint Petersburg
Thanks Meter: 11
 
More
Quote:
Originally Posted by ddaharu

thanks mate. This is a great app. Thanks a lot for it. Maybe I can shoot you some ideas of my own. 😉

It's not my app. I just said how solve problem.
4th April 2019, 12:36 AM |#8  
Senior Member
Thanks Meter: 162
 
More
Thanks it's working fine !!
The Following User Says Thank You to tlf55 For This Useful Post: [ View ] Gift tlf55 Ad-Free
4th April 2019, 04:40 AM |#9  
Member
Thanks Meter: 18
 
More
Anybody confirm if it works on 5t?
4th April 2019, 05:09 AM |#10  
Junior Member
Thanks Meter: 3
 
More
Is the download down? It doesn't work for me.
The Following User Says Thank You to Drunken1337 For This Useful Post: [ View ] Gift Drunken1337 Ad-Free
4th April 2019, 06:01 AM |#11  
Member
Flag New York
Thanks Meter: 13
 
More
Quote:
Originally Posted by GeneFitz23

Anybody confirm if it works on 5t?

Someone on the reddit post confirmed that it works. Although it will say "not supported" in the second box

Sent from my ONEPLUS A6003 using XDA Labs

---------- Post added at 06:01 AM ---------- Previous post was at 05:52 AM ----------

Oh damn never thought this would be possible. One caveat though. The transition from hidden to showing the notification content is not smooth. Actually there isn't even an animation. Could you do something with that or is it a limitation of Android?

Sent from my ONEPLUS A6003 using XDA Labs
The Following User Says Thank You to jnss98b For This Useful Post: [ View ] Gift jnss98b Ad-Free
Post Reply Subscribe to Thread

Tags
ios, no root, notifications, screen lock

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes