Below <company> <module> <mylib> replace with your own names.
(1) edit <TOP>/Android.bp, add custom path:
...........
optional_subdirs = [
...................
"vendor/<company>/<module>/*/*",
]
(2) create dir : vendor/<company>/<module>/
mkdir vendor/<company>/<module>/interfaces/<mylib>/1.0/default
(3) create IMyService.hal and types.hal under dir vendor/<company>/<module>/interfaces/<mylib>/1.0
//IMyService.hal
package vendor.<company>.<mylib>@1.0;
interface IMyService{
getVal1() generates (MyResult result);
doJob(vec<uint8_t> arr1, int32_t i2, string s3) generates (MyResult result);
};
// type.hal
package vendor.<company>.<mylib>@1.0;
struct MyResult {
int32_t i1;
string s2