[Prev] Thread [Next]  |  [Prev] Date [Next]

Re: [android-kernel] intercepting syscalls Kristopher Micinski Tue Feb 14 09:02:25 2012

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


On Tue, Feb 14, 2012 at 11:45 AM, Pinas <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
> website: http://groups.google.com/group/android-kernel

unsubscribe: [EMAIL PROTECTED]
website: http://groups.google.com/group/android-kernel