Files
scripts/aidl-gen
Albert Tang 923faf664b aidl-gen: Handle nullables and multi-line methods
Some AIDLs have methods that span multiple lines or have "@nullable"
specified for some of its arguments. The generator does not know how to
handle either, so it crashes.

Tested by importing android.hardware.biometrics.face.ISession, which has
both.

Change-Id: Iccf480d9cdcb7df188e309a47ee410ba6d5beb78
2023-10-23 16:07:39 +00:00
..
2021-08-31 00:31:04 +02:00
2021-08-31 00:31:04 +02:00

AIDL (service) generator

$ python3 -m aidl_gen -h
usage: aidl_gen [-h] -I INCLUDE fqname out_dir

positional arguments:
  fqname                Full qualifier of an AIDL interface (e.g.
                        android.hardware.light.ILights)
  out_dir               Folders where the service will be written on

optional arguments:
  -h, --help            show this help message and exit
  -I INCLUDE, --include INCLUDE
                        Folders to include that contains the AIDL interface
                        (note: use the folder where Android.bp resides, aka
                        the top AIDL folder), you can use multiple -I flags to
                        include multiple locations, but at least one is
                        required