Step #1: Visit http://source.android.com

Step #2: Click on the Community tab

Step #3: Find a relevant Google Group

Step #4: Ask your question there

On Sat, Aug 6, 2011 at 6:58 PM, sadbit <[email protected]> wrote:
>     I am developing an Android Security Enhancer.
>     I created a native service named myphone, and replaced android
> phone service with myphone, and it can successfully intercepte the
> getCellLocation.
>     BUT, when I tried to create a native service name myactivity, and
> tried to replace android activity service, that wants to itercepte
> others API such as sms data query, I failed.
>
>     I find some difference in activity service and other services,
> such as:
>     In ActivityManagerNative.java
>
>     public boolean onTransact(int code, Parcel data, Parcel reply,
> int flags) throws RemoteException
>     {
>         ......
>         case ATTACH_APPLICATION_TRANSACTION:
>         {
>            data.enforceInterface(IActivityManager.descriptor);
>            IApplicationThread app =
> ApplicationThreadNative.asInterface(data.readStrongBinder());   //
> difference in activity service: cast as IApplicationThread
>            if (app != null)
>            {
>                attachApplication(app);
>            }
>            reply.writeNoException();
>            return true;
>         }
>         ......
>      }
>
>      I think there are some differences between activity service and
> others service so, I can not do the 'Man In The Middle' to intercepte
> API.
>
>      Could anybody please give some hints on this failure?
>
> --
> 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
>



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android 3.1 Programming Books: http://commonsware.com/books

-- 
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