It used to be possible if an application can view logs of the 
ActivityManager.

Starting from JB, viewing other app's logs is a SystemOrSignature 
permission.  Therefore unless your application gets installed on the device 
prior to the update, the application can only view its own logs.

On Stock device - no viewing logs.  However, there are workarounds that you 
can perform such as one that constantly checks with the Framework to see 
which app is on top.  I'm not to say whether these workaround is good or 
not because it entirely depends on what you are trying to achieve.  All I 
can say is that these are fully documented methods - use your discretion.




On Tuesday, 27 November 2012 13:34:00 UTC-5, Kristopher Micinski wrote:
>
> This will not be possible on stock hardware, because you basically can't 
> "intercept" other intents with a standard app.  Proxying intents is 
> possible if you modify the system, but the ability to do this on stock 
> firmware would be a security hole in itself.
>
> The place you would want to look --- should you want to modify the system 
> to support this --- is the Android package manager that handles the 
> mediation of intents through the system.
>
> Kris
>
>
> On Fri, Nov 23, 2012 at 12:05 AM, Igor Cavallera 
> <joaoba...@gmail.com<javascript:>
> > wrote:
>
>> Hey guys,
>>
>> Is it possible to create an App that would monitor which Apps are 
>> launched so that it would prompt the user for a password before launching a 
>> possibly sensitive App (say Gmail)? But would not ask the user for his 
>> password for an App like the Weather App? I was thinking about intercepting 
>> onStart and onResume intents in order to do this, but I am not sure if this 
>> is possible.
>> By the way, I am a high student trying to learn android development and I 
>> was thinking of developing a simple App that did this (as a learning 
>> experience).
>>
>> Thank You very much for the help.
>>
>> Igor
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Android Security Discussions" group.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msg/android-security-discuss/-/SJ1OWS-15wMJ.
>> To post to this group, send email to 
>> android-secu...@googlegroups.com<javascript:>
>> .
>> To unsubscribe from this group, send email to 
>> android-security-discuss+unsubscr...@googlegroups.com <javascript:>.
>> For more options, visit this group at 
>> http://groups.google.com/group/android-security-discuss?hl=en.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Security Discussions" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/android-security-discuss/-/I5l3rNF9uqUJ.
To post to this group, send email to android-security-discuss@googlegroups.com.
To unsubscribe from this group, send email to 
android-security-discuss+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/android-security-discuss?hl=en.

Reply via email to