Reputation: 415
I would like to monitor all the Intents running in an Android system.
I found an open-source application, IntentSniffer, in the following link.
https://www.isecpartners.com/tools/mobile-security/intent-sniffer.aspx
The main part of the application is the following code.
ActivityManager am = (ActivityManager) getSystemService(ACTIVITY_SERVICE);
List rti = am.getRecentTasks(1000, ActivityManager.RECENT_WITH_EXCLUDED);
for(RecentTaskInfo c: rti) {
Intent cur = c.baseIntent;
}
However, the above code seems to get only baseIntent, not all Intents. So, I am wondering whether there is an way to monitor all the Intents in the system.
Thanks in advance.
Upvotes: 3
Views: 2355
Reputation: 1006614
So, I am wondering whether there is an way to monitor all the Intents in the system.
Fortunately, no, for obvious privacy and security reasons.
Upvotes: 5