I see the source code in contentproviderNative.java . there is a method called openAssetFile(),and has a field called remote.transact(); I know I should find the c++ file for the method ,but which c++ file should I read?
Asked
Active
Viewed 44 times
0
-
it's a IBinder, isn't it? – pskink Aug 21 '14 at 07:56
-
yes!it's a IBinder!but I don't know how to find the match c++ file @pskink – cowboi-peng Aug 21 '14 at 08:01
-
so its java object, what do you want to achieve? – pskink Aug 21 '14 at 08:03
-
but the method transact in a remote way,I want to know which remote method was called. – cowboi-peng Aug 21 '14 at 08:05
-
i don't understand you, method "transact" is called – pskink Aug 21 '14 at 08:07
-
see http://androidxref.com/4.4.2_r1/xref/frameworks/base/core/java/android/content/ContentProviderNative.java, line 609 – pskink Aug 21 '14 at 08:12
-
You know IBinder, you must know how to use binder to transform message from java to c++(maybe call bp->bn).and the proxy will wait for the native method replay . I want to know which native method called? – cowboi-peng Aug 21 '14 at 08:16
-
Let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/59707/discussion-between-ihsan-gaozp-and-pskink). – cowboi-peng Aug 21 '14 at 08:19