binder-trace icon indicating copy to clipboard operation
binder-trace copied to clipboard

How to make struct file from android?

Open backahasten opened this issue 2 years ago • 7 comments

May I ask what tool or method you used to extract the binder structure from Android?

backahasten avatar Jun 05 '23 02:06 backahasten

Our binder generator struct tool isn't ready for public release - if you would like us to generate structures for a particular version of AOSP from https://source.android.com/docs/setup/about/build-numbers#source-code-tags-and-builds , let us know the tag and we can generate and include them in a future release for you.

sam-f0 avatar Jun 09 '23 14:06 sam-f0

@sam-f0 I found that the TRANSCATION_CODE in my device is different from the one defined in the struct file. I had to adjust the definitions in the struct file to ensure that the results were correct. Would you please update the definition of the struct interfaces in the future ?

N1rv0us avatar Jun 12 '23 06:06 N1rv0us

@sam-f0 can you include android 14 structs? I'm using android-14.0.0_r28 but any android 14 tag would work. thank you.

madushan1000 avatar Apr 07 '24 14:04 madushan1000

@madushan1000 I will endeavor to generate them and push a new version this week

sam-f0 avatar Apr 08 '24 06:04 sam-f0

Thank you :) any plans to open source the struct generator? I'm playing around with adding new aidl apis and I've been hand writing some struct files. Good enough for small apis but not that great for functions with complex types/custom parcelebles.

madushan1000 avatar Apr 08 '24 12:04 madushan1000

@madushan1000 binder-trace 3.1.2 has been released with the Android 14 structures from android-14.0.0_r28

There are no current plans to open source the generator, as per my prior comment https://github.com/foundryzero/binder-trace/issues/9#issuecomment-1584657286

sam-f0 avatar Apr 15 '24 09:04 sam-f0

Okay, thank you for the update, I'll try it out :)

madushan1000 avatar Apr 15 '24 09:04 madushan1000

We have added some more information about struct files in release 1.4.0 in https://github.com/foundryzero/binder-trace/blob/main/STRUCTURES.md

sam-f0 avatar May 16 '24 13:05 sam-f0