Man Page for aidl
No input file
usage:
./Android/Sdk/build-tools/30.0.2/aidl --lang={java|cpp|ndk} [OPTION]... INPUT...
Generate Java or C++ files for AIDL file(s).
./Android/Sdk/build-tools/30.0.2/aidl --preprocess OUTPUT INPUT...
Create an AIDL file having declarations of AIDL file(s).
./Android/Sdk/build-tools/30.0.2/aidl --dumpapi --out=DIR INPUT...
Dump API signature of AIDL file(s) to DIR.
./Android/Sdk/build-tools/30.0.2/aidl --checkapi OLD_DIR NEW_DIR
Checkes whether API dump NEW_DIR is backwards compatible extension
of the API dump OLD_DIR.
./Android/Sdk/build-tools/30.0.2/aidl [OPTION]... INPUT [OUTPUT]
Generate a Java file for an AIDL file.
OPTION:
-I DIR, --include=DIR
Use DIR as a search path for import statements.
-m FILE, --import=FILE
Import FILE directly without searching in the search paths.
-p FILE, --preprocessed=FILE
Include FILE which is created by --preprocess.
-d FILE, --dep=FILE
Generate dependency file as FILE. Don't use this when
there are multiple input files. Use -a then.
-o DIR, --out=DIR
Use DIR as the base output directory for generated files.
-h DIR, --header_out=DIR
Generate C++ headers under DIR.
-a
Generate dependency file next to the output file with the
name based on the input file.
-b
Trigger fail when trying to compile a parcelable.
--ninja
Generate dependency file in a format ninja understands.
--structured
Whether this interface is defined exclusively in AIDL.
It is therefore a candidate for stabilization.
--stability=
The stability requirement of this interface.
-t, --trace
Include tracing code for systrace. Note that if either
the client or service code is not auto-generated by this
tool, that part will not be traced.
--transaction_names
Generate transaction names.
--apimapping
Generates a mapping of declared aidl method signatures to
the original line number. e.g.:
If line 39 of foo/bar/IFoo.aidl contains: void doFoo(int bar, String baz);
Then the result would be:
foo.bar.Baz|doFoo|int,String,|void
foo/bar/IFoo.aidl:39
-v VER, --version=VER
Set the version of the interface and parcelable to VER.
VER must be an interger greater than 0.
--hash=HASH
Set the interface hash to HASH.
--log
Information about the transaction, e.g., method name, argument
values, execution time, etc., is provided via callback.
--parcelable-to-string
Generates an implementation of toString() for Java parcelables,
and ostream& operator << for C++ parcelables.
--help
Show this help.
INPUT:
An AIDL file.
OUTPUT:
Path to the generated Java or C++ source file. This is ignored when
-o or --out is specified or the number of the input files are
more than one.
For Java, if omitted, Java source file is generated at the same
place as the input AIDL file,
HEADER_DIR:
Path to where C++ headers are generated.