abrenoch / hyperion-android-grabber

Screen grabber for hyperion
MIT License
194 stars 33 forks source link

Whitelist/Blacklist apps from grabber #8

Open abrenoch opened 6 years ago

abrenoch commented 6 years ago

Basically a way to define what apps the screen grabber will or won't grab.

abrenoch commented 6 years ago

See:

https://stackoverflow.com/questions/20740440/how-to-check-the-top-activity-from-android-app-in-background-service/20740784#20740784

https://stackoverflow.com/questions/3873659/android-how-can-i-get-the-current-foreground-activity-from-a-service/27642535#27642535

Option 2 seems like the better solution, but might be a google play violation... It may also pose problems for android TV setups.

abrenoch commented 6 years ago

I'm gonna tag this wontfix for now... It looks like any way of achieving this is already frowned upon for various reasons, and google also appears to actively be taking steps to patch-up the ways to try to get this information.

We could try to make this work in the future, but as of right now it seems like it may be a battle.

ninovanhooff commented 5 years ago

Just want to add here that the AccessibilityService might be worth trying if we have a clear use case for this functionality. The google play violation cites links which are dead now, and it seems that at least in Android 7, it hasn't been blocked yet. However, I personally don't need it and it hasn't been requested by users.

FaserF commented 4 years ago

This feature request is similar to #148 Maybe it will fine enough if that DRM Protection detection does work.