LibreShift / red-moon

Android screen filter app for night time phone use.
GNU General Public License v3.0
650 stars 81 forks source link

Extend app monitoring to pause in specific secured activities #174

Closed smichel17 closed 6 years ago

smichel17 commented 7 years ago

Some apps are secured only partially (ex: proton mail's pin screen). In these, it'd be better to watch for what activity is open and selectively pause on that screen. Currently we only watch what app is open.

The relevant APIs are ActivityManager and UsageStatsManager.

smichel17 commented 7 years ago

I did most of the essential work for this in eddb583, all we need to do is return and respond to the activity if/when we want to do the work of maintaining these listings.

smichel17 commented 6 years ago

Closing in favor of #188