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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to