On Sat, May 14, 2011 at 2:53 AM, Nikolay Elenkov
<[email protected]> wrote:
> On Sat, May 14, 2011 at 2:27 AM, Kostya Vasilyev <[email protected]> wrote:
>> Reflection too can be bypassed, by hooking getClass / getMethod and friends,
>> and it's only a matter of time before it's scripted.
>
> The antilvl tool does reflection too.

It replaces all Method.invoke() calls with it's own invokeHook() that does
something like this:

if ( methodClassName
    .equals("android.app.ContextImpl$ApplicationPackageManager")
    || methodClassName
      .equals("android.app.ApplicationContext$ApplicationPackageManager")
    || methodClassName.equals("android.content.pm.PackageManager")
    || methodClassName.contains("ApplicationPackageManager") ) {

// check method names and parameters and return canned values
}

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to