This sounds like something the vfs layer could do.  That's exactly the point 
right?  People use MediaHarmony to intercept Avid accesses to files on the fly 
over Samba.
Couldn't you insert a vfs layer similary?

On Feb 14, 2012, at 10:57 AM, Kristopher Micinski wrote:

> First of all, you have no hope of doing this on stock firmware, don't
> expect anyone to be able to use your modification.
> 
> Second, if you wanted to do this, you certainly wouldn't want to
> modify the system at the system call level, by that time you have
> almost no information that would allow you to delineate calls from the
> phone book to any other place.  The way one system solves this is
> binary rewriting on apps to rewrite and use another content provider
> which does these types of modifications.
> 
> If you wanted to implement this yourself, you could similarly modify
> the content provider for for contacts.   This would probably be the
> best way to make your change.
> 
> But the higher level point is: why in the world do you want to lie to
> the contacts app?  Why not just write another app which does this
> instead?
> 
> kris
> 
> On Tue, Feb 14, 2012 at 11:45 AM, Pinas <xunglaubli...@gmail.com> wrote:
>> Hello all,
>> 
>> I am currently trying to figure out how i could intercept and redirect
>> the opening of files.
>> 
>> What I want to do is to show different telephonebook entries depending
>> on the current time or maybe the current location without the
>> telephonebook app beeing aware of this redirection.
>> 
>> So i thought that i could create several telephonbook .db files
>> containing different information and redirect an open file syscall. My
>> problem is that i dont really know where to start or how to implement
>> such a modification. I could of course hook the syscall table but I am
>> not sure if this is a good solution - I dont want to write a rootkit.
>> 
>> If someone has some hints on how to achieve this I would be really
>> happy.
>> 
>> Thank you very much :)
>> 
>> --
>> unsubscribe: android-kernel+unsubscr...@googlegroups.com
>> website: http://groups.google.com/group/android-kernel
> 
> -- 
> unsubscribe: android-kernel+unsubscr...@googlegroups.com
> website: http://groups.google.com/group/android-kernel
> 

--
Steve Modica
CTO -  Small Tree Communications
www.small-tree.com
phone: 651-209-6509 ext 301
mobile: 651-261-3201






-- 
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-kernel

Reply via email to