How to make struct file from android?
May I ask what tool or method you used to extract the binder structure from Android?
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 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 ?
@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 I will endeavor to generate them and push a new version this week
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 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
Okay, thank you for the update, I'll try it out :)
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