How do I audit my android's apps to determine which apps are taking screenshots of my activity?
I recently installed & ran diskdigger to undelete an image I had accidentally deleted, but the image remnants that diskdigger found were shocking. There were dozens (maybe >100?) screenshots of my activity--ranging from innocuous shots of my home screen to images taken when I was inside my (encrypted) chat apps and bitcoin wallet.
Needless to say, I did not take or delete these screenshots.
My phone is a rooted Nexus 5X running Lineage OS 15-1 (Android 8.1.0). I'm using mostly software from fdroid, though I do have a few sideloaded from yalp (I don't have gapps installed), such as whatsapp and diskdigger.
How do I audit the apps that I have installed to determine what is responsible for taking (then deleting) these screenshots of my activity? To start, how do I:
- List all of my apps, sorted by number of times the app has taken a
screenshot since installed - List all of my apps, sorted by number of times the app has written a
file to disk since installed - Generate a log and/or toast every time a screenshot is
taken--recording the timestamp, app responsible, and filename - Generate a log and/or toast every time an app writes a file to
disk--recording the timestamp, app responsible, and filename - Generate a log and/or toast every time an app deletes a file from
disk--recording the timestamp, app responsible, and filename
TIA!