Reputation: 1327
Is it possible for a background service to log every action of the user on his device? I just want to check if our devices are vulnerable to such actions.
Upvotes: 0
Views: 1538
Reputation: 45
You could also monitor the other way. Looking at the Browser class and monitoring processes and what tasks are running using ActivityManager.
Upvotes: 0
Reputation: 13511
Yes it is. But depending on what your app wants to monitor, you don't need to run a Service
just to constantly monitor the user's actions. All you need is a BroadcastReceiver
that listens to Intent
s fired by the system when specific phone events occur.
For example, I once built a mobile app that logs all the user's sent SMSes, detects incoming SMS, incoming and outgoing calls, and bytes of data sent and received over 3G and WiFi. Shameless plug, I've posted some tutorials on how to do it in my website: http://www.mattquiros.com/blog
Upvotes: 1