cc_benchmark

cc_benchmark compiles an executable binary that performs benchmark testing of a specific component in a device. Additional files such as test suites and test configuration are installed on the side of the compiled executed binary.
 name string, The name of the module. Must be unique across all modules.
 srcs configurable list of string, list of source files used to compile the C/C++ module. May be .c, .cpp, or .S files. srcs may reference the outputs of other modules that produce source files like genrule or filegroup using the syntax ":module".
 exclude_srcs configurable list of string, list of source files that should not be used to build the C/C++ module. This is most useful in the arch/multilib variants to remove non-common files
 defaults list of string
 host_supported bool, If set to true, build a variant of the module for the host. Defaults to false.
 device_supported bool, If set to true, build a variant of the module for the device. Defaults to true.
 afdo bool, Afdo allows developers self-service enroll for automatic feedback-directed optimization using profile data.
aidl
 libs list of string, List of aidl_library modules
 include_dirs list of string, list of directories that will be added to the aidl include paths.
 local_include_dirs list of string, list of directories relative to the Blueprints file that will be added to the aidl include paths.
 generate_traces bool, whether to generate traces (for systrace) for this interface
 flags list of string, list of flags that will be passed to the AIDL compiler
 allow_undefined_symbols bool, allow the module to contain undefined symbols. By default, modules cannot contain undefined symbols that are not satisified by their immediate dependencies. Set this flag to true to remove --no-undefined from the linker flags. This flag should only be necessary for compiling low-level libraries like libc.
 apex_available list of string, Availability of this module in APEXes. Only the listed APEXes can contain this module. If the module has stubs then other APEXes and the platform may access it through them (subject to visibility). "//apex_available:anyapex" is a pseudo APEX name that matches to any APEX. "//apex_available:platform" refers to non-APEX partitions like "system.img". Prefix pattern (com.foo.*) can be used to match with any APEX name with the prefix(com.foo.). Default is ["//apex_available:platform"].
 arch interface
 asflags list of string, list of module-specific flags that will be used for .S compiles
 auto_gen_config bool, Flag to indicate whether or not to create test config automatically. If AndroidTest.xml doesn't exist next to the Android.bp, this attribute doesn't need to be set to true explicitly.
 bootstrap bool, Allows this module to use non-APEX version of libraries. Useful for building binaries that are started before APEXes are activated.
 bpf_target bool, cc Build rules targeting BPF must set this to true. The correct fix is to ban targeting bpf in cc rules instead use bpf_rules. (b/323415017)
buildstubs bool
 bool bool
 c_std string, C standard version to use. Can be a specific version (such as "gnu11"), "experimental" (which will use draft versions like C1x when available), or the empty string (which will use the default).
 cflags configurable list of string, list of module-specific flags that will be used for C and C++ compiles.
 clang bool, Deprecated. true is the default, false is invalid.
 clang_asflags list of string, list of module-specific flags that will be used for .S compiles when compiling with clang
 clang_cflags list of string, list of module-specific flags that will be used for C and C++ compiles when compiling with clang
 clang_verify bool, Add "-Xclang -verify" to the cflags and appends "touch $out" to the clang command line.
 cmake_snapshot_supported bool, Allows this module to be included in CMake release snapshots to be built outside of Android build system and source tree.
 compile_multilib string, control whether this module compiles for 32-bit, 64-bit, or both. Possible values are "32" (compile for 32-bit only), "64" (compile for 64-bit only), "both" (compile for both architectures), or "first" (compile for 64-bit on a 64-bit platform, and 32-bit on a 32-bit platform).
 conlyflags list of string, list of module-specific flags that will be used for C compiles
 cpp_std string, C++ standard version to use. Can be a specific version (such as "gnu++11"), "experimental" (which will use draft versions like C++1z when available), or the empty string (which will use the default).
 cppflags configurable list of string, list of module-specific flags that will be used for C++ compiles
 data list of string, list of files or filegroup modules that provide data that should be installed alongside the test
 debug_ramdisk bool, Whether this module is installed to debug ramdisk
 device_first_generated_headers configurable list of string, Same as generated_headers, but the dependencies will be added based on the first supported arch variant and the device os variant. This can be useful for creating a host tool that embeds a copy of a device tool, that it then extracts and pushes to a device at runtime.
 device_specific bool, whether this module is specific to a device, not only for SoC, but also for off-chip peripherals. When set to true, it is installed into /odm (or /vendor/odm if odm partition does not exist, or /system/vendor/odm if both odm and vendor partitions do not exist). This implies `soc_specific:true`.
dist Dist
configuration to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 targets list of string, Copy the output of this module to the $DIST_DIR when `dist` is specified on the command line and any of these targets are also on the command line, or otherwise built
 dest string, The name of the output artifact. This defaults to the basename of the output of the module.
 dir string, The directory within the dist directory to store the artifact. Defaults to the top level directory ("").
 suffix string, A suffix to add to the artifact file name (before any extension).
 append_artifact_with_product bool, If true, then the artifact file will be appended with _<product name>. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be foo_coral.apk. If false, there is no change to the artifact file name.
 prepend_artifact_with_product bool, If true, then the artifact file will be prepended with <product name>-. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be coral-foo.apk. If false, there is no change to the artifact file name.
 tag string, A string tag to select the OutputFiles associated with the tag. If no tag is specified then it will select the default dist paths provided by the module type. If a tag of "" is specified then it will return the default output files provided by the modules, i.e. the result of calling OutputFiles("").
 dists list of Dist, a list of configurations to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 double_loadable bool, whether this module is capable of being loaded with other instance (possibly an older version) of the same module in the same process. Currently, a shared library that is a member of VNDK (vndk: {enabled: true}) can be double loaded in a vendor process if the library is also a (direct and indirect) dependency of an LLNDK library. Such libraries must be explicitly marked as `double_loadable: true` by the owner, or the dependency from the LLNDK lib should be cut if the lib is not designed to be double loaded.
 dynamic_list string, local file name to pass to the linker as --dynamic-list. Not supported on darwin, and will fail to build if provided to the darwin variant of a module.
 enabled configurable bool, emit build rules for this module Disabling a module should only be done for those modules that cannot be built in the current environment. Modules that can build in the current environment but are not usually required (e.g. superceded by a prebuilt) should not be disabled as that will prevent them from being built by the checkbuild target and so prevent early detection of changes that have broken those modules.
 exclude_generated_sources list of string, list of generated sources that should not be used to build the C/C++ module. This is most useful in the arch/multilib variants to remove non-common files
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with this module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build this module
 exclude_static_libs list of string, list of static libs that should not be used to build this module
 export_generated_headers list of string, list of generated headers to re-export include directories from. Entries must be present in generated_headers.
 export_header_lib_headers configurable list of string, list of header libraries to re-export include directories from. Entries must be present in header_libs.
 export_shared_lib_headers list of string, list of shared libraries to re-export include directories from. Entries must be present in shared_libs.
 export_static_lib_headers list of string, list of static libraries to re-export include directories from. Entries must be present in static_libs.
 generated_headers configurable list of string, list of generated headers to add to the include path. These are the names of genrule modules.
 generated_sources list of string, list of generated sources to compile. These are the names of gensrcs or genrule modules.
 gnu_extensions bool, if set to false, use -std=c++* instead of -std=gnu++*
 group_static_libs bool, deprecated and ignored because lld makes it unnecessary. See b/189475744.
 header_libs configurable list of string, list of modules that should only provide headers for this module.
 host_cross_supported bool, If set to true, build a variant of the module for the host cross. Defaults to true.
 host_ldlibs list of string, -l arguments to pass to linker for host-provided shared libraries
 host_required list of string, names of other modules to install on host if this module is installed
 ignore_max_page_size bool, ignore max page size. By default, max page size must be the max page size set for the target.
 include_build_directory bool, Add the directory containing the Android.bp file to the list of include directories. Defaults to true.
 include_dirs configurable list of string, list of directories relative to the root of the source tree that will be added to the include path using -I. If possible, don't use this. If adding paths from the current directory use local_include_dirs, if adding paths from other modules use export_include_dirs in that module.
 init_rc configurable list of string, init.rc files to be installed if this module is installed
 inject_bssl_hash bool, Inject boringssl hash into the shared library. This is only intended for use by external/boringssl.
 install_in_root bool, Install output directly in {partition}/, not in any subdir. This is only intended for use by init_first_stage.
 install_in_xbin bool, Install output directly in {partition}/xbin
 installable bool
 instruction_set string, the instruction set architecture to use to compile the C/C++ module.
 ldflags list of string, list of module-specific flags that will be used for all link steps
 lex LexProperties
 licenses list of string, Describes the licenses applicable to this module. Must reference license modules.
 linker_scripts list of string, local files to pass to the linker as --script. Not supported on darwin or windows, and will fail to build if provided to the darwin or windows variant of a module.
 local_include_dirs configurable list of string, list of directories relative to the Blueprints file that will be added to the include path using -I
 logtags list of string, *.logtags files, to combine together in order to generate the /system/etc/event-log-tags file
lto
Lto must violate capitalization style for acronyms so that it can be referred to in blueprint files as "lto"
 never bool
 thin bool
 lto_O0 bool, Use --lto-O0 flag.
 min_sdk_version string, Minimum OS API level supported by this C or C++ module. This property becomes the value of the __ANDROID_API__ macro. When the C or C++ module is included in an APEX or an APK, this property is also used to ensure that the min_sdk_version of the containing module is not older (i.e. less) than this module's min_sdk_version. When not set, this property defaults to the value of sdk_version. When this is set to "apex_inherit", this tracks min_sdk_version of the containing APEX. When the module is not built for an APEX, "apex_inherit" defaults to sdk_version.
 multilib interface
 native_bridge_supported bool, Whether this module is built for non-native architectures (also known as native bridge binary)
 native_coverage bool
 no_crt_pad_segment bool, don't link in crt_pad_segment. This flag is currently only used internal to soong for testing and for vndk prebuilt shared libraries.
 no_full_install bool, When set to true, this module is not installed to the full install path (ex: under out/target/product/<name>/<partition>). It can be installed only to the packaging modules like android_filesystem.
 no_libcrt bool, don't link in libclang_rt.builtins-*.a
 nocrt bool, don't link in crt_begin and crt_end. This flag should only be necessary for compiling crt or libc.
 odm_available bool, This is the same as the "vendor_available" except that the install path of the vendor variant is /odm or /vendor/odm. By replacing "vendor_available: true" with "odm_available: true", the module will install its vendor variant to the /odm partition or /vendor/odm. As the modules with "odm_available: true" still create the vendor variants, they can link to the other vendor modules as the vendor_available modules do. Also, the vendor modules can link to odm_available modules. It may not be used for VNDK modules.
 odm_dlkm_specific bool, Install to partition odm_dlkm when set to true.
 openmp bool, Build and link with OpenMP
 optimize_for_size bool, Aggresively trade performance for smaller binary size. This should only be used for on-device binaries that are rarely executed and not performance critical.
orderfile
 instrumentation bool
 order_file_path string
 load_order_file bool
 cflags list of string, Additional compiler flags to use when building this module for orderfile profiling.
 overrides list of string, List of module names that are prevented from being installed when this module gets installed.
 owner string, vendor who owns this module
 pack_relocations bool, Generate compact dynamic relocation table, default true.
 prefix_symbols string, if set, add an extra objcopy --prefix-symbols= step
 product_available bool, whether this module should be allowed to be directly depended by other modules with `product_specific: true` or `product_available: true`. If set to true, an additional product variant will be built separately that is limited to the set of libraries and headers that are exposed to /product modules. The product variant may be used with a different (newer) /system, so it shouldn't have any unversioned runtime dependencies, or make assumptions about the system that may not be true in the future. If set to false, this module becomes inaccessible from /product modules. Different from the 'vendor_available' property, the modules with vndk: {enabled: true} don't have to define 'product_available'. The VNDK library without 'product_available' may not be depended on by any other modules that has product variants including the product available VNDKs. Nothing happens if BOARD_VNDK_VERSION isn't set in the BoardConfig.mk and PRODUCT_PRODUCT_VNDK_VERSION isn't set.
 product_specific bool, whether this module is specific to a software configuration of a product (e.g. country, network operator, etc). When set to true, it is installed into /product (or /system/product if product partition does not exist).
product_variables.arc
cflags
  []string
exclude_srcs
  []string
header_libs
  []string
include_dirs
  []string
shared_libs
  []string
static_libs
  []string
srcs
  []string
whole_static_libs
  []string
product_variables.binder32bit
cflags
  []string
product_variables.build_from_text_stub
static_libs
  []string
exclude_static_libs
  []string
product_variables.debuggable
cflags
  []string
cppflags
  []string
init_rc
  []string
required
  []string
host_required
  []string
target_required
  []string
strip.all
  *bool
strip.keep_symbols
  *bool
strip.keep_symbols_and_debug_frame
  *bool
static_libs
  []string
exclude_static_libs
  []string
whole_static_libs
  []string
shared_libs
  []string
srcs
  []string
exclude_srcs
  []string
product_variables.enforce_vintf_manifest
cflags
  []string
product_variables.eng
cflags
  []string
cppflags
  []string
lto.never
  *bool
sanitize.address
  *bool
product_variables.malloc_low_memory
cflags
  []string
shared_libs
  []string
whole_static_libs
  []string
static_libs
  []string
exclude_static_libs
  []string
srcs
  []string
header_libs
  []string
product_variables.malloc_pattern_fill_contents
cflags
  []string
product_variables.malloc_zero_contents
cflags
  []string
product_variables.native_coverage
srcs
  []string
exclude_srcs
  []string
product_variables.override_rs_driver
cflags
  []string
product_variables.platform_sdk_version
asflags
  []string
cflags
  []string
product_variables.release_aidl_use_unfrozen
cflags
  []string
required
  []string
vintf_fragment_modules
  []string
product_variables.safestack
cflags
  []string
product_variables.selinuxignoreneverallows
required
  []string
product_variables.shipping_api_level
cflags
  []string
product_variables.treble_linker_namespaces
cflags
  []string
product_variables.uml
cppflags
  []string
product_variables.unbundled_build
enabled Configurable[bool]
 Configurable[bool] proptools.Configurable[bool]
 proprietary bool, whether this is a proprietary vendor module, and should be installed into /vendor
proto
 type string, Proto generator type. C++: full or lite. Java: micro, nano, stream, or lite.
 plugin string, Proto plugin to use as the generator. Must be a cc_binary_host module.
 include_dirs list of string, list of directories that will be added to the protoc include paths.
 local_include_dirs list of string, list of directories relative to the bp file that will be added to the protoc include paths.
 canonical_path_from_root bool, whether to identify the proto files from the root of the source tree (the original method in Android, useful for android-specific protos), or relative from where they were specified (useful for external/third party protos). This defaults to true today, but is expected to default to false in the future.
 static bool, Link statically against the protobuf runtime
 ramdisk bool, Whether this module is installed to ramdisk
 ramdisk_available bool, Make this module available when building for ramdisk. On device without a dedicated recovery partition, the module is only available after switching root into /first_stage_ramdisk. To expose the module before switching root, install the recovery variant instead.
 recovery bool, Whether this module is installed to recovery partition
 recovery_available bool, Make this module available when building for recovery
 relative_install_path string, install to a subdirectory of the default install path for the module
renderscript
 include_dirs list of string, list of directories that will be added to the llvm-rs-cc include paths
 flags list of string, list of flags that will be passed to llvm-rs-cc
 target_api string, Renderscript API level to target
 require_root bool, Add RootTargetPreparer to auto generated test config. This guarantees the test to run with root permission.
 required configurable list of string, names of other modules to install if this module is installed
 rtti bool, pass -frtti instead of -fno-rtti
 runtime_libs list of string, list of modules that should be installed with this module. This is similar to 'required' but '.vendor' suffix will be appended to the module names if the shared libraries have vendor variants and this module uses VNDK.
sanitize SanitizeUserProps
 never bool, Prevent use of any sanitizers on this module
 address bool, ASan (Address sanitizer), incompatible with static binaries. Always runs in a diagnostic mode. Use of address sanitizer disables cfi sanitizer. Hwaddress sanitizer takes precedence over this sanitizer.
 thread bool, TSan (Thread sanitizer), incompatible with static binaries and 32 bit architectures. Always runs in a diagnostic mode. Use of thread sanitizer disables cfi and scudo sanitizers. Hwaddress sanitizer takes precedence over this sanitizer.
 hwaddress bool, HWASan (Hardware Address sanitizer). Use of hwasan sanitizer disables cfi, address, thread, and scudo sanitizers.
 all_undefined bool, Undefined behavior sanitizer
 undefined bool, Subset of undefined behavior sanitizer
 misc_undefined list of string, List of specific undefined behavior sanitizers to enable
 fuzzer bool, Fuzzer, incompatible with static binaries.
 safestack bool, safe-stack sanitizer, incompatible with 32-bit architectures.
 cfi bool, cfi sanitizer, incompatible with asan, hwasan, fuzzer, or Darwin
 integer_overflow bool, signed/unsigned integer overflow sanitizer, incompatible with Darwin.
 scudo bool, scudo sanitizer, incompatible with asan, hwasan, tsan This should not be used in Android 11+ : https://source.android.com/devices/tech/debug/scudo deprecated
 scs bool, shadow-call-stack sanitizer, only available on arm64/riscv64.
 memtag_heap bool, Memory-tagging, only available on arm64 if diag.memtag unset or false, enables async memory tagging
 memtag_stack bool, Memory-tagging stack instrumentation, only available on arm64 Adds instrumentation to detect stack buffer overflows and use-after-scope using MTE.
 memtag_globals bool, Memory-tagging globals instrumentation, only available on arm64 Adds instrumentation to detect global buffer overflows using MTE.
 writeonly bool, A modifier for ASAN and HWASAN for write only instrumentation
diag
Sanitizers to run in the diagnostic mode (as opposed to the release mode). Replaces abort() on error with a human-readable error message. Address and Thread sanitizers always run in diagnostic mode.
 undefined bool, Undefined behavior sanitizer, diagnostic mode
 cfi bool, cfi sanitizer, diagnostic mode, incompatible with asan, hwasan, fuzzer, or Darwin
 integer_overflow bool, signed/unsigned integer overflow sanitizer, diagnostic mode, incompatible with Darwin.
 memtag_heap bool, Memory-tagging, only available on arm64 requires sanitizer.memtag: true if set, enables sync memory tagging
 misc_undefined list of string, List of specific undefined behavior sanitizers to enable in diagnostic mode
 no_recover list of string, List of sanitizers to pass to -fno-sanitize-recover results in only the first detected error for these sanitizers being reported and program then exits with a non-zero exit code.
config
Sanitizers to run with flag configuration specified
 cfi_assembly_support bool, Enables CFI support flags for assembly-heavy libraries
 recover list of string, List of sanitizers to pass to -fsanitize-recover allows execution to continue for these sanitizers to detect multiple errors rather than only the first one
 blocklist string, value to pass to -fsanitize-ignorelist
 sdk_variant_only bool, If true, always create an sdk variant and don't create a platform variant.
 sdk_version string, The API level that this module is built against. The APIs of this API level will be visible at build time, but use of any APIs newer than min_sdk_version will render the module unloadable on older devices. In the future it will be possible to weakly-link new APIs, making the behavior match Java: such modules will load on older devices, but calling new APIs on devices that do not support them will result in a crash. This property has the same behavior as sdk_version does for Java modules. For those familiar with Android Gradle, the property behaves similarly to how compileSdkVersion does for Java code. In addition, setting this property causes two variants to be built, one for the platform and one for apps.
 shared_libs configurable list of string, list of modules that should be dynamically linked into this module.
 soc_specific bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist).
 static_executable bool, compile executable with -static
 static_libs configurable list of string, list of modules that should be statically linked into this module.
 stem string, set the name of the output
 stl string, Select the STL library to use. Possible values are "libc++", "libc++_static", "libstdc++", or "none". Leave blank to select the default.
strip
 none bool, Device modules default to stripping enabled leaving mini debuginfo. Host modules default to stripping disabled, but can be enabled by setting any other strip boolean property.
 all bool, all forces stripping everything, including the mini debug info.
 keep_symbols bool, keep_symbols enables stripping but keeps all symbols.
 keep_symbols_list list of string, keep_symbols_list specifies a list of symbols to keep if keep_symbols is enabled. If it is unset then all symbols are kept.
 keep_symbols_and_debug_frame bool, keep_symbols_and_debug_frame enables stripping but keeps all symbols and debug frames.
 suffix string, append to the name of the output
 system_dlkm_specific bool, Install to partition system_dlkm when set to true.
 system_ext_specific bool, whether this module extends system. When set to true, it is installed into /system_ext (or /system/system_ext if system_ext partition does not exist).
 system_shared_libs list of string, list of system libraries that will be dynamically linked to shared library and executable modules. If unset, generally defaults to libc, libm, and libdl. Set to [] to prevent linking against the defaults.
 target interface
target.android
 compile_multilib string
 enabled bool
target.apex
 exclude_shared_libs list of string, list of shared libs that should not be used to build the apex variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the apex variant of the C/C++ module.
target.host
 compile_multilib string
target.non_apex
 exclude_shared_libs list of string, list of shared libs that should not be used to build the non-apex variant of the C/C++ module.
target.platform
 required list of string, List of modules required by the core variant.
 exclude_required list of string, List of modules not required by the core variant.
 cflags list of string, List of additional cflags that should be used to build the platform variant of the C/C++ module.
 shared_libs list of string, list of shared libs that should be use to build the platform variant of a module that sets sdk_version. This should rarely be necessary, in most cases the same libraries are available for the SDK and platform variants.
 header_libs list of string, list of ehader libs that only should be used to build platform variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the platform variant of the C/C++ module.
target.product
 shared_libs list of string, list of shared libs that only should be used to build vendor or product variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build vendor or product variant of the C/C++ module.
 header_libs list of string, list of header libs that only should be used to build vendor or product variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor or product variant of the C/C++ module.
 version_script string, version script for vendor or product variant
 srcs list of string, list of source files that should only be used in vendor or product variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build vendor or product variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build vendor or product variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build vendor or product variant of the C/C++ module.
target.ramdisk
 static_libs list of string, list of static libs that only should be used to build the ramdisk variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the ramdisk variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the ramdisk variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the ramdisk variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build the ramdisk variants of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the ramdisk variants of the C/C++ module.
target.recovery
 srcs list of string, list of source files that should only be used in the recovery variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build the recovery variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the recovery variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build the recovery variant of the C/C++ module.
 required list of string, List of modules required by the recovery variant.
 exclude_required list of string, List of modules not required by the recovery variant.
 shared_libs list of string, list of shared libs that only should be used to build the recovery variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build the recovery variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the recovery variant of the C/C++ module.
target.vendor
 srcs list of string, list of source files that should only be used in vendor or product variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build vendor or product variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build vendor or product variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build vendor or product variant of the C/C++ module.
 shared_libs list of string, list of shared libs that only should be used to build vendor or product variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build vendor or product variant of the C/C++ module.
 header_libs list of string, list of header libs that only should be used to build vendor or product variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor or product variant of the C/C++ module.
 version_script string, version script for vendor or product variant
target.vendor_ramdisk
 exclude_shared_libs list of string, list of shared libs that should not be used to build the vendor ramdisk variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the vendor ramdisk variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor ramdisk variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build the ramdisk variants of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the ramdisk variants of the C/C++ module.
 target_required list of string, names of other modules to install on target if this module is installed
 team string, The team (defined by the owner/vendor) who owns the property.
 test_config string, the name of the test configuration (for example "AndroidTest.xml") that should be installed with the module.
 test_config_template string, the name of the test configuration template (for example "AndroidTestTemplate.xml") that should be installed with the module.
 test_suites list of string, list of compatibility suites (for example "cts", "vts") that the module should be installed into.
 tidy bool, whether to run clang-tidy over C-like sources.
 tidy_checks list of string, Extra checks to enable or disable in clang-tidy
 tidy_checks_as_errors list of string, Checks that should be treated as errors.
 tidy_disabled_srcs list of string, list of source files that should not be compiled with clang-tidy.
 tidy_flags list of string, Extra flags to pass to clang-tidy
 tidy_timeout_srcs list of string, list of source files that should not be compiled by clang-tidy when TIDY_TIMEOUT is set.
 use_generic_config bool, Set to true if this module must be generic and does not require product-specific information. To be included in the system image, this property must be set to true.
 use_version_lib bool, make android::build:GetBuildNumber() available containing the build ID.
 vendor bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist). Use `soc_specific` instead for better meaning.
 vendor_available bool, whether this module should be allowed to be directly depended by other modules with `vendor: true`, `proprietary: true`, or `vendor_available:true`. If set to true, two variants will be built separately, one like normal, and the other limited to the set of libraries and headers that are exposed to /vendor modules. The vendor variant may be used with a different (newer) /system, so it shouldn't have any unversioned runtime dependencies, or make assumptions about the system that may not be true in the future. If set to false, this module becomes inaccessible from /vendor modules. The modules with vndk: {enabled: true} must define 'vendor_available' to 'true'. Nothing happens if BOARD_VNDK_VERSION isn't set in the BoardConfig.mk
 vendor_dlkm_specific bool, Install to partition vendor_dlkm when set to true.
 vendor_ramdisk bool, Whether this module is installed to vendor ramdisk
 vendor_ramdisk_available bool, Make this module available when building for vendor ramdisk. On device without a dedicated recovery partition, the module is only available after switching root into /first_stage_ramdisk. To expose the module before switching root, install the recovery variant instead.
 version_script string, local file name to pass to the linker as --version-script. Not supported on darwin, and will fail to build if provided to the darwin variant of a module.
 vintf_fragment_modules configurable list of string, vintf_fragment Modules required from this module.
 vintf_fragments configurable list of string, VINTF manifest fragments to be installed if this module is installed
 visibility list of string, Controls the visibility of this module to other modules. Allowable values are one or more of these formats:

 ["//visibility:public"]: Anyone can use this module.
 ["//visibility:private"]: Only rules in the module's package (not its subpackages) can use
     this module.
 ["//visibility:override"]: Discards any rules inherited from defaults or a creating module.
     Can only be used at the beginning of a list of visibility rules.
 ["//some/package:__pkg__", "//other/package:__pkg__"]: Only modules in some/package and
     other/package (defined in some/package/*.bp and other/package/*.bp) have access to
     this module. Note that sub-packages do not have access to the rule; for example,
     //some/package/foo:bar or //other/package/testing:bla wouldn't have access. __pkg__
     is a special module and must be used verbatim. It represents all of the modules in the
     package.
 ["//project:__subpackages__", "//other:__subpackages__"]: Only modules in packages project
     or other or in one of their sub-packages have access to this module. For example,
     //project:rule, //project/library:lib or //other/testing/internal:munge are allowed
     to depend on this rule (but not //independent:evil)
 ["//project"]: This is shorthand for ["//project:__pkg__"]
 [":__subpackages__"]: This is shorthand for ["//project:__subpackages__"] where
     //project is the module's package. e.g. using [":__subpackages__"] in
     packages/apps/Settings/Android.bp is equivalent to
     //packages/apps/Settings:__subpackages__.
 ["//visibility:legacy_public"]: The default visibility, behaves as //visibility:public
     for now. It is an error if it is used in a module.

If a module does not specify the `visibility` property then it uses the `default_visibility` property of the `package` module in the module's package. If the `default_visibility` property is not set for the module's package then it will use the `default_visibility` of its closest ancestor package for which a `default_visibility` property is specified. If no `default_visibility` property can be found then the module uses the global default of `//visibility:legacy_public`. The `visibility` property has no effect on a defaults module although it does apply to any non-defaults module that uses it. To set the visibility of a defaults module, use the `defaults_visibility` property on the defaults module; not to be confused with the `default_visibility` property on the package module. See https://android.googlesource.com/platform/build/soong/+/main/README.md#visibility for more details.
 whole_program_vtables bool, Use -fwhole-program-vtables cflag.
 whole_static_libs configurable list of string, list of modules whose object files should be linked into this module in their entirety. For static library modules, all of the .o files from the intermediate directory of the dependency will be linked into this modules .a file. For a shared library, the dependency's .a file will be linked into this module using -Wl,--whole-archive.
 yacc YaccProperties

cc_benchmark_host

cc_benchmark_host compiles an executable binary that performs benchmark testing of a specific component in the host. Additional files such as test suites and test configuration are installed on the side of the compiled executed binary.
 name string, The name of the module. Must be unique across all modules.
 srcs configurable list of string, list of source files used to compile the C/C++ module. May be .c, .cpp, or .S files. srcs may reference the outputs of other modules that produce source files like genrule or filegroup using the syntax ":module".
 exclude_srcs configurable list of string, list of source files that should not be used to build the C/C++ module. This is most useful in the arch/multilib variants to remove non-common files
 defaults list of string
 afdo bool, Afdo allows developers self-service enroll for automatic feedback-directed optimization using profile data.
aidl
 libs list of string, List of aidl_library modules
 include_dirs list of string, list of directories that will be added to the aidl include paths.
 local_include_dirs list of string, list of directories relative to the Blueprints file that will be added to the aidl include paths.
 generate_traces bool, whether to generate traces (for systrace) for this interface
 flags list of string, list of flags that will be passed to the AIDL compiler
 allow_undefined_symbols bool, allow the module to contain undefined symbols. By default, modules cannot contain undefined symbols that are not satisified by their immediate dependencies. Set this flag to true to remove --no-undefined from the linker flags. This flag should only be necessary for compiling low-level libraries like libc.
 apex_available list of string, Availability of this module in APEXes. Only the listed APEXes can contain this module. If the module has stubs then other APEXes and the platform may access it through them (subject to visibility). "//apex_available:anyapex" is a pseudo APEX name that matches to any APEX. "//apex_available:platform" refers to non-APEX partitions like "system.img". Prefix pattern (com.foo.*) can be used to match with any APEX name with the prefix(com.foo.). Default is ["//apex_available:platform"].
 arch interface
 asflags list of string, list of module-specific flags that will be used for .S compiles
 auto_gen_config bool, Flag to indicate whether or not to create test config automatically. If AndroidTest.xml doesn't exist next to the Android.bp, this attribute doesn't need to be set to true explicitly.
 bootstrap bool, Allows this module to use non-APEX version of libraries. Useful for building binaries that are started before APEXes are activated.
 bpf_target bool, cc Build rules targeting BPF must set this to true. The correct fix is to ban targeting bpf in cc rules instead use bpf_rules. (b/323415017)
buildstubs bool
 bool bool
 c_std string, C standard version to use. Can be a specific version (such as "gnu11"), "experimental" (which will use draft versions like C1x when available), or the empty string (which will use the default).
 cflags configurable list of string, list of module-specific flags that will be used for C and C++ compiles.
 clang bool, Deprecated. true is the default, false is invalid.
 clang_asflags list of string, list of module-specific flags that will be used for .S compiles when compiling with clang
 clang_cflags list of string, list of module-specific flags that will be used for C and C++ compiles when compiling with clang
 clang_verify bool, Add "-Xclang -verify" to the cflags and appends "touch $out" to the clang command line.
 cmake_snapshot_supported bool, Allows this module to be included in CMake release snapshots to be built outside of Android build system and source tree.
 compile_multilib string, control whether this module compiles for 32-bit, 64-bit, or both. Possible values are "32" (compile for 32-bit only), "64" (compile for 64-bit only), "both" (compile for both architectures), or "first" (compile for 64-bit on a 64-bit platform, and 32-bit on a 32-bit platform).
 conlyflags list of string, list of module-specific flags that will be used for C compiles
 cpp_std string, C++ standard version to use. Can be a specific version (such as "gnu++11"), "experimental" (which will use draft versions like C++1z when available), or the empty string (which will use the default).
 cppflags configurable list of string, list of module-specific flags that will be used for C++ compiles
 data list of string, list of files or filegroup modules that provide data that should be installed alongside the test
 debug_ramdisk bool, Whether this module is installed to debug ramdisk
 device_first_generated_headers configurable list of string, Same as generated_headers, but the dependencies will be added based on the first supported arch variant and the device os variant. This can be useful for creating a host tool that embeds a copy of a device tool, that it then extracts and pushes to a device at runtime.
 device_specific bool, whether this module is specific to a device, not only for SoC, but also for off-chip peripherals. When set to true, it is installed into /odm (or /vendor/odm if odm partition does not exist, or /system/vendor/odm if both odm and vendor partitions do not exist). This implies `soc_specific:true`.
dist Dist
configuration to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 targets list of string, Copy the output of this module to the $DIST_DIR when `dist` is specified on the command line and any of these targets are also on the command line, or otherwise built
 dest string, The name of the output artifact. This defaults to the basename of the output of the module.
 dir string, The directory within the dist directory to store the artifact. Defaults to the top level directory ("").
 suffix string, A suffix to add to the artifact file name (before any extension).
 append_artifact_with_product bool, If true, then the artifact file will be appended with _<product name>. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be foo_coral.apk. If false, there is no change to the artifact file name.
 prepend_artifact_with_product bool, If true, then the artifact file will be prepended with <product name>-. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be coral-foo.apk. If false, there is no change to the artifact file name.
 tag string, A string tag to select the OutputFiles associated with the tag. If no tag is specified then it will select the default dist paths provided by the module type. If a tag of "" is specified then it will return the default output files provided by the modules, i.e. the result of calling OutputFiles("").
 dists list of Dist, a list of configurations to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 double_loadable bool, whether this module is capable of being loaded with other instance (possibly an older version) of the same module in the same process. Currently, a shared library that is a member of VNDK (vndk: {enabled: true}) can be double loaded in a vendor process if the library is also a (direct and indirect) dependency of an LLNDK library. Such libraries must be explicitly marked as `double_loadable: true` by the owner, or the dependency from the LLNDK lib should be cut if the lib is not designed to be double loaded.
 dynamic_list string, local file name to pass to the linker as --dynamic-list. Not supported on darwin, and will fail to build if provided to the darwin variant of a module.
 enabled configurable bool, emit build rules for this module Disabling a module should only be done for those modules that cannot be built in the current environment. Modules that can build in the current environment but are not usually required (e.g. superceded by a prebuilt) should not be disabled as that will prevent them from being built by the checkbuild target and so prevent early detection of changes that have broken those modules.
 exclude_generated_sources list of string, list of generated sources that should not be used to build the C/C++ module. This is most useful in the arch/multilib variants to remove non-common files
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with this module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build this module
 exclude_static_libs list of string, list of static libs that should not be used to build this module
 export_generated_headers list of string, list of generated headers to re-export include directories from. Entries must be present in generated_headers.
 export_header_lib_headers configurable list of string, list of header libraries to re-export include directories from. Entries must be present in header_libs.
 export_shared_lib_headers list of string, list of shared libraries to re-export include directories from. Entries must be present in shared_libs.
 export_static_lib_headers list of string, list of static libraries to re-export include directories from. Entries must be present in static_libs.
 generated_headers configurable list of string, list of generated headers to add to the include path. These are the names of genrule modules.
 generated_sources list of string, list of generated sources to compile. These are the names of gensrcs or genrule modules.
 gnu_extensions bool, if set to false, use -std=c++* instead of -std=gnu++*
 group_static_libs bool, deprecated and ignored because lld makes it unnecessary. See b/189475744.
 header_libs configurable list of string, list of modules that should only provide headers for this module.
 host_cross_supported bool, If set to true, build a variant of the module for the host cross. Defaults to true.
 host_ldlibs list of string, -l arguments to pass to linker for host-provided shared libraries
 host_required list of string, names of other modules to install on host if this module is installed
 ignore_max_page_size bool, ignore max page size. By default, max page size must be the max page size set for the target.
 include_build_directory bool, Add the directory containing the Android.bp file to the list of include directories. Defaults to true.
 include_dirs configurable list of string, list of directories relative to the root of the source tree that will be added to the include path using -I. If possible, don't use this. If adding paths from the current directory use local_include_dirs, if adding paths from other modules use export_include_dirs in that module.
 init_rc configurable list of string, init.rc files to be installed if this module is installed
 inject_bssl_hash bool, Inject boringssl hash into the shared library. This is only intended for use by external/boringssl.
 install_in_root bool, Install output directly in {partition}/, not in any subdir. This is only intended for use by init_first_stage.
 install_in_xbin bool, Install output directly in {partition}/xbin
 installable bool
 instruction_set string, the instruction set architecture to use to compile the C/C++ module.
 ldflags list of string, list of module-specific flags that will be used for all link steps
 lex LexProperties
 licenses list of string, Describes the licenses applicable to this module. Must reference license modules.
 linker_scripts list of string, local files to pass to the linker as --script. Not supported on darwin or windows, and will fail to build if provided to the darwin or windows variant of a module.
 local_include_dirs configurable list of string, list of directories relative to the Blueprints file that will be added to the include path using -I
 logtags list of string, *.logtags files, to combine together in order to generate the /system/etc/event-log-tags file
lto
Lto must violate capitalization style for acronyms so that it can be referred to in blueprint files as "lto"
 never bool
 thin bool
 lto_O0 bool, Use --lto-O0 flag.
 min_sdk_version string, Minimum OS API level supported by this C or C++ module. This property becomes the value of the __ANDROID_API__ macro. When the C or C++ module is included in an APEX or an APK, this property is also used to ensure that the min_sdk_version of the containing module is not older (i.e. less) than this module's min_sdk_version. When not set, this property defaults to the value of sdk_version. When this is set to "apex_inherit", this tracks min_sdk_version of the containing APEX. When the module is not built for an APEX, "apex_inherit" defaults to sdk_version.
 multilib interface
 native_bridge_supported bool, Whether this module is built for non-native architectures (also known as native bridge binary)
 native_coverage bool
 no_crt_pad_segment bool, don't link in crt_pad_segment. This flag is currently only used internal to soong for testing and for vndk prebuilt shared libraries.
 no_full_install bool, When set to true, this module is not installed to the full install path (ex: under out/target/product/<name>/<partition>). It can be installed only to the packaging modules like android_filesystem.
 no_libcrt bool, don't link in libclang_rt.builtins-*.a
 nocrt bool, don't link in crt_begin and crt_end. This flag should only be necessary for compiling crt or libc.
 odm_available bool, This is the same as the "vendor_available" except that the install path of the vendor variant is /odm or /vendor/odm. By replacing "vendor_available: true" with "odm_available: true", the module will install its vendor variant to the /odm partition or /vendor/odm. As the modules with "odm_available: true" still create the vendor variants, they can link to the other vendor modules as the vendor_available modules do. Also, the vendor modules can link to odm_available modules. It may not be used for VNDK modules.
 odm_dlkm_specific bool, Install to partition odm_dlkm when set to true.
 openmp bool, Build and link with OpenMP
 optimize_for_size bool, Aggresively trade performance for smaller binary size. This should only be used for on-device binaries that are rarely executed and not performance critical.
orderfile
 instrumentation bool
 order_file_path string
 load_order_file bool
 cflags list of string, Additional compiler flags to use when building this module for orderfile profiling.
 overrides list of string, List of module names that are prevented from being installed when this module gets installed.
 owner string, vendor who owns this module
 pack_relocations bool, Generate compact dynamic relocation table, default true.
 prefix_symbols string, if set, add an extra objcopy --prefix-symbols= step
 product_available bool, whether this module should be allowed to be directly depended by other modules with `product_specific: true` or `product_available: true`. If set to true, an additional product variant will be built separately that is limited to the set of libraries and headers that are exposed to /product modules. The product variant may be used with a different (newer) /system, so it shouldn't have any unversioned runtime dependencies, or make assumptions about the system that may not be true in the future. If set to false, this module becomes inaccessible from /product modules. Different from the 'vendor_available' property, the modules with vndk: {enabled: true} don't have to define 'product_available'. The VNDK library without 'product_available' may not be depended on by any other modules that has product variants including the product available VNDKs. Nothing happens if BOARD_VNDK_VERSION isn't set in the BoardConfig.mk and PRODUCT_PRODUCT_VNDK_VERSION isn't set.
 product_specific bool, whether this module is specific to a software configuration of a product (e.g. country, network operator, etc). When set to true, it is installed into /product (or /system/product if product partition does not exist).
product_variables.arc
cflags
  []string
exclude_srcs
  []string
header_libs
  []string
include_dirs
  []string
shared_libs
  []string
static_libs
  []string
srcs
  []string
whole_static_libs
  []string
product_variables.binder32bit
cflags
  []string
product_variables.build_from_text_stub
static_libs
  []string
exclude_static_libs
  []string
product_variables.debuggable
cflags
  []string
cppflags
  []string
init_rc
  []string
required
  []string
host_required
  []string
target_required
  []string
strip.all
  *bool
strip.keep_symbols
  *bool
strip.keep_symbols_and_debug_frame
  *bool
static_libs
  []string
exclude_static_libs
  []string
whole_static_libs
  []string
shared_libs
  []string
srcs
  []string
exclude_srcs
  []string
product_variables.enforce_vintf_manifest
cflags
  []string
product_variables.eng
cflags
  []string
cppflags
  []string
lto.never
  *bool
sanitize.address
  *bool
product_variables.malloc_low_memory
cflags
  []string
shared_libs
  []string
whole_static_libs
  []string
static_libs
  []string
exclude_static_libs
  []string
srcs
  []string
header_libs
  []string
product_variables.malloc_pattern_fill_contents
cflags
  []string
product_variables.malloc_zero_contents
cflags
  []string
product_variables.native_coverage
srcs
  []string
exclude_srcs
  []string
product_variables.override_rs_driver
cflags
  []string
product_variables.platform_sdk_version
asflags
  []string
cflags
  []string
product_variables.release_aidl_use_unfrozen
cflags
  []string
required
  []string
vintf_fragment_modules
  []string
product_variables.safestack
cflags
  []string
product_variables.selinuxignoreneverallows
required
  []string
product_variables.shipping_api_level
cflags
  []string
product_variables.treble_linker_namespaces
cflags
  []string
product_variables.uml
cppflags
  []string
product_variables.unbundled_build
enabled Configurable[bool]
 Configurable[bool] proptools.Configurable[bool]
 proprietary bool, whether this is a proprietary vendor module, and should be installed into /vendor
proto
 static bool, Link statically against the protobuf runtime
 type string, Proto generator type. C++: full or lite. Java: micro, nano, stream, or lite.
 plugin string, Proto plugin to use as the generator. Must be a cc_binary_host module.
 include_dirs list of string, list of directories that will be added to the protoc include paths.
 local_include_dirs list of string, list of directories relative to the bp file that will be added to the protoc include paths.
 canonical_path_from_root bool, whether to identify the proto files from the root of the source tree (the original method in Android, useful for android-specific protos), or relative from where they were specified (useful for external/third party protos). This defaults to true today, but is expected to default to false in the future.
 ramdisk bool, Whether this module is installed to ramdisk
 ramdisk_available bool, Make this module available when building for ramdisk. On device without a dedicated recovery partition, the module is only available after switching root into /first_stage_ramdisk. To expose the module before switching root, install the recovery variant instead.
 recovery bool, Whether this module is installed to recovery partition
 recovery_available bool, Make this module available when building for recovery
 relative_install_path string, install to a subdirectory of the default install path for the module
renderscript
 include_dirs list of string, list of directories that will be added to the llvm-rs-cc include paths
 flags list of string, list of flags that will be passed to llvm-rs-cc
 target_api string, Renderscript API level to target
 require_root bool, Add RootTargetPreparer to auto generated test config. This guarantees the test to run with root permission.
 required configurable list of string, names of other modules to install if this module is installed
 rtti bool, pass -frtti instead of -fno-rtti
 runtime_libs list of string, list of modules that should be installed with this module. This is similar to 'required' but '.vendor' suffix will be appended to the module names if the shared libraries have vendor variants and this module uses VNDK.
sanitize SanitizeUserProps
 never bool, Prevent use of any sanitizers on this module
 address bool, ASan (Address sanitizer), incompatible with static binaries. Always runs in a diagnostic mode. Use of address sanitizer disables cfi sanitizer. Hwaddress sanitizer takes precedence over this sanitizer.
 thread bool, TSan (Thread sanitizer), incompatible with static binaries and 32 bit architectures. Always runs in a diagnostic mode. Use of thread sanitizer disables cfi and scudo sanitizers. Hwaddress sanitizer takes precedence over this sanitizer.
 hwaddress bool, HWASan (Hardware Address sanitizer). Use of hwasan sanitizer disables cfi, address, thread, and scudo sanitizers.
 all_undefined bool, Undefined behavior sanitizer
 undefined bool, Subset of undefined behavior sanitizer
 misc_undefined list of string, List of specific undefined behavior sanitizers to enable
 fuzzer bool, Fuzzer, incompatible with static binaries.
 safestack bool, safe-stack sanitizer, incompatible with 32-bit architectures.
 cfi bool, cfi sanitizer, incompatible with asan, hwasan, fuzzer, or Darwin
 integer_overflow bool, signed/unsigned integer overflow sanitizer, incompatible with Darwin.
 scudo bool, scudo sanitizer, incompatible with asan, hwasan, tsan This should not be used in Android 11+ : https://source.android.com/devices/tech/debug/scudo deprecated
 scs bool, shadow-call-stack sanitizer, only available on arm64/riscv64.
 memtag_heap bool, Memory-tagging, only available on arm64 if diag.memtag unset or false, enables async memory tagging
 memtag_stack bool, Memory-tagging stack instrumentation, only available on arm64 Adds instrumentation to detect stack buffer overflows and use-after-scope using MTE.
 memtag_globals bool, Memory-tagging globals instrumentation, only available on arm64 Adds instrumentation to detect global buffer overflows using MTE.
 writeonly bool, A modifier for ASAN and HWASAN for write only instrumentation
diag
Sanitizers to run in the diagnostic mode (as opposed to the release mode). Replaces abort() on error with a human-readable error message. Address and Thread sanitizers always run in diagnostic mode.
 undefined bool, Undefined behavior sanitizer, diagnostic mode
 cfi bool, cfi sanitizer, diagnostic mode, incompatible with asan, hwasan, fuzzer, or Darwin
 integer_overflow bool, signed/unsigned integer overflow sanitizer, diagnostic mode, incompatible with Darwin.
 memtag_heap bool, Memory-tagging, only available on arm64 requires sanitizer.memtag: true if set, enables sync memory tagging
 misc_undefined list of string, List of specific undefined behavior sanitizers to enable in diagnostic mode
 no_recover list of string, List of sanitizers to pass to -fno-sanitize-recover results in only the first detected error for these sanitizers being reported and program then exits with a non-zero exit code.
config
Sanitizers to run with flag configuration specified
 cfi_assembly_support bool, Enables CFI support flags for assembly-heavy libraries
 recover list of string, List of sanitizers to pass to -fsanitize-recover allows execution to continue for these sanitizers to detect multiple errors rather than only the first one
 blocklist string, value to pass to -fsanitize-ignorelist
 sdk_variant_only bool, If true, always create an sdk variant and don't create a platform variant.
 sdk_version string, The API level that this module is built against. The APIs of this API level will be visible at build time, but use of any APIs newer than min_sdk_version will render the module unloadable on older devices. In the future it will be possible to weakly-link new APIs, making the behavior match Java: such modules will load on older devices, but calling new APIs on devices that do not support them will result in a crash. This property has the same behavior as sdk_version does for Java modules. For those familiar with Android Gradle, the property behaves similarly to how compileSdkVersion does for Java code. In addition, setting this property causes two variants to be built, one for the platform and one for apps.
 shared_libs configurable list of string, list of modules that should be dynamically linked into this module.
 soc_specific bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist).
 static_executable bool, compile executable with -static
 static_libs configurable list of string, list of modules that should be statically linked into this module.
 stem string, set the name of the output
 stl string, Select the STL library to use. Possible values are "libc++", "libc++_static", "libstdc++", or "none". Leave blank to select the default.
strip
 none bool, Device modules default to stripping enabled leaving mini debuginfo. Host modules default to stripping disabled, but can be enabled by setting any other strip boolean property.
 all bool, all forces stripping everything, including the mini debug info.
 keep_symbols bool, keep_symbols enables stripping but keeps all symbols.
 keep_symbols_list list of string, keep_symbols_list specifies a list of symbols to keep if keep_symbols is enabled. If it is unset then all symbols are kept.
 keep_symbols_and_debug_frame bool, keep_symbols_and_debug_frame enables stripping but keeps all symbols and debug frames.
 suffix string, append to the name of the output
 system_dlkm_specific bool, Install to partition system_dlkm when set to true.
 system_ext_specific bool, whether this module extends system. When set to true, it is installed into /system_ext (or /system/system_ext if system_ext partition does not exist).
 system_shared_libs list of string, list of system libraries that will be dynamically linked to shared library and executable modules. If unset, generally defaults to libc, libm, and libdl. Set to [] to prevent linking against the defaults.
 target interface
target.android
 compile_multilib string
 enabled bool
target.apex
 exclude_shared_libs list of string, list of shared libs that should not be used to build the apex variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the apex variant of the C/C++ module.
target.host
 compile_multilib string
target.non_apex
 exclude_shared_libs list of string, list of shared libs that should not be used to build the non-apex variant of the C/C++ module.
target.platform
 required list of string, List of modules required by the core variant.
 exclude_required list of string, List of modules not required by the core variant.
 shared_libs list of string, list of shared libs that should be use to build the platform variant of a module that sets sdk_version. This should rarely be necessary, in most cases the same libraries are available for the SDK and platform variants.
 header_libs list of string, list of ehader libs that only should be used to build platform variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the platform variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the platform variant of the C/C++ module.
target.product
 srcs list of string, list of source files that should only be used in vendor or product variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build vendor or product variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build vendor or product variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build vendor or product variant of the C/C++ module.
 shared_libs list of string, list of shared libs that only should be used to build vendor or product variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build vendor or product variant of the C/C++ module.
 header_libs list of string, list of header libs that only should be used to build vendor or product variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor or product variant of the C/C++ module.
 version_script string, version script for vendor or product variant
target.ramdisk
 exclude_srcs list of string, list of source files that should not be used to build the ramdisk variants of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the ramdisk variants of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build the ramdisk variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the ramdisk variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the ramdisk variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the ramdisk variant of the C/C++ module.
target.recovery
 required list of string, List of modules required by the recovery variant.
 exclude_required list of string, List of modules not required by the recovery variant.
 srcs list of string, list of source files that should only be used in the recovery variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build the recovery variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the recovery variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build the recovery variant of the C/C++ module.
 shared_libs list of string, list of shared libs that only should be used to build the recovery variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build the recovery variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the recovery variant of the C/C++ module.
target.vendor
 shared_libs list of string, list of shared libs that only should be used to build vendor or product variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build vendor or product variant of the C/C++ module.
 header_libs list of string, list of header libs that only should be used to build vendor or product variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor or product variant of the C/C++ module.
 version_script string, version script for vendor or product variant
 srcs list of string, list of source files that should only be used in vendor or product variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build vendor or product variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build vendor or product variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build vendor or product variant of the C/C++ module.
target.vendor_ramdisk
 exclude_shared_libs list of string, list of shared libs that should not be used to build the vendor ramdisk variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the vendor ramdisk variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor ramdisk variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build the ramdisk variants of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the ramdisk variants of the C/C++ module.
 target_required list of string, names of other modules to install on target if this module is installed
 team string, The team (defined by the owner/vendor) who owns the property.
 test_config string, the name of the test configuration (for example "AndroidTest.xml") that should be installed with the module.
 test_config_template string, the name of the test configuration template (for example "AndroidTestTemplate.xml") that should be installed with the module.
 test_suites list of string, list of compatibility suites (for example "cts", "vts") that the module should be installed into.
 tidy bool, whether to run clang-tidy over C-like sources.
 tidy_checks list of string, Extra checks to enable or disable in clang-tidy
 tidy_checks_as_errors list of string, Checks that should be treated as errors.
 tidy_disabled_srcs list of string, list of source files that should not be compiled with clang-tidy.
 tidy_flags list of string, Extra flags to pass to clang-tidy
 tidy_timeout_srcs list of string, list of source files that should not be compiled by clang-tidy when TIDY_TIMEOUT is set.
 use_generic_config bool, Set to true if this module must be generic and does not require product-specific information. To be included in the system image, this property must be set to true.
 use_version_lib bool, make android::build:GetBuildNumber() available containing the build ID.
 vendor bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist). Use `soc_specific` instead for better meaning.
 vendor_available bool, whether this module should be allowed to be directly depended by other modules with `vendor: true`, `proprietary: true`, or `vendor_available:true`. If set to true, two variants will be built separately, one like normal, and the other limited to the set of libraries and headers that are exposed to /vendor modules. The vendor variant may be used with a different (newer) /system, so it shouldn't have any unversioned runtime dependencies, or make assumptions about the system that may not be true in the future. If set to false, this module becomes inaccessible from /vendor modules. The modules with vndk: {enabled: true} must define 'vendor_available' to 'true'. Nothing happens if BOARD_VNDK_VERSION isn't set in the BoardConfig.mk
 vendor_dlkm_specific bool, Install to partition vendor_dlkm when set to true.
 vendor_ramdisk bool, Whether this module is installed to vendor ramdisk
 vendor_ramdisk_available bool, Make this module available when building for vendor ramdisk. On device without a dedicated recovery partition, the module is only available after switching root into /first_stage_ramdisk. To expose the module before switching root, install the recovery variant instead.
 version_script string, local file name to pass to the linker as --version-script. Not supported on darwin, and will fail to build if provided to the darwin variant of a module.
 vintf_fragment_modules configurable list of string, vintf_fragment Modules required from this module.
 vintf_fragments configurable list of string, VINTF manifest fragments to be installed if this module is installed
 visibility list of string, Controls the visibility of this module to other modules. Allowable values are one or more of these formats:

 ["//visibility:public"]: Anyone can use this module.
 ["//visibility:private"]: Only rules in the module's package (not its subpackages) can use
     this module.
 ["//visibility:override"]: Discards any rules inherited from defaults or a creating module.
     Can only be used at the beginning of a list of visibility rules.
 ["//some/package:__pkg__", "//other/package:__pkg__"]: Only modules in some/package and
     other/package (defined in some/package/*.bp and other/package/*.bp) have access to
     this module. Note that sub-packages do not have access to the rule; for example,
     //some/package/foo:bar or //other/package/testing:bla wouldn't have access. __pkg__
     is a special module and must be used verbatim. It represents all of the modules in the
     package.
 ["//project:__subpackages__", "//other:__subpackages__"]: Only modules in packages project
     or other or in one of their sub-packages have access to this module. For example,
     //project:rule, //project/library:lib or //other/testing/internal:munge are allowed
     to depend on this rule (but not //independent:evil)
 ["//project"]: This is shorthand for ["//project:__pkg__"]
 [":__subpackages__"]: This is shorthand for ["//project:__subpackages__"] where
     //project is the module's package. e.g. using [":__subpackages__"] in
     packages/apps/Settings/Android.bp is equivalent to
     //packages/apps/Settings:__subpackages__.
 ["//visibility:legacy_public"]: The default visibility, behaves as //visibility:public
     for now. It is an error if it is used in a module.

If a module does not specify the `visibility` property then it uses the `default_visibility` property of the `package` module in the module's package. If the `default_visibility` property is not set for the module's package then it will use the `default_visibility` of its closest ancestor package for which a `default_visibility` property is specified. If no `default_visibility` property can be found then the module uses the global default of `//visibility:legacy_public`. The `visibility` property has no effect on a defaults module although it does apply to any non-defaults module that uses it. To set the visibility of a defaults module, use the `defaults_visibility` property on the defaults module; not to be confused with the `default_visibility` property on the package module. See https://android.googlesource.com/platform/build/soong/+/main/README.md#visibility for more details.
 whole_program_vtables bool, Use -fwhole-program-vtables cflag.
 whole_static_libs configurable list of string, list of modules whose object files should be linked into this module in their entirety. For static library modules, all of the .o files from the intermediate directory of the dependency will be linked into this modules .a file. For a shared library, the dependency's .a file will be linked into this module using -Wl,--whole-archive.
 yacc YaccProperties

cc_binary

cc_binary produces a binary that is runnable on a device.
 name string, The name of the module. Must be unique across all modules.
 srcs configurable list of string, list of source files used to compile the C/C++ module. May be .c, .cpp, or .S files. srcs may reference the outputs of other modules that produce source files like genrule or filegroup using the syntax ":module".
 exclude_srcs configurable list of string, list of source files that should not be used to build the C/C++ module. This is most useful in the arch/multilib variants to remove non-common files
 defaults list of string
 host_supported bool, If set to true, build a variant of the module for the host. Defaults to false.
 device_supported bool, If set to true, build a variant of the module for the device. Defaults to true.
 afdo bool, Afdo allows developers self-service enroll for automatic feedback-directed optimization using profile data.
aidl
 libs list of string, List of aidl_library modules
 include_dirs list of string, list of directories that will be added to the aidl include paths.
 local_include_dirs list of string, list of directories relative to the Blueprints file that will be added to the aidl include paths.
 generate_traces bool, whether to generate traces (for systrace) for this interface
 flags list of string, list of flags that will be passed to the AIDL compiler
 allow_undefined_symbols bool, allow the module to contain undefined symbols. By default, modules cannot contain undefined symbols that are not satisified by their immediate dependencies. Set this flag to true to remove --no-undefined from the linker flags. This flag should only be necessary for compiling low-level libraries like libc.
 apex_available list of string, Availability of this module in APEXes. Only the listed APEXes can contain this module. If the module has stubs then other APEXes and the platform may access it through them (subject to visibility). "//apex_available:anyapex" is a pseudo APEX name that matches to any APEX. "//apex_available:platform" refers to non-APEX partitions like "system.img". Prefix pattern (com.foo.*) can be used to match with any APEX name with the prefix(com.foo.). Default is ["//apex_available:platform"].
 arch interface
 asflags list of string, list of module-specific flags that will be used for .S compiles
 bootstrap bool, Allows this module to use non-APEX version of libraries. Useful for building binaries that are started before APEXes are activated.
 bpf_target bool, cc Build rules targeting BPF must set this to true. The correct fix is to ban targeting bpf in cc rules instead use bpf_rules. (b/323415017)
buildstubs bool
 bool bool
 c_std string, C standard version to use. Can be a specific version (such as "gnu11"), "experimental" (which will use draft versions like C1x when available), or the empty string (which will use the default).
 cflags configurable list of string, list of module-specific flags that will be used for C and C++ compiles.
 clang bool, Deprecated. true is the default, false is invalid.
 clang_asflags list of string, list of module-specific flags that will be used for .S compiles when compiling with clang
 clang_cflags list of string, list of module-specific flags that will be used for C and C++ compiles when compiling with clang
 clang_verify bool, Add "-Xclang -verify" to the cflags and appends "touch $out" to the clang command line.
 cmake_snapshot_supported bool, Allows this module to be included in CMake release snapshots to be built outside of Android build system and source tree.
 compile_multilib string, control whether this module compiles for 32-bit, 64-bit, or both. Possible values are "32" (compile for 32-bit only), "64" (compile for 64-bit only), "both" (compile for both architectures), or "first" (compile for 64-bit on a 64-bit platform, and 32-bit on a 32-bit platform).
 conlyflags list of string, list of module-specific flags that will be used for C compiles
 cpp_std string, C++ standard version to use. Can be a specific version (such as "gnu++11"), "experimental" (which will use draft versions like C++1z when available), or the empty string (which will use the default).
 cppflags configurable list of string, list of module-specific flags that will be used for C++ compiles
 debug_ramdisk bool, Whether this module is installed to debug ramdisk
 device_first_generated_headers configurable list of string, Same as generated_headers, but the dependencies will be added based on the first supported arch variant and the device os variant. This can be useful for creating a host tool that embeds a copy of a device tool, that it then extracts and pushes to a device at runtime.
 device_specific bool, whether this module is specific to a device, not only for SoC, but also for off-chip peripherals. When set to true, it is installed into /odm (or /vendor/odm if odm partition does not exist, or /system/vendor/odm if both odm and vendor partitions do not exist). This implies `soc_specific:true`.
dist Dist
configuration to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 targets list of string, Copy the output of this module to the $DIST_DIR when `dist` is specified on the command line and any of these targets are also on the command line, or otherwise built
 dest string, The name of the output artifact. This defaults to the basename of the output of the module.
 dir string, The directory within the dist directory to store the artifact. Defaults to the top level directory ("").
 suffix string, A suffix to add to the artifact file name (before any extension).
 append_artifact_with_product bool, If true, then the artifact file will be appended with _<product name>. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be foo_coral.apk. If false, there is no change to the artifact file name.
 prepend_artifact_with_product bool, If true, then the artifact file will be prepended with <product name>-. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be coral-foo.apk. If false, there is no change to the artifact file name.
 tag string, A string tag to select the OutputFiles associated with the tag. If no tag is specified then it will select the default dist paths provided by the module type. If a tag of "" is specified then it will return the default output files provided by the modules, i.e. the result of calling OutputFiles("").
 dists list of Dist, a list of configurations to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 double_loadable bool, whether this module is capable of being loaded with other instance (possibly an older version) of the same module in the same process. Currently, a shared library that is a member of VNDK (vndk: {enabled: true}) can be double loaded in a vendor process if the library is also a (direct and indirect) dependency of an LLNDK library. Such libraries must be explicitly marked as `double_loadable: true` by the owner, or the dependency from the LLNDK lib should be cut if the lib is not designed to be double loaded.
 dynamic_list string, local file name to pass to the linker as --dynamic-list. Not supported on darwin, and will fail to build if provided to the darwin variant of a module.
 enabled configurable bool, emit build rules for this module Disabling a module should only be done for those modules that cannot be built in the current environment. Modules that can build in the current environment but are not usually required (e.g. superceded by a prebuilt) should not be disabled as that will prevent them from being built by the checkbuild target and so prevent early detection of changes that have broken those modules.
 exclude_generated_sources list of string, list of generated sources that should not be used to build the C/C++ module. This is most useful in the arch/multilib variants to remove non-common files
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with this module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build this module
 exclude_static_libs list of string, list of static libs that should not be used to build this module
 export_generated_headers list of string, list of generated headers to re-export include directories from. Entries must be present in generated_headers.
 export_header_lib_headers configurable list of string, list of header libraries to re-export include directories from. Entries must be present in header_libs.
 export_shared_lib_headers list of string, list of shared libraries to re-export include directories from. Entries must be present in shared_libs.
 export_static_lib_headers list of string, list of static libraries to re-export include directories from. Entries must be present in static_libs.
 generated_headers configurable list of string, list of generated headers to add to the include path. These are the names of genrule modules.
 generated_sources list of string, list of generated sources to compile. These are the names of gensrcs or genrule modules.
 gnu_extensions bool, if set to false, use -std=c++* instead of -std=gnu++*
 group_static_libs bool, deprecated and ignored because lld makes it unnecessary. See b/189475744.
 header_libs configurable list of string, list of modules that should only provide headers for this module.
 host_cross_supported bool, If set to true, build a variant of the module for the host cross. Defaults to true.
 host_ldlibs list of string, -l arguments to pass to linker for host-provided shared libraries
 host_required list of string, names of other modules to install on host if this module is installed
 ignore_max_page_size bool, ignore max page size. By default, max page size must be the max page size set for the target.
 include_build_directory bool, Add the directory containing the Android.bp file to the list of include directories. Defaults to true.
 include_dirs configurable list of string, list of directories relative to the root of the source tree that will be added to the include path using -I. If possible, don't use this. If adding paths from the current directory use local_include_dirs, if adding paths from other modules use export_include_dirs in that module.
 init_rc configurable list of string, init.rc files to be installed if this module is installed
 inject_bssl_hash bool, Inject boringssl hash into the shared library. This is only intended for use by external/boringssl.
 install_in_root bool, Install output directly in {partition}/, not in any subdir. This is only intended for use by init_first_stage.
 install_in_xbin bool, Install output directly in {partition}/xbin
 installable bool
 instruction_set string, the instruction set architecture to use to compile the C/C++ module.
 ldflags list of string, list of module-specific flags that will be used for all link steps
 lex LexProperties
 licenses list of string, Describes the licenses applicable to this module. Must reference license modules.
 linker_scripts list of string, local files to pass to the linker as --script. Not supported on darwin or windows, and will fail to build if provided to the darwin or windows variant of a module.
 local_include_dirs configurable list of string, list of directories relative to the Blueprints file that will be added to the include path using -I
 logtags list of string, *.logtags files, to combine together in order to generate the /system/etc/event-log-tags file
lto
Lto must violate capitalization style for acronyms so that it can be referred to in blueprint files as "lto"
 never bool
 thin bool
 lto_O0 bool, Use --lto-O0 flag.
 min_sdk_version string, Minimum OS API level supported by this C or C++ module. This property becomes the value of the __ANDROID_API__ macro. When the C or C++ module is included in an APEX or an APK, this property is also used to ensure that the min_sdk_version of the containing module is not older (i.e. less) than this module's min_sdk_version. When not set, this property defaults to the value of sdk_version. When this is set to "apex_inherit", this tracks min_sdk_version of the containing APEX. When the module is not built for an APEX, "apex_inherit" defaults to sdk_version.
 multilib interface
 native_bridge_supported bool, Whether this module is built for non-native architectures (also known as native bridge binary)
 native_coverage bool
 no_crt_pad_segment bool, don't link in crt_pad_segment. This flag is currently only used internal to soong for testing and for vndk prebuilt shared libraries.
 no_full_install bool, When set to true, this module is not installed to the full install path (ex: under out/target/product/<name>/<partition>). It can be installed only to the packaging modules like android_filesystem.
 no_libcrt bool, don't link in libclang_rt.builtins-*.a
 nocrt bool, don't link in crt_begin and crt_end. This flag should only be necessary for compiling crt or libc.
 odm_available bool, This is the same as the "vendor_available" except that the install path of the vendor variant is /odm or /vendor/odm. By replacing "vendor_available: true" with "odm_available: true", the module will install its vendor variant to the /odm partition or /vendor/odm. As the modules with "odm_available: true" still create the vendor variants, they can link to the other vendor modules as the vendor_available modules do. Also, the vendor modules can link to odm_available modules. It may not be used for VNDK modules.
 odm_dlkm_specific bool, Install to partition odm_dlkm when set to true.
 openmp bool, Build and link with OpenMP
 optimize_for_size bool, Aggresively trade performance for smaller binary size. This should only be used for on-device binaries that are rarely executed and not performance critical.
orderfile
 instrumentation bool
 order_file_path string
 load_order_file bool
 cflags list of string, Additional compiler flags to use when building this module for orderfile profiling.
 overrides list of string, List of module names that are prevented from being installed when this module gets installed.
 owner string, vendor who owns this module
 pack_relocations bool, Generate compact dynamic relocation table, default true.
 prefix_symbols string, if set, add an extra objcopy --prefix-symbols= step
 product_available bool, whether this module should be allowed to be directly depended by other modules with `product_specific: true` or `product_available: true`. If set to true, an additional product variant will be built separately that is limited to the set of libraries and headers that are exposed to /product modules. The product variant may be used with a different (newer) /system, so it shouldn't have any unversioned runtime dependencies, or make assumptions about the system that may not be true in the future. If set to false, this module becomes inaccessible from /product modules. Different from the 'vendor_available' property, the modules with vndk: {enabled: true} don't have to define 'product_available'. The VNDK library without 'product_available' may not be depended on by any other modules that has product variants including the product available VNDKs. Nothing happens if BOARD_VNDK_VERSION isn't set in the BoardConfig.mk and PRODUCT_PRODUCT_VNDK_VERSION isn't set.
 product_specific bool, whether this module is specific to a software configuration of a product (e.g. country, network operator, etc). When set to true, it is installed into /product (or /system/product if product partition does not exist).
product_variables.arc
cflags
  []string
exclude_srcs
  []string
header_libs
  []string
include_dirs
  []string
shared_libs
  []string
static_libs
  []string
srcs
  []string
whole_static_libs
  []string
product_variables.binder32bit
cflags
  []string
product_variables.build_from_text_stub
static_libs
  []string
exclude_static_libs
  []string
product_variables.debuggable
cflags
  []string
cppflags
  []string
init_rc
  []string
required
  []string
host_required
  []string
target_required
  []string
strip.all
  *bool
strip.keep_symbols
  *bool
strip.keep_symbols_and_debug_frame
  *bool
static_libs
  []string
exclude_static_libs
  []string
whole_static_libs
  []string
shared_libs
  []string
srcs
  []string
exclude_srcs
  []string
product_variables.enforce_vintf_manifest
cflags
  []string
product_variables.eng
cflags
  []string
cppflags
  []string
lto.never
  *bool
sanitize.address
  *bool
product_variables.malloc_low_memory
cflags
  []string
shared_libs
  []string
whole_static_libs
  []string
static_libs
  []string
exclude_static_libs
  []string
srcs
  []string
header_libs
  []string
product_variables.malloc_pattern_fill_contents
cflags
  []string
product_variables.malloc_zero_contents
cflags
  []string
product_variables.native_coverage
srcs
  []string
exclude_srcs
  []string
product_variables.override_rs_driver
cflags
  []string
product_variables.platform_sdk_version
asflags
  []string
cflags
  []string
product_variables.release_aidl_use_unfrozen
cflags
  []string
required
  []string
vintf_fragment_modules
  []string
product_variables.safestack
cflags
  []string
product_variables.selinuxignoreneverallows
required
  []string
product_variables.shipping_api_level
cflags
  []string
product_variables.treble_linker_namespaces
cflags
  []string
product_variables.uml
cppflags
  []string
product_variables.unbundled_build
enabled Configurable[bool]
 Configurable[bool] proptools.Configurable[bool]
 proprietary bool, whether this is a proprietary vendor module, and should be installed into /vendor
proto
 static bool, Link statically against the protobuf runtime
 type string, Proto generator type. C++: full or lite. Java: micro, nano, stream, or lite.
 plugin string, Proto plugin to use as the generator. Must be a cc_binary_host module.
 include_dirs list of string, list of directories that will be added to the protoc include paths.
 local_include_dirs list of string, list of directories relative to the bp file that will be added to the protoc include paths.
 canonical_path_from_root bool, whether to identify the proto files from the root of the source tree (the original method in Android, useful for android-specific protos), or relative from where they were specified (useful for external/third party protos). This defaults to true today, but is expected to default to false in the future.
 ramdisk bool, Whether this module is installed to ramdisk
 ramdisk_available bool, Make this module available when building for ramdisk. On device without a dedicated recovery partition, the module is only available after switching root into /first_stage_ramdisk. To expose the module before switching root, install the recovery variant instead.
 recovery bool, Whether this module is installed to recovery partition
 recovery_available bool, Make this module available when building for recovery
 relative_install_path string, install to a subdirectory of the default install path for the module
renderscript
 include_dirs list of string, list of directories that will be added to the llvm-rs-cc include paths
 flags list of string, list of flags that will be passed to llvm-rs-cc
 target_api string, Renderscript API level to target
 required configurable list of string, names of other modules to install if this module is installed
 rtti bool, pass -frtti instead of -fno-rtti
 runtime_libs list of string, list of modules that should be installed with this module. This is similar to 'required' but '.vendor' suffix will be appended to the module names if the shared libraries have vendor variants and this module uses VNDK.
sanitize SanitizeUserProps
 never bool, Prevent use of any sanitizers on this module
 address bool, ASan (Address sanitizer), incompatible with static binaries. Always runs in a diagnostic mode. Use of address sanitizer disables cfi sanitizer. Hwaddress sanitizer takes precedence over this sanitizer.
 thread bool, TSan (Thread sanitizer), incompatible with static binaries and 32 bit architectures. Always runs in a diagnostic mode. Use of thread sanitizer disables cfi and scudo sanitizers. Hwaddress sanitizer takes precedence over this sanitizer.
 hwaddress bool, HWASan (Hardware Address sanitizer). Use of hwasan sanitizer disables cfi, address, thread, and scudo sanitizers.
 all_undefined bool, Undefined behavior sanitizer
 undefined bool, Subset of undefined behavior sanitizer
 misc_undefined list of string, List of specific undefined behavior sanitizers to enable
 fuzzer bool, Fuzzer, incompatible with static binaries.
 safestack bool, safe-stack sanitizer, incompatible with 32-bit architectures.
 cfi bool, cfi sanitizer, incompatible with asan, hwasan, fuzzer, or Darwin
 integer_overflow bool, signed/unsigned integer overflow sanitizer, incompatible with Darwin.
 scudo bool, scudo sanitizer, incompatible with asan, hwasan, tsan This should not be used in Android 11+ : https://source.android.com/devices/tech/debug/scudo deprecated
 scs bool, shadow-call-stack sanitizer, only available on arm64/riscv64.
 memtag_heap bool, Memory-tagging, only available on arm64 if diag.memtag unset or false, enables async memory tagging
 memtag_stack bool, Memory-tagging stack instrumentation, only available on arm64 Adds instrumentation to detect stack buffer overflows and use-after-scope using MTE.
 memtag_globals bool, Memory-tagging globals instrumentation, only available on arm64 Adds instrumentation to detect global buffer overflows using MTE.
 writeonly bool, A modifier for ASAN and HWASAN for write only instrumentation
diag
Sanitizers to run in the diagnostic mode (as opposed to the release mode). Replaces abort() on error with a human-readable error message. Address and Thread sanitizers always run in diagnostic mode.
 undefined bool, Undefined behavior sanitizer, diagnostic mode
 cfi bool, cfi sanitizer, diagnostic mode, incompatible with asan, hwasan, fuzzer, or Darwin
 integer_overflow bool, signed/unsigned integer overflow sanitizer, diagnostic mode, incompatible with Darwin.
 memtag_heap bool, Memory-tagging, only available on arm64 requires sanitizer.memtag: true if set, enables sync memory tagging
 misc_undefined list of string, List of specific undefined behavior sanitizers to enable in diagnostic mode
 no_recover list of string, List of sanitizers to pass to -fno-sanitize-recover results in only the first detected error for these sanitizers being reported and program then exits with a non-zero exit code.
config
Sanitizers to run with flag configuration specified
 cfi_assembly_support bool, Enables CFI support flags for assembly-heavy libraries
 recover list of string, List of sanitizers to pass to -fsanitize-recover allows execution to continue for these sanitizers to detect multiple errors rather than only the first one
 blocklist string, value to pass to -fsanitize-ignorelist
 sdk_variant_only bool, If true, always create an sdk variant and don't create a platform variant.
 sdk_version string, The API level that this module is built against. The APIs of this API level will be visible at build time, but use of any APIs newer than min_sdk_version will render the module unloadable on older devices. In the future it will be possible to weakly-link new APIs, making the behavior match Java: such modules will load on older devices, but calling new APIs on devices that do not support them will result in a crash. This property has the same behavior as sdk_version does for Java modules. For those familiar with Android Gradle, the property behaves similarly to how compileSdkVersion does for Java code. In addition, setting this property causes two variants to be built, one for the platform and one for apps.
 shared_libs configurable list of string, list of modules that should be dynamically linked into this module.
 soc_specific bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist).
 static_executable bool, compile executable with -static
 static_libs configurable list of string, list of modules that should be statically linked into this module.
 stem string, set the name of the output
 stl string, Select the STL library to use. Possible values are "libc++", "libc++_static", "libstdc++", or "none". Leave blank to select the default.
strip
 none bool, Device modules default to stripping enabled leaving mini debuginfo. Host modules default to stripping disabled, but can be enabled by setting any other strip boolean property.
 all bool, all forces stripping everything, including the mini debug info.
 keep_symbols bool, keep_symbols enables stripping but keeps all symbols.
 keep_symbols_list list of string, keep_symbols_list specifies a list of symbols to keep if keep_symbols is enabled. If it is unset then all symbols are kept.
 keep_symbols_and_debug_frame bool, keep_symbols_and_debug_frame enables stripping but keeps all symbols and debug frames.
 suffix string, append to the name of the output
 system_dlkm_specific bool, Install to partition system_dlkm when set to true.
 system_ext_specific bool, whether this module extends system. When set to true, it is installed into /system_ext (or /system/system_ext if system_ext partition does not exist).
 system_shared_libs list of string, list of system libraries that will be dynamically linked to shared library and executable modules. If unset, generally defaults to libc, libm, and libdl. Set to [] to prevent linking against the defaults.
 target interface
target.android
 compile_multilib string
 enabled bool
target.apex
 exclude_shared_libs list of string, list of shared libs that should not be used to build the apex variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the apex variant of the C/C++ module.
target.host
 compile_multilib string
target.non_apex
 exclude_shared_libs list of string, list of shared libs that should not be used to build the non-apex variant of the C/C++ module.
target.platform
 shared_libs list of string, list of shared libs that should be use to build the platform variant of a module that sets sdk_version. This should rarely be necessary, in most cases the same libraries are available for the SDK and platform variants.
 header_libs list of string, list of ehader libs that only should be used to build platform variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the platform variant of the C/C++ module.
 required list of string, List of modules required by the core variant.
 exclude_required list of string, List of modules not required by the core variant.
 cflags list of string, List of additional cflags that should be used to build the platform variant of the C/C++ module.
target.product
 shared_libs list of string, list of shared libs that only should be used to build vendor or product variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build vendor or product variant of the C/C++ module.
 header_libs list of string, list of header libs that only should be used to build vendor or product variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor or product variant of the C/C++ module.
 version_script string, version script for vendor or product variant
 srcs list of string, list of source files that should only be used in vendor or product variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build vendor or product variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build vendor or product variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build vendor or product variant of the C/C++ module.
target.ramdisk
 static_libs list of string, list of static libs that only should be used to build the ramdisk variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the ramdisk variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the ramdisk variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the ramdisk variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build the ramdisk variants of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the ramdisk variants of the C/C++ module.
target.recovery
 required list of string, List of modules required by the recovery variant.
 exclude_required list of string, List of modules not required by the recovery variant.
 shared_libs list of string, list of shared libs that only should be used to build the recovery variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build the recovery variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the recovery variant of the C/C++ module.
 srcs list of string, list of source files that should only be used in the recovery variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build the recovery variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the recovery variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build the recovery variant of the C/C++ module.
target.vendor
 srcs list of string, list of source files that should only be used in vendor or product variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build vendor or product variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build vendor or product variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build vendor or product variant of the C/C++ module.
 shared_libs list of string, list of shared libs that only should be used to build vendor or product variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build vendor or product variant of the C/C++ module.
 header_libs list of string, list of header libs that only should be used to build vendor or product variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor or product variant of the C/C++ module.
 version_script string, version script for vendor or product variant
target.vendor_ramdisk
 exclude_shared_libs list of string, list of shared libs that should not be used to build the vendor ramdisk variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the vendor ramdisk variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor ramdisk variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build the ramdisk variants of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the ramdisk variants of the C/C++ module.
 target_required list of string, names of other modules to install on target if this module is installed
 team string, The team (defined by the owner/vendor) who owns the property.
 tidy bool, whether to run clang-tidy over C-like sources.
 tidy_checks list of string, Extra checks to enable or disable in clang-tidy
 tidy_checks_as_errors list of string, Checks that should be treated as errors.
 tidy_disabled_srcs list of string, list of source files that should not be compiled with clang-tidy.
 tidy_flags list of string, Extra flags to pass to clang-tidy
 tidy_timeout_srcs list of string, list of source files that should not be compiled by clang-tidy when TIDY_TIMEOUT is set.
 use_generic_config bool, Set to true if this module must be generic and does not require product-specific information. To be included in the system image, this property must be set to true.
 use_version_lib bool, make android::build:GetBuildNumber() available containing the build ID.
 vendor bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist). Use `soc_specific` instead for better meaning.
 vendor_available bool, whether this module should be allowed to be directly depended by other modules with `vendor: true`, `proprietary: true`, or `vendor_available:true`. If set to true, two variants will be built separately, one like normal, and the other limited to the set of libraries and headers that are exposed to /vendor modules. The vendor variant may be used with a different (newer) /system, so it shouldn't have any unversioned runtime dependencies, or make assumptions about the system that may not be true in the future. If set to false, this module becomes inaccessible from /vendor modules. The modules with vndk: {enabled: true} must define 'vendor_available' to 'true'. Nothing happens if BOARD_VNDK_VERSION isn't set in the BoardConfig.mk
 vendor_dlkm_specific bool, Install to partition vendor_dlkm when set to true.
 vendor_ramdisk bool, Whether this module is installed to vendor ramdisk
 vendor_ramdisk_available bool, Make this module available when building for vendor ramdisk. On device without a dedicated recovery partition, the module is only available after switching root into /first_stage_ramdisk. To expose the module before switching root, install the recovery variant instead.
 version_script string, local file name to pass to the linker as --version-script. Not supported on darwin, and will fail to build if provided to the darwin variant of a module.
 vintf_fragment_modules configurable list of string, vintf_fragment Modules required from this module.
 vintf_fragments configurable list of string, VINTF manifest fragments to be installed if this module is installed
 visibility list of string, Controls the visibility of this module to other modules. Allowable values are one or more of these formats:

 ["//visibility:public"]: Anyone can use this module.
 ["//visibility:private"]: Only rules in the module's package (not its subpackages) can use
     this module.
 ["//visibility:override"]: Discards any rules inherited from defaults or a creating module.
     Can only be used at the beginning of a list of visibility rules.
 ["//some/package:__pkg__", "//other/package:__pkg__"]: Only modules in some/package and
     other/package (defined in some/package/*.bp and other/package/*.bp) have access to
     this module. Note that sub-packages do not have access to the rule; for example,
     //some/package/foo:bar or //other/package/testing:bla wouldn't have access. __pkg__
     is a special module and must be used verbatim. It represents all of the modules in the
     package.
 ["//project:__subpackages__", "//other:__subpackages__"]: Only modules in packages project
     or other or in one of their sub-packages have access to this module. For example,
     //project:rule, //project/library:lib or //other/testing/internal:munge are allowed
     to depend on this rule (but not //independent:evil)
 ["//project"]: This is shorthand for ["//project:__pkg__"]
 [":__subpackages__"]: This is shorthand for ["//project:__subpackages__"] where
     //project is the module's package. e.g. using [":__subpackages__"] in
     packages/apps/Settings/Android.bp is equivalent to
     //packages/apps/Settings:__subpackages__.
 ["//visibility:legacy_public"]: The default visibility, behaves as //visibility:public
     for now. It is an error if it is used in a module.

If a module does not specify the `visibility` property then it uses the `default_visibility` property of the `package` module in the module's package. If the `default_visibility` property is not set for the module's package then it will use the `default_visibility` of its closest ancestor package for which a `default_visibility` property is specified. If no `default_visibility` property can be found then the module uses the global default of `//visibility:legacy_public`. The `visibility` property has no effect on a defaults module although it does apply to any non-defaults module that uses it. To set the visibility of a defaults module, use the `defaults_visibility` property on the defaults module; not to be confused with the `default_visibility` property on the package module. See https://android.googlesource.com/platform/build/soong/+/main/README.md#visibility for more details.
 whole_program_vtables bool, Use -fwhole-program-vtables cflag.
 whole_static_libs configurable list of string, list of modules whose object files should be linked into this module in their entirety. For static library modules, all of the .o files from the intermediate directory of the dependency will be linked into this modules .a file. For a shared library, the dependency's .a file will be linked into this module using -Wl,--whole-archive.
 yacc YaccProperties

cc_binary_host

cc_binary_host produces a binary that is runnable on a host.
 name string, The name of the module. Must be unique across all modules.
 srcs configurable list of string, list of source files used to compile the C/C++ module. May be .c, .cpp, or .S files. srcs may reference the outputs of other modules that produce source files like genrule or filegroup using the syntax ":module".
 exclude_srcs configurable list of string, list of source files that should not be used to build the C/C++ module. This is most useful in the arch/multilib variants to remove non-common files
 defaults list of string
 afdo bool, Afdo allows developers self-service enroll for automatic feedback-directed optimization using profile data.
aidl
 libs list of string, List of aidl_library modules
 include_dirs list of string, list of directories that will be added to the aidl include paths.
 local_include_dirs list of string, list of directories relative to the Blueprints file that will be added to the aidl include paths.
 generate_traces bool, whether to generate traces (for systrace) for this interface
 flags list of string, list of flags that will be passed to the AIDL compiler
 allow_undefined_symbols bool, allow the module to contain undefined symbols. By default, modules cannot contain undefined symbols that are not satisified by their immediate dependencies. Set this flag to true to remove --no-undefined from the linker flags. This flag should only be necessary for compiling low-level libraries like libc.
 apex_available list of string, Availability of this module in APEXes. Only the listed APEXes can contain this module. If the module has stubs then other APEXes and the platform may access it through them (subject to visibility). "//apex_available:anyapex" is a pseudo APEX name that matches to any APEX. "//apex_available:platform" refers to non-APEX partitions like "system.img". Prefix pattern (com.foo.*) can be used to match with any APEX name with the prefix(com.foo.). Default is ["//apex_available:platform"].
 arch interface
 asflags list of string, list of module-specific flags that will be used for .S compiles
 bootstrap bool, Allows this module to use non-APEX version of libraries. Useful for building binaries that are started before APEXes are activated.
 bpf_target bool, cc Build rules targeting BPF must set this to true. The correct fix is to ban targeting bpf in cc rules instead use bpf_rules. (b/323415017)
buildstubs bool
 bool bool
 c_std string, C standard version to use. Can be a specific version (such as "gnu11"), "experimental" (which will use draft versions like C1x when available), or the empty string (which will use the default).
 cflags configurable list of string, list of module-specific flags that will be used for C and C++ compiles.
 clang bool, Deprecated. true is the default, false is invalid.
 clang_asflags list of string, list of module-specific flags that will be used for .S compiles when compiling with clang
 clang_cflags list of string, list of module-specific flags that will be used for C and C++ compiles when compiling with clang
 clang_verify bool, Add "-Xclang -verify" to the cflags and appends "touch $out" to the clang command line.
 cmake_snapshot_supported bool, Allows this module to be included in CMake release snapshots to be built outside of Android build system and source tree.
 compile_multilib string, control whether this module compiles for 32-bit, 64-bit, or both. Possible values are "32" (compile for 32-bit only), "64" (compile for 64-bit only), "both" (compile for both architectures), or "first" (compile for 64-bit on a 64-bit platform, and 32-bit on a 32-bit platform).
 conlyflags list of string, list of module-specific flags that will be used for C compiles
 cpp_std string, C++ standard version to use. Can be a specific version (such as "gnu++11"), "experimental" (which will use draft versions like C++1z when available), or the empty string (which will use the default).
 cppflags configurable list of string, list of module-specific flags that will be used for C++ compiles
 debug_ramdisk bool, Whether this module is installed to debug ramdisk
 device_first_generated_headers configurable list of string, Same as generated_headers, but the dependencies will be added based on the first supported arch variant and the device os variant. This can be useful for creating a host tool that embeds a copy of a device tool, that it then extracts and pushes to a device at runtime.
 device_specific bool, whether this module is specific to a device, not only for SoC, but also for off-chip peripherals. When set to true, it is installed into /odm (or /vendor/odm if odm partition does not exist, or /system/vendor/odm if both odm and vendor partitions do not exist). This implies `soc_specific:true`.
dist Dist
configuration to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 targets list of string, Copy the output of this module to the $DIST_DIR when `dist` is specified on the command line and any of these targets are also on the command line, or otherwise built
 dest string, The name of the output artifact. This defaults to the basename of the output of the module.
 dir string, The directory within the dist directory to store the artifact. Defaults to the top level directory ("").
 suffix string, A suffix to add to the artifact file name (before any extension).
 append_artifact_with_product bool, If true, then the artifact file will be appended with _<product name>. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be foo_coral.apk. If false, there is no change to the artifact file name.
 prepend_artifact_with_product bool, If true, then the artifact file will be prepended with <product name>-. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be coral-foo.apk. If false, there is no change to the artifact file name.
 tag string, A string tag to select the OutputFiles associated with the tag. If no tag is specified then it will select the default dist paths provided by the module type. If a tag of "" is specified then it will return the default output files provided by the modules, i.e. the result of calling OutputFiles("").
 dists list of Dist, a list of configurations to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 double_loadable bool, whether this module is capable of being loaded with other instance (possibly an older version) of the same module in the same process. Currently, a shared library that is a member of VNDK (vndk: {enabled: true}) can be double loaded in a vendor process if the library is also a (direct and indirect) dependency of an LLNDK library. Such libraries must be explicitly marked as `double_loadable: true` by the owner, or the dependency from the LLNDK lib should be cut if the lib is not designed to be double loaded.
 dynamic_list string, local file name to pass to the linker as --dynamic-list. Not supported on darwin, and will fail to build if provided to the darwin variant of a module.
 enabled configurable bool, emit build rules for this module Disabling a module should only be done for those modules that cannot be built in the current environment. Modules that can build in the current environment but are not usually required (e.g. superceded by a prebuilt) should not be disabled as that will prevent them from being built by the checkbuild target and so prevent early detection of changes that have broken those modules.
 exclude_generated_sources list of string, list of generated sources that should not be used to build the C/C++ module. This is most useful in the arch/multilib variants to remove non-common files
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with this module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build this module
 exclude_static_libs list of string, list of static libs that should not be used to build this module
 export_generated_headers list of string, list of generated headers to re-export include directories from. Entries must be present in generated_headers.
 export_header_lib_headers configurable list of string, list of header libraries to re-export include directories from. Entries must be present in header_libs.
 export_shared_lib_headers list of string, list of shared libraries to re-export include directories from. Entries must be present in shared_libs.
 export_static_lib_headers list of string, list of static libraries to re-export include directories from. Entries must be present in static_libs.
 generated_headers configurable list of string, list of generated headers to add to the include path. These are the names of genrule modules.
 generated_sources list of string, list of generated sources to compile. These are the names of gensrcs or genrule modules.
 gnu_extensions bool, if set to false, use -std=c++* instead of -std=gnu++*
 group_static_libs bool, deprecated and ignored because lld makes it unnecessary. See b/189475744.
 header_libs configurable list of string, list of modules that should only provide headers for this module.
 host_cross_supported bool, If set to true, build a variant of the module for the host cross. Defaults to true.
 host_ldlibs list of string, -l arguments to pass to linker for host-provided shared libraries
 host_required list of string, names of other modules to install on host if this module is installed
 ignore_max_page_size bool, ignore max page size. By default, max page size must be the max page size set for the target.
 include_build_directory bool, Add the directory containing the Android.bp file to the list of include directories. Defaults to true.
 include_dirs configurable list of string, list of directories relative to the root of the source tree that will be added to the include path using -I. If possible, don't use this. If adding paths from the current directory use local_include_dirs, if adding paths from other modules use export_include_dirs in that module.
 init_rc configurable list of string, init.rc files to be installed if this module is installed
 inject_bssl_hash bool, Inject boringssl hash into the shared library. This is only intended for use by external/boringssl.
 install_in_root bool, Install output directly in {partition}/, not in any subdir. This is only intended for use by init_first_stage.
 install_in_xbin bool, Install output directly in {partition}/xbin
 installable bool
 instruction_set string, the instruction set architecture to use to compile the C/C++ module.
 ldflags list of string, list of module-specific flags that will be used for all link steps
 lex LexProperties
 licenses list of string, Describes the licenses applicable to this module. Must reference license modules.
 linker_scripts list of string, local files to pass to the linker as --script. Not supported on darwin or windows, and will fail to build if provided to the darwin or windows variant of a module.
 local_include_dirs configurable list of string, list of directories relative to the Blueprints file that will be added to the include path using -I
 logtags list of string, *.logtags files, to combine together in order to generate the /system/etc/event-log-tags file
lto
Lto must violate capitalization style for acronyms so that it can be referred to in blueprint files as "lto"
 never bool
 thin bool
 lto_O0 bool, Use --lto-O0 flag.
 min_sdk_version string, Minimum OS API level supported by this C or C++ module. This property becomes the value of the __ANDROID_API__ macro. When the C or C++ module is included in an APEX or an APK, this property is also used to ensure that the min_sdk_version of the containing module is not older (i.e. less) than this module's min_sdk_version. When not set, this property defaults to the value of sdk_version. When this is set to "apex_inherit", this tracks min_sdk_version of the containing APEX. When the module is not built for an APEX, "apex_inherit" defaults to sdk_version.
 multilib interface
 native_bridge_supported bool, Whether this module is built for non-native architectures (also known as native bridge binary)
 native_coverage bool
 no_crt_pad_segment bool, don't link in crt_pad_segment. This flag is currently only used internal to soong for testing and for vndk prebuilt shared libraries.
 no_full_install bool, When set to true, this module is not installed to the full install path (ex: under out/target/product/<name>/<partition>). It can be installed only to the packaging modules like android_filesystem.
 no_libcrt bool, don't link in libclang_rt.builtins-*.a
 nocrt bool, don't link in crt_begin and crt_end. This flag should only be necessary for compiling crt or libc.
 odm_available bool, This is the same as the "vendor_available" except that the install path of the vendor variant is /odm or /vendor/odm. By replacing "vendor_available: true" with "odm_available: true", the module will install its vendor variant to the /odm partition or /vendor/odm. As the modules with "odm_available: true" still create the vendor variants, they can link to the other vendor modules as the vendor_available modules do. Also, the vendor modules can link to odm_available modules. It may not be used for VNDK modules.
 odm_dlkm_specific bool, Install to partition odm_dlkm when set to true.
 openmp bool, Build and link with OpenMP
 optimize_for_size bool, Aggresively trade performance for smaller binary size. This should only be used for on-device binaries that are rarely executed and not performance critical.
orderfile
 instrumentation bool
 order_file_path string
 load_order_file bool
 cflags list of string, Additional compiler flags to use when building this module for orderfile profiling.
 overrides list of string, List of module names that are prevented from being installed when this module gets installed.
 owner string, vendor who owns this module
 pack_relocations bool, Generate compact dynamic relocation table, default true.
 prefix_symbols string, if set, add an extra objcopy --prefix-symbols= step
 product_available bool, whether this module should be allowed to be directly depended by other modules with `product_specific: true` or `product_available: true`. If set to true, an additional product variant will be built separately that is limited to the set of libraries and headers that are exposed to /product modules. The product variant may be used with a different (newer) /system, so it shouldn't have any unversioned runtime dependencies, or make assumptions about the system that may not be true in the future. If set to false, this module becomes inaccessible from /product modules. Different from the 'vendor_available' property, the modules with vndk: {enabled: true} don't have to define 'product_available'. The VNDK library without 'product_available' may not be depended on by any other modules that has product variants including the product available VNDKs. Nothing happens if BOARD_VNDK_VERSION isn't set in the BoardConfig.mk and PRODUCT_PRODUCT_VNDK_VERSION isn't set.
 product_specific bool, whether this module is specific to a software configuration of a product (e.g. country, network operator, etc). When set to true, it is installed into /product (or /system/product if product partition does not exist).
product_variables.arc
cflags
  []string
exclude_srcs
  []string
header_libs
  []string
include_dirs
  []string
shared_libs
  []string
static_libs
  []string
srcs
  []string
whole_static_libs
  []string
product_variables.binder32bit
cflags
  []string
product_variables.build_from_text_stub
static_libs
  []string
exclude_static_libs
  []string
product_variables.debuggable
cflags
  []string
cppflags
  []string
init_rc
  []string
required
  []string
host_required
  []string
target_required
  []string
strip.all
  *bool
strip.keep_symbols
  *bool
strip.keep_symbols_and_debug_frame
  *bool
static_libs
  []string
exclude_static_libs
  []string
whole_static_libs
  []string
shared_libs
  []string
srcs
  []string
exclude_srcs
  []string
product_variables.enforce_vintf_manifest
cflags
  []string
product_variables.eng
cflags
  []string
cppflags
  []string
lto.never
  *bool
sanitize.address
  *bool
product_variables.malloc_low_memory
cflags
  []string
shared_libs
  []string
whole_static_libs
  []string
static_libs
  []string
exclude_static_libs
  []string
srcs
  []string
header_libs
  []string
product_variables.malloc_pattern_fill_contents
cflags
  []string
product_variables.malloc_zero_contents
cflags
  []string
product_variables.native_coverage
srcs
  []string
exclude_srcs
  []string
product_variables.override_rs_driver
cflags
  []string
product_variables.platform_sdk_version
asflags
  []string
cflags
  []string
product_variables.release_aidl_use_unfrozen
cflags
  []string
required
  []string
vintf_fragment_modules
  []string
product_variables.safestack
cflags
  []string
product_variables.selinuxignoreneverallows
required
  []string
product_variables.shipping_api_level
cflags
  []string
product_variables.treble_linker_namespaces
cflags
  []string
product_variables.uml
cppflags
  []string
product_variables.unbundled_build
enabled Configurable[bool]
 Configurable[bool] proptools.Configurable[bool]
 proprietary bool, whether this is a proprietary vendor module, and should be installed into /vendor
proto
 type string, Proto generator type. C++: full or lite. Java: micro, nano, stream, or lite.
 plugin string, Proto plugin to use as the generator. Must be a cc_binary_host module.
 include_dirs list of string, list of directories that will be added to the protoc include paths.
 local_include_dirs list of string, list of directories relative to the bp file that will be added to the protoc include paths.
 canonical_path_from_root bool, whether to identify the proto files from the root of the source tree (the original method in Android, useful for android-specific protos), or relative from where they were specified (useful for external/third party protos). This defaults to true today, but is expected to default to false in the future.
 static bool, Link statically against the protobuf runtime
 ramdisk bool, Whether this module is installed to ramdisk
 ramdisk_available bool, Make this module available when building for ramdisk. On device without a dedicated recovery partition, the module is only available after switching root into /first_stage_ramdisk. To expose the module before switching root, install the recovery variant instead.
 recovery bool, Whether this module is installed to recovery partition
 recovery_available bool, Make this module available when building for recovery
 relative_install_path string, install to a subdirectory of the default install path for the module
renderscript
 include_dirs list of string, list of directories that will be added to the llvm-rs-cc include paths
 flags list of string, list of flags that will be passed to llvm-rs-cc
 target_api string, Renderscript API level to target
 required configurable list of string, names of other modules to install if this module is installed
 rtti bool, pass -frtti instead of -fno-rtti
 runtime_libs list of string, list of modules that should be installed with this module. This is similar to 'required' but '.vendor' suffix will be appended to the module names if the shared libraries have vendor variants and this module uses VNDK.
sanitize SanitizeUserProps
 never bool, Prevent use of any sanitizers on this module
 address bool, ASan (Address sanitizer), incompatible with static binaries. Always runs in a diagnostic mode. Use of address sanitizer disables cfi sanitizer. Hwaddress sanitizer takes precedence over this sanitizer.
 thread bool, TSan (Thread sanitizer), incompatible with static binaries and 32 bit architectures. Always runs in a diagnostic mode. Use of thread sanitizer disables cfi and scudo sanitizers. Hwaddress sanitizer takes precedence over this sanitizer.
 hwaddress bool, HWASan (Hardware Address sanitizer). Use of hwasan sanitizer disables cfi, address, thread, and scudo sanitizers.
 all_undefined bool, Undefined behavior sanitizer
 undefined bool, Subset of undefined behavior sanitizer
 misc_undefined list of string, List of specific undefined behavior sanitizers to enable
 fuzzer bool, Fuzzer, incompatible with static binaries.
 safestack bool, safe-stack sanitizer, incompatible with 32-bit architectures.
 cfi bool, cfi sanitizer, incompatible with asan, hwasan, fuzzer, or Darwin
 integer_overflow bool, signed/unsigned integer overflow sanitizer, incompatible with Darwin.
 scudo bool, scudo sanitizer, incompatible with asan, hwasan, tsan This should not be used in Android 11+ : https://source.android.com/devices/tech/debug/scudo deprecated
 scs bool, shadow-call-stack sanitizer, only available on arm64/riscv64.
 memtag_heap bool, Memory-tagging, only available on arm64 if diag.memtag unset or false, enables async memory tagging
 memtag_stack bool, Memory-tagging stack instrumentation, only available on arm64 Adds instrumentation to detect stack buffer overflows and use-after-scope using MTE.
 memtag_globals bool, Memory-tagging globals instrumentation, only available on arm64 Adds instrumentation to detect global buffer overflows using MTE.
 writeonly bool, A modifier for ASAN and HWASAN for write only instrumentation
diag
Sanitizers to run in the diagnostic mode (as opposed to the release mode). Replaces abort() on error with a human-readable error message. Address and Thread sanitizers always run in diagnostic mode.
 undefined bool, Undefined behavior sanitizer, diagnostic mode
 cfi bool, cfi sanitizer, diagnostic mode, incompatible with asan, hwasan, fuzzer, or Darwin
 integer_overflow bool, signed/unsigned integer overflow sanitizer, diagnostic mode, incompatible with Darwin.
 memtag_heap bool, Memory-tagging, only available on arm64 requires sanitizer.memtag: true if set, enables sync memory tagging
 misc_undefined list of string, List of specific undefined behavior sanitizers to enable in diagnostic mode
 no_recover list of string, List of sanitizers to pass to -fno-sanitize-recover results in only the first detected error for these sanitizers being reported and program then exits with a non-zero exit code.
config
Sanitizers to run with flag configuration specified
 cfi_assembly_support bool, Enables CFI support flags for assembly-heavy libraries
 recover list of string, List of sanitizers to pass to -fsanitize-recover allows execution to continue for these sanitizers to detect multiple errors rather than only the first one
 blocklist string, value to pass to -fsanitize-ignorelist
 sdk_variant_only bool, If true, always create an sdk variant and don't create a platform variant.
 sdk_version string, The API level that this module is built against. The APIs of this API level will be visible at build time, but use of any APIs newer than min_sdk_version will render the module unloadable on older devices. In the future it will be possible to weakly-link new APIs, making the behavior match Java: such modules will load on older devices, but calling new APIs on devices that do not support them will result in a crash. This property has the same behavior as sdk_version does for Java modules. For those familiar with Android Gradle, the property behaves similarly to how compileSdkVersion does for Java code. In addition, setting this property causes two variants to be built, one for the platform and one for apps.
 shared_libs configurable list of string, list of modules that should be dynamically linked into this module.
 soc_specific bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist).
 static_executable bool, compile executable with -static
 static_libs configurable list of string, list of modules that should be statically linked into this module.
 stem string, set the name of the output
 stl string, Select the STL library to use. Possible values are "libc++", "libc++_static", "libstdc++", or "none". Leave blank to select the default.
strip
 none bool, Device modules default to stripping enabled leaving mini debuginfo. Host modules default to stripping disabled, but can be enabled by setting any other strip boolean property.
 all bool, all forces stripping everything, including the mini debug info.
 keep_symbols bool, keep_symbols enables stripping but keeps all symbols.
 keep_symbols_list list of string, keep_symbols_list specifies a list of symbols to keep if keep_symbols is enabled. If it is unset then all symbols are kept.
 keep_symbols_and_debug_frame bool, keep_symbols_and_debug_frame enables stripping but keeps all symbols and debug frames.
 suffix string, append to the name of the output
 system_dlkm_specific bool, Install to partition system_dlkm when set to true.
 system_ext_specific bool, whether this module extends system. When set to true, it is installed into /system_ext (or /system/system_ext if system_ext partition does not exist).
 system_shared_libs list of string, list of system libraries that will be dynamically linked to shared library and executable modules. If unset, generally defaults to libc, libm, and libdl. Set to [] to prevent linking against the defaults.
 target interface
target.android
 compile_multilib string
 enabled bool
target.apex
 exclude_shared_libs list of string, list of shared libs that should not be used to build the apex variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the apex variant of the C/C++ module.
target.host
 compile_multilib string
target.non_apex
 exclude_shared_libs list of string, list of shared libs that should not be used to build the non-apex variant of the C/C++ module.
target.platform
 cflags list of string, List of additional cflags that should be used to build the platform variant of the C/C++ module.
 required list of string, List of modules required by the core variant.
 exclude_required list of string, List of modules not required by the core variant.
 shared_libs list of string, list of shared libs that should be use to build the platform variant of a module that sets sdk_version. This should rarely be necessary, in most cases the same libraries are available for the SDK and platform variants.
 header_libs list of string, list of ehader libs that only should be used to build platform variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the platform variant of the C/C++ module.
target.product
 srcs list of string, list of source files that should only be used in vendor or product variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build vendor or product variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build vendor or product variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build vendor or product variant of the C/C++ module.
 shared_libs list of string, list of shared libs that only should be used to build vendor or product variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build vendor or product variant of the C/C++ module.
 header_libs list of string, list of header libs that only should be used to build vendor or product variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor or product variant of the C/C++ module.
 version_script string, version script for vendor or product variant
target.ramdisk
 exclude_srcs list of string, list of source files that should not be used to build the ramdisk variants of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the ramdisk variants of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build the ramdisk variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the ramdisk variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the ramdisk variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the ramdisk variant of the C/C++ module.
target.recovery
 srcs list of string, list of source files that should only be used in the recovery variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build the recovery variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the recovery variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build the recovery variant of the C/C++ module.
 required list of string, List of modules required by the recovery variant.
 exclude_required list of string, List of modules not required by the recovery variant.
 shared_libs list of string, list of shared libs that only should be used to build the recovery variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build the recovery variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the recovery variant of the C/C++ module.
target.vendor
 shared_libs list of string, list of shared libs that only should be used to build vendor or product variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build vendor or product variant of the C/C++ module.
 header_libs list of string, list of header libs that only should be used to build vendor or product variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor or product variant of the C/C++ module.
 version_script string, version script for vendor or product variant
 srcs list of string, list of source files that should only be used in vendor or product variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build vendor or product variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build vendor or product variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build vendor or product variant of the C/C++ module.
target.vendor_ramdisk
 exclude_shared_libs list of string, list of shared libs that should not be used to build the vendor ramdisk variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the vendor ramdisk variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor ramdisk variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build the ramdisk variants of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the ramdisk variants of the C/C++ module.
 target_required list of string, names of other modules to install on target if this module is installed
 team string, The team (defined by the owner/vendor) who owns the property.
 tidy bool, whether to run clang-tidy over C-like sources.
 tidy_checks list of string, Extra checks to enable or disable in clang-tidy
 tidy_checks_as_errors list of string, Checks that should be treated as errors.
 tidy_disabled_srcs list of string, list of source files that should not be compiled with clang-tidy.
 tidy_flags list of string, Extra flags to pass to clang-tidy
 tidy_timeout_srcs list of string, list of source files that should not be compiled by clang-tidy when TIDY_TIMEOUT is set.
 use_generic_config bool, Set to true if this module must be generic and does not require product-specific information. To be included in the system image, this property must be set to true.
 use_version_lib bool, make android::build:GetBuildNumber() available containing the build ID.
 vendor bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist). Use `soc_specific` instead for better meaning.
 vendor_available bool, whether this module should be allowed to be directly depended by other modules with `vendor: true`, `proprietary: true`, or `vendor_available:true`. If set to true, two variants will be built separately, one like normal, and the other limited to the set of libraries and headers that are exposed to /vendor modules. The vendor variant may be used with a different (newer) /system, so it shouldn't have any unversioned runtime dependencies, or make assumptions about the system that may not be true in the future. If set to false, this module becomes inaccessible from /vendor modules. The modules with vndk: {enabled: true} must define 'vendor_available' to 'true'. Nothing happens if BOARD_VNDK_VERSION isn't set in the BoardConfig.mk
 vendor_dlkm_specific bool, Install to partition vendor_dlkm when set to true.
 vendor_ramdisk bool, Whether this module is installed to vendor ramdisk
 vendor_ramdisk_available bool, Make this module available when building for vendor ramdisk. On device without a dedicated recovery partition, the module is only available after switching root into /first_stage_ramdisk. To expose the module before switching root, install the recovery variant instead.
 version_script string, local file name to pass to the linker as --version-script. Not supported on darwin, and will fail to build if provided to the darwin variant of a module.
 vintf_fragment_modules configurable list of string, vintf_fragment Modules required from this module.
 vintf_fragments configurable list of string, VINTF manifest fragments to be installed if this module is installed
 visibility list of string, Controls the visibility of this module to other modules. Allowable values are one or more of these formats:

 ["//visibility:public"]: Anyone can use this module.
 ["//visibility:private"]: Only rules in the module's package (not its subpackages) can use
     this module.
 ["//visibility:override"]: Discards any rules inherited from defaults or a creating module.
     Can only be used at the beginning of a list of visibility rules.
 ["//some/package:__pkg__", "//other/package:__pkg__"]: Only modules in some/package and
     other/package (defined in some/package/*.bp and other/package/*.bp) have access to
     this module. Note that sub-packages do not have access to the rule; for example,
     //some/package/foo:bar or //other/package/testing:bla wouldn't have access. __pkg__
     is a special module and must be used verbatim. It represents all of the modules in the
     package.
 ["//project:__subpackages__", "//other:__subpackages__"]: Only modules in packages project
     or other or in one of their sub-packages have access to this module. For example,
     //project:rule, //project/library:lib or //other/testing/internal:munge are allowed
     to depend on this rule (but not //independent:evil)
 ["//project"]: This is shorthand for ["//project:__pkg__"]
 [":__subpackages__"]: This is shorthand for ["//project:__subpackages__"] where
     //project is the module's package. e.g. using [":__subpackages__"] in
     packages/apps/Settings/Android.bp is equivalent to
     //packages/apps/Settings:__subpackages__.
 ["//visibility:legacy_public"]: The default visibility, behaves as //visibility:public
     for now. It is an error if it is used in a module.

If a module does not specify the `visibility` property then it uses the `default_visibility` property of the `package` module in the module's package. If the `default_visibility` property is not set for the module's package then it will use the `default_visibility` of its closest ancestor package for which a `default_visibility` property is specified. If no `default_visibility` property can be found then the module uses the global default of `//visibility:legacy_public`. The `visibility` property has no effect on a defaults module although it does apply to any non-defaults module that uses it. To set the visibility of a defaults module, use the `defaults_visibility` property on the defaults module; not to be confused with the `default_visibility` property on the package module. See https://android.googlesource.com/platform/build/soong/+/main/README.md#visibility for more details.
 whole_program_vtables bool, Use -fwhole-program-vtables cflag.
 whole_static_libs configurable list of string, list of modules whose object files should be linked into this module in their entirety. For static library modules, all of the .o files from the intermediate directory of the dependency will be linked into this modules .a file. For a shared library, the dependency's .a file will be linked into this module using -Wl,--whole-archive.
 yacc YaccProperties

cc_cmake_snapshot

cmake_snapshot allows defining source packages for release outside of Android build tree. As a result of cmake_snapshot module build, a zip file is generated with CMake build definitions for selected source modules, their dependencies and optionally also the source code itself.
 name string, The name of the module. Must be unique across all modules.
 arch interface
 cflags list of string, Global cflags to add when building outside Android.
 cflags_ignored list of string, Flags to skip when building outside Android.
 compile_multilib string, control whether this module compiles for 32-bit, 64-bit, or both. Possible values are "32" (compile for 32-bit only), "64" (compile for 64-bit only), "both" (compile for both architectures), or "first" (compile for 64-bit on a 64-bit platform, and 32-bit on a 32-bit platform).
 debug_ramdisk bool, Whether this module is installed to debug ramdisk
 device_specific bool, whether this module is specific to a device, not only for SoC, but also for off-chip peripherals. When set to true, it is installed into /odm (or /vendor/odm if odm partition does not exist, or /system/vendor/odm if both odm and vendor partitions do not exist). This implies `soc_specific:true`.
dist Dist
configuration to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 targets list of string, Copy the output of this module to the $DIST_DIR when `dist` is specified on the command line and any of these targets are also on the command line, or otherwise built
 dest string, The name of the output artifact. This defaults to the basename of the output of the module.
 dir string, The directory within the dist directory to store the artifact. Defaults to the top level directory ("").
 suffix string, A suffix to add to the artifact file name (before any extension).
 append_artifact_with_product bool, If true, then the artifact file will be appended with _<product name>. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be foo_coral.apk. If false, there is no change to the artifact file name.
 prepend_artifact_with_product bool, If true, then the artifact file will be prepended with <product name>-. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be coral-foo.apk. If false, there is no change to the artifact file name.
 tag string, A string tag to select the OutputFiles associated with the tag. If no tag is specified then it will select the default dist paths provided by the module type. If a tag of "" is specified then it will return the default output files provided by the modules, i.e. the result of calling OutputFiles("").
 dists list of Dist, a list of configurations to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 enabled configurable bool, emit build rules for this module Disabling a module should only be done for those modules that cannot be built in the current environment. Modules that can build in the current environment but are not usually required (e.g. superceded by a prebuilt) should not be disabled as that will prevent them from being built by the checkbuild target and so prevent early detection of changes that have broken those modules.
 host_cross_supported bool, If set to true, build a variant of the module for the host cross. Defaults to true.
 host_required list of string, names of other modules to install on host if this module is installed
 include_sources bool, Whether to include source code as part of the snapshot package.
 init_rc configurable list of string, init.rc files to be installed if this module is installed
 library_mapping list of LibraryMappingProperty, Mapping between library names used in Android tree and externally.
 licenses list of string, Describes the licenses applicable to this module. Must reference license modules.
 modules_host list of string, Host modules to add to the snapshot package. Their dependencies are pulled in automatically.
 modules_system list of string, System modules to add to the snapshot package. Their dependencies are pulled in automatically.
 modules_vendor list of string, Vendor modules to add to the snapshot package. Their dependencies are pulled in automatically.
 multilib interface
 native_bridge_supported bool, Whether this module is built for non-native architectures (also known as native bridge binary)
 no_full_install bool, When set to true, this module is not installed to the full install path (ex: under out/target/product/<name>/<partition>). It can be installed only to the packaging modules like android_filesystem.
 odm_dlkm_specific bool, Install to partition odm_dlkm when set to true.
 overrides list of string, List of module names that are prevented from being installed when this module gets installed.
 owner string, vendor who owns this module
 prebuilts list of string, Host prebuilts to bundle with the snapshot. These are tools needed to build outside Android.
 product_specific bool, whether this module is specific to a software configuration of a product (e.g. country, network operator, etc). When set to true, it is installed into /product (or /system/product if product partition does not exist).
product_variables.arc
cflags
  []string
product_variables.binder32bit
cflags
  []string
product_variables.debuggable
cflags
  []string
init_rc
  []string
required
  []string
host_required
  []string
target_required
  []string
product_variables.enforce_vintf_manifest
cflags
  []string
product_variables.eng
cflags
  []string
product_variables.malloc_low_memory
cflags
  []string
product_variables.malloc_pattern_fill_contents
cflags
  []string
product_variables.malloc_zero_contents
cflags
  []string
product_variables.override_rs_driver
cflags
  []string
product_variables.platform_sdk_version
cflags
  []string
product_variables.release_aidl_use_unfrozen
cflags
  []string
required
  []string
vintf_fragment_modules
  []string
product_variables.safestack
cflags
  []string
product_variables.selinuxignoreneverallows
required
  []string
product_variables.shipping_api_level
cflags
  []string
product_variables.treble_linker_namespaces
cflags
  []string
product_variables.unbundled_build
enabled Configurable[bool]
 Configurable[bool] proptools.Configurable[bool]
 proprietary bool, whether this is a proprietary vendor module, and should be installed into /vendor
 ramdisk bool, Whether this module is installed to ramdisk
 recovery bool, Whether this module is installed to recovery partition
 required configurable list of string, names of other modules to install if this module is installed
 soc_specific bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist).
 system_dlkm_specific bool, Install to partition system_dlkm when set to true.
 system_ext_specific bool, whether this module extends system. When set to true, it is installed into /system_ext (or /system/system_ext if system_ext partition does not exist).
 target interface
target.android
 compile_multilib string
 enabled bool
target.host
 compile_multilib string
 target_required list of string, names of other modules to install on target if this module is installed
 team string, The team (defined by the owner/vendor) who owns the property.
 unportable_flags list of string, List of cflags that are not portable between compilers that could potentially be used to build a generated package. If left empty, it's initialized with a default list.
 use_generic_config bool, Set to true if this module must be generic and does not require product-specific information. To be included in the system image, this property must be set to true.
 vendor bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist). Use `soc_specific` instead for better meaning.
 vendor_dlkm_specific bool, Install to partition vendor_dlkm when set to true.
 vendor_ramdisk bool, Whether this module is installed to vendor ramdisk
 vintf_fragment_modules configurable list of string, vintf_fragment Modules required from this module.
 vintf_fragments configurable list of string, VINTF manifest fragments to be installed if this module is installed
 visibility list of string, Controls the visibility of this module to other modules. Allowable values are one or more of these formats:

 ["//visibility:public"]: Anyone can use this module.
 ["//visibility:private"]: Only rules in the module's package (not its subpackages) can use
     this module.
 ["//visibility:override"]: Discards any rules inherited from defaults or a creating module.
     Can only be used at the beginning of a list of visibility rules.
 ["//some/package:__pkg__", "//other/package:__pkg__"]: Only modules in some/package and
     other/package (defined in some/package/*.bp and other/package/*.bp) have access to
     this module. Note that sub-packages do not have access to the rule; for example,
     //some/package/foo:bar or //other/package/testing:bla wouldn't have access. __pkg__
     is a special module and must be used verbatim. It represents all of the modules in the
     package.
 ["//project:__subpackages__", "//other:__subpackages__"]: Only modules in packages project
     or other or in one of their sub-packages have access to this module. For example,
     //project:rule, //project/library:lib or //other/testing/internal:munge are allowed
     to depend on this rule (but not //independent:evil)
 ["//project"]: This is shorthand for ["//project:__pkg__"]
 [":__subpackages__"]: This is shorthand for ["//project:__subpackages__"] where
     //project is the module's package. e.g. using [":__subpackages__"] in
     packages/apps/Settings/Android.bp is equivalent to
     //packages/apps/Settings:__subpackages__.
 ["//visibility:legacy_public"]: The default visibility, behaves as //visibility:public
     for now. It is an error if it is used in a module.

If a module does not specify the `visibility` property then it uses the `default_visibility` property of the `package` module in the module's package. If the `default_visibility` property is not set for the module's package then it will use the `default_visibility` of its closest ancestor package for which a `default_visibility` property is specified. If no `default_visibility` property can be found then the module uses the global default of `//visibility:legacy_public`. The `visibility` property has no effect on a defaults module although it does apply to any non-defaults module that uses it. To set the visibility of a defaults module, use the `defaults_visibility` property on the defaults module; not to be confused with the `default_visibility` property on the package module. See https://android.googlesource.com/platform/build/soong/+/main/README.md#visibility for more details.

cc_defaults

cc_defaults provides a set of properties that can be inherited by other cc modules. A module can use the properties from a cc_defaults using `defaults: ["<:default_module_name>"]`. Properties of both modules are merged (when possible) by prepending the default module's values to the depending module's values.
 name string, The name of the module. Must be unique across all modules.
 srcs configurable list of string, list of source files used to compile the C/C++ module. May be .c, .cpp, or .S files. srcs may reference the outputs of other modules that produce source files like genrule or filegroup using the syntax ":module".
 exclude_srcs configurable list of string, list of source files that should not be used to build the C/C++ module. This is most useful in the arch/multilib variants to remove non-common files
 defaults list of string
 host_supported bool, If set to true, build a variant of the module for the host. Defaults to false.
 device_supported bool, If set to true, build a variant of the module for the device. Defaults to true.
 afdo bool, Afdo allows developers self-service enroll for automatic feedback-directed optimization using profile data.
aidl
 libs list of string, List of aidl_library modules
 include_dirs list of string, list of directories that will be added to the aidl include paths.
 local_include_dirs list of string, list of directories relative to the Blueprints file that will be added to the aidl include paths.
 generate_traces bool, whether to generate traces (for systrace) for this interface
 flags list of string, list of flags that will be passed to the AIDL compiler
 export_aidl_headers bool, export headers generated from .aidl sources
 allow_undefined_symbols bool, allow the module to contain undefined symbols. By default, modules cannot contain undefined symbols that are not satisified by their immediate dependencies. Set this flag to true to remove --no-undefined from the linker flags. This flag should only be necessary for compiling low-level libraries like libc.
 apex_available list of string, Availability of this module in APEXes. Only the listed APEXes can contain this module. If the module has stubs then other APEXes and the platform may access it through them (subject to visibility). "//apex_available:anyapex" is a pseudo APEX name that matches to any APEX. "//apex_available:platform" refers to non-APEX partitions like "system.img". Prefix pattern (com.foo.*) can be used to match with any APEX name with the prefix(com.foo.). Default is ["//apex_available:platform"].
 arch interface
 asflags list of string, list of module-specific flags that will be used for .S compiles
 auto_gen_config bool, Flag to indicate whether or not to create test config automatically. If AndroidTest.xml doesn't exist next to the Android.bp, this attribute doesn't need to be set to true explicitly.
 bootstrap bool, Allows this module to use non-APEX version of libraries. Useful for building binaries that are started before APEXes are activated.
 bpf_target bool, cc Build rules targeting BPF must set this to true. The correct fix is to ban targeting bpf in cc rules instead use bpf_rules. (b/323415017)
 c_std string, C standard version to use. Can be a specific version (such as "gnu11"), "experimental" (which will use draft versions like C1x when available), or the empty string (which will use the default).
 cflags configurable list of string, list of module-specific flags that will be used for C and C++ compiles.
 check_elf_files bool, Check the prebuilt ELF files (e.g. DT_SONAME, DT_NEEDED, resolution of undefined symbols, etc), default true.
 clang bool, Deprecated. true is the default, false is invalid.
 clang_asflags list of string, list of module-specific flags that will be used for .S compiles when compiling with clang
 clang_cflags list of string, list of module-specific flags that will be used for C and C++ compiles when compiling with clang
 clang_verify bool, Add "-Xclang -verify" to the cflags and appends "touch $out" to the clang command line.
 cmake_snapshot_supported bool, Allows this module to be included in CMake release snapshots to be built outside of Android build system and source tree.
 compile_multilib string, control whether this module compiles for 32-bit, 64-bit, or both. Possible values are "32" (compile for 32-bit only), "64" (compile for 64-bit only), "both" (compile for both architectures), or "first" (compile for 64-bit on a 64-bit platform, and 32-bit on a 32-bit platform).
 conlyflags list of string, list of module-specific flags that will be used for C compiles
 corpus list of string, Optional list of seed files to be installed to the fuzz target's output directory.
 cpp_std string, C++ standard version to use. Can be a specific version (such as "gnu++11"), "experimental" (which will use draft versions like C++1z when available), or the empty string (which will use the default). If this is set, the file extension will be ignored and this will be used as the std version value. Setting this to "default" will use the build system default version. This cannot be set at the same time as c_std.
 cppflags configurable list of string, list of c++ specific clang flags required to correctly interpret the headers. This is provided primarily to make sure cppflags defined in cc_defaults are pulled in.
 crt bool, Indicates that this module is a CRT object. CRT objects will be split into a variant per-API level between min_sdk_version and current.
 data list of string, Optional list of data files to be installed to the fuzz target's output directory. Directory structure relative to the module is preserved.
 data_bins list of string, list of binary modules that should be installed alongside the test
 data_libs list of string, list of shared library modules that should be installed alongside the test
 debug_ramdisk bool, Whether this module is installed to debug ramdisk
 defaults_visibility list of string, Controls the visibility of the defaults module itself.
 device_common_corpus list of string, Same as corpus, but adds dependencies on module references using the device's os variant and the common arch variant.
 device_common_data list of string, Same as data, but adds dependencies on modules using the device's os variant, and common architecture's variant. Can be useful to add device-built apps to the data of a host test.
 device_first_data list of string, Same as data, but adds dependencies on modules using the device's os variant, and the device's first architecture's variant. Can be useful to add device-built apps to the data of a host test.
 device_first_generated_headers configurable list of string, Same as generated_headers, but the dependencies will be added based on the first supported arch variant and the device os variant. This can be useful for creating a host tool that embeds a copy of a device tool, that it then extracts and pushes to a device at runtime.
 device_specific bool, whether this module is specific to a device, not only for SoC, but also for off-chip peripherals. When set to true, it is installed into /odm (or /vendor/odm if odm partition does not exist, or /system/vendor/odm if both odm and vendor partitions do not exist). This implies `soc_specific:true`.
 dictionary string, Optional dictionary to be installed to the fuzz target's output directory.
 disable_framework bool, Add RunCommandTargetPreparer to stop framework before the test and start it after the test.
dist Dist
configuration to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 targets list of string, Copy the output of this module to the $DIST_DIR when `dist` is specified on the command line and any of these targets are also on the command line, or otherwise built
 dest string, The name of the output artifact. This defaults to the basename of the output of the module.
 dir string, The directory within the dist directory to store the artifact. Defaults to the top level directory ("").
 suffix string, A suffix to add to the artifact file name (before any extension).
 append_artifact_with_product bool, If true, then the artifact file will be appended with _<product name>. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be foo_coral.apk. If false, there is no change to the artifact file name.
 prepend_artifact_with_product bool, If true, then the artifact file will be prepended with <product name>-. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be coral-foo.apk. If false, there is no change to the artifact file name.
 tag string, A string tag to select the OutputFiles associated with the tag. If no tag is specified then it will select the default dist paths provided by the module type. If a tag of "" is specified then it will return the default output files provided by the modules, i.e. the result of calling OutputFiles("").
 dists list of Dist, a list of configurations to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 double_loadable bool, whether this module is capable of being loaded with other instance (possibly an older version) of the same module in the same process. Currently, a shared library that is a member of VNDK (vndk: {enabled: true}) can be double loaded in a vendor process if the library is also a (direct and indirect) dependency of an LLNDK library. Such libraries must be explicitly marked as `double_loadable: true` by the owner, or the dependency from the LLNDK lib should be cut if the lib is not designed to be double loaded.
 dynamic_list string, local file name to pass to the linker as --dynamic-list. Not supported on darwin, and will fail to build if provided to the darwin variant of a module.
 enabled configurable bool, emit build rules for this module Disabling a module should only be done for those modules that cannot be built in the current environment. Modules that can build in the current environment but are not usually required (e.g. superceded by a prebuilt) should not be disabled as that will prevent them from being built by the checkbuild target and so prevent early detection of changes that have broken those modules.
 exclude_from_ndk_sysroot bool, Indicates that this module should not be included in the NDK sysroot. Only applies to CRT objects. Defaults to false.
 exclude_generated_sources list of string, list of generated sources that should not be used to build the C/C++ module. This is most useful in the arch/multilib variants to remove non-common files
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with this module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build this module
 exclude_static_libs list of string, list of static libs that should not be used to build this module
 export_cflags list of string, list of plain cc flags to be used for any module that links against this module.
 export_generated_headers list of string, list of generated headers to re-export include directories from. Entries must be present in generated_headers.
 export_header_lib_headers configurable list of string, list of header libraries to re-export include directories from. Entries must be present in header_libs.
 export_include_dirs configurable list of string, list of directories relative to the Blueprints file that will be added to the include path (using -I) for this module and any module that links against this module. Directories listed in export_include_dirs do not need to be listed in local_include_dirs.
 export_shared_lib_headers list of string, list of shared libraries to re-export include directories from. Entries must be present in shared_libs.
 export_static_lib_headers list of string, list of static libraries to re-export include directories from. Entries must be present in static_libs.
 export_system_include_dirs list of string, list of directories that will be added to the system include path using -isystem for this module and any module that links against this module.
 exported_symbols_list string, local file name to pass to the linker as -exported_symbols_list
 force_symbols_not_weak_list string, local file name to pass to the linker as -force_symbols_not_weak_list
 force_symbols_weak_list string, local file name to pass to the linker as -force_symbols_weak_list
 fuzz_config FuzzConfig, Config for running the target on fuzzing infrastructure.
 fuzzing_frameworks FuzzFrameworks, Define the fuzzing frameworks this fuzz target can be built for. If empty then the fuzz target will be available to be built for all fuzz frameworks available
 generated_headers configurable list of string, list of generated headers to add to the include path. These are the names of genrule modules.
 generated_sources list of string, list of generated sources to compile. These are the names of gensrcs or genrule modules.
 gnu_extensions bool, if set to false, use -std=c++* instead of -std=gnu++*
 group_static_libs bool, deprecated and ignored because lld makes it unnecessary. See b/189475744.
 gtest bool, if set, build against the gtest library. Defaults to true.
header_abi_checker headerAbiCheckerProperties
Properties for ABI compatibility checker.
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 header_libs configurable list of string, list of modules that should only provide headers for this module.
 host_common_data list of string, Same as data, but will add dependencies on modules using the host's os variation and the common arch variation. Useful for a device test that wants to depend on a host module, for example to include a custom Tradefed test runner.
 host_ldlibs list of string, -l arguments to pass to linker for host-provided shared libraries
 host_required list of string, names of other modules to install on host if this module is installed
 ignore_max_page_size bool, ignore max page size. By default, max page size must be the max page size set for the target.
 include_build_directory bool, Add the directory containing the Android.bp file to the list of include directories. Defaults to true.
 include_dirs configurable list of string, list of directories relative to the root of the source tree that will be added to the include path using -I. If possible, don't use this. If adding paths from the current directory use local_include_dirs, if adding paths from other modules use export_include_dirs in that module.
 init_rc configurable list of string, init.rc files to be installed if this module is installed
 inject_bssl_hash bool, Inject boringssl hash into the shared library. This is only intended for use by external/boringssl.
 install_in_root bool, Install output directly in {partition}/, not in any subdir. This is only intended for use by init_first_stage.
 install_in_xbin bool, Install output directly in {partition}/xbin
 installable bool
 instruction_set string, the instruction set architecture to use to compile the C/C++ module.
 isolated bool, if set, use the isolated gtest runner. Defaults to false. Isolation is not supported on Windows.
 ldflags list of string, list of module-specific flags that will be used for all link steps
 lex LexProperties
 licenses list of string, Describes the licenses applicable to this module. Must reference license modules.
 linker_script string, if set, the path to a linker script to pass to ld -r when combining multiple object files.
 linker_scripts list of string, local files to pass to the linker as --script. Not supported on darwin or windows, and will fail to build if provided to the darwin or windows variant of a module.
llndk llndkLibraryProperties
If this is an LLNDK library, properties to describe the LLNDK stubs. Will be copied from the module pointed to by llndk_stubs if it is set.
 symbol_file string, Relative path to the symbol map. An example file can be seen here: TODO(danalbert): Make an example.
 export_headers_as_system bool, Whether to export any headers as -isystem instead of -I. Mainly for use by bionic/libc.
 unversioned bool, Whether the system library uses symbol versions.
 export_llndk_headers list of string, list of llndk headers to re-export include directories from.
 override_export_include_dirs list of string, list of directories relative to the Blueprints file that willbe added to the include path (using -I) for any module that links against the LLNDK variant of this module, replacing any that were listed outside the llndk clause.
 private bool, whether this module can be directly depended upon by libs that are installed to /vendor and /product. When set to true, this module can only be depended on by VNDK libraries, not vendor nor product libraries. This effectively hides this module from non-system modules. Default value is false.
 llndk_headers bool, if true, make this module available to provide headers to other modules that set llndk.symbol_file.
 moved_to_apex bool, moved_to_apex marks this module has having been distributed through an apex module.
 local_include_dirs configurable list of string, list of directories relative to the Blueprints file that will be added to the include path using -I
 logtags list of string, *.logtags files, to combine together in order to generate the /system/etc/event-log-tags file
lto
Lto must violate capitalization style for acronyms so that it can be referred to in blueprint files as "lto"
 never bool
 thin bool
 lto_O0 bool, Use --lto-O0 flag.
 min_sdk_version string, Minimum OS API level supported by this C or C++ module. This property becomes the value of the __ANDROID_API__ macro. When the C or C++ module is included in an APEX or an APK, this property is also used to ensure that the min_sdk_version of the containing module is not older (i.e. less) than this module's min_sdk_version. When not set, this property defaults to the value of sdk_version. When this is set to "apex_inherit", this tracks min_sdk_version of the containing APEX. When the module is not built for an APEX, "apex_inherit" defaults to sdk_version.
 multilib interface
 native_bridge_supported bool, Whether this module is built for non-native architectures (also known as native bridge binary)
 native_coverage bool
 no_crt_pad_segment bool, don't link in crt_pad_segment. This flag is currently only used internal to soong for testing and for vndk prebuilt shared libraries.
 no_full_install bool, When set to true, this module is not installed to the full install path (ex: under out/target/product/<name>/<partition>). It can be installed only to the packaging modules like android_filesystem.
 no_libcrt bool, don't link in libclang_rt.builtins-*.a
 no_named_install_directory bool, Disables the creation of a test-specific directory when used with relative_install_path. Useful if several tests need to be in the same directory.
 nocrt bool, don't link in crt_begin and crt_end. This flag should only be necessary for compiling crt or libc.
 objs list of string, names of other cc_object modules to link into this module using partial linking
 odm_available bool, This is the same as the "vendor_available" except that the install path of the vendor variant is /odm or /vendor/odm. By replacing "vendor_available: true" with "odm_available: true", the module will install its vendor variant to the /odm partition or /vendor/odm. As the modules with "odm_available: true" still create the vendor variants, they can link to the other vendor modules as the vendor_available modules do. Also, the vendor modules can link to odm_available modules. It may not be used for VNDK modules.
 odm_dlkm_specific bool, Install to partition odm_dlkm when set to true.
 openmp bool, Build and link with OpenMP
 optimize_for_size bool, Aggresively trade performance for smaller binary size. This should only be used for on-device binaries that are rarely executed and not performance critical.
orderfile
 instrumentation bool
 order_file_path string
 load_order_file bool
 cflags list of string, Additional compiler flags to use when building this module for orderfile profiling.
 overrides list of string, Names of modules to be overridden. Listed modules can only be other binaries (in Make or Soong). This does not completely prevent installation of the overridden binaries, but if both binaries would be installed by default (in PRODUCT_PACKAGES) the other binary will be removed from PRODUCT_PACKAGES.
 owner string, vendor who owns this module
 pack_relocations bool, Generate compact dynamic relocation table, default true.
 per_testcase_directory bool, Install the test into a folder named for the module in all test suites.
 prefix_symbols string, if set, add an extra objcopy --prefix-symbols= step
 product_available bool, whether this module should be allowed to be directly depended by other modules with `product_specific: true` or `product_available: true`. If set to true, an additional product variant will be built separately that is limited to the set of libraries and headers that are exposed to /product modules. The product variant may be used with a different (newer) /system, so it shouldn't have any unversioned runtime dependencies, or make assumptions about the system that may not be true in the future. If set to false, this module becomes inaccessible from /product modules. Different from the 'vendor_available' property, the modules with vndk: {enabled: true} don't have to define 'product_available'. The VNDK library without 'product_available' may not be depended on by any other modules that has product variants including the product available VNDKs. Nothing happens if BOARD_VNDK_VERSION isn't set in the BoardConfig.mk and PRODUCT_PRODUCT_VNDK_VERSION isn't set.
 product_specific bool, whether this module is specific to a software configuration of a product (e.g. country, network operator, etc). When set to true, it is installed into /product (or /system/product if product partition does not exist).
product_variables.arc
cflags
  []string
exclude_srcs
  []string
header_libs
  []string
include_dirs
  []string
shared_libs
  []string
static_libs
  []string
srcs
  []string
whole_static_libs
  []string
product_variables.binder32bit
cflags
  []string
product_variables.build_from_text_stub
static_libs
  []string
exclude_static_libs
  []string
product_variables.debuggable
cflags
  []string
cppflags
  []string
init_rc
  []string
required
  []string
host_required
  []string
target_required
  []string
strip.all
  *bool
strip.keep_symbols
  *bool
strip.keep_symbols_and_debug_frame
  *bool
static_libs
  []string
exclude_static_libs
  []string
whole_static_libs
  []string
shared_libs
  []string
srcs
  []string
exclude_srcs
  []string
product_variables.enforce_vintf_manifest
cflags
  []string
product_variables.eng
cflags
  []string
cppflags
  []string
lto.never
  *bool
sanitize.address
  *bool
product_variables.malloc_low_memory
cflags
  []string
shared_libs
  []string
whole_static_libs
  []string
static_libs
  []string
exclude_static_libs
  []string
srcs
  []string
header_libs
  []string
product_variables.malloc_pattern_fill_contents
cflags
  []string
product_variables.malloc_zero_contents
cflags
  []string
product_variables.native_coverage
srcs
  []string
exclude_srcs
  []string
product_variables.override_rs_driver
cflags
  []string
product_variables.platform_sdk_version
asflags
  []string
cflags
  []string
product_variables.release_aidl_use_unfrozen
cflags
  []string
required
  []string
vintf_fragment_modules
  []string
product_variables.safestack
cflags
  []string
product_variables.selinuxignoreneverallows
required
  []string
product_variables.shipping_api_level
cflags
  []string
product_variables.treble_linker_namespaces
cflags
  []string
product_variables.uml
cppflags
  []string
product_variables.unbundled_build
enabled Configurable[bool]
 Configurable[bool] proptools.Configurable[bool]
 proprietary bool, whether this is a proprietary vendor module, and should be installed into /vendor
proto
 type string, Proto generator type. C++: full or lite. Java: micro, nano, stream, or lite.
 plugin string, Proto plugin to use as the generator. Must be a cc_binary_host module.
 include_dirs list of string, list of directories that will be added to the protoc include paths.
 local_include_dirs list of string, list of directories relative to the bp file that will be added to the protoc include paths.
 canonical_path_from_root bool, whether to identify the proto files from the root of the source tree (the original method in Android, useful for android-specific protos), or relative from where they were specified (useful for external/third party protos). This defaults to true today, but is expected to default to false in the future.
 export_proto_headers bool, export headers generated from .proto sources
 static bool, Link statically against the protobuf runtime
 ramdisk bool, Whether this module is installed to ramdisk
 ramdisk_available bool, Make this module available when building for ramdisk. On device without a dedicated recovery partition, the module is only available after switching root into /first_stage_ramdisk. To expose the module before switching root, install the recovery variant instead.
 recovery bool, Whether this module is installed to recovery partition
 recovery_available bool, Make this module available when building for recovery
 relative_install_path string, install to a subdirectory of the default install path for the module
renderscript
 include_dirs list of string, list of directories that will be added to the llvm-rs-cc include paths
 flags list of string, list of flags that will be passed to llvm-rs-cc
 target_api string, Renderscript API level to target
 require_root bool, Add RootTargetPreparer to auto generated test config. This guarantees the test to run with root permission.
 required configurable list of string, names of other modules to install if this module is installed
 rtti bool, pass -frtti instead of -fno-rtti
 runtime_libs list of string, list of modules that should be installed with this module. This is similar to 'required' but '.vendor' suffix will be appended to the module names if the shared libraries have vendor variants and this module uses VNDK.
sanitize SanitizeUserProps
 never bool, Prevent use of any sanitizers on this module
 address bool, ASan (Address sanitizer), incompatible with static binaries. Always runs in a diagnostic mode. Use of address sanitizer disables cfi sanitizer. Hwaddress sanitizer takes precedence over this sanitizer.
 thread bool, TSan (Thread sanitizer), incompatible with static binaries and 32 bit architectures. Always runs in a diagnostic mode. Use of thread sanitizer disables cfi and scudo sanitizers. Hwaddress sanitizer takes precedence over this sanitizer.
 hwaddress bool, HWASan (Hardware Address sanitizer). Use of hwasan sanitizer disables cfi, address, thread, and scudo sanitizers.
 all_undefined bool, Undefined behavior sanitizer
 undefined bool, Subset of undefined behavior sanitizer
 misc_undefined list of string, List of specific undefined behavior sanitizers to enable
 fuzzer bool, Fuzzer, incompatible with static binaries.
 safestack bool, safe-stack sanitizer, incompatible with 32-bit architectures.
 cfi bool, cfi sanitizer, incompatible with asan, hwasan, fuzzer, or Darwin
 integer_overflow bool, signed/unsigned integer overflow sanitizer, incompatible with Darwin.
 scudo bool, scudo sanitizer, incompatible with asan, hwasan, tsan This should not be used in Android 11+ : https://source.android.com/devices/tech/debug/scudo deprecated
 scs bool, shadow-call-stack sanitizer, only available on arm64/riscv64.
 memtag_heap bool, Memory-tagging, only available on arm64 if diag.memtag unset or false, enables async memory tagging
 memtag_stack bool, Memory-tagging stack instrumentation, only available on arm64 Adds instrumentation to detect stack buffer overflows and use-after-scope using MTE.
 memtag_globals bool, Memory-tagging globals instrumentation, only available on arm64 Adds instrumentation to detect global buffer overflows using MTE.
 writeonly bool, A modifier for ASAN and HWASAN for write only instrumentation
diag
Sanitizers to run in the diagnostic mode (as opposed to the release mode). Replaces abort() on error with a human-readable error message. Address and Thread sanitizers always run in diagnostic mode.
 undefined bool, Undefined behavior sanitizer, diagnostic mode
 cfi bool, cfi sanitizer, diagnostic mode, incompatible with asan, hwasan, fuzzer, or Darwin
 integer_overflow bool, signed/unsigned integer overflow sanitizer, diagnostic mode, incompatible with Darwin.
 memtag_heap bool, Memory-tagging, only available on arm64 requires sanitizer.memtag: true if set, enables sync memory tagging
 misc_undefined list of string, List of specific undefined behavior sanitizers to enable in diagnostic mode
 no_recover list of string, List of sanitizers to pass to -fno-sanitize-recover results in only the first detected error for these sanitizers being reported and program then exits with a non-zero exit code.
config
Sanitizers to run with flag configuration specified
 cfi_assembly_support bool, Enables CFI support flags for assembly-heavy libraries
 recover list of string, List of sanitizers to pass to -fsanitize-recover allows execution to continue for these sanitizers to detect multiple errors rather than only the first one
 blocklist string, value to pass to -fsanitize-ignorelist
sanitized.address
 srcs list of string
sanitized.hwaddress
 srcs list of string
sanitized.none
 srcs list of string
 sdk_variant_only bool, If true, always create an sdk variant and don't create a platform variant.
 sdk_version string, The API level that this module is built against. The APIs of this API level will be visible at build time, but use of any APIs newer than min_sdk_version will render the module unloadable on older devices. In the future it will be possible to weakly-link new APIs, making the behavior match Java: such modules will load on older devices, but calling new APIs on devices that do not support them will result in a crash. This property has the same behavior as sdk_version does for Java modules. For those familiar with Android Gradle, the property behaves similarly to how compileSdkVersion does for Java code. In addition, setting this property causes two variants to be built, one for the platform and one for apps.
shared StaticOrSharedProperties
 srcs configurable list of string
 tidy_disabled_srcs list of string
 tidy_timeout_srcs list of string
sanitized Sanitized
none
 srcs list of string
address
 srcs list of string
hwaddress
 srcs list of string
 cflags configurable list of string
 enabled bool
 whole_static_libs configurable list of string
 static_libs configurable list of string
 shared_libs configurable list of string
 system_shared_libs list of string
 export_shared_lib_headers list of string
 export_static_lib_headers list of string
 apex_available list of string
 installable bool
 shared_libs configurable list of string, list of shared libraries that provide headers for this binding.
 soc_specific bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist).
 source_module_name string, Name of the source soong module that gets shadowed by this prebuilt If unspecified, follows the naming convention that the source module of the prebuilt is Name() without "prebuilt_" prefix
 standalone_test bool, Install the test's dependencies into a folder named standalone-libs relative to the test's installation path. ld-library-path will be set to this path in the test's auto-generated config. This way the dependencies can be used by the test without having to manually install them to the device. See more details in go/standalone-native-device-tests.
static StaticOrSharedProperties
 srcs configurable list of string
 tidy_disabled_srcs list of string
 tidy_timeout_srcs list of string
sanitized Sanitized
none
 srcs list of string
address
 srcs list of string
hwaddress
 srcs list of string
 cflags configurable list of string
 enabled bool
 whole_static_libs configurable list of string
 static_libs configurable list of string
 shared_libs configurable list of string
 system_shared_libs list of string
 export_shared_lib_headers list of string
 export_static_lib_headers list of string
 apex_available list of string
 installable bool
 static_executable bool, compile executable with -static
 static_libs configurable list of string, list of static libraries that provide headers for this binding.
 static_ndk_lib bool
 stem string, set the name of the output
 stl string, Select the STL library to use. Possible values are "libc++", "libc++_static", "libstdc++", or "none". Leave blank to select the default.
strip
 none bool, Device modules default to stripping enabled leaving mini debuginfo. Host modules default to stripping disabled, but can be enabled by setting any other strip boolean property.
 all bool, all forces stripping everything, including the mini debug info.
 keep_symbols bool, keep_symbols enables stripping but keeps all symbols.
 keep_symbols_list list of string, keep_symbols_list specifies a list of symbols to keep if keep_symbols is enabled. If it is unset then all symbols are kept.
 keep_symbols_and_debug_frame bool, keep_symbols_and_debug_frame enables stripping but keeps all symbols and debug frames.
stubs StubsProperties
Generate stubs to make this library accessible to APEXes.
 symbol_file string, Relative path to the symbol map. The symbol map provides the list of symbols that are exported for stubs variant of this library.
 versions list of string, List versions to generate stubs libs for. The version name "current" is always implicitly added.
 implementation_installable bool, Whether to not require the implementation of the library to be installed if a client of the stubs is installed. Defaults to true; set to false if the implementation is made available by some other means, e.g. in a Microdroid virtual machine.
 suffix string, set suffix of the name of the output
 system_dlkm_specific bool, Install to partition system_dlkm when set to true.
 system_ext_specific bool, whether this module extends system. When set to true, it is installed into /system_ext (or /system/system_ext if system_ext partition does not exist).
 system_shared_libs list of string, list of system libraries that will be dynamically linked to shared library and executable modules. If unset, generally defaults to libc, libm, and libdl. Set to [] to prevent linking against the defaults.
 target interface
target.android
 compile_multilib string
 enabled bool
target.apex
 exclude_shared_libs list of string, list of shared libs that should not be used to build the apex variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the apex variant of the C/C++ module.
target.host
 compile_multilib string
target.non_apex
 exclude_shared_libs list of string, list of shared libs that should not be used to build the non-apex variant of the C/C++ module.
target.platform
 shared_libs list of string, list of shared libs that should be use to build the platform variant of a module that sets sdk_version. This should rarely be necessary, in most cases the same libraries are available for the SDK and platform variants.
 header_libs list of string, list of ehader libs that only should be used to build platform variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the platform variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the platform variant of the C/C++ module.
header_abi_checker headerAbiCheckerProperties
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 required list of string, List of modules required by the core variant.
 exclude_required list of string, List of modules not required by the core variant.
target.product
 suffix string, set suffix of the name of the output
header_abi_checker headerAbiCheckerProperties
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 no_stubs bool, Disable stubs for vendor/product variants This is a workaround to keep `stubs` only for "core" variant (not product/vendor). It would be nice if we could put `stubs` into a `target: { core: {} }` block but it's not supported in soong yet. This could be removed/simplified once we have a better syntax.
 shared_libs list of string, list of shared libs that only should be used to build vendor or product variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build vendor or product variant of the C/C++ module.
 header_libs list of string, list of header libs that only should be used to build vendor or product variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor or product variant of the C/C++ module.
 version_script string, version script for vendor or product variant
 override_export_include_dirs list of string, list of exported include directories, like export_include_dirs, that will be applied to vendor or product variant of this library. This will overwrite any other declarations.
 srcs list of string, list of source files that should only be used in vendor or product variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build vendor or product variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build vendor or product variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build vendor or product variant of the C/C++ module.
target.ramdisk
 exclude_srcs list of string, list of source files that should not be used to build the ramdisk variants of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the ramdisk variants of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build the ramdisk variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the ramdisk variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the ramdisk variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the ramdisk variant of the C/C++ module.
target.recovery
 required list of string, List of modules required by the recovery variant.
 exclude_required list of string, List of modules not required by the recovery variant.
 srcs list of string, list of source files that should only be used in the recovery variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build the recovery variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the recovery variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build the recovery variant of the C/C++ module.
 shared_libs list of string, list of shared libs that only should be used to build the recovery variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build the recovery variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the recovery variant of the C/C++ module.
target.vendor
 shared_libs list of string, list of shared libs that only should be used to build vendor or product variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build vendor or product variant of the C/C++ module.
 header_libs list of string, list of header libs that only should be used to build vendor or product variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor or product variant of the C/C++ module.
 version_script string, version script for vendor or product variant
 suffix string, set suffix of the name of the output
header_abi_checker headerAbiCheckerProperties
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 no_stubs bool, Disable stubs for vendor/product variants This is a workaround to keep `stubs` only for "core" variant (not product/vendor). It would be nice if we could put `stubs` into a `target: { core: {} }` block but it's not supported in soong yet. This could be removed/simplified once we have a better syntax.
 srcs list of string, list of source files that should only be used in vendor or product variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build vendor or product variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build vendor or product variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build vendor or product variant of the C/C++ module.
 override_export_include_dirs list of string, list of exported include directories, like export_include_dirs, that will be applied to vendor or product variant of this library. This will overwrite any other declarations.
target.vendor_ramdisk
 exclude_srcs list of string, list of source files that should not be used to build the ramdisk variants of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the ramdisk variants of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the vendor ramdisk variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the vendor ramdisk variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor ramdisk variant of the C/C++ module.
 target_required list of string, names of other modules to install on target if this module is installed
 team string, The team (defined by the owner/vendor) who owns the property.
 test_config string, the name of the test configuration (for example "AndroidTest.xml") that should be installed with the module.
 test_config_template string, the name of the test configuration template (for example "AndroidTestTemplate.xml") that should be installed with the module.
 test_mainline_modules list of string, Add parameterized mainline modules to auto generated test config. The options will be handled by TradeFed to download and install the specified modules on the device.
test_options TestOptions
Test options.
 run_test_as string, The UID that you want to run the test as on a device.
 test_suite_tag list of string, A list of free-formed strings without spaces that categorize the test.
 extra_test_configs list of string, a list of extra test configuration files that should be installed with the module.
 min_shipping_api_level int64, Add ShippingApiLevelModuleController to auto generated test config. If the device properties for the shipping api level is less than the min_shipping_api_level, skip this module.
 vsr_min_shipping_api_level int64, Add ShippingApiLevelModuleController to auto generated test config. If any of the device shipping api level and vendor api level properties are less than the vsr_min_shipping_api_level, skip this module. As this includes the shipping api level check, it is not allowed to define min_shipping_api_level at the same time with this property.
 min_vndk_version int64, Add MinApiLevelModuleController with ro.vndk.version property. If ro.vndk.version has an integer value and the value is less than the min_vndk_version, skip this module.
 test_runner_options list of *ast.SelectorExpr, Extra <option> tags to add to the auto generated test xml file under the test runner, e.g., GTest. The "key" is optional in each of these.
 unit_test bool, If the test is a hostside (no device required) unittest that shall be run during presubmit check.
 tags list of string, Tags provide additional metadata to customize test execution by downstream test runners. The tags have no special meaning to Soong.
 test_suites list of string, list of compatibility suites (for example "cts", "vts") that the module should be installed into.
 tidy bool, whether to run clang-tidy over C-like sources.
 tidy_checks list of string, Extra checks to enable or disable in clang-tidy
 tidy_checks_as_errors list of string, Checks that should be treated as errors.
 tidy_disabled_srcs list of string, list of source files that should not be compiled with clang-tidy.
 tidy_flags list of string, Extra flags to pass to clang-tidy
 tidy_timeout_srcs list of string, list of source files that should not be compiled by clang-tidy when TIDY_TIMEOUT is set.
 unexported_symbols_list string, local file name to pass to the linker as -unexported_symbols_list
 unique_host_soname bool, rename host libraries to prevent overlap with system installed libraries
 use_generic_config bool, Set to true if this module must be generic and does not require product-specific information. To be included in the system image, this property must be set to true.
 use_version_lib bool, make android::build:GetBuildNumber() available containing the build ID.
 vendor bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist). Use `soc_specific` instead for better meaning.
 vendor_available bool, whether this module should be allowed to be directly depended by other modules with `vendor: true`, `proprietary: true`, or `vendor_available:true`. If set to true, two variants will be built separately, one like normal, and the other limited to the set of libraries and headers that are exposed to /vendor modules. The vendor variant may be used with a different (newer) /system, so it shouldn't have any unversioned runtime dependencies, or make assumptions about the system that may not be true in the future. If set to false, this module becomes inaccessible from /vendor modules. The modules with vndk: {enabled: true} must define 'vendor_available' to 'true'. Nothing happens if BOARD_VNDK_VERSION isn't set in the BoardConfig.mk
 vendor_dlkm_specific bool, Install to partition vendor_dlkm when set to true.
vendor_public_library vendorPublicLibraryProperties
If this is a vendor public library, properties to describe the vendor public library stubs.
 symbol_file string, Relative path to the symbol map.
 unversioned bool, Whether the system library uses symbol versions.
 export_public_headers list of string, list of header libs to re-export include directories from.
 override_export_include_dirs list of string, list of directories relative to the Blueprints file that willbe added to the include path (using -I) for any module that links against the LLNDK variant of this module, replacing any that were listed outside the llndk clause.
 vendor_ramdisk bool, Whether this module is installed to vendor ramdisk
 vendor_ramdisk_available bool, Make this module available when building for vendor ramdisk. On device without a dedicated recovery partition, the module is only available after switching root into /first_stage_ramdisk. To expose the module before switching root, install the recovery variant instead.
 version_script string, local file name to pass to the linker as --version-script. Not supported on darwin, and will fail to build if provided to the darwin variant of a module.
 vintf_fragment_modules configurable list of string, vintf_fragment Modules required from this module.
 vintf_fragments configurable list of string, VINTF manifest fragments to be installed if this module is installed
 visibility list of string, Controls the visibility of this module to other modules. Allowable values are one or more of these formats:

 ["//visibility:public"]: Anyone can use this module.
 ["//visibility:private"]: Only rules in the module's package (not its subpackages) can use
     this module.
 ["//visibility:override"]: Discards any rules inherited from defaults or a creating module.
     Can only be used at the beginning of a list of visibility rules.
 ["//some/package:__pkg__", "//other/package:__pkg__"]: Only modules in some/package and
     other/package (defined in some/package/*.bp and other/package/*.bp) have access to
     this module. Note that sub-packages do not have access to the rule; for example,
     //some/package/foo:bar or //other/package/testing:bla wouldn't have access. __pkg__
     is a special module and must be used verbatim. It represents all of the modules in the
     package.
 ["//project:__subpackages__", "//other:__subpackages__"]: Only modules in packages project
     or other or in one of their sub-packages have access to this module. For example,
     //project:rule, //project/library:lib or //other/testing/internal:munge are allowed
     to depend on this rule (but not //independent:evil)
 ["//project"]: This is shorthand for ["//project:__pkg__"]
 [":__subpackages__"]: This is shorthand for ["//project:__subpackages__"] where
     //project is the module's package. e.g. using [":__subpackages__"] in
     packages/apps/Settings/Android.bp is equivalent to
     //packages/apps/Settings:__subpackages__.
 ["//visibility:legacy_public"]: The default visibility, behaves as //visibility:public
     for now. It is an error if it is used in a module.

If a module does not specify the `visibility` property then it uses the `default_visibility` property of the `package` module in the module's package. If the `default_visibility` property is not set for the module's package then it will use the `default_visibility` of its closest ancestor package for which a `default_visibility` property is specified. If no `default_visibility` property can be found then the module uses the global default of `//visibility:legacy_public`. The `visibility` property has no effect on a defaults module although it does apply to any non-defaults module that uses it. To set the visibility of a defaults module, use the `defaults_visibility` property on the defaults module; not to be confused with the `default_visibility` property on the package module. See https://android.googlesource.com/platform/build/soong/+/main/README.md#visibility for more details.
 whole_program_vtables bool, Use -fwhole-program-vtables cflag.
 whole_static_libs configurable list of string, list of modules whose object files should be linked into this module in their entirety. For static library modules, all of the .o files from the intermediate directory of the dependency will be linked into this modules .a file. For a shared library, the dependency's .a file will be linked into this module using -Wl,--whole-archive.
 windows_import_lib string, Optionally provide an import library if this is a Windows PE DLL prebuilt. This is needed only if this library is linked by other modules in build time. Only makes sense for the Windows target.
 yacc YaccProperties

cc_fuzz

cc_fuzz creates a host/device fuzzer binary. Host binaries can be found at $ANDROID_HOST_OUT/fuzz/, and device binaries can be found at /data/fuzz on your device, or $ANDROID_PRODUCT_OUT/data/fuzz in your build tree.
 name string, The name of the module. Must be unique across all modules.
 srcs configurable list of string, list of source files used to compile the C/C++ module. May be .c, .cpp, or .S files. srcs may reference the outputs of other modules that produce source files like genrule or filegroup using the syntax ":module".
 exclude_srcs configurable list of string, list of source files that should not be used to build the C/C++ module. This is most useful in the arch/multilib variants to remove non-common files
 defaults list of string
 host_supported bool, If set to true, build a variant of the module for the host. Defaults to false.
 device_supported bool, If set to true, build a variant of the module for the device. Defaults to true.
 afdo bool, Afdo allows developers self-service enroll for automatic feedback-directed optimization using profile data.
aidl
 libs list of string, List of aidl_library modules
 include_dirs list of string, list of directories that will be added to the aidl include paths.
 local_include_dirs list of string, list of directories relative to the Blueprints file that will be added to the aidl include paths.
 generate_traces bool, whether to generate traces (for systrace) for this interface
 flags list of string, list of flags that will be passed to the AIDL compiler
 allow_undefined_symbols bool, allow the module to contain undefined symbols. By default, modules cannot contain undefined symbols that are not satisified by their immediate dependencies. Set this flag to true to remove --no-undefined from the linker flags. This flag should only be necessary for compiling low-level libraries like libc.
 apex_available list of string, Availability of this module in APEXes. Only the listed APEXes can contain this module. If the module has stubs then other APEXes and the platform may access it through them (subject to visibility). "//apex_available:anyapex" is a pseudo APEX name that matches to any APEX. "//apex_available:platform" refers to non-APEX partitions like "system.img". Prefix pattern (com.foo.*) can be used to match with any APEX name with the prefix(com.foo.). Default is ["//apex_available:platform"].
 arch interface
 asflags list of string, list of module-specific flags that will be used for .S compiles
 bootstrap bool, Allows this module to use non-APEX version of libraries. Useful for building binaries that are started before APEXes are activated.
 bpf_target bool, cc Build rules targeting BPF must set this to true. The correct fix is to ban targeting bpf in cc rules instead use bpf_rules. (b/323415017)
buildstubs bool
 bool bool
 c_std string, C standard version to use. Can be a specific version (such as "gnu11"), "experimental" (which will use draft versions like C1x when available), or the empty string (which will use the default).
 cflags configurable list of string, list of module-specific flags that will be used for C and C++ compiles.
 clang bool, Deprecated. true is the default, false is invalid.
 clang_asflags list of string, list of module-specific flags that will be used for .S compiles when compiling with clang
 clang_cflags list of string, list of module-specific flags that will be used for C and C++ compiles when compiling with clang
 clang_verify bool, Add "-Xclang -verify" to the cflags and appends "touch $out" to the clang command line.
 cmake_snapshot_supported bool, Allows this module to be included in CMake release snapshots to be built outside of Android build system and source tree.
 compile_multilib string, control whether this module compiles for 32-bit, 64-bit, or both. Possible values are "32" (compile for 32-bit only), "64" (compile for 64-bit only), "both" (compile for both architectures), or "first" (compile for 64-bit on a 64-bit platform, and 32-bit on a 32-bit platform).
 conlyflags list of string, list of module-specific flags that will be used for C compiles
 corpus list of string, Optional list of seed files to be installed to the fuzz target's output directory.
 cpp_std string, C++ standard version to use. Can be a specific version (such as "gnu++11"), "experimental" (which will use draft versions like C++1z when available), or the empty string (which will use the default).
 cppflags configurable list of string, list of module-specific flags that will be used for C++ compiles
 data list of string, Optional list of data files to be installed to the fuzz target's output directory. Directory structure relative to the module is preserved.
 debug_ramdisk bool, Whether this module is installed to debug ramdisk
 device_common_corpus list of string, Same as corpus, but adds dependencies on module references using the device's os variant and the common arch variant.
 device_common_data list of string, Same as data, but adds dependencies on modules using the device's os variant, and common architecture's variant. Can be useful to add device-built apps to the data of a host test.
 device_first_data list of string, Same as data, but adds dependencies on modules using the device's os variant, and the device's first architecture's variant. Can be useful to add device-built apps to the data of a host test.
 device_first_generated_headers configurable list of string, Same as generated_headers, but the dependencies will be added based on the first supported arch variant and the device os variant. This can be useful for creating a host tool that embeds a copy of a device tool, that it then extracts and pushes to a device at runtime.
 device_specific bool, whether this module is specific to a device, not only for SoC, but also for off-chip peripherals. When set to true, it is installed into /odm (or /vendor/odm if odm partition does not exist, or /system/vendor/odm if both odm and vendor partitions do not exist). This implies `soc_specific:true`.
 dictionary string, Optional dictionary to be installed to the fuzz target's output directory.
dist Dist
configuration to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 targets list of string, Copy the output of this module to the $DIST_DIR when `dist` is specified on the command line and any of these targets are also on the command line, or otherwise built
 dest string, The name of the output artifact. This defaults to the basename of the output of the module.
 dir string, The directory within the dist directory to store the artifact. Defaults to the top level directory ("").
 suffix string, A suffix to add to the artifact file name (before any extension).
 append_artifact_with_product bool, If true, then the artifact file will be appended with _<product name>. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be foo_coral.apk. If false, there is no change to the artifact file name.
 prepend_artifact_with_product bool, If true, then the artifact file will be prepended with <product name>-. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be coral-foo.apk. If false, there is no change to the artifact file name.
 tag string, A string tag to select the OutputFiles associated with the tag. If no tag is specified then it will select the default dist paths provided by the module type. If a tag of "" is specified then it will return the default output files provided by the modules, i.e. the result of calling OutputFiles("").
 dists list of Dist, a list of configurations to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 double_loadable bool, whether this module is capable of being loaded with other instance (possibly an older version) of the same module in the same process. Currently, a shared library that is a member of VNDK (vndk: {enabled: true}) can be double loaded in a vendor process if the library is also a (direct and indirect) dependency of an LLNDK library. Such libraries must be explicitly marked as `double_loadable: true` by the owner, or the dependency from the LLNDK lib should be cut if the lib is not designed to be double loaded.
 dynamic_list string, local file name to pass to the linker as --dynamic-list. Not supported on darwin, and will fail to build if provided to the darwin variant of a module.
 enabled configurable bool, emit build rules for this module Disabling a module should only be done for those modules that cannot be built in the current environment. Modules that can build in the current environment but are not usually required (e.g. superceded by a prebuilt) should not be disabled as that will prevent them from being built by the checkbuild target and so prevent early detection of changes that have broken those modules.
 exclude_generated_sources list of string, list of generated sources that should not be used to build the C/C++ module. This is most useful in the arch/multilib variants to remove non-common files
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with this module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build this module
 exclude_static_libs list of string, list of static libs that should not be used to build this module
 export_generated_headers list of string, list of generated headers to re-export include directories from. Entries must be present in generated_headers.
 export_header_lib_headers configurable list of string, list of header libraries to re-export include directories from. Entries must be present in header_libs.
 export_shared_lib_headers list of string, list of shared libraries to re-export include directories from. Entries must be present in shared_libs.
 export_static_lib_headers list of string, list of static libraries to re-export include directories from. Entries must be present in static_libs.
 fuzz_config FuzzConfig, Config for running the target on fuzzing infrastructure.
 fuzzing_frameworks FuzzFrameworks, Define the fuzzing frameworks this fuzz target can be built for. If empty then the fuzz target will be available to be built for all fuzz frameworks available
 generated_headers configurable list of string, list of generated headers to add to the include path. These are the names of genrule modules.
 generated_sources list of string, list of generated sources to compile. These are the names of gensrcs or genrule modules.
 gnu_extensions bool, if set to false, use -std=c++* instead of -std=gnu++*
 group_static_libs bool, deprecated and ignored because lld makes it unnecessary. See b/189475744.
 header_libs configurable list of string, list of modules that should only provide headers for this module.
 host_common_data list of string, Same as data, but will add dependencies on modules using the host's os variation and the common arch variation. Useful for a device test that wants to depend on a host module, for example to include a custom Tradefed test runner.
 host_cross_supported bool, If set to true, build a variant of the module for the host cross. Defaults to true.
 host_ldlibs list of string, -l arguments to pass to linker for host-provided shared libraries
 host_required list of string, names of other modules to install on host if this module is installed
 ignore_max_page_size bool, ignore max page size. By default, max page size must be the max page size set for the target.
 include_build_directory bool, Add the directory containing the Android.bp file to the list of include directories. Defaults to true.
 include_dirs configurable list of string, list of directories relative to the root of the source tree that will be added to the include path using -I. If possible, don't use this. If adding paths from the current directory use local_include_dirs, if adding paths from other modules use export_include_dirs in that module.
 init_rc configurable list of string, init.rc files to be installed if this module is installed
 inject_bssl_hash bool, Inject boringssl hash into the shared library. This is only intended for use by external/boringssl.
 install_in_root bool, Install output directly in {partition}/, not in any subdir. This is only intended for use by init_first_stage.
 install_in_xbin bool, Install output directly in {partition}/xbin
 installable bool
 instruction_set string, the instruction set architecture to use to compile the C/C++ module.
 ldflags list of string, list of module-specific flags that will be used for all link steps
 lex LexProperties
 licenses list of string, Describes the licenses applicable to this module. Must reference license modules.
 linker_scripts list of string, local files to pass to the linker as --script. Not supported on darwin or windows, and will fail to build if provided to the darwin or windows variant of a module.
 local_include_dirs configurable list of string, list of directories relative to the Blueprints file that will be added to the include path using -I
 logtags list of string, *.logtags files, to combine together in order to generate the /system/etc/event-log-tags file
lto
Lto must violate capitalization style for acronyms so that it can be referred to in blueprint files as "lto"
 never bool
 thin bool
 lto_O0 bool, Use --lto-O0 flag.
 min_sdk_version string, Minimum OS API level supported by this C or C++ module. This property becomes the value of the __ANDROID_API__ macro. When the C or C++ module is included in an APEX or an APK, this property is also used to ensure that the min_sdk_version of the containing module is not older (i.e. less) than this module's min_sdk_version. When not set, this property defaults to the value of sdk_version. When this is set to "apex_inherit", this tracks min_sdk_version of the containing APEX. When the module is not built for an APEX, "apex_inherit" defaults to sdk_version.
 multilib interface
 native_bridge_supported bool, Whether this module is built for non-native architectures (also known as native bridge binary)
 native_coverage bool
 no_crt_pad_segment bool, don't link in crt_pad_segment. This flag is currently only used internal to soong for testing and for vndk prebuilt shared libraries.
 no_full_install bool, When set to true, this module is not installed to the full install path (ex: under out/target/product/<name>/<partition>). It can be installed only to the packaging modules like android_filesystem.
 no_libcrt bool, don't link in libclang_rt.builtins-*.a
 nocrt bool, don't link in crt_begin and crt_end. This flag should only be necessary for compiling crt or libc.
 odm_available bool, This is the same as the "vendor_available" except that the install path of the vendor variant is /odm or /vendor/odm. By replacing "vendor_available: true" with "odm_available: true", the module will install its vendor variant to the /odm partition or /vendor/odm. As the modules with "odm_available: true" still create the vendor variants, they can link to the other vendor modules as the vendor_available modules do. Also, the vendor modules can link to odm_available modules. It may not be used for VNDK modules.
 odm_dlkm_specific bool, Install to partition odm_dlkm when set to true.
 openmp bool, Build and link with OpenMP
 optimize_for_size bool, Aggresively trade performance for smaller binary size. This should only be used for on-device binaries that are rarely executed and not performance critical.
orderfile
 instrumentation bool
 order_file_path string
 load_order_file bool
 cflags list of string, Additional compiler flags to use when building this module for orderfile profiling.
 overrides list of string, Names of modules to be overridden. Listed modules can only be other binaries (in Make or Soong). This does not completely prevent installation of the overridden binaries, but if both binaries would be installed by default (in PRODUCT_PACKAGES) the other binary will be removed from PRODUCT_PACKAGES.
 owner string, vendor who owns this module
 pack_relocations bool, Generate compact dynamic relocation table, default true.
 prefix_symbols string, if set, add an extra objcopy --prefix-symbols= step
 product_available bool, whether this module should be allowed to be directly depended by other modules with `product_specific: true` or `product_available: true`. If set to true, an additional product variant will be built separately that is limited to the set of libraries and headers that are exposed to /product modules. The product variant may be used with a different (newer) /system, so it shouldn't have any unversioned runtime dependencies, or make assumptions about the system that may not be true in the future. If set to false, this module becomes inaccessible from /product modules. Different from the 'vendor_available' property, the modules with vndk: {enabled: true} don't have to define 'product_available'. The VNDK library without 'product_available' may not be depended on by any other modules that has product variants including the product available VNDKs. Nothing happens if BOARD_VNDK_VERSION isn't set in the BoardConfig.mk and PRODUCT_PRODUCT_VNDK_VERSION isn't set.
 product_specific bool, whether this module is specific to a software configuration of a product (e.g. country, network operator, etc). When set to true, it is installed into /product (or /system/product if product partition does not exist).
product_variables.arc
cflags
  []string
exclude_srcs
  []string
header_libs
  []string
include_dirs
  []string
shared_libs
  []string
static_libs
  []string
srcs
  []string
whole_static_libs
  []string
product_variables.binder32bit
cflags
  []string
product_variables.build_from_text_stub
static_libs
  []string
exclude_static_libs
  []string
product_variables.debuggable
cflags
  []string
cppflags
  []string
init_rc
  []string
required
  []string
host_required
  []string
target_required
  []string
strip.all
  *bool
strip.keep_symbols
  *bool
strip.keep_symbols_and_debug_frame
  *bool
static_libs
  []string
exclude_static_libs
  []string
whole_static_libs
  []string
shared_libs
  []string
srcs
  []string
exclude_srcs
  []string
product_variables.enforce_vintf_manifest
cflags
  []string
product_variables.eng
cflags
  []string
cppflags
  []string
lto.never
  *bool
sanitize.address
  *bool
product_variables.malloc_low_memory
cflags
  []string
shared_libs
  []string
whole_static_libs
  []string
static_libs
  []string
exclude_static_libs
  []string
srcs
  []string
header_libs
  []string
product_variables.malloc_pattern_fill_contents
cflags
  []string
product_variables.malloc_zero_contents
cflags
  []string
product_variables.native_coverage
srcs
  []string
exclude_srcs
  []string
product_variables.override_rs_driver
cflags
  []string
product_variables.platform_sdk_version
asflags
  []string
cflags
  []string
product_variables.release_aidl_use_unfrozen
cflags
  []string
required
  []string
vintf_fragment_modules
  []string
product_variables.safestack
cflags
  []string
product_variables.selinuxignoreneverallows
required
  []string
product_variables.shipping_api_level
cflags
  []string
product_variables.treble_linker_namespaces
cflags
  []string
product_variables.uml
cppflags
  []string
product_variables.unbundled_build
enabled Configurable[bool]
 Configurable[bool] proptools.Configurable[bool]
 proprietary bool, whether this is a proprietary vendor module, and should be installed into /vendor
proto
 static bool, Link statically against the protobuf runtime
 type string, Proto generator type. C++: full or lite. Java: micro, nano, stream, or lite.
 plugin string, Proto plugin to use as the generator. Must be a cc_binary_host module.
 include_dirs list of string, list of directories that will be added to the protoc include paths.
 local_include_dirs list of string, list of directories relative to the bp file that will be added to the protoc include paths.
 canonical_path_from_root bool, whether to identify the proto files from the root of the source tree (the original method in Android, useful for android-specific protos), or relative from where they were specified (useful for external/third party protos). This defaults to true today, but is expected to default to false in the future.
 ramdisk bool, Whether this module is installed to ramdisk
 ramdisk_available bool, Make this module available when building for ramdisk. On device without a dedicated recovery partition, the module is only available after switching root into /first_stage_ramdisk. To expose the module before switching root, install the recovery variant instead.
 recovery bool, Whether this module is installed to recovery partition
 recovery_available bool, Make this module available when building for recovery
 relative_install_path string, install to a subdirectory of the default install path for the module
renderscript
 include_dirs list of string, list of directories that will be added to the llvm-rs-cc include paths
 flags list of string, list of flags that will be passed to llvm-rs-cc
 target_api string, Renderscript API level to target
 required configurable list of string, names of other modules to install if this module is installed
 rtti bool, pass -frtti instead of -fno-rtti
 runtime_libs list of string, list of modules that should be installed with this module. This is similar to 'required' but '.vendor' suffix will be appended to the module names if the shared libraries have vendor variants and this module uses VNDK.
sanitize SanitizeUserProps
 never bool, Prevent use of any sanitizers on this module
 address bool, ASan (Address sanitizer), incompatible with static binaries. Always runs in a diagnostic mode. Use of address sanitizer disables cfi sanitizer. Hwaddress sanitizer takes precedence over this sanitizer.
 thread bool, TSan (Thread sanitizer), incompatible with static binaries and 32 bit architectures. Always runs in a diagnostic mode. Use of thread sanitizer disables cfi and scudo sanitizers. Hwaddress sanitizer takes precedence over this sanitizer.
 hwaddress bool, HWASan (Hardware Address sanitizer). Use of hwasan sanitizer disables cfi, address, thread, and scudo sanitizers.
 all_undefined bool, Undefined behavior sanitizer
 undefined bool, Subset of undefined behavior sanitizer
 misc_undefined list of string, List of specific undefined behavior sanitizers to enable
 fuzzer bool, Fuzzer, incompatible with static binaries.
 safestack bool, safe-stack sanitizer, incompatible with 32-bit architectures.
 cfi bool, cfi sanitizer, incompatible with asan, hwasan, fuzzer, or Darwin
 integer_overflow bool, signed/unsigned integer overflow sanitizer, incompatible with Darwin.
 scudo bool, scudo sanitizer, incompatible with asan, hwasan, tsan This should not be used in Android 11+ : https://source.android.com/devices/tech/debug/scudo deprecated
 scs bool, shadow-call-stack sanitizer, only available on arm64/riscv64.
 memtag_heap bool, Memory-tagging, only available on arm64 if diag.memtag unset or false, enables async memory tagging
 memtag_stack bool, Memory-tagging stack instrumentation, only available on arm64 Adds instrumentation to detect stack buffer overflows and use-after-scope using MTE.
 memtag_globals bool, Memory-tagging globals instrumentation, only available on arm64 Adds instrumentation to detect global buffer overflows using MTE.
 writeonly bool, A modifier for ASAN and HWASAN for write only instrumentation
diag
Sanitizers to run in the diagnostic mode (as opposed to the release mode). Replaces abort() on error with a human-readable error message. Address and Thread sanitizers always run in diagnostic mode.
 undefined bool, Undefined behavior sanitizer, diagnostic mode
 cfi bool, cfi sanitizer, diagnostic mode, incompatible with asan, hwasan, fuzzer, or Darwin
 integer_overflow bool, signed/unsigned integer overflow sanitizer, diagnostic mode, incompatible with Darwin.
 memtag_heap bool, Memory-tagging, only available on arm64 requires sanitizer.memtag: true if set, enables sync memory tagging
 misc_undefined list of string, List of specific undefined behavior sanitizers to enable in diagnostic mode
 no_recover list of string, List of sanitizers to pass to -fno-sanitize-recover results in only the first detected error for these sanitizers being reported and program then exits with a non-zero exit code.
config
Sanitizers to run with flag configuration specified
 cfi_assembly_support bool, Enables CFI support flags for assembly-heavy libraries
 recover list of string, List of sanitizers to pass to -fsanitize-recover allows execution to continue for these sanitizers to detect multiple errors rather than only the first one
 blocklist string, value to pass to -fsanitize-ignorelist
 sdk_variant_only bool, If true, always create an sdk variant and don't create a platform variant.
 sdk_version string, The API level that this module is built against. The APIs of this API level will be visible at build time, but use of any APIs newer than min_sdk_version will render the module unloadable on older devices. In the future it will be possible to weakly-link new APIs, making the behavior match Java: such modules will load on older devices, but calling new APIs on devices that do not support them will result in a crash. This property has the same behavior as sdk_version does for Java modules. For those familiar with Android Gradle, the property behaves similarly to how compileSdkVersion does for Java code. In addition, setting this property causes two variants to be built, one for the platform and one for apps.
 shared_libs configurable list of string, list of modules that should be dynamically linked into this module.
 soc_specific bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist).
 static_executable bool, compile executable with -static
 static_libs configurable list of string, list of modules that should be statically linked into this module.
 stem string, set the name of the output
 stl string, Select the STL library to use. Possible values are "libc++", "libc++_static", "libstdc++", or "none". Leave blank to select the default.
strip
 none bool, Device modules default to stripping enabled leaving mini debuginfo. Host modules default to stripping disabled, but can be enabled by setting any other strip boolean property.
 all bool, all forces stripping everything, including the mini debug info.
 keep_symbols bool, keep_symbols enables stripping but keeps all symbols.
 keep_symbols_list list of string, keep_symbols_list specifies a list of symbols to keep if keep_symbols is enabled. If it is unset then all symbols are kept.
 keep_symbols_and_debug_frame bool, keep_symbols_and_debug_frame enables stripping but keeps all symbols and debug frames.
 suffix string, append to the name of the output
 system_dlkm_specific bool, Install to partition system_dlkm when set to true.
 system_ext_specific bool, whether this module extends system. When set to true, it is installed into /system_ext (or /system/system_ext if system_ext partition does not exist).
 system_shared_libs list of string, list of system libraries that will be dynamically linked to shared library and executable modules. If unset, generally defaults to libc, libm, and libdl. Set to [] to prevent linking against the defaults.
 target interface
target.android
 compile_multilib string
 enabled bool
target.apex
 exclude_shared_libs list of string, list of shared libs that should not be used to build the apex variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the apex variant of the C/C++ module.
target.host
 compile_multilib string
target.non_apex
 exclude_shared_libs list of string, list of shared libs that should not be used to build the non-apex variant of the C/C++ module.
target.platform
 cflags list of string, List of additional cflags that should be used to build the platform variant of the C/C++ module.
 required list of string, List of modules required by the core variant.
 exclude_required list of string, List of modules not required by the core variant.
 shared_libs list of string, list of shared libs that should be use to build the platform variant of a module that sets sdk_version. This should rarely be necessary, in most cases the same libraries are available for the SDK and platform variants.
 header_libs list of string, list of ehader libs that only should be used to build platform variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the platform variant of the C/C++ module.
target.product
 srcs list of string, list of source files that should only be used in vendor or product variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build vendor or product variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build vendor or product variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build vendor or product variant of the C/C++ module.
 shared_libs list of string, list of shared libs that only should be used to build vendor or product variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build vendor or product variant of the C/C++ module.
 header_libs list of string, list of header libs that only should be used to build vendor or product variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor or product variant of the C/C++ module.
 version_script string, version script for vendor or product variant
target.ramdisk
 static_libs list of string, list of static libs that only should be used to build the ramdisk variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the ramdisk variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the ramdisk variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the ramdisk variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build the ramdisk variants of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the ramdisk variants of the C/C++ module.
target.recovery
 srcs list of string, list of source files that should only be used in the recovery variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build the recovery variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the recovery variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build the recovery variant of the C/C++ module.
 shared_libs list of string, list of shared libs that only should be used to build the recovery variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build the recovery variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the recovery variant of the C/C++ module.
 required list of string, List of modules required by the recovery variant.
 exclude_required list of string, List of modules not required by the recovery variant.
target.vendor
 srcs list of string, list of source files that should only be used in vendor or product variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build vendor or product variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build vendor or product variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build vendor or product variant of the C/C++ module.
 shared_libs list of string, list of shared libs that only should be used to build vendor or product variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build vendor or product variant of the C/C++ module.
 header_libs list of string, list of header libs that only should be used to build vendor or product variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor or product variant of the C/C++ module.
 version_script string, version script for vendor or product variant
target.vendor_ramdisk
 exclude_shared_libs list of string, list of shared libs that should not be used to build the vendor ramdisk variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the vendor ramdisk variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor ramdisk variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build the ramdisk variants of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the ramdisk variants of the C/C++ module.
 target_required list of string, names of other modules to install on target if this module is installed
 team string, The team (defined by the owner/vendor) who owns the property.
 tidy bool, whether to run clang-tidy over C-like sources.
 tidy_checks list of string, Extra checks to enable or disable in clang-tidy
 tidy_checks_as_errors list of string, Checks that should be treated as errors.
 tidy_disabled_srcs list of string, list of source files that should not be compiled with clang-tidy.
 tidy_flags list of string, Extra flags to pass to clang-tidy
 tidy_timeout_srcs list of string, list of source files that should not be compiled by clang-tidy when TIDY_TIMEOUT is set.
 use_generic_config bool, Set to true if this module must be generic and does not require product-specific information. To be included in the system image, this property must be set to true.
 use_version_lib bool, make android::build:GetBuildNumber() available containing the build ID.
 vendor bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist). Use `soc_specific` instead for better meaning.
 vendor_available bool, whether this module should be allowed to be directly depended by other modules with `vendor: true`, `proprietary: true`, or `vendor_available:true`. If set to true, two variants will be built separately, one like normal, and the other limited to the set of libraries and headers that are exposed to /vendor modules. The vendor variant may be used with a different (newer) /system, so it shouldn't have any unversioned runtime dependencies, or make assumptions about the system that may not be true in the future. If set to false, this module becomes inaccessible from /vendor modules. The modules with vndk: {enabled: true} must define 'vendor_available' to 'true'. Nothing happens if BOARD_VNDK_VERSION isn't set in the BoardConfig.mk
 vendor_dlkm_specific bool, Install to partition vendor_dlkm when set to true.
 vendor_ramdisk bool, Whether this module is installed to vendor ramdisk
 vendor_ramdisk_available bool, Make this module available when building for vendor ramdisk. On device without a dedicated recovery partition, the module is only available after switching root into /first_stage_ramdisk. To expose the module before switching root, install the recovery variant instead.
 version_script string, local file name to pass to the linker as --version-script. Not supported on darwin, and will fail to build if provided to the darwin variant of a module.
 vintf_fragment_modules configurable list of string, vintf_fragment Modules required from this module.
 vintf_fragments configurable list of string, VINTF manifest fragments to be installed if this module is installed
 visibility list of string, Controls the visibility of this module to other modules. Allowable values are one or more of these formats:

 ["//visibility:public"]: Anyone can use this module.
 ["//visibility:private"]: Only rules in the module's package (not its subpackages) can use
     this module.
 ["//visibility:override"]: Discards any rules inherited from defaults or a creating module.
     Can only be used at the beginning of a list of visibility rules.
 ["//some/package:__pkg__", "//other/package:__pkg__"]: Only modules in some/package and
     other/package (defined in some/package/*.bp and other/package/*.bp) have access to
     this module. Note that sub-packages do not have access to the rule; for example,
     //some/package/foo:bar or //other/package/testing:bla wouldn't have access. __pkg__
     is a special module and must be used verbatim. It represents all of the modules in the
     package.
 ["//project:__subpackages__", "//other:__subpackages__"]: Only modules in packages project
     or other or in one of their sub-packages have access to this module. For example,
     //project:rule, //project/library:lib or //other/testing/internal:munge are allowed
     to depend on this rule (but not //independent:evil)
 ["//project"]: This is shorthand for ["//project:__pkg__"]
 [":__subpackages__"]: This is shorthand for ["//project:__subpackages__"] where
     //project is the module's package. e.g. using [":__subpackages__"] in
     packages/apps/Settings/Android.bp is equivalent to
     //packages/apps/Settings:__subpackages__.
 ["//visibility:legacy_public"]: The default visibility, behaves as //visibility:public
     for now. It is an error if it is used in a module.

If a module does not specify the `visibility` property then it uses the `default_visibility` property of the `package` module in the module's package. If the `default_visibility` property is not set for the module's package then it will use the `default_visibility` of its closest ancestor package for which a `default_visibility` property is specified. If no `default_visibility` property can be found then the module uses the global default of `//visibility:legacy_public`. The `visibility` property has no effect on a defaults module although it does apply to any non-defaults module that uses it. To set the visibility of a defaults module, use the `defaults_visibility` property on the defaults module; not to be confused with the `default_visibility` property on the package module. See https://android.googlesource.com/platform/build/soong/+/main/README.md#visibility for more details.
 whole_program_vtables bool, Use -fwhole-program-vtables cflag.
 whole_static_libs configurable list of string, list of modules whose object files should be linked into this module in their entirety. For static library modules, all of the .o files from the intermediate directory of the dependency will be linked into this modules .a file. For a shared library, the dependency's .a file will be linked into this module using -Wl,--whole-archive.
 yacc YaccProperties

cc_genrule

cc_genrule is a genrule that can depend on other cc_* objects. The cmd may be run multiple times, once for each of the different arch/etc variations. The following environment variables will be set when the command execute:

	CC_ARCH           the name of the architecture the command is being executed for

	CC_MULTILIB       "lib32" if the architecture the command is being executed for is 32-bit,
	                  "lib64" if it is 64-bit.

	CC_NATIVE_BRIDGE  the name of the subdirectory that native bridge libraries are stored in if
	                  the architecture has native bridge enabled, empty if it is disabled.

	CC_OS             the name of the OS the command is being executed for.

 name string, The name of the module. Must be unique across all modules.
 srcs configurable list of string, list of input files
 exclude_srcs list of string, input files to exclude
 defaults list of string
 host_supported bool, If set to true, build a variant of the module for the host. Defaults to false.
 device_supported bool, If set to true, build a variant of the module for the device. Defaults to true.
 apex_available list of string, Availability of this module in APEXes. Only the listed APEXes can contain this module. If the module has stubs then other APEXes and the platform may access it through them (subject to visibility). "//apex_available:anyapex" is a pseudo APEX name that matches to any APEX. "//apex_available:platform" refers to non-APEX partitions like "system.img". Prefix pattern (com.foo.*) can be used to match with any APEX name with the prefix(com.foo.). Default is ["//apex_available:platform"].
 arch interface
 cmd configurable string, The command to run on one or more input files. Cmd supports substitution of a few variables. Available variables for substitution:

 $(location): the path to the first entry in tools or tool_files.
 $(location <label>): the path to the tool, tool_file, input or output with name <label>. Use $(location) if <label> refers to a rule that outputs exactly one file.
 $(locations <label>): the paths to the tools, tool_files, inputs or outputs with name <label>. Use $(locations) if <label> refers to a rule that outputs two or more files.
 $(in): one or more input files.
 $(out): a single output file.
 $(genDir): the sandbox directory for this tool; contains $(out).
 $$: a literal $

 common_os_srcs configurable list of string, Same as srcs, but will add dependencies on modules via a common_os os variation.
 compile_multilib string, control whether this module compiles for 32-bit, 64-bit, or both. Possible values are "32" (compile for 32-bit only), "64" (compile for 64-bit only), "both" (compile for both architectures), or "first" (compile for 64-bit on a 64-bit platform, and 32-bit on a 32-bit platform).
 debug_ramdisk bool, Whether this module is installed to debug ramdisk
 device_common_srcs configurable list of string, Same as srcs, but will add dependencies on modules via a device os variation and the common arch variation. Can be used to add a dependency from a host genrule to a device module.
 device_first_srcs configurable list of string, Same as srcs, but will add dependencies on modules via a device os variation and the device's first supported arch's variation. Can be used to add a dependency from a host genrule to a device module.
 device_specific bool, whether this module is specific to a device, not only for SoC, but also for off-chip peripherals. When set to true, it is installed into /odm (or /vendor/odm if odm partition does not exist, or /system/vendor/odm if both odm and vendor partitions do not exist). This implies `soc_specific:true`.
 dir_srcs list of string, List of input directories. Can be set only when use_nsjail is true. Currently, usage of dir_srcs is limited only to Trusty build.
dist Dist
configuration to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 targets list of string, Copy the output of this module to the $DIST_DIR when `dist` is specified on the command line and any of these targets are also on the command line, or otherwise built
 dest string, The name of the output artifact. This defaults to the basename of the output of the module.
 dir string, The directory within the dist directory to store the artifact. Defaults to the top level directory ("").
 suffix string, A suffix to add to the artifact file name (before any extension).
 append_artifact_with_product bool, If true, then the artifact file will be appended with _<product name>. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be foo_coral.apk. If false, there is no change to the artifact file name.
 prepend_artifact_with_product bool, If true, then the artifact file will be prepended with <product name>-. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be coral-foo.apk. If false, there is no change to the artifact file name.
 tag string, A string tag to select the OutputFiles associated with the tag. If no tag is specified then it will select the default dist paths provided by the module type. If a tag of "" is specified then it will return the default output files provided by the modules, i.e. the result of calling OutputFiles("").
 dists list of Dist, a list of configurations to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 enabled configurable bool, emit build rules for this module Disabling a module should only be done for those modules that cannot be built in the current environment. Modules that can build in the current environment but are not usually required (e.g. superceded by a prebuilt) should not be disabled as that will prevent them from being built by the checkbuild target and so prevent early detection of changes that have broken those modules.
 export_include_dirs list of string, List of directories to export generated headers from
 host_cross_supported bool, If set to true, build a variant of the module for the host cross. Defaults to true.
 host_first_srcs configurable list of string, Same as srcs, but will add dependencies on modules via for host os variation.
 host_required list of string, names of other modules to install on host if this module is installed
 host_second_srcs configurable list of string, Same as srcs, but will add dependencies on modules via for host 2nd arch os variation.
 init_rc configurable list of string, init.rc files to be installed if this module is installed
 keep_gendir bool, If set to true, $(genDir) is not truncated. Useful when this genrule can be incrementally built. Can be set only when use_nsjail is true.
 licenses list of string, Describes the licenses applicable to this module. Must reference license modules.
 multilib interface
 native_bridge_supported bool, Whether this module is built for non-native architectures (also known as native bridge binary)
 no_full_install bool, When set to true, this module is not installed to the full install path (ex: under out/target/product/<name>/<partition>). It can be installed only to the packaging modules like android_filesystem.
 odm_available bool
 odm_dlkm_specific bool, Install to partition odm_dlkm when set to true.
 out list of string, names of the output files that will be generated
 overrides list of string, List of module names that are prevented from being installed when this module gets installed.
 owner string, vendor who owns this module
 product_available bool
 product_specific bool, whether this module is specific to a software configuration of a product (e.g. country, network operator, etc). When set to true, it is installed into /product (or /system/product if product partition does not exist).
product_variables.arc
exclude_srcs
  []string
srcs
  []string
product_variables.debuggable
init_rc
  []string
required
  []string
host_required
  []string
target_required
  []string
srcs
  []string
exclude_srcs
  []string
cmd
  *string
product_variables.malloc_low_memory
srcs
  []string
product_variables.native_coverage
srcs
  []string
exclude_srcs
  []string
product_variables.platform_sdk_extension_version
cmd
  *string
product_variables.platform_sdk_version
cmd
  *string
product_variables.release_aidl_use_unfrozen
cmd
  *string
required
  []string
vintf_fragment_modules
  []string
product_variables.selinuxignoreneverallows
required
  []string
product_variables.unbundled_build
enabled Configurable[bool]
 Configurable[bool] proptools.Configurable[bool]
 proprietary bool, whether this is a proprietary vendor module, and should be installed into /vendor
 ramdisk bool, Whether this module is installed to ramdisk
 ramdisk_available bool
 recovery bool, Whether this module is installed to recovery partition
 recovery_available bool
 required configurable list of string, names of other modules to install if this module is installed
 sdk_version string
 soc_specific bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist).
 system_dlkm_specific bool, Install to partition system_dlkm when set to true.
 system_ext_specific bool, whether this module extends system. When set to true, it is installed into /system_ext (or /system/system_ext if system_ext partition does not exist).
 target interface
target.android
 compile_multilib string
 enabled bool
target.host
 compile_multilib string
 target_required list of string, names of other modules to install on target if this module is installed
 team string, The team (defined by the owner/vendor) who owns the property.
 tool_files list of string, Local files that are used by the tool
 tools list of string, name of the modules (if any) that produces the host executable. Leave empty for prebuilts or scripts that do not need a module to build them.
 use_generic_config bool, Set to true if this module must be generic and does not require product-specific information. To be included in the system image, this property must be set to true.
 use_nsjail bool
 uses_order_only_build_date_file bool, When set to true, an additional $(build_date_file) label will be available to use in the cmd. This will be the location of a text file containing the build date. The dependency on this file will be "order-only", meaning that the genrule will not rerun when only this file changes, to avoid rerunning the genrule every build, because the build date changes every build. This also means that you should not attempt to consume the build date from the result of this genrule in another build rule. If you do, the build date in the second build rule will be stale when the second build rule rebuilds but this genrule does not. Only certain allowlisted modules are allowed to use this property, usages of the build date should be kept to the absolute minimum.
 uses_order_only_build_number_file bool, When set to true, an additional $(build_number_file) label will be available to use in the cmd. This will be the location of a text file containing the build number. The dependency on this file will be "order-only", meaning that the genrule will not rerun when only this file changes, to avoid rerunning the genrule every build, because the build number changes every build. This also means that you should not attempt to consume the build number from the result of this genrule in another build rule. If you do, the build number in the second build rule will be stale when the second build rule rebuilds but this genrule does not. Only certain allowlisted modules are allowed to use this property, usages of the build number should be kept to the absolute minimum. Particularly no modules on the system image may include the build number. Prefer using libbuildversion via the use_version_lib property on cc modules.
 vendor bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist). Use `soc_specific` instead for better meaning.
 vendor_available bool
 vendor_dlkm_specific bool, Install to partition vendor_dlkm when set to true.
 vendor_ramdisk bool, Whether this module is installed to vendor ramdisk
 vendor_ramdisk_available bool
 vintf_fragment_modules configurable list of string, vintf_fragment Modules required from this module.
 vintf_fragments configurable list of string, VINTF manifest fragments to be installed if this module is installed
 visibility list of string, Controls the visibility of this module to other modules. Allowable values are one or more of these formats:

 ["//visibility:public"]: Anyone can use this module.
 ["//visibility:private"]: Only rules in the module's package (not its subpackages) can use
     this module.
 ["//visibility:override"]: Discards any rules inherited from defaults or a creating module.
     Can only be used at the beginning of a list of visibility rules.
 ["//some/package:__pkg__", "//other/package:__pkg__"]: Only modules in some/package and
     other/package (defined in some/package/*.bp and other/package/*.bp) have access to
     this module. Note that sub-packages do not have access to the rule; for example,
     //some/package/foo:bar or //other/package/testing:bla wouldn't have access. __pkg__
     is a special module and must be used verbatim. It represents all of the modules in the
     package.
 ["//project:__subpackages__", "//other:__subpackages__"]: Only modules in packages project
     or other or in one of their sub-packages have access to this module. For example,
     //project:rule, //project/library:lib or //other/testing/internal:munge are allowed
     to depend on this rule (but not //independent:evil)
 ["//project"]: This is shorthand for ["//project:__pkg__"]
 [":__subpackages__"]: This is shorthand for ["//project:__subpackages__"] where
     //project is the module's package. e.g. using [":__subpackages__"] in
     packages/apps/Settings/Android.bp is equivalent to
     //packages/apps/Settings:__subpackages__.
 ["//visibility:legacy_public"]: The default visibility, behaves as //visibility:public
     for now. It is an error if it is used in a module.

If a module does not specify the `visibility` property then it uses the `default_visibility` property of the `package` module in the module's package. If the `default_visibility` property is not set for the module's package then it will use the `default_visibility` of its closest ancestor package for which a `default_visibility` property is specified. If no `default_visibility` property can be found then the module uses the global default of `//visibility:legacy_public`. The `visibility` property has no effect on a defaults module although it does apply to any non-defaults module that uses it. To set the visibility of a defaults module, use the `defaults_visibility` property on the defaults module; not to be confused with the `default_visibility` property on the package module. See https://android.googlesource.com/platform/build/soong/+/main/README.md#visibility for more details.
 write_if_changed bool, Enable restat to update the output only if the output is changed

cc_library

cc_library creates both static and/or shared libraries for a device and/or host. By default, a cc_library has a single variant that targets the device. Specifying `host_supported: true` also creates a library that targets the host.
 name string, The name of the module. Must be unique across all modules.
 srcs configurable list of string, list of source files used to compile the C/C++ module. May be .c, .cpp, or .S files. srcs may reference the outputs of other modules that produce source files like genrule or filegroup using the syntax ":module".
 exclude_srcs configurable list of string, list of source files that should not be used to build the C/C++ module. This is most useful in the arch/multilib variants to remove non-common files
 defaults list of string
 host_supported bool, If set to true, build a variant of the module for the host. Defaults to false.
 device_supported bool, If set to true, build a variant of the module for the device. Defaults to true.
 afdo bool, Afdo allows developers self-service enroll for automatic feedback-directed optimization using profile data.
aidl
 libs list of string, List of aidl_library modules
 include_dirs list of string, list of directories that will be added to the aidl include paths.
 local_include_dirs list of string, list of directories relative to the Blueprints file that will be added to the aidl include paths.
 generate_traces bool, whether to generate traces (for systrace) for this interface
 flags list of string, list of flags that will be passed to the AIDL compiler
 export_aidl_headers bool, export headers generated from .aidl sources
 allow_undefined_symbols bool, allow the module to contain undefined symbols. By default, modules cannot contain undefined symbols that are not satisified by their immediate dependencies. Set this flag to true to remove --no-undefined from the linker flags. This flag should only be necessary for compiling low-level libraries like libc.
 apex_available list of string, Availability of this module in APEXes. Only the listed APEXes can contain this module. If the module has stubs then other APEXes and the platform may access it through them (subject to visibility). "//apex_available:anyapex" is a pseudo APEX name that matches to any APEX. "//apex_available:platform" refers to non-APEX partitions like "system.img". Prefix pattern (com.foo.*) can be used to match with any APEX name with the prefix(com.foo.). Default is ["//apex_available:platform"].
 arch interface
 asflags list of string, list of module-specific flags that will be used for .S compiles
 bootstrap bool, Allows this module to use non-APEX version of libraries. Useful for building binaries that are started before APEXes are activated.
 bpf_target bool, cc Build rules targeting BPF must set this to true. The correct fix is to ban targeting bpf in cc rules instead use bpf_rules. (b/323415017)
buildstubs bool
 bool bool
 c_std string, C standard version to use. Can be a specific version (such as "gnu11"), "experimental" (which will use draft versions like C1x when available), or the empty string (which will use the default).
 cflags configurable list of string, list of module-specific flags that will be used for C and C++ compiles.
 clang bool, Deprecated. true is the default, false is invalid.
 clang_asflags list of string, list of module-specific flags that will be used for .S compiles when compiling with clang
 clang_cflags list of string, list of module-specific flags that will be used for C and C++ compiles when compiling with clang
 clang_verify bool, Add "-Xclang -verify" to the cflags and appends "touch $out" to the clang command line.
 cmake_snapshot_supported bool, Allows this module to be included in CMake release snapshots to be built outside of Android build system and source tree.
 compile_multilib string, control whether this module compiles for 32-bit, 64-bit, or both. Possible values are "32" (compile for 32-bit only), "64" (compile for 64-bit only), "both" (compile for both architectures), or "first" (compile for 64-bit on a 64-bit platform, and 32-bit on a 32-bit platform).
 conlyflags list of string, list of module-specific flags that will be used for C compiles
 cpp_std string, C++ standard version to use. Can be a specific version (such as "gnu++11"), "experimental" (which will use draft versions like C++1z when available), or the empty string (which will use the default).
 cppflags configurable list of string, list of module-specific flags that will be used for C++ compiles
 debug_ramdisk bool, Whether this module is installed to debug ramdisk
 device_first_generated_headers configurable list of string, Same as generated_headers, but the dependencies will be added based on the first supported arch variant and the device os variant. This can be useful for creating a host tool that embeds a copy of a device tool, that it then extracts and pushes to a device at runtime.
 device_specific bool, whether this module is specific to a device, not only for SoC, but also for off-chip peripherals. When set to true, it is installed into /odm (or /vendor/odm if odm partition does not exist, or /system/vendor/odm if both odm and vendor partitions do not exist). This implies `soc_specific:true`.
dist Dist
configuration to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 targets list of string, Copy the output of this module to the $DIST_DIR when `dist` is specified on the command line and any of these targets are also on the command line, or otherwise built
 dest string, The name of the output artifact. This defaults to the basename of the output of the module.
 dir string, The directory within the dist directory to store the artifact. Defaults to the top level directory ("").
 suffix string, A suffix to add to the artifact file name (before any extension).
 append_artifact_with_product bool, If true, then the artifact file will be appended with _<product name>. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be foo_coral.apk. If false, there is no change to the artifact file name.
 prepend_artifact_with_product bool, If true, then the artifact file will be prepended with <product name>-. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be coral-foo.apk. If false, there is no change to the artifact file name.
 tag string, A string tag to select the OutputFiles associated with the tag. If no tag is specified then it will select the default dist paths provided by the module type. If a tag of "" is specified then it will return the default output files provided by the modules, i.e. the result of calling OutputFiles("").
 dists list of Dist, a list of configurations to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 double_loadable bool, whether this module is capable of being loaded with other instance (possibly an older version) of the same module in the same process. Currently, a shared library that is a member of VNDK (vndk: {enabled: true}) can be double loaded in a vendor process if the library is also a (direct and indirect) dependency of an LLNDK library. Such libraries must be explicitly marked as `double_loadable: true` by the owner, or the dependency from the LLNDK lib should be cut if the lib is not designed to be double loaded.
 dynamic_list string, local file name to pass to the linker as --dynamic-list. Not supported on darwin, and will fail to build if provided to the darwin variant of a module.
 enabled configurable bool, emit build rules for this module Disabling a module should only be done for those modules that cannot be built in the current environment. Modules that can build in the current environment but are not usually required (e.g. superceded by a prebuilt) should not be disabled as that will prevent them from being built by the checkbuild target and so prevent early detection of changes that have broken those modules.
 exclude_generated_sources list of string, list of generated sources that should not be used to build the C/C++ module. This is most useful in the arch/multilib variants to remove non-common files
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with this module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build this module
 exclude_static_libs list of string, list of static libs that should not be used to build this module
 export_cflags list of string, list of plain cc flags to be used for any module that links against this module.
 export_generated_headers list of string, list of generated headers to re-export include directories from. Entries must be present in generated_headers.
 export_header_lib_headers configurable list of string, list of header libraries to re-export include directories from. Entries must be present in header_libs.
 export_include_dirs configurable list of string, list of directories relative to the Blueprints file that will be added to the include path (using -I) for this module and any module that links against this module. Directories listed in export_include_dirs do not need to be listed in local_include_dirs.
 export_shared_lib_headers list of string, list of shared libraries to re-export include directories from. Entries must be present in shared_libs.
 export_static_lib_headers list of string, list of static libraries to re-export include directories from. Entries must be present in static_libs.
 export_system_include_dirs list of string, list of directories that will be added to the system include path using -isystem for this module and any module that links against this module.
 exported_symbols_list string, local file name to pass to the linker as -exported_symbols_list
 force_symbols_not_weak_list string, local file name to pass to the linker as -force_symbols_not_weak_list
 force_symbols_weak_list string, local file name to pass to the linker as -force_symbols_weak_list
 generated_headers configurable list of string, list of generated headers to add to the include path. These are the names of genrule modules.
 generated_sources list of string, list of generated sources to compile. These are the names of gensrcs or genrule modules.
 gnu_extensions bool, if set to false, use -std=c++* instead of -std=gnu++*
 group_static_libs bool, deprecated and ignored because lld makes it unnecessary. See b/189475744.
header_abi_checker headerAbiCheckerProperties
Properties for ABI compatibility checker.
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 header_libs configurable list of string, list of modules that should only provide headers for this module.
 host_cross_supported bool, If set to true, build a variant of the module for the host cross. Defaults to true.
 host_ldlibs list of string, -l arguments to pass to linker for host-provided shared libraries
 host_required list of string, names of other modules to install on host if this module is installed
 ignore_max_page_size bool, ignore max page size. By default, max page size must be the max page size set for the target.
 include_build_directory bool, Add the directory containing the Android.bp file to the list of include directories. Defaults to true.
 include_dirs configurable list of string, list of directories relative to the root of the source tree that will be added to the include path using -I. If possible, don't use this. If adding paths from the current directory use local_include_dirs, if adding paths from other modules use export_include_dirs in that module.
 init_rc configurable list of string, init.rc files to be installed if this module is installed
 inject_bssl_hash bool, Inject boringssl hash into the shared library. This is only intended for use by external/boringssl.
 install_in_root bool, Install output directly in {partition}/, not in any subdir. This is only intended for use by init_first_stage.
 install_in_xbin bool, Install output directly in {partition}/xbin
 installable bool
 instruction_set string, the instruction set architecture to use to compile the C/C++ module.
 ldflags list of string, list of module-specific flags that will be used for all link steps
 lex LexProperties
 licenses list of string, Describes the licenses applicable to this module. Must reference license modules.
 linker_scripts list of string, local files to pass to the linker as --script. Not supported on darwin or windows, and will fail to build if provided to the darwin or windows variant of a module.
llndk llndkLibraryProperties
If this is an LLNDK library, properties to describe the LLNDK stubs. Will be copied from the module pointed to by llndk_stubs if it is set.
 symbol_file string, Relative path to the symbol map. An example file can be seen here: TODO(danalbert): Make an example.
 export_headers_as_system bool, Whether to export any headers as -isystem instead of -I. Mainly for use by bionic/libc.
 unversioned bool, Whether the system library uses symbol versions.
 export_llndk_headers list of string, list of llndk headers to re-export include directories from.
 override_export_include_dirs list of string, list of directories relative to the Blueprints file that willbe added to the include path (using -I) for any module that links against the LLNDK variant of this module, replacing any that were listed outside the llndk clause.
 private bool, whether this module can be directly depended upon by libs that are installed to /vendor and /product. When set to true, this module can only be depended on by VNDK libraries, not vendor nor product libraries. This effectively hides this module from non-system modules. Default value is false.
 llndk_headers bool, if true, make this module available to provide headers to other modules that set llndk.symbol_file.
 moved_to_apex bool, moved_to_apex marks this module has having been distributed through an apex module.
 local_include_dirs configurable list of string, list of directories relative to the Blueprints file that will be added to the include path using -I
 logtags list of string, *.logtags files, to combine together in order to generate the /system/etc/event-log-tags file
lto
Lto must violate capitalization style for acronyms so that it can be referred to in blueprint files as "lto"
 never bool
 thin bool
 lto_O0 bool, Use --lto-O0 flag.
 min_sdk_version string, Minimum OS API level supported by this C or C++ module. This property becomes the value of the __ANDROID_API__ macro. When the C or C++ module is included in an APEX or an APK, this property is also used to ensure that the min_sdk_version of the containing module is not older (i.e. less) than this module's min_sdk_version. When not set, this property defaults to the value of sdk_version. When this is set to "apex_inherit", this tracks min_sdk_version of the containing APEX. When the module is not built for an APEX, "apex_inherit" defaults to sdk_version.
 multilib interface
 native_bridge_supported bool, Whether this module is built for non-native architectures (also known as native bridge binary)
 native_coverage bool
 no_crt_pad_segment bool, don't link in crt_pad_segment. This flag is currently only used internal to soong for testing and for vndk prebuilt shared libraries.
 no_full_install bool, When set to true, this module is not installed to the full install path (ex: under out/target/product/<name>/<partition>). It can be installed only to the packaging modules like android_filesystem.
 no_libcrt bool, don't link in libclang_rt.builtins-*.a
 nocrt bool, don't link in crt_begin and crt_end. This flag should only be necessary for compiling crt or libc.
 odm_available bool, This is the same as the "vendor_available" except that the install path of the vendor variant is /odm or /vendor/odm. By replacing "vendor_available: true" with "odm_available: true", the module will install its vendor variant to the /odm partition or /vendor/odm. As the modules with "odm_available: true" still create the vendor variants, they can link to the other vendor modules as the vendor_available modules do. Also, the vendor modules can link to odm_available modules. It may not be used for VNDK modules.
 odm_dlkm_specific bool, Install to partition odm_dlkm when set to true.
 openmp bool, Build and link with OpenMP
 optimize_for_size bool, Aggresively trade performance for smaller binary size. This should only be used for on-device binaries that are rarely executed and not performance critical.
orderfile
 instrumentation bool
 order_file_path string
 load_order_file bool
 cflags list of string, Additional compiler flags to use when building this module for orderfile profiling.
 overrides list of string, List of module names that are prevented from being installed when this module gets installed.
 owner string, vendor who owns this module
 pack_relocations bool, Generate compact dynamic relocation table, default true.
 product_available bool, whether this module should be allowed to be directly depended by other modules with `product_specific: true` or `product_available: true`. If set to true, an additional product variant will be built separately that is limited to the set of libraries and headers that are exposed to /product modules. The product variant may be used with a different (newer) /system, so it shouldn't have any unversioned runtime dependencies, or make assumptions about the system that may not be true in the future. If set to false, this module becomes inaccessible from /product modules. Different from the 'vendor_available' property, the modules with vndk: {enabled: true} don't have to define 'product_available'. The VNDK library without 'product_available' may not be depended on by any other modules that has product variants including the product available VNDKs. Nothing happens if BOARD_VNDK_VERSION isn't set in the BoardConfig.mk and PRODUCT_PRODUCT_VNDK_VERSION isn't set.
 product_specific bool, whether this module is specific to a software configuration of a product (e.g. country, network operator, etc). When set to true, it is installed into /product (or /system/product if product partition does not exist).
product_variables.arc
cflags
  []string
exclude_srcs
  []string
header_libs
  []string
include_dirs
  []string
shared_libs
  []string
static_libs
  []string
srcs
  []string
whole_static_libs
  []string
product_variables.binder32bit
cflags
  []string
product_variables.build_from_text_stub
static_libs
  []string
exclude_static_libs
  []string
product_variables.debuggable
cflags
  []string
cppflags
  []string
init_rc
  []string
required
  []string
host_required
  []string
target_required
  []string
strip.all
  *bool
strip.keep_symbols
  *bool
strip.keep_symbols_and_debug_frame
  *bool
static_libs
  []string
exclude_static_libs
  []string
whole_static_libs
  []string
shared_libs
  []string
srcs
  []string
exclude_srcs
  []string
product_variables.enforce_vintf_manifest
cflags
  []string
product_variables.eng
cflags
  []string
cppflags
  []string
lto.never
  *bool
sanitize.address
  *bool
product_variables.malloc_low_memory
cflags
  []string
shared_libs
  []string
whole_static_libs
  []string
static_libs
  []string
exclude_static_libs
  []string
srcs
  []string
header_libs
  []string
product_variables.malloc_pattern_fill_contents
cflags
  []string
product_variables.malloc_zero_contents
cflags
  []string
product_variables.native_coverage
srcs
  []string
exclude_srcs
  []string
product_variables.override_rs_driver
cflags
  []string
product_variables.platform_sdk_version
asflags
  []string
cflags
  []string
product_variables.release_aidl_use_unfrozen
cflags
  []string
required
  []string
vintf_fragment_modules
  []string
product_variables.safestack
cflags
  []string
product_variables.selinuxignoreneverallows
required
  []string
product_variables.shipping_api_level
cflags
  []string
product_variables.treble_linker_namespaces
cflags
  []string
product_variables.uml
cppflags
  []string
product_variables.unbundled_build
enabled Configurable[bool]
 Configurable[bool] proptools.Configurable[bool]
 proprietary bool, whether this is a proprietary vendor module, and should be installed into /vendor
proto
 type string, Proto generator type. C++: full or lite. Java: micro, nano, stream, or lite.
 plugin string, Proto plugin to use as the generator. Must be a cc_binary_host module.
 include_dirs list of string, list of directories that will be added to the protoc include paths.
 local_include_dirs list of string, list of directories relative to the bp file that will be added to the protoc include paths.
 canonical_path_from_root bool, whether to identify the proto files from the root of the source tree (the original method in Android, useful for android-specific protos), or relative from where they were specified (useful for external/third party protos). This defaults to true today, but is expected to default to false in the future.
 export_proto_headers bool, export headers generated from .proto sources
 static bool, Link statically against the protobuf runtime
 ramdisk bool, Whether this module is installed to ramdisk
 ramdisk_available bool, Make this module available when building for ramdisk. On device without a dedicated recovery partition, the module is only available after switching root into /first_stage_ramdisk. To expose the module before switching root, install the recovery variant instead.
 recovery bool, Whether this module is installed to recovery partition
 recovery_available bool, Make this module available when building for recovery
 relative_install_path string, install to a subdirectory of the default install path for the module
renderscript
 include_dirs list of string, list of directories that will be added to the llvm-rs-cc include paths
 flags list of string, list of flags that will be passed to llvm-rs-cc
 target_api string, Renderscript API level to target
 required configurable list of string, names of other modules to install if this module is installed
 rtti bool, pass -frtti instead of -fno-rtti
 runtime_libs list of string, list of modules that should be installed with this module. This is similar to 'required' but '.vendor' suffix will be appended to the module names if the shared libraries have vendor variants and this module uses VNDK.
sanitize SanitizeUserProps
 never bool, Prevent use of any sanitizers on this module
 address bool, ASan (Address sanitizer), incompatible with static binaries. Always runs in a diagnostic mode. Use of address sanitizer disables cfi sanitizer. Hwaddress sanitizer takes precedence over this sanitizer.
 thread bool, TSan (Thread sanitizer), incompatible with static binaries and 32 bit architectures. Always runs in a diagnostic mode. Use of thread sanitizer disables cfi and scudo sanitizers. Hwaddress sanitizer takes precedence over this sanitizer.
 hwaddress bool, HWASan (Hardware Address sanitizer). Use of hwasan sanitizer disables cfi, address, thread, and scudo sanitizers.
 all_undefined bool, Undefined behavior sanitizer
 undefined bool, Subset of undefined behavior sanitizer
 misc_undefined list of string, List of specific undefined behavior sanitizers to enable
 fuzzer bool, Fuzzer, incompatible with static binaries.
 safestack bool, safe-stack sanitizer, incompatible with 32-bit architectures.
 cfi bool, cfi sanitizer, incompatible with asan, hwasan, fuzzer, or Darwin
 integer_overflow bool, signed/unsigned integer overflow sanitizer, incompatible with Darwin.
 scudo bool, scudo sanitizer, incompatible with asan, hwasan, tsan This should not be used in Android 11+ : https://source.android.com/devices/tech/debug/scudo deprecated
 scs bool, shadow-call-stack sanitizer, only available on arm64/riscv64.
 memtag_heap bool, Memory-tagging, only available on arm64 if diag.memtag unset or false, enables async memory tagging
 memtag_stack bool, Memory-tagging stack instrumentation, only available on arm64 Adds instrumentation to detect stack buffer overflows and use-after-scope using MTE.
 memtag_globals bool, Memory-tagging globals instrumentation, only available on arm64 Adds instrumentation to detect global buffer overflows using MTE.
 writeonly bool, A modifier for ASAN and HWASAN for write only instrumentation
diag
Sanitizers to run in the diagnostic mode (as opposed to the release mode). Replaces abort() on error with a human-readable error message. Address and Thread sanitizers always run in diagnostic mode.
 undefined bool, Undefined behavior sanitizer, diagnostic mode
 cfi bool, cfi sanitizer, diagnostic mode, incompatible with asan, hwasan, fuzzer, or Darwin
 integer_overflow bool, signed/unsigned integer overflow sanitizer, diagnostic mode, incompatible with Darwin.
 memtag_heap bool, Memory-tagging, only available on arm64 requires sanitizer.memtag: true if set, enables sync memory tagging
 misc_undefined list of string, List of specific undefined behavior sanitizers to enable in diagnostic mode
 no_recover list of string, List of sanitizers to pass to -fno-sanitize-recover results in only the first detected error for these sanitizers being reported and program then exits with a non-zero exit code.
config
Sanitizers to run with flag configuration specified
 cfi_assembly_support bool, Enables CFI support flags for assembly-heavy libraries
 recover list of string, List of sanitizers to pass to -fsanitize-recover allows execution to continue for these sanitizers to detect multiple errors rather than only the first one
 blocklist string, value to pass to -fsanitize-ignorelist
 sdk_variant_only bool, If true, always create an sdk variant and don't create a platform variant.
 sdk_version string, The API level that this module is built against. The APIs of this API level will be visible at build time, but use of any APIs newer than min_sdk_version will render the module unloadable on older devices. In the future it will be possible to weakly-link new APIs, making the behavior match Java: such modules will load on older devices, but calling new APIs on devices that do not support them will result in a crash. This property has the same behavior as sdk_version does for Java modules. For those familiar with Android Gradle, the property behaves similarly to how compileSdkVersion does for Java code. In addition, setting this property causes two variants to be built, one for the platform and one for apps.
shared StaticOrSharedProperties
 srcs configurable list of string
 tidy_disabled_srcs list of string
 tidy_timeout_srcs list of string
sanitized Sanitized
none
 srcs list of string
address
 srcs list of string
hwaddress
 srcs list of string
 cflags configurable list of string
 enabled bool
 whole_static_libs configurable list of string
 static_libs configurable list of string
 shared_libs configurable list of string
 system_shared_libs list of string
 export_shared_lib_headers list of string
 export_static_lib_headers list of string
 apex_available list of string
 installable bool
 shared_libs configurable list of string, list of modules that should be dynamically linked into this module.
 soc_specific bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist).
static StaticOrSharedProperties
 srcs configurable list of string
 tidy_disabled_srcs list of string
 tidy_timeout_srcs list of string
sanitized Sanitized
none
 srcs list of string
address
 srcs list of string
hwaddress
 srcs list of string
 cflags configurable list of string
 enabled bool
 whole_static_libs configurable list of string
 static_libs configurable list of string
 shared_libs configurable list of string
 system_shared_libs list of string
 export_shared_lib_headers list of string
 export_static_lib_headers list of string
 apex_available list of string
 installable bool
 static_libs configurable list of string, list of modules that should be statically linked into this module.
 static_ndk_lib bool
 stem string, set the name of the output
 stl string, Select the STL library to use. Possible values are "libc++", "libc++_static", "libstdc++", or "none". Leave blank to select the default.
strip
 none bool, Device modules default to stripping enabled leaving mini debuginfo. Host modules default to stripping disabled, but can be enabled by setting any other strip boolean property.
 all bool, all forces stripping everything, including the mini debug info.
 keep_symbols bool, keep_symbols enables stripping but keeps all symbols.
 keep_symbols_list list of string, keep_symbols_list specifies a list of symbols to keep if keep_symbols is enabled. If it is unset then all symbols are kept.
 keep_symbols_and_debug_frame bool, keep_symbols_and_debug_frame enables stripping but keeps all symbols and debug frames.
stubs StubsProperties
Generate stubs to make this library accessible to APEXes.
 symbol_file string, Relative path to the symbol map. The symbol map provides the list of symbols that are exported for stubs variant of this library.
 versions list of string, List versions to generate stubs libs for. The version name "current" is always implicitly added.
 implementation_installable bool, Whether to not require the implementation of the library to be installed if a client of the stubs is installed. Defaults to true; set to false if the implementation is made available by some other means, e.g. in a Microdroid virtual machine.
 suffix string, set suffix of the name of the output
 system_dlkm_specific bool, Install to partition system_dlkm when set to true.
 system_ext_specific bool, whether this module extends system. When set to true, it is installed into /system_ext (or /system/system_ext if system_ext partition does not exist).
 system_shared_libs list of string, list of system libraries that will be dynamically linked to shared library and executable modules. If unset, generally defaults to libc, libm, and libdl. Set to [] to prevent linking against the defaults.
 target interface
target.android
 compile_multilib string
 enabled bool
target.apex
 exclude_shared_libs list of string, list of shared libs that should not be used to build the apex variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the apex variant of the C/C++ module.
target.host
 compile_multilib string
target.non_apex
 exclude_shared_libs list of string, list of shared libs that should not be used to build the non-apex variant of the C/C++ module.
target.platform
 shared_libs list of string, list of shared libs that should be use to build the platform variant of a module that sets sdk_version. This should rarely be necessary, in most cases the same libraries are available for the SDK and platform variants.
 header_libs list of string, list of ehader libs that only should be used to build platform variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the platform variant of the C/C++ module.
 required list of string, List of modules required by the core variant.
 exclude_required list of string, List of modules not required by the core variant.
header_abi_checker headerAbiCheckerProperties
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 cflags list of string, List of additional cflags that should be used to build the platform variant of the C/C++ module.
target.product
 suffix string, set suffix of the name of the output
header_abi_checker headerAbiCheckerProperties
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 no_stubs bool, Disable stubs for vendor/product variants This is a workaround to keep `stubs` only for "core" variant (not product/vendor). It would be nice if we could put `stubs` into a `target: { core: {} }` block but it's not supported in soong yet. This could be removed/simplified once we have a better syntax.
 shared_libs list of string, list of shared libs that only should be used to build vendor or product variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build vendor or product variant of the C/C++ module.
 header_libs list of string, list of header libs that only should be used to build vendor or product variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor or product variant of the C/C++ module.
 version_script string, version script for vendor or product variant
 srcs list of string, list of source files that should only be used in vendor or product variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build vendor or product variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build vendor or product variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build vendor or product variant of the C/C++ module.
 override_export_include_dirs list of string, list of exported include directories, like export_include_dirs, that will be applied to vendor or product variant of this library. This will overwrite any other declarations.
target.ramdisk
 exclude_srcs list of string, list of source files that should not be used to build the ramdisk variants of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the ramdisk variants of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build the ramdisk variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the ramdisk variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the ramdisk variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the ramdisk variant of the C/C++ module.
target.recovery
 srcs list of string, list of source files that should only be used in the recovery variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build the recovery variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the recovery variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build the recovery variant of the C/C++ module.
 shared_libs list of string, list of shared libs that only should be used to build the recovery variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build the recovery variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the recovery variant of the C/C++ module.
 required list of string, List of modules required by the recovery variant.
 exclude_required list of string, List of modules not required by the recovery variant.
target.vendor
 override_export_include_dirs list of string, list of exported include directories, like export_include_dirs, that will be applied to vendor or product variant of this library. This will overwrite any other declarations.
 suffix string, set suffix of the name of the output
header_abi_checker headerAbiCheckerProperties
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 no_stubs bool, Disable stubs for vendor/product variants This is a workaround to keep `stubs` only for "core" variant (not product/vendor). It would be nice if we could put `stubs` into a `target: { core: {} }` block but it's not supported in soong yet. This could be removed/simplified once we have a better syntax.
 srcs list of string, list of source files that should only be used in vendor or product variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build vendor or product variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build vendor or product variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build vendor or product variant of the C/C++ module.
 shared_libs list of string, list of shared libs that only should be used to build vendor or product variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build vendor or product variant of the C/C++ module.
 header_libs list of string, list of header libs that only should be used to build vendor or product variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor or product variant of the C/C++ module.
 version_script string, version script for vendor or product variant
target.vendor_ramdisk
 exclude_srcs list of string, list of source files that should not be used to build the ramdisk variants of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the ramdisk variants of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the vendor ramdisk variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the vendor ramdisk variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor ramdisk variant of the C/C++ module.
 target_required list of string, names of other modules to install on target if this module is installed
 team string, The team (defined by the owner/vendor) who owns the property.
 test_only bool, Indicates that the module and its source code are only used in tests, not production code. Used by coverage reports and potentially other tools.
 tidy bool, whether to run clang-tidy over C-like sources.
 tidy_checks list of string, Extra checks to enable or disable in clang-tidy
 tidy_checks_as_errors list of string, Checks that should be treated as errors.
 tidy_disabled_srcs list of string, list of source files that should not be compiled with clang-tidy.
 tidy_flags list of string, Extra flags to pass to clang-tidy
 tidy_timeout_srcs list of string, list of source files that should not be compiled by clang-tidy when TIDY_TIMEOUT is set.
 unexported_symbols_list string, local file name to pass to the linker as -unexported_symbols_list
 unique_host_soname bool, rename host libraries to prevent overlap with system installed libraries
 use_generic_config bool, Set to true if this module must be generic and does not require product-specific information. To be included in the system image, this property must be set to true.
 use_version_lib bool, make android::build:GetBuildNumber() available containing the build ID.
 vendor bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist). Use `soc_specific` instead for better meaning.
 vendor_available bool, whether this module should be allowed to be directly depended by other modules with `vendor: true`, `proprietary: true`, or `vendor_available:true`. If set to true, two variants will be built separately, one like normal, and the other limited to the set of libraries and headers that are exposed to /vendor modules. The vendor variant may be used with a different (newer) /system, so it shouldn't have any unversioned runtime dependencies, or make assumptions about the system that may not be true in the future. If set to false, this module becomes inaccessible from /vendor modules. The modules with vndk: {enabled: true} must define 'vendor_available' to 'true'. Nothing happens if BOARD_VNDK_VERSION isn't set in the BoardConfig.mk
 vendor_dlkm_specific bool, Install to partition vendor_dlkm when set to true.
vendor_public_library vendorPublicLibraryProperties
If this is a vendor public library, properties to describe the vendor public library stubs.
 symbol_file string, Relative path to the symbol map.
 unversioned bool, Whether the system library uses symbol versions.
 export_public_headers list of string, list of header libs to re-export include directories from.
 override_export_include_dirs list of string, list of directories relative to the Blueprints file that willbe added to the include path (using -I) for any module that links against the LLNDK variant of this module, replacing any that were listed outside the llndk clause.
 vendor_ramdisk bool, Whether this module is installed to vendor ramdisk
 vendor_ramdisk_available bool, Make this module available when building for vendor ramdisk. On device without a dedicated recovery partition, the module is only available after switching root into /first_stage_ramdisk. To expose the module before switching root, install the recovery variant instead.
 version_script string, local file name to pass to the linker as --version-script. Not supported on darwin, and will fail to build if provided to the darwin variant of a module.
 vintf_fragment_modules configurable list of string, vintf_fragment Modules required from this module.
 vintf_fragments configurable list of string, VINTF manifest fragments to be installed if this module is installed
 visibility list of string, Controls the visibility of this module to other modules. Allowable values are one or more of these formats:

 ["//visibility:public"]: Anyone can use this module.
 ["//visibility:private"]: Only rules in the module's package (not its subpackages) can use
     this module.
 ["//visibility:override"]: Discards any rules inherited from defaults or a creating module.
     Can only be used at the beginning of a list of visibility rules.
 ["//some/package:__pkg__", "//other/package:__pkg__"]: Only modules in some/package and
     other/package (defined in some/package/*.bp and other/package/*.bp) have access to
     this module. Note that sub-packages do not have access to the rule; for example,
     //some/package/foo:bar or //other/package/testing:bla wouldn't have access. __pkg__
     is a special module and must be used verbatim. It represents all of the modules in the
     package.
 ["//project:__subpackages__", "//other:__subpackages__"]: Only modules in packages project
     or other or in one of their sub-packages have access to this module. For example,
     //project:rule, //project/library:lib or //other/testing/internal:munge are allowed
     to depend on this rule (but not //independent:evil)
 ["//project"]: This is shorthand for ["//project:__pkg__"]
 [":__subpackages__"]: This is shorthand for ["//project:__subpackages__"] where
     //project is the module's package. e.g. using [":__subpackages__"] in
     packages/apps/Settings/Android.bp is equivalent to
     //packages/apps/Settings:__subpackages__.
 ["//visibility:legacy_public"]: The default visibility, behaves as //visibility:public
     for now. It is an error if it is used in a module.

If a module does not specify the `visibility` property then it uses the `default_visibility` property of the `package` module in the module's package. If the `default_visibility` property is not set for the module's package then it will use the `default_visibility` of its closest ancestor package for which a `default_visibility` property is specified. If no `default_visibility` property can be found then the module uses the global default of `//visibility:legacy_public`. The `visibility` property has no effect on a defaults module although it does apply to any non-defaults module that uses it. To set the visibility of a defaults module, use the `defaults_visibility` property on the defaults module; not to be confused with the `default_visibility` property on the package module. See https://android.googlesource.com/platform/build/soong/+/main/README.md#visibility for more details.
 whole_program_vtables bool, Use -fwhole-program-vtables cflag.
 whole_static_libs configurable list of string, list of modules whose object files should be linked into this module in their entirety. For static library modules, all of the .o files from the intermediate directory of the dependency will be linked into this modules .a file. For a shared library, the dependency's .a file will be linked into this module using -Wl,--whole-archive.
 yacc YaccProperties

cc_library_headers

cc_library_headers contains a set of c/c++ headers which are imported by other soong cc modules using the header_libs property. For best practices, use export_include_dirs property or LOCAL_EXPORT_C_INCLUDE_DIRS for Make.
 name string, The name of the module. Must be unique across all modules.
 srcs configurable list of string, list of source files used to compile the C/C++ module. May be .c, .cpp, or .S files. srcs may reference the outputs of other modules that produce source files like genrule or filegroup using the syntax ":module".
 exclude_srcs configurable list of string, list of source files that should not be used to build the C/C++ module. This is most useful in the arch/multilib variants to remove non-common files
 defaults list of string
 host_supported bool, If set to true, build a variant of the module for the host. Defaults to false.
 device_supported bool, If set to true, build a variant of the module for the device. Defaults to true.
 afdo bool, Afdo allows developers self-service enroll for automatic feedback-directed optimization using profile data.
aidl
 libs list of string, List of aidl_library modules
 include_dirs list of string, list of directories that will be added to the aidl include paths.
 local_include_dirs list of string, list of directories relative to the Blueprints file that will be added to the aidl include paths.
 generate_traces bool, whether to generate traces (for systrace) for this interface
 flags list of string, list of flags that will be passed to the AIDL compiler
 export_aidl_headers bool, export headers generated from .aidl sources
 allow_undefined_symbols bool, allow the module to contain undefined symbols. By default, modules cannot contain undefined symbols that are not satisified by their immediate dependencies. Set this flag to true to remove --no-undefined from the linker flags. This flag should only be necessary for compiling low-level libraries like libc.
 apex_available list of string, Availability of this module in APEXes. Only the listed APEXes can contain this module. If the module has stubs then other APEXes and the platform may access it through them (subject to visibility). "//apex_available:anyapex" is a pseudo APEX name that matches to any APEX. "//apex_available:platform" refers to non-APEX partitions like "system.img". Prefix pattern (com.foo.*) can be used to match with any APEX name with the prefix(com.foo.). Default is ["//apex_available:platform"].
 arch interface
 asflags list of string, list of module-specific flags that will be used for .S compiles
 bootstrap bool, Allows this module to use non-APEX version of libraries. Useful for building binaries that are started before APEXes are activated.
 bpf_target bool, cc Build rules targeting BPF must set this to true. The correct fix is to ban targeting bpf in cc rules instead use bpf_rules. (b/323415017)
buildstubs bool
 bool bool
 c_std string, C standard version to use. Can be a specific version (such as "gnu11"), "experimental" (which will use draft versions like C1x when available), or the empty string (which will use the default).
 cflags configurable list of string, list of module-specific flags that will be used for C and C++ compiles.
 clang bool, Deprecated. true is the default, false is invalid.
 clang_asflags list of string, list of module-specific flags that will be used for .S compiles when compiling with clang
 clang_cflags list of string, list of module-specific flags that will be used for C and C++ compiles when compiling with clang
 clang_verify bool, Add "-Xclang -verify" to the cflags and appends "touch $out" to the clang command line.
 cmake_snapshot_supported bool, Allows this module to be included in CMake release snapshots to be built outside of Android build system and source tree.
 compile_multilib string, control whether this module compiles for 32-bit, 64-bit, or both. Possible values are "32" (compile for 32-bit only), "64" (compile for 64-bit only), "both" (compile for both architectures), or "first" (compile for 64-bit on a 64-bit platform, and 32-bit on a 32-bit platform).
 conlyflags list of string, list of module-specific flags that will be used for C compiles
 cpp_std string, C++ standard version to use. Can be a specific version (such as "gnu++11"), "experimental" (which will use draft versions like C++1z when available), or the empty string (which will use the default).
 cppflags configurable list of string, list of module-specific flags that will be used for C++ compiles
 debug_ramdisk bool, Whether this module is installed to debug ramdisk
 device_first_generated_headers configurable list of string, Same as generated_headers, but the dependencies will be added based on the first supported arch variant and the device os variant. This can be useful for creating a host tool that embeds a copy of a device tool, that it then extracts and pushes to a device at runtime.
 device_specific bool, whether this module is specific to a device, not only for SoC, but also for off-chip peripherals. When set to true, it is installed into /odm (or /vendor/odm if odm partition does not exist, or /system/vendor/odm if both odm and vendor partitions do not exist). This implies `soc_specific:true`.
dist Dist
configuration to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 targets list of string, Copy the output of this module to the $DIST_DIR when `dist` is specified on the command line and any of these targets are also on the command line, or otherwise built
 dest string, The name of the output artifact. This defaults to the basename of the output of the module.
 dir string, The directory within the dist directory to store the artifact. Defaults to the top level directory ("").
 suffix string, A suffix to add to the artifact file name (before any extension).
 append_artifact_with_product bool, If true, then the artifact file will be appended with _<product name>. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be foo_coral.apk. If false, there is no change to the artifact file name.
 prepend_artifact_with_product bool, If true, then the artifact file will be prepended with <product name>-. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be coral-foo.apk. If false, there is no change to the artifact file name.
 tag string, A string tag to select the OutputFiles associated with the tag. If no tag is specified then it will select the default dist paths provided by the module type. If a tag of "" is specified then it will return the default output files provided by the modules, i.e. the result of calling OutputFiles("").
 dists list of Dist, a list of configurations to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 double_loadable bool, whether this module is capable of being loaded with other instance (possibly an older version) of the same module in the same process. Currently, a shared library that is a member of VNDK (vndk: {enabled: true}) can be double loaded in a vendor process if the library is also a (direct and indirect) dependency of an LLNDK library. Such libraries must be explicitly marked as `double_loadable: true` by the owner, or the dependency from the LLNDK lib should be cut if the lib is not designed to be double loaded.
 dynamic_list string, local file name to pass to the linker as --dynamic-list. Not supported on darwin, and will fail to build if provided to the darwin variant of a module.
 enabled configurable bool, emit build rules for this module Disabling a module should only be done for those modules that cannot be built in the current environment. Modules that can build in the current environment but are not usually required (e.g. superceded by a prebuilt) should not be disabled as that will prevent them from being built by the checkbuild target and so prevent early detection of changes that have broken those modules.
 exclude_generated_sources list of string, list of generated sources that should not be used to build the C/C++ module. This is most useful in the arch/multilib variants to remove non-common files
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with this module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build this module
 exclude_static_libs list of string, list of static libs that should not be used to build this module
 export_cflags list of string, list of plain cc flags to be used for any module that links against this module.
 export_generated_headers list of string, list of generated headers to re-export include directories from. Entries must be present in generated_headers.
 export_header_lib_headers configurable list of string, list of header libraries to re-export include directories from. Entries must be present in header_libs.
 export_include_dirs configurable list of string, list of directories relative to the Blueprints file that will be added to the include path (using -I) for this module and any module that links against this module. Directories listed in export_include_dirs do not need to be listed in local_include_dirs.
 export_shared_lib_headers list of string, list of shared libraries to re-export include directories from. Entries must be present in shared_libs.
 export_static_lib_headers list of string, list of static libraries to re-export include directories from. Entries must be present in static_libs.
 export_system_include_dirs list of string, list of directories that will be added to the system include path using -isystem for this module and any module that links against this module.
 exported_symbols_list string, local file name to pass to the linker as -exported_symbols_list
 force_symbols_not_weak_list string, local file name to pass to the linker as -force_symbols_not_weak_list
 force_symbols_weak_list string, local file name to pass to the linker as -force_symbols_weak_list
 generated_headers configurable list of string, list of generated headers to add to the include path. These are the names of genrule modules.
 generated_sources list of string, list of generated sources to compile. These are the names of gensrcs or genrule modules.
 gnu_extensions bool, if set to false, use -std=c++* instead of -std=gnu++*
 group_static_libs bool, deprecated and ignored because lld makes it unnecessary. See b/189475744.
header_abi_checker headerAbiCheckerProperties
Properties for ABI compatibility checker.
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 header_libs configurable list of string, list of modules that should only provide headers for this module.
 host_cross_supported bool, If set to true, build a variant of the module for the host cross. Defaults to true.
 host_ldlibs list of string, -l arguments to pass to linker for host-provided shared libraries
 host_required list of string, names of other modules to install on host if this module is installed
 ignore_max_page_size bool, ignore max page size. By default, max page size must be the max page size set for the target.
 include_build_directory bool, Add the directory containing the Android.bp file to the list of include directories. Defaults to true.
 include_dirs configurable list of string, list of directories relative to the root of the source tree that will be added to the include path using -I. If possible, don't use this. If adding paths from the current directory use local_include_dirs, if adding paths from other modules use export_include_dirs in that module.
 init_rc configurable list of string, init.rc files to be installed if this module is installed
 inject_bssl_hash bool, Inject boringssl hash into the shared library. This is only intended for use by external/boringssl.
 install_in_root bool, Install output directly in {partition}/, not in any subdir. This is only intended for use by init_first_stage.
 install_in_xbin bool, Install output directly in {partition}/xbin
 installable bool
 instruction_set string, the instruction set architecture to use to compile the C/C++ module.
 ldflags list of string, list of module-specific flags that will be used for all link steps
 lex LexProperties
 licenses list of string, Describes the licenses applicable to this module. Must reference license modules.
 linker_scripts list of string, local files to pass to the linker as --script. Not supported on darwin or windows, and will fail to build if provided to the darwin or windows variant of a module.
llndk llndkLibraryProperties
If this is an LLNDK library, properties to describe the LLNDK stubs. Will be copied from the module pointed to by llndk_stubs if it is set.
 symbol_file string, Relative path to the symbol map. An example file can be seen here: TODO(danalbert): Make an example.
 export_headers_as_system bool, Whether to export any headers as -isystem instead of -I. Mainly for use by bionic/libc.
 unversioned bool, Whether the system library uses symbol versions.
 export_llndk_headers list of string, list of llndk headers to re-export include directories from.
 override_export_include_dirs list of string, list of directories relative to the Blueprints file that willbe added to the include path (using -I) for any module that links against the LLNDK variant of this module, replacing any that were listed outside the llndk clause.
 private bool, whether this module can be directly depended upon by libs that are installed to /vendor and /product. When set to true, this module can only be depended on by VNDK libraries, not vendor nor product libraries. This effectively hides this module from non-system modules. Default value is false.
 llndk_headers bool, if true, make this module available to provide headers to other modules that set llndk.symbol_file.
 moved_to_apex bool, moved_to_apex marks this module has having been distributed through an apex module.
 local_include_dirs configurable list of string, list of directories relative to the Blueprints file that will be added to the include path using -I
 logtags list of string, *.logtags files, to combine together in order to generate the /system/etc/event-log-tags file
lto
Lto must violate capitalization style for acronyms so that it can be referred to in blueprint files as "lto"
 never bool
 thin bool
 lto_O0 bool, Use --lto-O0 flag.
 min_sdk_version string, Minimum OS API level supported by this C or C++ module. This property becomes the value of the __ANDROID_API__ macro. When the C or C++ module is included in an APEX or an APK, this property is also used to ensure that the min_sdk_version of the containing module is not older (i.e. less) than this module's min_sdk_version. When not set, this property defaults to the value of sdk_version. When this is set to "apex_inherit", this tracks min_sdk_version of the containing APEX. When the module is not built for an APEX, "apex_inherit" defaults to sdk_version.
 multilib interface
 native_bridge_supported bool, Whether this module is built for non-native architectures (also known as native bridge binary)
 native_coverage bool
 no_crt_pad_segment bool, don't link in crt_pad_segment. This flag is currently only used internal to soong for testing and for vndk prebuilt shared libraries.
 no_full_install bool, When set to true, this module is not installed to the full install path (ex: under out/target/product/<name>/<partition>). It can be installed only to the packaging modules like android_filesystem.
 no_libcrt bool, don't link in libclang_rt.builtins-*.a
 nocrt bool, don't link in crt_begin and crt_end. This flag should only be necessary for compiling crt or libc.
 odm_available bool, This is the same as the "vendor_available" except that the install path of the vendor variant is /odm or /vendor/odm. By replacing "vendor_available: true" with "odm_available: true", the module will install its vendor variant to the /odm partition or /vendor/odm. As the modules with "odm_available: true" still create the vendor variants, they can link to the other vendor modules as the vendor_available modules do. Also, the vendor modules can link to odm_available modules. It may not be used for VNDK modules.
 odm_dlkm_specific bool, Install to partition odm_dlkm when set to true.
 openmp bool, Build and link with OpenMP
 optimize_for_size bool, Aggresively trade performance for smaller binary size. This should only be used for on-device binaries that are rarely executed and not performance critical.
orderfile
 instrumentation bool
 order_file_path string
 load_order_file bool
 cflags list of string, Additional compiler flags to use when building this module for orderfile profiling.
 overrides list of string, List of module names that are prevented from being installed when this module gets installed.
 owner string, vendor who owns this module
 pack_relocations bool, Generate compact dynamic relocation table, default true.
 product_available bool, whether this module should be allowed to be directly depended by other modules with `product_specific: true` or `product_available: true`. If set to true, an additional product variant will be built separately that is limited to the set of libraries and headers that are exposed to /product modules. The product variant may be used with a different (newer) /system, so it shouldn't have any unversioned runtime dependencies, or make assumptions about the system that may not be true in the future. If set to false, this module becomes inaccessible from /product modules. Different from the 'vendor_available' property, the modules with vndk: {enabled: true} don't have to define 'product_available'. The VNDK library without 'product_available' may not be depended on by any other modules that has product variants including the product available VNDKs. Nothing happens if BOARD_VNDK_VERSION isn't set in the BoardConfig.mk and PRODUCT_PRODUCT_VNDK_VERSION isn't set.
 product_specific bool, whether this module is specific to a software configuration of a product (e.g. country, network operator, etc). When set to true, it is installed into /product (or /system/product if product partition does not exist).
product_variables.arc
cflags
  []string
exclude_srcs
  []string
header_libs
  []string
include_dirs
  []string
shared_libs
  []string
static_libs
  []string
srcs
  []string
whole_static_libs
  []string
product_variables.binder32bit
cflags
  []string
product_variables.build_from_text_stub
static_libs
  []string
exclude_static_libs
  []string
product_variables.debuggable
cflags
  []string
cppflags
  []string
init_rc
  []string
required
  []string
host_required
  []string
target_required
  []string
strip.all
  *bool
strip.keep_symbols
  *bool
strip.keep_symbols_and_debug_frame
  *bool
static_libs
  []string
exclude_static_libs
  []string
whole_static_libs
  []string
shared_libs
  []string
srcs
  []string
exclude_srcs
  []string
product_variables.enforce_vintf_manifest
cflags
  []string
product_variables.eng
cflags
  []string
cppflags
  []string
lto.never
  *bool
sanitize.address
  *bool
product_variables.malloc_low_memory
cflags
  []string
shared_libs
  []string
whole_static_libs
  []string
static_libs
  []string
exclude_static_libs
  []string
srcs
  []string
header_libs
  []string
product_variables.malloc_pattern_fill_contents
cflags
  []string
product_variables.malloc_zero_contents
cflags
  []string
product_variables.native_coverage
srcs
  []string
exclude_srcs
  []string
product_variables.override_rs_driver
cflags
  []string
product_variables.platform_sdk_version
asflags
  []string
cflags
  []string
product_variables.release_aidl_use_unfrozen
cflags
  []string
required
  []string
vintf_fragment_modules
  []string
product_variables.safestack
cflags
  []string
product_variables.selinuxignoreneverallows
required
  []string
product_variables.shipping_api_level
cflags
  []string
product_variables.treble_linker_namespaces
cflags
  []string
product_variables.uml
cppflags
  []string
product_variables.unbundled_build
enabled Configurable[bool]
 Configurable[bool] proptools.Configurable[bool]
 proprietary bool, whether this is a proprietary vendor module, and should be installed into /vendor
proto
 type string, Proto generator type. C++: full or lite. Java: micro, nano, stream, or lite.
 plugin string, Proto plugin to use as the generator. Must be a cc_binary_host module.
 include_dirs list of string, list of directories that will be added to the protoc include paths.
 local_include_dirs list of string, list of directories relative to the bp file that will be added to the protoc include paths.
 canonical_path_from_root bool, whether to identify the proto files from the root of the source tree (the original method in Android, useful for android-specific protos), or relative from where they were specified (useful for external/third party protos). This defaults to true today, but is expected to default to false in the future.
 export_proto_headers bool, export headers generated from .proto sources
 static bool, Link statically against the protobuf runtime
 ramdisk bool, Whether this module is installed to ramdisk
 ramdisk_available bool, Make this module available when building for ramdisk. On device without a dedicated recovery partition, the module is only available after switching root into /first_stage_ramdisk. To expose the module before switching root, install the recovery variant instead.
 recovery bool, Whether this module is installed to recovery partition
 recovery_available bool, Make this module available when building for recovery
 relative_install_path string, install to a subdirectory of the default install path for the module
renderscript
 include_dirs list of string, list of directories that will be added to the llvm-rs-cc include paths
 flags list of string, list of flags that will be passed to llvm-rs-cc
 target_api string, Renderscript API level to target
 required configurable list of string, names of other modules to install if this module is installed
 rtti bool, pass -frtti instead of -fno-rtti
 runtime_libs list of string, list of modules that should be installed with this module. This is similar to 'required' but '.vendor' suffix will be appended to the module names if the shared libraries have vendor variants and this module uses VNDK.
sanitize SanitizeUserProps
 never bool, Prevent use of any sanitizers on this module
 address bool, ASan (Address sanitizer), incompatible with static binaries. Always runs in a diagnostic mode. Use of address sanitizer disables cfi sanitizer. Hwaddress sanitizer takes precedence over this sanitizer.
 thread bool, TSan (Thread sanitizer), incompatible with static binaries and 32 bit architectures. Always runs in a diagnostic mode. Use of thread sanitizer disables cfi and scudo sanitizers. Hwaddress sanitizer takes precedence over this sanitizer.
 hwaddress bool, HWASan (Hardware Address sanitizer). Use of hwasan sanitizer disables cfi, address, thread, and scudo sanitizers.
 all_undefined bool, Undefined behavior sanitizer
 undefined bool, Subset of undefined behavior sanitizer
 misc_undefined list of string, List of specific undefined behavior sanitizers to enable
 fuzzer bool, Fuzzer, incompatible with static binaries.
 safestack bool, safe-stack sanitizer, incompatible with 32-bit architectures.
 cfi bool, cfi sanitizer, incompatible with asan, hwasan, fuzzer, or Darwin
 integer_overflow bool, signed/unsigned integer overflow sanitizer, incompatible with Darwin.
 scudo bool, scudo sanitizer, incompatible with asan, hwasan, tsan This should not be used in Android 11+ : https://source.android.com/devices/tech/debug/scudo deprecated
 scs bool, shadow-call-stack sanitizer, only available on arm64/riscv64.
 memtag_heap bool, Memory-tagging, only available on arm64 if diag.memtag unset or false, enables async memory tagging
 memtag_stack bool, Memory-tagging stack instrumentation, only available on arm64 Adds instrumentation to detect stack buffer overflows and use-after-scope using MTE.
 memtag_globals bool, Memory-tagging globals instrumentation, only available on arm64 Adds instrumentation to detect global buffer overflows using MTE.
 writeonly bool, A modifier for ASAN and HWASAN for write only instrumentation
diag
Sanitizers to run in the diagnostic mode (as opposed to the release mode). Replaces abort() on error with a human-readable error message. Address and Thread sanitizers always run in diagnostic mode.
 undefined bool, Undefined behavior sanitizer, diagnostic mode
 cfi bool, cfi sanitizer, diagnostic mode, incompatible with asan, hwasan, fuzzer, or Darwin
 integer_overflow bool, signed/unsigned integer overflow sanitizer, diagnostic mode, incompatible with Darwin.
 memtag_heap bool, Memory-tagging, only available on arm64 requires sanitizer.memtag: true if set, enables sync memory tagging
 misc_undefined list of string, List of specific undefined behavior sanitizers to enable in diagnostic mode
 no_recover list of string, List of sanitizers to pass to -fno-sanitize-recover results in only the first detected error for these sanitizers being reported and program then exits with a non-zero exit code.
config
Sanitizers to run with flag configuration specified
 cfi_assembly_support bool, Enables CFI support flags for assembly-heavy libraries
 recover list of string, List of sanitizers to pass to -fsanitize-recover allows execution to continue for these sanitizers to detect multiple errors rather than only the first one
 blocklist string, value to pass to -fsanitize-ignorelist
 sdk_variant_only bool, If true, always create an sdk variant and don't create a platform variant.
 sdk_version string, The API level that this module is built against. The APIs of this API level will be visible at build time, but use of any APIs newer than min_sdk_version will render the module unloadable on older devices. In the future it will be possible to weakly-link new APIs, making the behavior match Java: such modules will load on older devices, but calling new APIs on devices that do not support them will result in a crash. This property has the same behavior as sdk_version does for Java modules. For those familiar with Android Gradle, the property behaves similarly to how compileSdkVersion does for Java code. In addition, setting this property causes two variants to be built, one for the platform and one for apps.
 shared_libs configurable list of string, list of modules that should be dynamically linked into this module.
 soc_specific bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist).
 static_libs configurable list of string, list of modules that should be statically linked into this module.
 static_ndk_lib bool
 stem string, set the name of the output
 stl string, Select the STL library to use. Possible values are "libc++", "libc++_static", "libstdc++", or "none". Leave blank to select the default.
strip
 none bool, Device modules default to stripping enabled leaving mini debuginfo. Host modules default to stripping disabled, but can be enabled by setting any other strip boolean property.
 all bool, all forces stripping everything, including the mini debug info.
 keep_symbols bool, keep_symbols enables stripping but keeps all symbols.
 keep_symbols_list list of string, keep_symbols_list specifies a list of symbols to keep if keep_symbols is enabled. If it is unset then all symbols are kept.
 keep_symbols_and_debug_frame bool, keep_symbols_and_debug_frame enables stripping but keeps all symbols and debug frames.
stubs StubsProperties
Generate stubs to make this library accessible to APEXes.
 symbol_file string, Relative path to the symbol map. The symbol map provides the list of symbols that are exported for stubs variant of this library.
 versions list of string, List versions to generate stubs libs for. The version name "current" is always implicitly added.
 implementation_installable bool, Whether to not require the implementation of the library to be installed if a client of the stubs is installed. Defaults to true; set to false if the implementation is made available by some other means, e.g. in a Microdroid virtual machine.
 suffix string, set suffix of the name of the output
 system_dlkm_specific bool, Install to partition system_dlkm when set to true.
 system_ext_specific bool, whether this module extends system. When set to true, it is installed into /system_ext (or /system/system_ext if system_ext partition does not exist).
 system_shared_libs list of string, list of system libraries that will be dynamically linked to shared library and executable modules. If unset, generally defaults to libc, libm, and libdl. Set to [] to prevent linking against the defaults.
 target interface
target.android
 compile_multilib string
 enabled bool
target.apex
 exclude_shared_libs list of string, list of shared libs that should not be used to build the apex variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the apex variant of the C/C++ module.
target.host
 compile_multilib string
target.non_apex
 exclude_shared_libs list of string, list of shared libs that should not be used to build the non-apex variant of the C/C++ module.
target.platform
 shared_libs list of string, list of shared libs that should be use to build the platform variant of a module that sets sdk_version. This should rarely be necessary, in most cases the same libraries are available for the SDK and platform variants.
 header_libs list of string, list of ehader libs that only should be used to build platform variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the platform variant of the C/C++ module.
 required list of string, List of modules required by the core variant.
 exclude_required list of string, List of modules not required by the core variant.
header_abi_checker headerAbiCheckerProperties
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 cflags list of string, List of additional cflags that should be used to build the platform variant of the C/C++ module.
target.product
 suffix string, set suffix of the name of the output
header_abi_checker headerAbiCheckerProperties
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 no_stubs bool, Disable stubs for vendor/product variants This is a workaround to keep `stubs` only for "core" variant (not product/vendor). It would be nice if we could put `stubs` into a `target: { core: {} }` block but it's not supported in soong yet. This could be removed/simplified once we have a better syntax.
 srcs list of string, list of source files that should only be used in vendor or product variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build vendor or product variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build vendor or product variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build vendor or product variant of the C/C++ module.
 shared_libs list of string, list of shared libs that only should be used to build vendor or product variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build vendor or product variant of the C/C++ module.
 header_libs list of string, list of header libs that only should be used to build vendor or product variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor or product variant of the C/C++ module.
 version_script string, version script for vendor or product variant
 override_export_include_dirs list of string, list of exported include directories, like export_include_dirs, that will be applied to vendor or product variant of this library. This will overwrite any other declarations.
target.ramdisk
 static_libs list of string, list of static libs that only should be used to build the ramdisk variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the ramdisk variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the ramdisk variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the ramdisk variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build the ramdisk variants of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the ramdisk variants of the C/C++ module.
target.recovery
 shared_libs list of string, list of shared libs that only should be used to build the recovery variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build the recovery variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the recovery variant of the C/C++ module.
 srcs list of string, list of source files that should only be used in the recovery variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build the recovery variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the recovery variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build the recovery variant of the C/C++ module.
 required list of string, List of modules required by the recovery variant.
 exclude_required list of string, List of modules not required by the recovery variant.
target.vendor
 suffix string, set suffix of the name of the output
header_abi_checker headerAbiCheckerProperties
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 no_stubs bool, Disable stubs for vendor/product variants This is a workaround to keep `stubs` only for "core" variant (not product/vendor). It would be nice if we could put `stubs` into a `target: { core: {} }` block but it's not supported in soong yet. This could be removed/simplified once we have a better syntax.
 shared_libs list of string, list of shared libs that only should be used to build vendor or product variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build vendor or product variant of the C/C++ module.
 header_libs list of string, list of header libs that only should be used to build vendor or product variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor or product variant of the C/C++ module.
 version_script string, version script for vendor or product variant
 override_export_include_dirs list of string, list of exported include directories, like export_include_dirs, that will be applied to vendor or product variant of this library. This will overwrite any other declarations.
 srcs list of string, list of source files that should only be used in vendor or product variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build vendor or product variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build vendor or product variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build vendor or product variant of the C/C++ module.
target.vendor_ramdisk
 exclude_srcs list of string, list of source files that should not be used to build the ramdisk variants of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the ramdisk variants of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the vendor ramdisk variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the vendor ramdisk variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor ramdisk variant of the C/C++ module.
 target_required list of string, names of other modules to install on target if this module is installed
 team string, The team (defined by the owner/vendor) who owns the property.
 test_only bool, Indicates that the module and its source code are only used in tests, not production code. Used by coverage reports and potentially other tools.
 tidy bool, whether to run clang-tidy over C-like sources.
 tidy_checks list of string, Extra checks to enable or disable in clang-tidy
 tidy_checks_as_errors list of string, Checks that should be treated as errors.
 tidy_disabled_srcs list of string, list of source files that should not be compiled with clang-tidy.
 tidy_flags list of string, Extra flags to pass to clang-tidy
 tidy_timeout_srcs list of string, list of source files that should not be compiled by clang-tidy when TIDY_TIMEOUT is set.
 unexported_symbols_list string, local file name to pass to the linker as -unexported_symbols_list
 unique_host_soname bool, rename host libraries to prevent overlap with system installed libraries
 use_generic_config bool, Set to true if this module must be generic and does not require product-specific information. To be included in the system image, this property must be set to true.
 use_version_lib bool, make android::build:GetBuildNumber() available containing the build ID.
 vendor bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist). Use `soc_specific` instead for better meaning.
 vendor_available bool, whether this module should be allowed to be directly depended by other modules with `vendor: true`, `proprietary: true`, or `vendor_available:true`. If set to true, two variants will be built separately, one like normal, and the other limited to the set of libraries and headers that are exposed to /vendor modules. The vendor variant may be used with a different (newer) /system, so it shouldn't have any unversioned runtime dependencies, or make assumptions about the system that may not be true in the future. If set to false, this module becomes inaccessible from /vendor modules. The modules with vndk: {enabled: true} must define 'vendor_available' to 'true'. Nothing happens if BOARD_VNDK_VERSION isn't set in the BoardConfig.mk
 vendor_dlkm_specific bool, Install to partition vendor_dlkm when set to true.
vendor_public_library vendorPublicLibraryProperties
If this is a vendor public library, properties to describe the vendor public library stubs.
 symbol_file string, Relative path to the symbol map.
 unversioned bool, Whether the system library uses symbol versions.
 export_public_headers list of string, list of header libs to re-export include directories from.
 override_export_include_dirs list of string, list of directories relative to the Blueprints file that willbe added to the include path (using -I) for any module that links against the LLNDK variant of this module, replacing any that were listed outside the llndk clause.
 vendor_ramdisk bool, Whether this module is installed to vendor ramdisk
 vendor_ramdisk_available bool, Make this module available when building for vendor ramdisk. On device without a dedicated recovery partition, the module is only available after switching root into /first_stage_ramdisk. To expose the module before switching root, install the recovery variant instead.
 version_script string, local file name to pass to the linker as --version-script. Not supported on darwin, and will fail to build if provided to the darwin variant of a module.
 vintf_fragment_modules configurable list of string, vintf_fragment Modules required from this module.
 vintf_fragments configurable list of string, VINTF manifest fragments to be installed if this module is installed
 visibility list of string, Controls the visibility of this module to other modules. Allowable values are one or more of these formats:

 ["//visibility:public"]: Anyone can use this module.
 ["//visibility:private"]: Only rules in the module's package (not its subpackages) can use
     this module.
 ["//visibility:override"]: Discards any rules inherited from defaults or a creating module.
     Can only be used at the beginning of a list of visibility rules.
 ["//some/package:__pkg__", "//other/package:__pkg__"]: Only modules in some/package and
     other/package (defined in some/package/*.bp and other/package/*.bp) have access to
     this module. Note that sub-packages do not have access to the rule; for example,
     //some/package/foo:bar or //other/package/testing:bla wouldn't have access. __pkg__
     is a special module and must be used verbatim. It represents all of the modules in the
     package.
 ["//project:__subpackages__", "//other:__subpackages__"]: Only modules in packages project
     or other or in one of their sub-packages have access to this module. For example,
     //project:rule, //project/library:lib or //other/testing/internal:munge are allowed
     to depend on this rule (but not //independent:evil)
 ["//project"]: This is shorthand for ["//project:__pkg__"]
 [":__subpackages__"]: This is shorthand for ["//project:__subpackages__"] where
     //project is the module's package. e.g. using [":__subpackages__"] in
     packages/apps/Settings/Android.bp is equivalent to
     //packages/apps/Settings:__subpackages__.
 ["//visibility:legacy_public"]: The default visibility, behaves as //visibility:public
     for now. It is an error if it is used in a module.

If a module does not specify the `visibility` property then it uses the `default_visibility` property of the `package` module in the module's package. If the `default_visibility` property is not set for the module's package then it will use the `default_visibility` of its closest ancestor package for which a `default_visibility` property is specified. If no `default_visibility` property can be found then the module uses the global default of `//visibility:legacy_public`. The `visibility` property has no effect on a defaults module although it does apply to any non-defaults module that uses it. To set the visibility of a defaults module, use the `defaults_visibility` property on the defaults module; not to be confused with the `default_visibility` property on the package module. See https://android.googlesource.com/platform/build/soong/+/main/README.md#visibility for more details.
 whole_program_vtables bool, Use -fwhole-program-vtables cflag.
 whole_static_libs configurable list of string, list of modules whose object files should be linked into this module in their entirety. For static library modules, all of the .o files from the intermediate directory of the dependency will be linked into this modules .a file. For a shared library, the dependency's .a file will be linked into this module using -Wl,--whole-archive.
 yacc YaccProperties

cc_library_host_shared

cc_library_host_shared creates a shared library that is usable on a host.
 name string, The name of the module. Must be unique across all modules.
 srcs configurable list of string, list of source files used to compile the C/C++ module. May be .c, .cpp, or .S files. srcs may reference the outputs of other modules that produce source files like genrule or filegroup using the syntax ":module".
 exclude_srcs configurable list of string, list of source files that should not be used to build the C/C++ module. This is most useful in the arch/multilib variants to remove non-common files
 defaults list of string
 afdo bool, Afdo allows developers self-service enroll for automatic feedback-directed optimization using profile data.
aidl
 libs list of string, List of aidl_library modules
 include_dirs list of string, list of directories that will be added to the aidl include paths.
 local_include_dirs list of string, list of directories relative to the Blueprints file that will be added to the aidl include paths.
 generate_traces bool, whether to generate traces (for systrace) for this interface
 flags list of string, list of flags that will be passed to the AIDL compiler
 export_aidl_headers bool, export headers generated from .aidl sources
 allow_undefined_symbols bool, allow the module to contain undefined symbols. By default, modules cannot contain undefined symbols that are not satisified by their immediate dependencies. Set this flag to true to remove --no-undefined from the linker flags. This flag should only be necessary for compiling low-level libraries like libc.
 apex_available list of string, Availability of this module in APEXes. Only the listed APEXes can contain this module. If the module has stubs then other APEXes and the platform may access it through them (subject to visibility). "//apex_available:anyapex" is a pseudo APEX name that matches to any APEX. "//apex_available:platform" refers to non-APEX partitions like "system.img". Prefix pattern (com.foo.*) can be used to match with any APEX name with the prefix(com.foo.). Default is ["//apex_available:platform"].
 arch interface
 asflags list of string, list of module-specific flags that will be used for .S compiles
 bootstrap bool, Allows this module to use non-APEX version of libraries. Useful for building binaries that are started before APEXes are activated.
 bpf_target bool, cc Build rules targeting BPF must set this to true. The correct fix is to ban targeting bpf in cc rules instead use bpf_rules. (b/323415017)
buildstubs bool
 bool bool
 c_std string, C standard version to use. Can be a specific version (such as "gnu11"), "experimental" (which will use draft versions like C1x when available), or the empty string (which will use the default).
 cflags configurable list of string, list of module-specific flags that will be used for C and C++ compiles.
 clang bool, Deprecated. true is the default, false is invalid.
 clang_asflags list of string, list of module-specific flags that will be used for .S compiles when compiling with clang
 clang_cflags list of string, list of module-specific flags that will be used for C and C++ compiles when compiling with clang
 clang_verify bool, Add "-Xclang -verify" to the cflags and appends "touch $out" to the clang command line.
 cmake_snapshot_supported bool, Allows this module to be included in CMake release snapshots to be built outside of Android build system and source tree.
 compile_multilib string, control whether this module compiles for 32-bit, 64-bit, or both. Possible values are "32" (compile for 32-bit only), "64" (compile for 64-bit only), "both" (compile for both architectures), or "first" (compile for 64-bit on a 64-bit platform, and 32-bit on a 32-bit platform).
 conlyflags list of string, list of module-specific flags that will be used for C compiles
 cpp_std string, C++ standard version to use. Can be a specific version (such as "gnu++11"), "experimental" (which will use draft versions like C++1z when available), or the empty string (which will use the default).
 cppflags configurable list of string, list of module-specific flags that will be used for C++ compiles
 debug_ramdisk bool, Whether this module is installed to debug ramdisk
 device_first_generated_headers configurable list of string, Same as generated_headers, but the dependencies will be added based on the first supported arch variant and the device os variant. This can be useful for creating a host tool that embeds a copy of a device tool, that it then extracts and pushes to a device at runtime.
 device_specific bool, whether this module is specific to a device, not only for SoC, but also for off-chip peripherals. When set to true, it is installed into /odm (or /vendor/odm if odm partition does not exist, or /system/vendor/odm if both odm and vendor partitions do not exist). This implies `soc_specific:true`.
dist Dist
configuration to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 targets list of string, Copy the output of this module to the $DIST_DIR when `dist` is specified on the command line and any of these targets are also on the command line, or otherwise built
 dest string, The name of the output artifact. This defaults to the basename of the output of the module.
 dir string, The directory within the dist directory to store the artifact. Defaults to the top level directory ("").
 suffix string, A suffix to add to the artifact file name (before any extension).
 append_artifact_with_product bool, If true, then the artifact file will be appended with _<product name>. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be foo_coral.apk. If false, there is no change to the artifact file name.
 prepend_artifact_with_product bool, If true, then the artifact file will be prepended with <product name>-. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be coral-foo.apk. If false, there is no change to the artifact file name.
 tag string, A string tag to select the OutputFiles associated with the tag. If no tag is specified then it will select the default dist paths provided by the module type. If a tag of "" is specified then it will return the default output files provided by the modules, i.e. the result of calling OutputFiles("").
 dists list of Dist, a list of configurations to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 double_loadable bool, whether this module is capable of being loaded with other instance (possibly an older version) of the same module in the same process. Currently, a shared library that is a member of VNDK (vndk: {enabled: true}) can be double loaded in a vendor process if the library is also a (direct and indirect) dependency of an LLNDK library. Such libraries must be explicitly marked as `double_loadable: true` by the owner, or the dependency from the LLNDK lib should be cut if the lib is not designed to be double loaded.
 dynamic_list string, local file name to pass to the linker as --dynamic-list. Not supported on darwin, and will fail to build if provided to the darwin variant of a module.
 enabled configurable bool, emit build rules for this module Disabling a module should only be done for those modules that cannot be built in the current environment. Modules that can build in the current environment but are not usually required (e.g. superceded by a prebuilt) should not be disabled as that will prevent them from being built by the checkbuild target and so prevent early detection of changes that have broken those modules.
 exclude_generated_sources list of string, list of generated sources that should not be used to build the C/C++ module. This is most useful in the arch/multilib variants to remove non-common files
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with this module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build this module
 exclude_static_libs list of string, list of static libs that should not be used to build this module
 export_cflags list of string, list of plain cc flags to be used for any module that links against this module.
 export_generated_headers list of string, list of generated headers to re-export include directories from. Entries must be present in generated_headers.
 export_header_lib_headers configurable list of string, list of header libraries to re-export include directories from. Entries must be present in header_libs.
 export_include_dirs configurable list of string, list of directories relative to the Blueprints file that will be added to the include path (using -I) for this module and any module that links against this module. Directories listed in export_include_dirs do not need to be listed in local_include_dirs.
 export_shared_lib_headers list of string, list of shared libraries to re-export include directories from. Entries must be present in shared_libs.
 export_static_lib_headers list of string, list of static libraries to re-export include directories from. Entries must be present in static_libs.
 export_system_include_dirs list of string, list of directories that will be added to the system include path using -isystem for this module and any module that links against this module.
 exported_symbols_list string, local file name to pass to the linker as -exported_symbols_list
 force_symbols_not_weak_list string, local file name to pass to the linker as -force_symbols_not_weak_list
 force_symbols_weak_list string, local file name to pass to the linker as -force_symbols_weak_list
 generated_headers configurable list of string, list of generated headers to add to the include path. These are the names of genrule modules.
 generated_sources list of string, list of generated sources to compile. These are the names of gensrcs or genrule modules.
 gnu_extensions bool, if set to false, use -std=c++* instead of -std=gnu++*
 group_static_libs bool, deprecated and ignored because lld makes it unnecessary. See b/189475744.
header_abi_checker headerAbiCheckerProperties
Properties for ABI compatibility checker.
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 header_libs configurable list of string, list of modules that should only provide headers for this module.
 host_cross_supported bool, If set to true, build a variant of the module for the host cross. Defaults to true.
 host_ldlibs list of string, -l arguments to pass to linker for host-provided shared libraries
 host_required list of string, names of other modules to install on host if this module is installed
 ignore_max_page_size bool, ignore max page size. By default, max page size must be the max page size set for the target.
 include_build_directory bool, Add the directory containing the Android.bp file to the list of include directories. Defaults to true.
 include_dirs configurable list of string, list of directories relative to the root of the source tree that will be added to the include path using -I. If possible, don't use this. If adding paths from the current directory use local_include_dirs, if adding paths from other modules use export_include_dirs in that module.
 init_rc configurable list of string, init.rc files to be installed if this module is installed
 inject_bssl_hash bool, Inject boringssl hash into the shared library. This is only intended for use by external/boringssl.
 install_in_root bool, Install output directly in {partition}/, not in any subdir. This is only intended for use by init_first_stage.
 install_in_xbin bool, Install output directly in {partition}/xbin
 installable bool
 instruction_set string, the instruction set architecture to use to compile the C/C++ module.
 ldflags list of string, list of module-specific flags that will be used for all link steps
 lex LexProperties
 licenses list of string, Describes the licenses applicable to this module. Must reference license modules.
 linker_scripts list of string, local files to pass to the linker as --script. Not supported on darwin or windows, and will fail to build if provided to the darwin or windows variant of a module.
llndk llndkLibraryProperties
If this is an LLNDK library, properties to describe the LLNDK stubs. Will be copied from the module pointed to by llndk_stubs if it is set.
 symbol_file string, Relative path to the symbol map. An example file can be seen here: TODO(danalbert): Make an example.
 export_headers_as_system bool, Whether to export any headers as -isystem instead of -I. Mainly for use by bionic/libc.
 unversioned bool, Whether the system library uses symbol versions.
 export_llndk_headers list of string, list of llndk headers to re-export include directories from.
 override_export_include_dirs list of string, list of directories relative to the Blueprints file that willbe added to the include path (using -I) for any module that links against the LLNDK variant of this module, replacing any that were listed outside the llndk clause.
 private bool, whether this module can be directly depended upon by libs that are installed to /vendor and /product. When set to true, this module can only be depended on by VNDK libraries, not vendor nor product libraries. This effectively hides this module from non-system modules. Default value is false.
 llndk_headers bool, if true, make this module available to provide headers to other modules that set llndk.symbol_file.
 moved_to_apex bool, moved_to_apex marks this module has having been distributed through an apex module.
 local_include_dirs configurable list of string, list of directories relative to the Blueprints file that will be added to the include path using -I
 logtags list of string, *.logtags files, to combine together in order to generate the /system/etc/event-log-tags file
lto
Lto must violate capitalization style for acronyms so that it can be referred to in blueprint files as "lto"
 never bool
 thin bool
 lto_O0 bool, Use --lto-O0 flag.
 min_sdk_version string, Minimum OS API level supported by this C or C++ module. This property becomes the value of the __ANDROID_API__ macro. When the C or C++ module is included in an APEX or an APK, this property is also used to ensure that the min_sdk_version of the containing module is not older (i.e. less) than this module's min_sdk_version. When not set, this property defaults to the value of sdk_version. When this is set to "apex_inherit", this tracks min_sdk_version of the containing APEX. When the module is not built for an APEX, "apex_inherit" defaults to sdk_version.
 multilib interface
 native_bridge_supported bool, Whether this module is built for non-native architectures (also known as native bridge binary)
 native_coverage bool
 no_crt_pad_segment bool, don't link in crt_pad_segment. This flag is currently only used internal to soong for testing and for vndk prebuilt shared libraries.
 no_full_install bool, When set to true, this module is not installed to the full install path (ex: under out/target/product/<name>/<partition>). It can be installed only to the packaging modules like android_filesystem.
 no_libcrt bool, don't link in libclang_rt.builtins-*.a
 nocrt bool, don't link in crt_begin and crt_end. This flag should only be necessary for compiling crt or libc.
 odm_available bool, This is the same as the "vendor_available" except that the install path of the vendor variant is /odm or /vendor/odm. By replacing "vendor_available: true" with "odm_available: true", the module will install its vendor variant to the /odm partition or /vendor/odm. As the modules with "odm_available: true" still create the vendor variants, they can link to the other vendor modules as the vendor_available modules do. Also, the vendor modules can link to odm_available modules. It may not be used for VNDK modules.
 odm_dlkm_specific bool, Install to partition odm_dlkm when set to true.
 openmp bool, Build and link with OpenMP
 optimize_for_size bool, Aggresively trade performance for smaller binary size. This should only be used for on-device binaries that are rarely executed and not performance critical.
orderfile
 instrumentation bool
 order_file_path string
 load_order_file bool
 cflags list of string, Additional compiler flags to use when building this module for orderfile profiling.
 overrides list of string, Names of modules to be overridden. Listed modules can only be other shared libraries (in Make or Soong). This does not completely prevent installation of the overridden libraries, but if both binaries would be installed by default (in PRODUCT_PACKAGES) the other library will be removed from PRODUCT_PACKAGES.
 owner string, vendor who owns this module
 pack_relocations bool, Generate compact dynamic relocation table, default true.
 product_available bool, whether this module should be allowed to be directly depended by other modules with `product_specific: true` or `product_available: true`. If set to true, an additional product variant will be built separately that is limited to the set of libraries and headers that are exposed to /product modules. The product variant may be used with a different (newer) /system, so it shouldn't have any unversioned runtime dependencies, or make assumptions about the system that may not be true in the future. If set to false, this module becomes inaccessible from /product modules. Different from the 'vendor_available' property, the modules with vndk: {enabled: true} don't have to define 'product_available'. The VNDK library without 'product_available' may not be depended on by any other modules that has product variants including the product available VNDKs. Nothing happens if BOARD_VNDK_VERSION isn't set in the BoardConfig.mk and PRODUCT_PRODUCT_VNDK_VERSION isn't set.
 product_specific bool, whether this module is specific to a software configuration of a product (e.g. country, network operator, etc). When set to true, it is installed into /product (or /system/product if product partition does not exist).
product_variables.arc
cflags
  []string
exclude_srcs
  []string
header_libs
  []string
include_dirs
  []string
shared_libs
  []string
static_libs
  []string
srcs
  []string
whole_static_libs
  []string
product_variables.binder32bit
cflags
  []string
product_variables.build_from_text_stub
static_libs
  []string
exclude_static_libs
  []string
product_variables.debuggable
cflags
  []string
cppflags
  []string
init_rc
  []string
required
  []string
host_required
  []string
target_required
  []string
strip.all
  *bool
strip.keep_symbols
  *bool
strip.keep_symbols_and_debug_frame
  *bool
static_libs
  []string
exclude_static_libs
  []string
whole_static_libs
  []string
shared_libs
  []string
srcs
  []string
exclude_srcs
  []string
product_variables.enforce_vintf_manifest
cflags
  []string
product_variables.eng
cflags
  []string
cppflags
  []string
lto.never
  *bool
sanitize.address
  *bool
product_variables.malloc_low_memory
cflags
  []string
shared_libs
  []string
whole_static_libs
  []string
static_libs
  []string
exclude_static_libs
  []string
srcs
  []string
header_libs
  []string
product_variables.malloc_pattern_fill_contents
cflags
  []string
product_variables.malloc_zero_contents
cflags
  []string
product_variables.native_coverage
srcs
  []string
exclude_srcs
  []string
product_variables.override_rs_driver
cflags
  []string
product_variables.platform_sdk_version
asflags
  []string
cflags
  []string
product_variables.release_aidl_use_unfrozen
cflags
  []string
required
  []string
vintf_fragment_modules
  []string
product_variables.safestack
cflags
  []string
product_variables.selinuxignoreneverallows
required
  []string
product_variables.shipping_api_level
cflags
  []string
product_variables.treble_linker_namespaces
cflags
  []string
product_variables.uml
cppflags
  []string
product_variables.unbundled_build
enabled Configurable[bool]
 Configurable[bool] proptools.Configurable[bool]
 proprietary bool, whether this is a proprietary vendor module, and should be installed into /vendor
proto
 export_proto_headers bool, export headers generated from .proto sources
 static bool, Link statically against the protobuf runtime
 type string, Proto generator type. C++: full or lite. Java: micro, nano, stream, or lite.
 plugin string, Proto plugin to use as the generator. Must be a cc_binary_host module.
 include_dirs list of string, list of directories that will be added to the protoc include paths.
 local_include_dirs list of string, list of directories relative to the bp file that will be added to the protoc include paths.
 canonical_path_from_root bool, whether to identify the proto files from the root of the source tree (the original method in Android, useful for android-specific protos), or relative from where they were specified (useful for external/third party protos). This defaults to true today, but is expected to default to false in the future.
 ramdisk bool, Whether this module is installed to ramdisk
 ramdisk_available bool, Make this module available when building for ramdisk. On device without a dedicated recovery partition, the module is only available after switching root into /first_stage_ramdisk. To expose the module before switching root, install the recovery variant instead.
 recovery bool, Whether this module is installed to recovery partition
 recovery_available bool, Make this module available when building for recovery
 relative_install_path string, install to a subdirectory of the default install path for the module
renderscript
 include_dirs list of string, list of directories that will be added to the llvm-rs-cc include paths
 flags list of string, list of flags that will be passed to llvm-rs-cc
 target_api string, Renderscript API level to target
 required configurable list of string, names of other modules to install if this module is installed
 rtti bool, pass -frtti instead of -fno-rtti
 runtime_libs list of string, list of modules that should be installed with this module. This is similar to 'required' but '.vendor' suffix will be appended to the module names if the shared libraries have vendor variants and this module uses VNDK.
sanitize SanitizeUserProps
 never bool, Prevent use of any sanitizers on this module
 address bool, ASan (Address sanitizer), incompatible with static binaries. Always runs in a diagnostic mode. Use of address sanitizer disables cfi sanitizer. Hwaddress sanitizer takes precedence over this sanitizer.
 thread bool, TSan (Thread sanitizer), incompatible with static binaries and 32 bit architectures. Always runs in a diagnostic mode. Use of thread sanitizer disables cfi and scudo sanitizers. Hwaddress sanitizer takes precedence over this sanitizer.
 hwaddress bool, HWASan (Hardware Address sanitizer). Use of hwasan sanitizer disables cfi, address, thread, and scudo sanitizers.
 all_undefined bool, Undefined behavior sanitizer
 undefined bool, Subset of undefined behavior sanitizer
 misc_undefined list of string, List of specific undefined behavior sanitizers to enable
 fuzzer bool, Fuzzer, incompatible with static binaries.
 safestack bool, safe-stack sanitizer, incompatible with 32-bit architectures.
 cfi bool, cfi sanitizer, incompatible with asan, hwasan, fuzzer, or Darwin
 integer_overflow bool, signed/unsigned integer overflow sanitizer, incompatible with Darwin.
 scudo bool, scudo sanitizer, incompatible with asan, hwasan, tsan This should not be used in Android 11+ : https://source.android.com/devices/tech/debug/scudo deprecated
 scs bool, shadow-call-stack sanitizer, only available on arm64/riscv64.
 memtag_heap bool, Memory-tagging, only available on arm64 if diag.memtag unset or false, enables async memory tagging
 memtag_stack bool, Memory-tagging stack instrumentation, only available on arm64 Adds instrumentation to detect stack buffer overflows and use-after-scope using MTE.
 memtag_globals bool, Memory-tagging globals instrumentation, only available on arm64 Adds instrumentation to detect global buffer overflows using MTE.
 writeonly bool, A modifier for ASAN and HWASAN for write only instrumentation
diag
Sanitizers to run in the diagnostic mode (as opposed to the release mode). Replaces abort() on error with a human-readable error message. Address and Thread sanitizers always run in diagnostic mode.
 undefined bool, Undefined behavior sanitizer, diagnostic mode
 cfi bool, cfi sanitizer, diagnostic mode, incompatible with asan, hwasan, fuzzer, or Darwin
 integer_overflow bool, signed/unsigned integer overflow sanitizer, diagnostic mode, incompatible with Darwin.
 memtag_heap bool, Memory-tagging, only available on arm64 requires sanitizer.memtag: true if set, enables sync memory tagging
 misc_undefined list of string, List of specific undefined behavior sanitizers to enable in diagnostic mode
 no_recover list of string, List of sanitizers to pass to -fno-sanitize-recover results in only the first detected error for these sanitizers being reported and program then exits with a non-zero exit code.
config
Sanitizers to run with flag configuration specified
 cfi_assembly_support bool, Enables CFI support flags for assembly-heavy libraries
 recover list of string, List of sanitizers to pass to -fsanitize-recover allows execution to continue for these sanitizers to detect multiple errors rather than only the first one
 blocklist string, value to pass to -fsanitize-ignorelist
 sdk_variant_only bool, If true, always create an sdk variant and don't create a platform variant.
 sdk_version string, The API level that this module is built against. The APIs of this API level will be visible at build time, but use of any APIs newer than min_sdk_version will render the module unloadable on older devices. In the future it will be possible to weakly-link new APIs, making the behavior match Java: such modules will load on older devices, but calling new APIs on devices that do not support them will result in a crash. This property has the same behavior as sdk_version does for Java modules. For those familiar with Android Gradle, the property behaves similarly to how compileSdkVersion does for Java code. In addition, setting this property causes two variants to be built, one for the platform and one for apps.
shared StaticOrSharedProperties
 srcs configurable list of string
 tidy_disabled_srcs list of string
 tidy_timeout_srcs list of string
sanitized Sanitized
none
 srcs list of string
address
 srcs list of string
hwaddress
 srcs list of string
 cflags configurable list of string
 enabled bool
 whole_static_libs configurable list of string
 static_libs configurable list of string
 shared_libs configurable list of string
 system_shared_libs list of string
 export_shared_lib_headers list of string
 export_static_lib_headers list of string
 apex_available list of string
 installable bool
 shared_libs configurable list of string, list of modules that should be dynamically linked into this module.
 soc_specific bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist).
 static_libs configurable list of string, list of modules that should be statically linked into this module.
 static_ndk_lib bool
 stem string, set the name of the output
 stl string, Select the STL library to use. Possible values are "libc++", "libc++_static", "libstdc++", or "none". Leave blank to select the default.
strip
 none bool, Device modules default to stripping enabled leaving mini debuginfo. Host modules default to stripping disabled, but can be enabled by setting any other strip boolean property.
 all bool, all forces stripping everything, including the mini debug info.
 keep_symbols bool, keep_symbols enables stripping but keeps all symbols.
 keep_symbols_list list of string, keep_symbols_list specifies a list of symbols to keep if keep_symbols is enabled. If it is unset then all symbols are kept.
 keep_symbols_and_debug_frame bool, keep_symbols_and_debug_frame enables stripping but keeps all symbols and debug frames.
stubs StubsProperties
Generate stubs to make this library accessible to APEXes.
 symbol_file string, Relative path to the symbol map. The symbol map provides the list of symbols that are exported for stubs variant of this library.
 versions list of string, List versions to generate stubs libs for. The version name "current" is always implicitly added.
 implementation_installable bool, Whether to not require the implementation of the library to be installed if a client of the stubs is installed. Defaults to true; set to false if the implementation is made available by some other means, e.g. in a Microdroid virtual machine.
 suffix string, set suffix of the name of the output
 system_dlkm_specific bool, Install to partition system_dlkm when set to true.
 system_ext_specific bool, whether this module extends system. When set to true, it is installed into /system_ext (or /system/system_ext if system_ext partition does not exist).
 system_shared_libs list of string, list of system libraries that will be dynamically linked to shared library and executable modules. If unset, generally defaults to libc, libm, and libdl. Set to [] to prevent linking against the defaults.
 target interface
target.android
 compile_multilib string
 enabled bool
target.apex
 exclude_shared_libs list of string, list of shared libs that should not be used to build the apex variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the apex variant of the C/C++ module.
target.host
 compile_multilib string
target.non_apex
 exclude_shared_libs list of string, list of shared libs that should not be used to build the non-apex variant of the C/C++ module.
target.platform
 cflags list of string, List of additional cflags that should be used to build the platform variant of the C/C++ module.
header_abi_checker headerAbiCheckerProperties
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 required list of string, List of modules required by the core variant.
 exclude_required list of string, List of modules not required by the core variant.
 shared_libs list of string, list of shared libs that should be use to build the platform variant of a module that sets sdk_version. This should rarely be necessary, in most cases the same libraries are available for the SDK and platform variants.
 header_libs list of string, list of ehader libs that only should be used to build platform variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the platform variant of the C/C++ module.
target.product
 suffix string, set suffix of the name of the output
header_abi_checker headerAbiCheckerProperties
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 no_stubs bool, Disable stubs for vendor/product variants This is a workaround to keep `stubs` only for "core" variant (not product/vendor). It would be nice if we could put `stubs` into a `target: { core: {} }` block but it's not supported in soong yet. This could be removed/simplified once we have a better syntax.
 shared_libs list of string, list of shared libs that only should be used to build vendor or product variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build vendor or product variant of the C/C++ module.
 header_libs list of string, list of header libs that only should be used to build vendor or product variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor or product variant of the C/C++ module.
 version_script string, version script for vendor or product variant
 srcs list of string, list of source files that should only be used in vendor or product variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build vendor or product variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build vendor or product variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build vendor or product variant of the C/C++ module.
 override_export_include_dirs list of string, list of exported include directories, like export_include_dirs, that will be applied to vendor or product variant of this library. This will overwrite any other declarations.
target.ramdisk
 static_libs list of string, list of static libs that only should be used to build the ramdisk variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the ramdisk variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the ramdisk variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the ramdisk variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build the ramdisk variants of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the ramdisk variants of the C/C++ module.
target.recovery
 required list of string, List of modules required by the recovery variant.
 exclude_required list of string, List of modules not required by the recovery variant.
 srcs list of string, list of source files that should only be used in the recovery variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build the recovery variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the recovery variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build the recovery variant of the C/C++ module.
 shared_libs list of string, list of shared libs that only should be used to build the recovery variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build the recovery variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the recovery variant of the C/C++ module.
target.vendor
 srcs list of string, list of source files that should only be used in vendor or product variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build vendor or product variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build vendor or product variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build vendor or product variant of the C/C++ module.
 override_export_include_dirs list of string, list of exported include directories, like export_include_dirs, that will be applied to vendor or product variant of this library. This will overwrite any other declarations.
 shared_libs list of string, list of shared libs that only should be used to build vendor or product variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build vendor or product variant of the C/C++ module.
 header_libs list of string, list of header libs that only should be used to build vendor or product variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor or product variant of the C/C++ module.
 version_script string, version script for vendor or product variant
 suffix string, set suffix of the name of the output
header_abi_checker headerAbiCheckerProperties
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 no_stubs bool, Disable stubs for vendor/product variants This is a workaround to keep `stubs` only for "core" variant (not product/vendor). It would be nice if we could put `stubs` into a `target: { core: {} }` block but it's not supported in soong yet. This could be removed/simplified once we have a better syntax.
target.vendor_ramdisk
 exclude_srcs list of string, list of source files that should not be used to build the ramdisk variants of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the ramdisk variants of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the vendor ramdisk variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the vendor ramdisk variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor ramdisk variant of the C/C++ module.
 target_required list of string, names of other modules to install on target if this module is installed
 team string, The team (defined by the owner/vendor) who owns the property.
 test_only bool, Indicates that the module and its source code are only used in tests, not production code. Used by coverage reports and potentially other tools.
 tidy bool, whether to run clang-tidy over C-like sources.
 tidy_checks list of string, Extra checks to enable or disable in clang-tidy
 tidy_checks_as_errors list of string, Checks that should be treated as errors.
 tidy_disabled_srcs list of string, list of source files that should not be compiled with clang-tidy.
 tidy_flags list of string, Extra flags to pass to clang-tidy
 tidy_timeout_srcs list of string, list of source files that should not be compiled by clang-tidy when TIDY_TIMEOUT is set.
 unexported_symbols_list string, local file name to pass to the linker as -unexported_symbols_list
 unique_host_soname bool, rename host libraries to prevent overlap with system installed libraries
 use_generic_config bool, Set to true if this module must be generic and does not require product-specific information. To be included in the system image, this property must be set to true.
 use_version_lib bool, make android::build:GetBuildNumber() available containing the build ID.
 vendor bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist). Use `soc_specific` instead for better meaning.
 vendor_available bool, whether this module should be allowed to be directly depended by other modules with `vendor: true`, `proprietary: true`, or `vendor_available:true`. If set to true, two variants will be built separately, one like normal, and the other limited to the set of libraries and headers that are exposed to /vendor modules. The vendor variant may be used with a different (newer) /system, so it shouldn't have any unversioned runtime dependencies, or make assumptions about the system that may not be true in the future. If set to false, this module becomes inaccessible from /vendor modules. The modules with vndk: {enabled: true} must define 'vendor_available' to 'true'. Nothing happens if BOARD_VNDK_VERSION isn't set in the BoardConfig.mk
 vendor_dlkm_specific bool, Install to partition vendor_dlkm when set to true.
vendor_public_library vendorPublicLibraryProperties
If this is a vendor public library, properties to describe the vendor public library stubs.
 symbol_file string, Relative path to the symbol map.
 unversioned bool, Whether the system library uses symbol versions.
 export_public_headers list of string, list of header libs to re-export include directories from.
 override_export_include_dirs list of string, list of directories relative to the Blueprints file that willbe added to the include path (using -I) for any module that links against the LLNDK variant of this module, replacing any that were listed outside the llndk clause.
 vendor_ramdisk bool, Whether this module is installed to vendor ramdisk
 vendor_ramdisk_available bool, Make this module available when building for vendor ramdisk. On device without a dedicated recovery partition, the module is only available after switching root into /first_stage_ramdisk. To expose the module before switching root, install the recovery variant instead.
 version_script string, local file name to pass to the linker as --version-script. Not supported on darwin, and will fail to build if provided to the darwin variant of a module.
 vintf_fragment_modules configurable list of string, vintf_fragment Modules required from this module.
 vintf_fragments configurable list of string, VINTF manifest fragments to be installed if this module is installed
 visibility list of string, Controls the visibility of this module to other modules. Allowable values are one or more of these formats:

 ["//visibility:public"]: Anyone can use this module.
 ["//visibility:private"]: Only rules in the module's package (not its subpackages) can use
     this module.
 ["//visibility:override"]: Discards any rules inherited from defaults or a creating module.
     Can only be used at the beginning of a list of visibility rules.
 ["//some/package:__pkg__", "//other/package:__pkg__"]: Only modules in some/package and
     other/package (defined in some/package/*.bp and other/package/*.bp) have access to
     this module. Note that sub-packages do not have access to the rule; for example,
     //some/package/foo:bar or //other/package/testing:bla wouldn't have access. __pkg__
     is a special module and must be used verbatim. It represents all of the modules in the
     package.
 ["//project:__subpackages__", "//other:__subpackages__"]: Only modules in packages project
     or other or in one of their sub-packages have access to this module. For example,
     //project:rule, //project/library:lib or //other/testing/internal:munge are allowed
     to depend on this rule (but not //independent:evil)
 ["//project"]: This is shorthand for ["//project:__pkg__"]
 [":__subpackages__"]: This is shorthand for ["//project:__subpackages__"] where
     //project is the module's package. e.g. using [":__subpackages__"] in
     packages/apps/Settings/Android.bp is equivalent to
     //packages/apps/Settings:__subpackages__.
 ["//visibility:legacy_public"]: The default visibility, behaves as //visibility:public
     for now. It is an error if it is used in a module.

If a module does not specify the `visibility` property then it uses the `default_visibility` property of the `package` module in the module's package. If the `default_visibility` property is not set for the module's package then it will use the `default_visibility` of its closest ancestor package for which a `default_visibility` property is specified. If no `default_visibility` property can be found then the module uses the global default of `//visibility:legacy_public`. The `visibility` property has no effect on a defaults module although it does apply to any non-defaults module that uses it. To set the visibility of a defaults module, use the `defaults_visibility` property on the defaults module; not to be confused with the `default_visibility` property on the package module. See https://android.googlesource.com/platform/build/soong/+/main/README.md#visibility for more details.
 whole_program_vtables bool, Use -fwhole-program-vtables cflag.
 whole_static_libs configurable list of string, list of modules whose object files should be linked into this module in their entirety. For static library modules, all of the .o files from the intermediate directory of the dependency will be linked into this modules .a file. For a shared library, the dependency's .a file will be linked into this module using -Wl,--whole-archive.
 yacc YaccProperties

cc_library_host_static

cc_library_host_static creates a static library that is linkable to a host binary.
 name string, The name of the module. Must be unique across all modules.
 srcs configurable list of string, list of source files used to compile the C/C++ module. May be .c, .cpp, or .S files. srcs may reference the outputs of other modules that produce source files like genrule or filegroup using the syntax ":module".
 exclude_srcs configurable list of string, list of source files that should not be used to build the C/C++ module. This is most useful in the arch/multilib variants to remove non-common files
 defaults list of string
 afdo bool, Afdo allows developers self-service enroll for automatic feedback-directed optimization using profile data.
aidl
 libs list of string, List of aidl_library modules
 include_dirs list of string, list of directories that will be added to the aidl include paths.
 local_include_dirs list of string, list of directories relative to the Blueprints file that will be added to the aidl include paths.
 generate_traces bool, whether to generate traces (for systrace) for this interface
 flags list of string, list of flags that will be passed to the AIDL compiler
 export_aidl_headers bool, export headers generated from .aidl sources
 allow_undefined_symbols bool, allow the module to contain undefined symbols. By default, modules cannot contain undefined symbols that are not satisified by their immediate dependencies. Set this flag to true to remove --no-undefined from the linker flags. This flag should only be necessary for compiling low-level libraries like libc.
 apex_available list of string, Availability of this module in APEXes. Only the listed APEXes can contain this module. If the module has stubs then other APEXes and the platform may access it through them (subject to visibility). "//apex_available:anyapex" is a pseudo APEX name that matches to any APEX. "//apex_available:platform" refers to non-APEX partitions like "system.img". Prefix pattern (com.foo.*) can be used to match with any APEX name with the prefix(com.foo.). Default is ["//apex_available:platform"].
 arch interface
 asflags list of string, list of module-specific flags that will be used for .S compiles
 bootstrap bool, Allows this module to use non-APEX version of libraries. Useful for building binaries that are started before APEXes are activated.
 bpf_target bool, cc Build rules targeting BPF must set this to true. The correct fix is to ban targeting bpf in cc rules instead use bpf_rules. (b/323415017)
buildstubs bool
 bool bool
 c_std string, C standard version to use. Can be a specific version (such as "gnu11"), "experimental" (which will use draft versions like C1x when available), or the empty string (which will use the default).
 cflags configurable list of string, list of module-specific flags that will be used for C and C++ compiles.
 clang bool, Deprecated. true is the default, false is invalid.
 clang_asflags list of string, list of module-specific flags that will be used for .S compiles when compiling with clang
 clang_cflags list of string, list of module-specific flags that will be used for C and C++ compiles when compiling with clang
 clang_verify bool, Add "-Xclang -verify" to the cflags and appends "touch $out" to the clang command line.
 cmake_snapshot_supported bool, Allows this module to be included in CMake release snapshots to be built outside of Android build system and source tree.
 compile_multilib string, control whether this module compiles for 32-bit, 64-bit, or both. Possible values are "32" (compile for 32-bit only), "64" (compile for 64-bit only), "both" (compile for both architectures), or "first" (compile for 64-bit on a 64-bit platform, and 32-bit on a 32-bit platform).
 conlyflags list of string, list of module-specific flags that will be used for C compiles
 cpp_std string, C++ standard version to use. Can be a specific version (such as "gnu++11"), "experimental" (which will use draft versions like C++1z when available), or the empty string (which will use the default).
 cppflags configurable list of string, list of module-specific flags that will be used for C++ compiles
 debug_ramdisk bool, Whether this module is installed to debug ramdisk
 device_first_generated_headers configurable list of string, Same as generated_headers, but the dependencies will be added based on the first supported arch variant and the device os variant. This can be useful for creating a host tool that embeds a copy of a device tool, that it then extracts and pushes to a device at runtime.
 device_specific bool, whether this module is specific to a device, not only for SoC, but also for off-chip peripherals. When set to true, it is installed into /odm (or /vendor/odm if odm partition does not exist, or /system/vendor/odm if both odm and vendor partitions do not exist). This implies `soc_specific:true`.
dist Dist
configuration to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 targets list of string, Copy the output of this module to the $DIST_DIR when `dist` is specified on the command line and any of these targets are also on the command line, or otherwise built
 dest string, The name of the output artifact. This defaults to the basename of the output of the module.
 dir string, The directory within the dist directory to store the artifact. Defaults to the top level directory ("").
 suffix string, A suffix to add to the artifact file name (before any extension).
 append_artifact_with_product bool, If true, then the artifact file will be appended with _<product name>. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be foo_coral.apk. If false, there is no change to the artifact file name.
 prepend_artifact_with_product bool, If true, then the artifact file will be prepended with <product name>-. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be coral-foo.apk. If false, there is no change to the artifact file name.
 tag string, A string tag to select the OutputFiles associated with the tag. If no tag is specified then it will select the default dist paths provided by the module type. If a tag of "" is specified then it will return the default output files provided by the modules, i.e. the result of calling OutputFiles("").
 dists list of Dist, a list of configurations to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 double_loadable bool, whether this module is capable of being loaded with other instance (possibly an older version) of the same module in the same process. Currently, a shared library that is a member of VNDK (vndk: {enabled: true}) can be double loaded in a vendor process if the library is also a (direct and indirect) dependency of an LLNDK library. Such libraries must be explicitly marked as `double_loadable: true` by the owner, or the dependency from the LLNDK lib should be cut if the lib is not designed to be double loaded.
 dynamic_list string, local file name to pass to the linker as --dynamic-list. Not supported on darwin, and will fail to build if provided to the darwin variant of a module.
 enabled configurable bool, emit build rules for this module Disabling a module should only be done for those modules that cannot be built in the current environment. Modules that can build in the current environment but are not usually required (e.g. superceded by a prebuilt) should not be disabled as that will prevent them from being built by the checkbuild target and so prevent early detection of changes that have broken those modules.
 exclude_generated_sources list of string, list of generated sources that should not be used to build the C/C++ module. This is most useful in the arch/multilib variants to remove non-common files
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with this module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build this module
 exclude_static_libs list of string, list of static libs that should not be used to build this module
 export_cflags list of string, list of plain cc flags to be used for any module that links against this module.
 export_generated_headers list of string, list of generated headers to re-export include directories from. Entries must be present in generated_headers.
 export_header_lib_headers configurable list of string, list of header libraries to re-export include directories from. Entries must be present in header_libs.
 export_include_dirs configurable list of string, list of directories relative to the Blueprints file that will be added to the include path (using -I) for this module and any module that links against this module. Directories listed in export_include_dirs do not need to be listed in local_include_dirs.
 export_shared_lib_headers list of string, list of shared libraries to re-export include directories from. Entries must be present in shared_libs.
 export_static_lib_headers list of string, list of static libraries to re-export include directories from. Entries must be present in static_libs.
 export_system_include_dirs list of string, list of directories that will be added to the system include path using -isystem for this module and any module that links against this module.
 exported_symbols_list string, local file name to pass to the linker as -exported_symbols_list
 force_symbols_not_weak_list string, local file name to pass to the linker as -force_symbols_not_weak_list
 force_symbols_weak_list string, local file name to pass to the linker as -force_symbols_weak_list
 generated_headers configurable list of string, list of generated headers to add to the include path. These are the names of genrule modules.
 generated_sources list of string, list of generated sources to compile. These are the names of gensrcs or genrule modules.
 gnu_extensions bool, if set to false, use -std=c++* instead of -std=gnu++*
 group_static_libs bool, deprecated and ignored because lld makes it unnecessary. See b/189475744.
header_abi_checker headerAbiCheckerProperties
Properties for ABI compatibility checker.
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 header_libs configurable list of string, list of modules that should only provide headers for this module.
 host_cross_supported bool, If set to true, build a variant of the module for the host cross. Defaults to true.
 host_ldlibs list of string, -l arguments to pass to linker for host-provided shared libraries
 host_required list of string, names of other modules to install on host if this module is installed
 ignore_max_page_size bool, ignore max page size. By default, max page size must be the max page size set for the target.
 include_build_directory bool, Add the directory containing the Android.bp file to the list of include directories. Defaults to true.
 include_dirs configurable list of string, list of directories relative to the root of the source tree that will be added to the include path using -I. If possible, don't use this. If adding paths from the current directory use local_include_dirs, if adding paths from other modules use export_include_dirs in that module.
 init_rc configurable list of string, init.rc files to be installed if this module is installed
 inject_bssl_hash bool, Inject boringssl hash into the shared library. This is only intended for use by external/boringssl.
 install_in_root bool, Install output directly in {partition}/, not in any subdir. This is only intended for use by init_first_stage.
 install_in_xbin bool, Install output directly in {partition}/xbin
 installable bool
 instruction_set string, the instruction set architecture to use to compile the C/C++ module.
 ldflags list of string, list of module-specific flags that will be used for all link steps
 lex LexProperties
 licenses list of string, Describes the licenses applicable to this module. Must reference license modules.
 linker_scripts list of string, local files to pass to the linker as --script. Not supported on darwin or windows, and will fail to build if provided to the darwin or windows variant of a module.
llndk llndkLibraryProperties
If this is an LLNDK library, properties to describe the LLNDK stubs. Will be copied from the module pointed to by llndk_stubs if it is set.
 symbol_file string, Relative path to the symbol map. An example file can be seen here: TODO(danalbert): Make an example.
 export_headers_as_system bool, Whether to export any headers as -isystem instead of -I. Mainly for use by bionic/libc.
 unversioned bool, Whether the system library uses symbol versions.
 export_llndk_headers list of string, list of llndk headers to re-export include directories from.
 override_export_include_dirs list of string, list of directories relative to the Blueprints file that willbe added to the include path (using -I) for any module that links against the LLNDK variant of this module, replacing any that were listed outside the llndk clause.
 private bool, whether this module can be directly depended upon by libs that are installed to /vendor and /product. When set to true, this module can only be depended on by VNDK libraries, not vendor nor product libraries. This effectively hides this module from non-system modules. Default value is false.
 llndk_headers bool, if true, make this module available to provide headers to other modules that set llndk.symbol_file.
 moved_to_apex bool, moved_to_apex marks this module has having been distributed through an apex module.
 local_include_dirs configurable list of string, list of directories relative to the Blueprints file that will be added to the include path using -I
 logtags list of string, *.logtags files, to combine together in order to generate the /system/etc/event-log-tags file
lto
Lto must violate capitalization style for acronyms so that it can be referred to in blueprint files as "lto"
 never bool
 thin bool
 lto_O0 bool, Use --lto-O0 flag.
 min_sdk_version string, Minimum OS API level supported by this C or C++ module. This property becomes the value of the __ANDROID_API__ macro. When the C or C++ module is included in an APEX or an APK, this property is also used to ensure that the min_sdk_version of the containing module is not older (i.e. less) than this module's min_sdk_version. When not set, this property defaults to the value of sdk_version. When this is set to "apex_inherit", this tracks min_sdk_version of the containing APEX. When the module is not built for an APEX, "apex_inherit" defaults to sdk_version.
 multilib interface
 native_bridge_supported bool, Whether this module is built for non-native architectures (also known as native bridge binary)
 native_coverage bool
 no_crt_pad_segment bool, don't link in crt_pad_segment. This flag is currently only used internal to soong for testing and for vndk prebuilt shared libraries.
 no_full_install bool, When set to true, this module is not installed to the full install path (ex: under out/target/product/<name>/<partition>). It can be installed only to the packaging modules like android_filesystem.
 no_libcrt bool, don't link in libclang_rt.builtins-*.a
 nocrt bool, don't link in crt_begin and crt_end. This flag should only be necessary for compiling crt or libc.
 odm_available bool, This is the same as the "vendor_available" except that the install path of the vendor variant is /odm or /vendor/odm. By replacing "vendor_available: true" with "odm_available: true", the module will install its vendor variant to the /odm partition or /vendor/odm. As the modules with "odm_available: true" still create the vendor variants, they can link to the other vendor modules as the vendor_available modules do. Also, the vendor modules can link to odm_available modules. It may not be used for VNDK modules.
 odm_dlkm_specific bool, Install to partition odm_dlkm when set to true.
 openmp bool, Build and link with OpenMP
 optimize_for_size bool, Aggresively trade performance for smaller binary size. This should only be used for on-device binaries that are rarely executed and not performance critical.
orderfile
 instrumentation bool
 order_file_path string
 load_order_file bool
 cflags list of string, Additional compiler flags to use when building this module for orderfile profiling.
 overrides list of string, Names of modules to be overridden. Listed modules can only be other shared libraries (in Make or Soong). This does not completely prevent installation of the overridden libraries, but if both binaries would be installed by default (in PRODUCT_PACKAGES) the other library will be removed from PRODUCT_PACKAGES.
 owner string, vendor who owns this module
 pack_relocations bool, Generate compact dynamic relocation table, default true.
 product_available bool, whether this module should be allowed to be directly depended by other modules with `product_specific: true` or `product_available: true`. If set to true, an additional product variant will be built separately that is limited to the set of libraries and headers that are exposed to /product modules. The product variant may be used with a different (newer) /system, so it shouldn't have any unversioned runtime dependencies, or make assumptions about the system that may not be true in the future. If set to false, this module becomes inaccessible from /product modules. Different from the 'vendor_available' property, the modules with vndk: {enabled: true} don't have to define 'product_available'. The VNDK library without 'product_available' may not be depended on by any other modules that has product variants including the product available VNDKs. Nothing happens if BOARD_VNDK_VERSION isn't set in the BoardConfig.mk and PRODUCT_PRODUCT_VNDK_VERSION isn't set.
 product_specific bool, whether this module is specific to a software configuration of a product (e.g. country, network operator, etc). When set to true, it is installed into /product (or /system/product if product partition does not exist).
product_variables.arc
cflags
  []string
exclude_srcs
  []string
header_libs
  []string
include_dirs
  []string
shared_libs
  []string
static_libs
  []string
srcs
  []string
whole_static_libs
  []string
product_variables.binder32bit
cflags
  []string
product_variables.build_from_text_stub
static_libs
  []string
exclude_static_libs
  []string
product_variables.debuggable
cflags
  []string
cppflags
  []string
init_rc
  []string
required
  []string
host_required
  []string
target_required
  []string
strip.all
  *bool
strip.keep_symbols
  *bool
strip.keep_symbols_and_debug_frame
  *bool
static_libs
  []string
exclude_static_libs
  []string
whole_static_libs
  []string
shared_libs
  []string
srcs
  []string
exclude_srcs
  []string
product_variables.enforce_vintf_manifest
cflags
  []string
product_variables.eng
cflags
  []string
cppflags
  []string
lto.never
  *bool
sanitize.address
  *bool
product_variables.malloc_low_memory
cflags
  []string
shared_libs
  []string
whole_static_libs
  []string
static_libs
  []string
exclude_static_libs
  []string
srcs
  []string
header_libs
  []string
product_variables.malloc_pattern_fill_contents
cflags
  []string
product_variables.malloc_zero_contents
cflags
  []string
product_variables.native_coverage
srcs
  []string
exclude_srcs
  []string
product_variables.override_rs_driver
cflags
  []string
product_variables.platform_sdk_version
asflags
  []string
cflags
  []string
product_variables.release_aidl_use_unfrozen
cflags
  []string
required
  []string
vintf_fragment_modules
  []string
product_variables.safestack
cflags
  []string
product_variables.selinuxignoreneverallows
required
  []string
product_variables.shipping_api_level
cflags
  []string
product_variables.treble_linker_namespaces
cflags
  []string
product_variables.uml
cppflags
  []string
product_variables.unbundled_build
enabled Configurable[bool]
 Configurable[bool] proptools.Configurable[bool]
 proprietary bool, whether this is a proprietary vendor module, and should be installed into /vendor
proto
 export_proto_headers bool, export headers generated from .proto sources
 static bool, Link statically against the protobuf runtime
 type string, Proto generator type. C++: full or lite. Java: micro, nano, stream, or lite.
 plugin string, Proto plugin to use as the generator. Must be a cc_binary_host module.
 include_dirs list of string, list of directories that will be added to the protoc include paths.
 local_include_dirs list of string, list of directories relative to the bp file that will be added to the protoc include paths.
 canonical_path_from_root bool, whether to identify the proto files from the root of the source tree (the original method in Android, useful for android-specific protos), or relative from where they were specified (useful for external/third party protos). This defaults to true today, but is expected to default to false in the future.
 ramdisk bool, Whether this module is installed to ramdisk
 ramdisk_available bool, Make this module available when building for ramdisk. On device without a dedicated recovery partition, the module is only available after switching root into /first_stage_ramdisk. To expose the module before switching root, install the recovery variant instead.
 recovery bool, Whether this module is installed to recovery partition
 recovery_available bool, Make this module available when building for recovery
 relative_install_path string, install to a subdirectory of the default install path for the module
renderscript
 include_dirs list of string, list of directories that will be added to the llvm-rs-cc include paths
 flags list of string, list of flags that will be passed to llvm-rs-cc
 target_api string, Renderscript API level to target
 required configurable list of string, names of other modules to install if this module is installed
 rtti bool, pass -frtti instead of -fno-rtti
 runtime_libs list of string, list of modules that should be installed with this module. This is similar to 'required' but '.vendor' suffix will be appended to the module names if the shared libraries have vendor variants and this module uses VNDK.
sanitize SanitizeUserProps
 never bool, Prevent use of any sanitizers on this module
 address bool, ASan (Address sanitizer), incompatible with static binaries. Always runs in a diagnostic mode. Use of address sanitizer disables cfi sanitizer. Hwaddress sanitizer takes precedence over this sanitizer.
 thread bool, TSan (Thread sanitizer), incompatible with static binaries and 32 bit architectures. Always runs in a diagnostic mode. Use of thread sanitizer disables cfi and scudo sanitizers. Hwaddress sanitizer takes precedence over this sanitizer.
 hwaddress bool, HWASan (Hardware Address sanitizer). Use of hwasan sanitizer disables cfi, address, thread, and scudo sanitizers.
 all_undefined bool, Undefined behavior sanitizer
 undefined bool, Subset of undefined behavior sanitizer
 misc_undefined list of string, List of specific undefined behavior sanitizers to enable
 fuzzer bool, Fuzzer, incompatible with static binaries.
 safestack bool, safe-stack sanitizer, incompatible with 32-bit architectures.
 cfi bool, cfi sanitizer, incompatible with asan, hwasan, fuzzer, or Darwin
 integer_overflow bool, signed/unsigned integer overflow sanitizer, incompatible with Darwin.
 scudo bool, scudo sanitizer, incompatible with asan, hwasan, tsan This should not be used in Android 11+ : https://source.android.com/devices/tech/debug/scudo deprecated
 scs bool, shadow-call-stack sanitizer, only available on arm64/riscv64.
 memtag_heap bool, Memory-tagging, only available on arm64 if diag.memtag unset or false, enables async memory tagging
 memtag_stack bool, Memory-tagging stack instrumentation, only available on arm64 Adds instrumentation to detect stack buffer overflows and use-after-scope using MTE.
 memtag_globals bool, Memory-tagging globals instrumentation, only available on arm64 Adds instrumentation to detect global buffer overflows using MTE.
 writeonly bool, A modifier for ASAN and HWASAN for write only instrumentation
diag
Sanitizers to run in the diagnostic mode (as opposed to the release mode). Replaces abort() on error with a human-readable error message. Address and Thread sanitizers always run in diagnostic mode.
 undefined bool, Undefined behavior sanitizer, diagnostic mode
 cfi bool, cfi sanitizer, diagnostic mode, incompatible with asan, hwasan, fuzzer, or Darwin
 integer_overflow bool, signed/unsigned integer overflow sanitizer, diagnostic mode, incompatible with Darwin.
 memtag_heap bool, Memory-tagging, only available on arm64 requires sanitizer.memtag: true if set, enables sync memory tagging
 misc_undefined list of string, List of specific undefined behavior sanitizers to enable in diagnostic mode
 no_recover list of string, List of sanitizers to pass to -fno-sanitize-recover results in only the first detected error for these sanitizers being reported and program then exits with a non-zero exit code.
config
Sanitizers to run with flag configuration specified
 cfi_assembly_support bool, Enables CFI support flags for assembly-heavy libraries
 recover list of string, List of sanitizers to pass to -fsanitize-recover allows execution to continue for these sanitizers to detect multiple errors rather than only the first one
 blocklist string, value to pass to -fsanitize-ignorelist
 sdk_variant_only bool, If true, always create an sdk variant and don't create a platform variant.
 sdk_version string, The API level that this module is built against. The APIs of this API level will be visible at build time, but use of any APIs newer than min_sdk_version will render the module unloadable on older devices. In the future it will be possible to weakly-link new APIs, making the behavior match Java: such modules will load on older devices, but calling new APIs on devices that do not support them will result in a crash. This property has the same behavior as sdk_version does for Java modules. For those familiar with Android Gradle, the property behaves similarly to how compileSdkVersion does for Java code. In addition, setting this property causes two variants to be built, one for the platform and one for apps.
 shared_libs configurable list of string, list of modules that should be dynamically linked into this module.
 soc_specific bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist).
static StaticOrSharedProperties
 srcs configurable list of string
 tidy_disabled_srcs list of string
 tidy_timeout_srcs list of string
sanitized Sanitized
none
 srcs list of string
address
 srcs list of string
hwaddress
 srcs list of string
 cflags configurable list of string
 enabled bool
 whole_static_libs configurable list of string
 static_libs configurable list of string
 shared_libs configurable list of string
 system_shared_libs list of string
 export_shared_lib_headers list of string
 export_static_lib_headers list of string
 apex_available list of string
 installable bool
 static_libs configurable list of string, list of modules that should be statically linked into this module.
 static_ndk_lib bool
 stem string, set the name of the output
 stl string, Select the STL library to use. Possible values are "libc++", "libc++_static", "libstdc++", or "none". Leave blank to select the default.
strip
 none bool, Device modules default to stripping enabled leaving mini debuginfo. Host modules default to stripping disabled, but can be enabled by setting any other strip boolean property.
 all bool, all forces stripping everything, including the mini debug info.
 keep_symbols bool, keep_symbols enables stripping but keeps all symbols.
 keep_symbols_list list of string, keep_symbols_list specifies a list of symbols to keep if keep_symbols is enabled. If it is unset then all symbols are kept.
 keep_symbols_and_debug_frame bool, keep_symbols_and_debug_frame enables stripping but keeps all symbols and debug frames.
stubs StubsProperties
Generate stubs to make this library accessible to APEXes.
 symbol_file string, Relative path to the symbol map. The symbol map provides the list of symbols that are exported for stubs variant of this library.
 versions list of string, List versions to generate stubs libs for. The version name "current" is always implicitly added.
 implementation_installable bool, Whether to not require the implementation of the library to be installed if a client of the stubs is installed. Defaults to true; set to false if the implementation is made available by some other means, e.g. in a Microdroid virtual machine.
 suffix string, set suffix of the name of the output
 system_dlkm_specific bool, Install to partition system_dlkm when set to true.
 system_ext_specific bool, whether this module extends system. When set to true, it is installed into /system_ext (or /system/system_ext if system_ext partition does not exist).
 system_shared_libs list of string, list of system libraries that will be dynamically linked to shared library and executable modules. If unset, generally defaults to libc, libm, and libdl. Set to [] to prevent linking against the defaults.
 target interface
target.android
 compile_multilib string
 enabled bool
target.apex
 exclude_shared_libs list of string, list of shared libs that should not be used to build the apex variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the apex variant of the C/C++ module.
target.host
 compile_multilib string
target.non_apex
 exclude_shared_libs list of string, list of shared libs that should not be used to build the non-apex variant of the C/C++ module.
target.platform
 cflags list of string, List of additional cflags that should be used to build the platform variant of the C/C++ module.
header_abi_checker headerAbiCheckerProperties
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 required list of string, List of modules required by the core variant.
 exclude_required list of string, List of modules not required by the core variant.
 shared_libs list of string, list of shared libs that should be use to build the platform variant of a module that sets sdk_version. This should rarely be necessary, in most cases the same libraries are available for the SDK and platform variants.
 header_libs list of string, list of ehader libs that only should be used to build platform variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the platform variant of the C/C++ module.
target.product
 suffix string, set suffix of the name of the output
header_abi_checker headerAbiCheckerProperties
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 no_stubs bool, Disable stubs for vendor/product variants This is a workaround to keep `stubs` only for "core" variant (not product/vendor). It would be nice if we could put `stubs` into a `target: { core: {} }` block but it's not supported in soong yet. This could be removed/simplified once we have a better syntax.
 shared_libs list of string, list of shared libs that only should be used to build vendor or product variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build vendor or product variant of the C/C++ module.
 header_libs list of string, list of header libs that only should be used to build vendor or product variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor or product variant of the C/C++ module.
 version_script string, version script for vendor or product variant
 srcs list of string, list of source files that should only be used in vendor or product variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build vendor or product variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build vendor or product variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build vendor or product variant of the C/C++ module.
 override_export_include_dirs list of string, list of exported include directories, like export_include_dirs, that will be applied to vendor or product variant of this library. This will overwrite any other declarations.
target.ramdisk
 static_libs list of string, list of static libs that only should be used to build the ramdisk variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the ramdisk variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the ramdisk variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the ramdisk variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build the ramdisk variants of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the ramdisk variants of the C/C++ module.
target.recovery
 required list of string, List of modules required by the recovery variant.
 exclude_required list of string, List of modules not required by the recovery variant.
 srcs list of string, list of source files that should only be used in the recovery variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build the recovery variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the recovery variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build the recovery variant of the C/C++ module.
 shared_libs list of string, list of shared libs that only should be used to build the recovery variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build the recovery variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the recovery variant of the C/C++ module.
target.vendor
 srcs list of string, list of source files that should only be used in vendor or product variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build vendor or product variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build vendor or product variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build vendor or product variant of the C/C++ module.
 override_export_include_dirs list of string, list of exported include directories, like export_include_dirs, that will be applied to vendor or product variant of this library. This will overwrite any other declarations.
 shared_libs list of string, list of shared libs that only should be used to build vendor or product variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build vendor or product variant of the C/C++ module.
 header_libs list of string, list of header libs that only should be used to build vendor or product variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor or product variant of the C/C++ module.
 version_script string, version script for vendor or product variant
 suffix string, set suffix of the name of the output
header_abi_checker headerAbiCheckerProperties
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 no_stubs bool, Disable stubs for vendor/product variants This is a workaround to keep `stubs` only for "core" variant (not product/vendor). It would be nice if we could put `stubs` into a `target: { core: {} }` block but it's not supported in soong yet. This could be removed/simplified once we have a better syntax.
target.vendor_ramdisk
 exclude_srcs list of string, list of source files that should not be used to build the ramdisk variants of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the ramdisk variants of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the vendor ramdisk variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the vendor ramdisk variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor ramdisk variant of the C/C++ module.
 target_required list of string, names of other modules to install on target if this module is installed
 team string, The team (defined by the owner/vendor) who owns the property.
 test_only bool, Indicates that the module and its source code are only used in tests, not production code. Used by coverage reports and potentially other tools.
 tidy bool, whether to run clang-tidy over C-like sources.
 tidy_checks list of string, Extra checks to enable or disable in clang-tidy
 tidy_checks_as_errors list of string, Checks that should be treated as errors.
 tidy_disabled_srcs list of string, list of source files that should not be compiled with clang-tidy.
 tidy_flags list of string, Extra flags to pass to clang-tidy
 tidy_timeout_srcs list of string, list of source files that should not be compiled by clang-tidy when TIDY_TIMEOUT is set.
 unexported_symbols_list string, local file name to pass to the linker as -unexported_symbols_list
 unique_host_soname bool, rename host libraries to prevent overlap with system installed libraries
 use_generic_config bool, Set to true if this module must be generic and does not require product-specific information. To be included in the system image, this property must be set to true.
 use_version_lib bool, make android::build:GetBuildNumber() available containing the build ID.
 vendor bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist). Use `soc_specific` instead for better meaning.
 vendor_available bool, whether this module should be allowed to be directly depended by other modules with `vendor: true`, `proprietary: true`, or `vendor_available:true`. If set to true, two variants will be built separately, one like normal, and the other limited to the set of libraries and headers that are exposed to /vendor modules. The vendor variant may be used with a different (newer) /system, so it shouldn't have any unversioned runtime dependencies, or make assumptions about the system that may not be true in the future. If set to false, this module becomes inaccessible from /vendor modules. The modules with vndk: {enabled: true} must define 'vendor_available' to 'true'. Nothing happens if BOARD_VNDK_VERSION isn't set in the BoardConfig.mk
 vendor_dlkm_specific bool, Install to partition vendor_dlkm when set to true.
vendor_public_library vendorPublicLibraryProperties
If this is a vendor public library, properties to describe the vendor public library stubs.
 symbol_file string, Relative path to the symbol map.
 unversioned bool, Whether the system library uses symbol versions.
 export_public_headers list of string, list of header libs to re-export include directories from.
 override_export_include_dirs list of string, list of directories relative to the Blueprints file that willbe added to the include path (using -I) for any module that links against the LLNDK variant of this module, replacing any that were listed outside the llndk clause.
 vendor_ramdisk bool, Whether this module is installed to vendor ramdisk
 vendor_ramdisk_available bool, Make this module available when building for vendor ramdisk. On device without a dedicated recovery partition, the module is only available after switching root into /first_stage_ramdisk. To expose the module before switching root, install the recovery variant instead.
 version_script string, local file name to pass to the linker as --version-script. Not supported on darwin, and will fail to build if provided to the darwin variant of a module.
 vintf_fragment_modules configurable list of string, vintf_fragment Modules required from this module.
 vintf_fragments configurable list of string, VINTF manifest fragments to be installed if this module is installed
 visibility list of string, Controls the visibility of this module to other modules. Allowable values are one or more of these formats:

 ["//visibility:public"]: Anyone can use this module.
 ["//visibility:private"]: Only rules in the module's package (not its subpackages) can use
     this module.
 ["//visibility:override"]: Discards any rules inherited from defaults or a creating module.
     Can only be used at the beginning of a list of visibility rules.
 ["//some/package:__pkg__", "//other/package:__pkg__"]: Only modules in some/package and
     other/package (defined in some/package/*.bp and other/package/*.bp) have access to
     this module. Note that sub-packages do not have access to the rule; for example,
     //some/package/foo:bar or //other/package/testing:bla wouldn't have access. __pkg__
     is a special module and must be used verbatim. It represents all of the modules in the
     package.
 ["//project:__subpackages__", "//other:__subpackages__"]: Only modules in packages project
     or other or in one of their sub-packages have access to this module. For example,
     //project:rule, //project/library:lib or //other/testing/internal:munge are allowed
     to depend on this rule (but not //independent:evil)
 ["//project"]: This is shorthand for ["//project:__pkg__"]
 [":__subpackages__"]: This is shorthand for ["//project:__subpackages__"] where
     //project is the module's package. e.g. using [":__subpackages__"] in
     packages/apps/Settings/Android.bp is equivalent to
     //packages/apps/Settings:__subpackages__.
 ["//visibility:legacy_public"]: The default visibility, behaves as //visibility:public
     for now. It is an error if it is used in a module.

If a module does not specify the `visibility` property then it uses the `default_visibility` property of the `package` module in the module's package. If the `default_visibility` property is not set for the module's package then it will use the `default_visibility` of its closest ancestor package for which a `default_visibility` property is specified. If no `default_visibility` property can be found then the module uses the global default of `//visibility:legacy_public`. The `visibility` property has no effect on a defaults module although it does apply to any non-defaults module that uses it. To set the visibility of a defaults module, use the `defaults_visibility` property on the defaults module; not to be confused with the `default_visibility` property on the package module. See https://android.googlesource.com/platform/build/soong/+/main/README.md#visibility for more details.
 whole_program_vtables bool, Use -fwhole-program-vtables cflag.
 whole_static_libs configurable list of string, list of modules whose object files should be linked into this module in their entirety. For static library modules, all of the .o files from the intermediate directory of the dependency will be linked into this modules .a file. For a shared library, the dependency's .a file will be linked into this module using -Wl,--whole-archive.
 yacc YaccProperties

cc_library_shared

cc_library_shared creates a shared library for a device and/or host.
 name string, The name of the module. Must be unique across all modules.
 srcs configurable list of string, list of source files used to compile the C/C++ module. May be .c, .cpp, or .S files. srcs may reference the outputs of other modules that produce source files like genrule or filegroup using the syntax ":module".
 exclude_srcs configurable list of string, list of source files that should not be used to build the C/C++ module. This is most useful in the arch/multilib variants to remove non-common files
 defaults list of string
 host_supported bool, If set to true, build a variant of the module for the host. Defaults to false.
 device_supported bool, If set to true, build a variant of the module for the device. Defaults to true.
 afdo bool, Afdo allows developers self-service enroll for automatic feedback-directed optimization using profile data.
aidl
 libs list of string, List of aidl_library modules
 include_dirs list of string, list of directories that will be added to the aidl include paths.
 local_include_dirs list of string, list of directories relative to the Blueprints file that will be added to the aidl include paths.
 generate_traces bool, whether to generate traces (for systrace) for this interface
 flags list of string, list of flags that will be passed to the AIDL compiler
 export_aidl_headers bool, export headers generated from .aidl sources
 allow_undefined_symbols bool, allow the module to contain undefined symbols. By default, modules cannot contain undefined symbols that are not satisified by their immediate dependencies. Set this flag to true to remove --no-undefined from the linker flags. This flag should only be necessary for compiling low-level libraries like libc.
 apex_available list of string, Availability of this module in APEXes. Only the listed APEXes can contain this module. If the module has stubs then other APEXes and the platform may access it through them (subject to visibility). "//apex_available:anyapex" is a pseudo APEX name that matches to any APEX. "//apex_available:platform" refers to non-APEX partitions like "system.img". Prefix pattern (com.foo.*) can be used to match with any APEX name with the prefix(com.foo.). Default is ["//apex_available:platform"].
 arch interface
 asflags list of string, list of module-specific flags that will be used for .S compiles
 bootstrap bool, Allows this module to use non-APEX version of libraries. Useful for building binaries that are started before APEXes are activated.
 bpf_target bool, cc Build rules targeting BPF must set this to true. The correct fix is to ban targeting bpf in cc rules instead use bpf_rules. (b/323415017)
buildstubs bool
 bool bool
 c_std string, C standard version to use. Can be a specific version (such as "gnu11"), "experimental" (which will use draft versions like C1x when available), or the empty string (which will use the default).
 cflags configurable list of string, list of module-specific flags that will be used for C and C++ compiles.
 clang bool, Deprecated. true is the default, false is invalid.
 clang_asflags list of string, list of module-specific flags that will be used for .S compiles when compiling with clang
 clang_cflags list of string, list of module-specific flags that will be used for C and C++ compiles when compiling with clang
 clang_verify bool, Add "-Xclang -verify" to the cflags and appends "touch $out" to the clang command line.
 cmake_snapshot_supported bool, Allows this module to be included in CMake release snapshots to be built outside of Android build system and source tree.
 compile_multilib string, control whether this module compiles for 32-bit, 64-bit, or both. Possible values are "32" (compile for 32-bit only), "64" (compile for 64-bit only), "both" (compile for both architectures), or "first" (compile for 64-bit on a 64-bit platform, and 32-bit on a 32-bit platform).
 conlyflags list of string, list of module-specific flags that will be used for C compiles
 cpp_std string, C++ standard version to use. Can be a specific version (such as "gnu++11"), "experimental" (which will use draft versions like C++1z when available), or the empty string (which will use the default).
 cppflags configurable list of string, list of module-specific flags that will be used for C++ compiles
 debug_ramdisk bool, Whether this module is installed to debug ramdisk
 device_first_generated_headers configurable list of string, Same as generated_headers, but the dependencies will be added based on the first supported arch variant and the device os variant. This can be useful for creating a host tool that embeds a copy of a device tool, that it then extracts and pushes to a device at runtime.
 device_specific bool, whether this module is specific to a device, not only for SoC, but also for off-chip peripherals. When set to true, it is installed into /odm (or /vendor/odm if odm partition does not exist, or /system/vendor/odm if both odm and vendor partitions do not exist). This implies `soc_specific:true`.
dist Dist
configuration to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 targets list of string, Copy the output of this module to the $DIST_DIR when `dist` is specified on the command line and any of these targets are also on the command line, or otherwise built
 dest string, The name of the output artifact. This defaults to the basename of the output of the module.
 dir string, The directory within the dist directory to store the artifact. Defaults to the top level directory ("").
 suffix string, A suffix to add to the artifact file name (before any extension).
 append_artifact_with_product bool, If true, then the artifact file will be appended with _<product name>. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be foo_coral.apk. If false, there is no change to the artifact file name.
 prepend_artifact_with_product bool, If true, then the artifact file will be prepended with <product name>-. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be coral-foo.apk. If false, there is no change to the artifact file name.
 tag string, A string tag to select the OutputFiles associated with the tag. If no tag is specified then it will select the default dist paths provided by the module type. If a tag of "" is specified then it will return the default output files provided by the modules, i.e. the result of calling OutputFiles("").
 dists list of Dist, a list of configurations to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 double_loadable bool, whether this module is capable of being loaded with other instance (possibly an older version) of the same module in the same process. Currently, a shared library that is a member of VNDK (vndk: {enabled: true}) can be double loaded in a vendor process if the library is also a (direct and indirect) dependency of an LLNDK library. Such libraries must be explicitly marked as `double_loadable: true` by the owner, or the dependency from the LLNDK lib should be cut if the lib is not designed to be double loaded.
 dynamic_list string, local file name to pass to the linker as --dynamic-list. Not supported on darwin, and will fail to build if provided to the darwin variant of a module.
 enabled configurable bool, emit build rules for this module Disabling a module should only be done for those modules that cannot be built in the current environment. Modules that can build in the current environment but are not usually required (e.g. superceded by a prebuilt) should not be disabled as that will prevent them from being built by the checkbuild target and so prevent early detection of changes that have broken those modules.
 exclude_generated_sources list of string, list of generated sources that should not be used to build the C/C++ module. This is most useful in the arch/multilib variants to remove non-common files
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with this module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build this module
 exclude_static_libs list of string, list of static libs that should not be used to build this module
 export_cflags list of string, list of plain cc flags to be used for any module that links against this module.
 export_generated_headers list of string, list of generated headers to re-export include directories from. Entries must be present in generated_headers.
 export_header_lib_headers configurable list of string, list of header libraries to re-export include directories from. Entries must be present in header_libs.
 export_include_dirs configurable list of string, list of directories relative to the Blueprints file that will be added to the include path (using -I) for this module and any module that links against this module. Directories listed in export_include_dirs do not need to be listed in local_include_dirs.
 export_shared_lib_headers list of string, list of shared libraries to re-export include directories from. Entries must be present in shared_libs.
 export_static_lib_headers list of string, list of static libraries to re-export include directories from. Entries must be present in static_libs.
 export_system_include_dirs list of string, list of directories that will be added to the system include path using -isystem for this module and any module that links against this module.
 exported_symbols_list string, local file name to pass to the linker as -exported_symbols_list
 force_symbols_not_weak_list string, local file name to pass to the linker as -force_symbols_not_weak_list
 force_symbols_weak_list string, local file name to pass to the linker as -force_symbols_weak_list
 generated_headers configurable list of string, list of generated headers to add to the include path. These are the names of genrule modules.
 generated_sources list of string, list of generated sources to compile. These are the names of gensrcs or genrule modules.
 gnu_extensions bool, if set to false, use -std=c++* instead of -std=gnu++*
 group_static_libs bool, deprecated and ignored because lld makes it unnecessary. See b/189475744.
header_abi_checker headerAbiCheckerProperties
Properties for ABI compatibility checker.
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 header_libs configurable list of string, list of modules that should only provide headers for this module.
 host_cross_supported bool, If set to true, build a variant of the module for the host cross. Defaults to true.
 host_ldlibs list of string, -l arguments to pass to linker for host-provided shared libraries
 host_required list of string, names of other modules to install on host if this module is installed
 ignore_max_page_size bool, ignore max page size. By default, max page size must be the max page size set for the target.
 include_build_directory bool, Add the directory containing the Android.bp file to the list of include directories. Defaults to true.
 include_dirs configurable list of string, list of directories relative to the root of the source tree that will be added to the include path using -I. If possible, don't use this. If adding paths from the current directory use local_include_dirs, if adding paths from other modules use export_include_dirs in that module.
 init_rc configurable list of string, init.rc files to be installed if this module is installed
 inject_bssl_hash bool, Inject boringssl hash into the shared library. This is only intended for use by external/boringssl.
 install_in_root bool, Install output directly in {partition}/, not in any subdir. This is only intended for use by init_first_stage.
 install_in_xbin bool, Install output directly in {partition}/xbin
 installable bool
 instruction_set string, the instruction set architecture to use to compile the C/C++ module.
 ldflags list of string, list of module-specific flags that will be used for all link steps
 lex LexProperties
 licenses list of string, Describes the licenses applicable to this module. Must reference license modules.
 linker_scripts list of string, local files to pass to the linker as --script. Not supported on darwin or windows, and will fail to build if provided to the darwin or windows variant of a module.
llndk llndkLibraryProperties
If this is an LLNDK library, properties to describe the LLNDK stubs. Will be copied from the module pointed to by llndk_stubs if it is set.
 symbol_file string, Relative path to the symbol map. An example file can be seen here: TODO(danalbert): Make an example.
 export_headers_as_system bool, Whether to export any headers as -isystem instead of -I. Mainly for use by bionic/libc.
 unversioned bool, Whether the system library uses symbol versions.
 export_llndk_headers list of string, list of llndk headers to re-export include directories from.
 override_export_include_dirs list of string, list of directories relative to the Blueprints file that willbe added to the include path (using -I) for any module that links against the LLNDK variant of this module, replacing any that were listed outside the llndk clause.
 private bool, whether this module can be directly depended upon by libs that are installed to /vendor and /product. When set to true, this module can only be depended on by VNDK libraries, not vendor nor product libraries. This effectively hides this module from non-system modules. Default value is false.
 llndk_headers bool, if true, make this module available to provide headers to other modules that set llndk.symbol_file.
 moved_to_apex bool, moved_to_apex marks this module has having been distributed through an apex module.
 local_include_dirs configurable list of string, list of directories relative to the Blueprints file that will be added to the include path using -I
 logtags list of string, *.logtags files, to combine together in order to generate the /system/etc/event-log-tags file
lto
Lto must violate capitalization style for acronyms so that it can be referred to in blueprint files as "lto"
 never bool
 thin bool
 lto_O0 bool, Use --lto-O0 flag.
 min_sdk_version string, Minimum OS API level supported by this C or C++ module. This property becomes the value of the __ANDROID_API__ macro. When the C or C++ module is included in an APEX or an APK, this property is also used to ensure that the min_sdk_version of the containing module is not older (i.e. less) than this module's min_sdk_version. When not set, this property defaults to the value of sdk_version. When this is set to "apex_inherit", this tracks min_sdk_version of the containing APEX. When the module is not built for an APEX, "apex_inherit" defaults to sdk_version.
 multilib interface
 native_bridge_supported bool, Whether this module is built for non-native architectures (also known as native bridge binary)
 native_coverage bool
 no_crt_pad_segment bool, don't link in crt_pad_segment. This flag is currently only used internal to soong for testing and for vndk prebuilt shared libraries.
 no_full_install bool, When set to true, this module is not installed to the full install path (ex: under out/target/product/<name>/<partition>). It can be installed only to the packaging modules like android_filesystem.
 no_libcrt bool, don't link in libclang_rt.builtins-*.a
 nocrt bool, don't link in crt_begin and crt_end. This flag should only be necessary for compiling crt or libc.
 odm_available bool, This is the same as the "vendor_available" except that the install path of the vendor variant is /odm or /vendor/odm. By replacing "vendor_available: true" with "odm_available: true", the module will install its vendor variant to the /odm partition or /vendor/odm. As the modules with "odm_available: true" still create the vendor variants, they can link to the other vendor modules as the vendor_available modules do. Also, the vendor modules can link to odm_available modules. It may not be used for VNDK modules.
 odm_dlkm_specific bool, Install to partition odm_dlkm when set to true.
 openmp bool, Build and link with OpenMP
 optimize_for_size bool, Aggresively trade performance for smaller binary size. This should only be used for on-device binaries that are rarely executed and not performance critical.
orderfile
 instrumentation bool
 order_file_path string
 load_order_file bool
 cflags list of string, Additional compiler flags to use when building this module for orderfile profiling.
 overrides list of string, List of module names that are prevented from being installed when this module gets installed.
 owner string, vendor who owns this module
 pack_relocations bool, Generate compact dynamic relocation table, default true.
 product_available bool, whether this module should be allowed to be directly depended by other modules with `product_specific: true` or `product_available: true`. If set to true, an additional product variant will be built separately that is limited to the set of libraries and headers that are exposed to /product modules. The product variant may be used with a different (newer) /system, so it shouldn't have any unversioned runtime dependencies, or make assumptions about the system that may not be true in the future. If set to false, this module becomes inaccessible from /product modules. Different from the 'vendor_available' property, the modules with vndk: {enabled: true} don't have to define 'product_available'. The VNDK library without 'product_available' may not be depended on by any other modules that has product variants including the product available VNDKs. Nothing happens if BOARD_VNDK_VERSION isn't set in the BoardConfig.mk and PRODUCT_PRODUCT_VNDK_VERSION isn't set.
 product_specific bool, whether this module is specific to a software configuration of a product (e.g. country, network operator, etc). When set to true, it is installed into /product (or /system/product if product partition does not exist).
product_variables.arc
cflags
  []string
exclude_srcs
  []string
header_libs
  []string
include_dirs
  []string
shared_libs
  []string
static_libs
  []string
srcs
  []string
whole_static_libs
  []string
product_variables.binder32bit
cflags
  []string
product_variables.build_from_text_stub
static_libs
  []string
exclude_static_libs
  []string
product_variables.debuggable
cflags
  []string
cppflags
  []string
init_rc
  []string
required
  []string
host_required
  []string
target_required
  []string
strip.all
  *bool
strip.keep_symbols
  *bool
strip.keep_symbols_and_debug_frame
  *bool
static_libs
  []string
exclude_static_libs
  []string
whole_static_libs
  []string
shared_libs
  []string
srcs
  []string
exclude_srcs
  []string
product_variables.enforce_vintf_manifest
cflags
  []string
product_variables.eng
cflags
  []string
cppflags
  []string
lto.never
  *bool
sanitize.address
  *bool
product_variables.malloc_low_memory
cflags
  []string
shared_libs
  []string
whole_static_libs
  []string
static_libs
  []string
exclude_static_libs
  []string
srcs
  []string
header_libs
  []string
product_variables.malloc_pattern_fill_contents
cflags
  []string
product_variables.malloc_zero_contents
cflags
  []string
product_variables.native_coverage
srcs
  []string
exclude_srcs
  []string
product_variables.override_rs_driver
cflags
  []string
product_variables.platform_sdk_version
asflags
  []string
cflags
  []string
product_variables.release_aidl_use_unfrozen
cflags
  []string
required
  []string
vintf_fragment_modules
  []string
product_variables.safestack
cflags
  []string
product_variables.selinuxignoreneverallows
required
  []string
product_variables.shipping_api_level
cflags
  []string
product_variables.treble_linker_namespaces
cflags
  []string
product_variables.uml
cppflags
  []string
product_variables.unbundled_build
enabled Configurable[bool]
 Configurable[bool] proptools.Configurable[bool]
 proprietary bool, whether this is a proprietary vendor module, and should be installed into /vendor
proto
 type string, Proto generator type. C++: full or lite. Java: micro, nano, stream, or lite.
 plugin string, Proto plugin to use as the generator. Must be a cc_binary_host module.
 include_dirs list of string, list of directories that will be added to the protoc include paths.
 local_include_dirs list of string, list of directories relative to the bp file that will be added to the protoc include paths.
 canonical_path_from_root bool, whether to identify the proto files from the root of the source tree (the original method in Android, useful for android-specific protos), or relative from where they were specified (useful for external/third party protos). This defaults to true today, but is expected to default to false in the future.
 export_proto_headers bool, export headers generated from .proto sources
 static bool, Link statically against the protobuf runtime
 ramdisk bool, Whether this module is installed to ramdisk
 ramdisk_available bool, Make this module available when building for ramdisk. On device without a dedicated recovery partition, the module is only available after switching root into /first_stage_ramdisk. To expose the module before switching root, install the recovery variant instead.
 recovery bool, Whether this module is installed to recovery partition
 recovery_available bool, Make this module available when building for recovery
 relative_install_path string, install to a subdirectory of the default install path for the module
renderscript
 include_dirs list of string, list of directories that will be added to the llvm-rs-cc include paths
 flags list of string, list of flags that will be passed to llvm-rs-cc
 target_api string, Renderscript API level to target
 required configurable list of string, names of other modules to install if this module is installed
 rtti bool, pass -frtti instead of -fno-rtti
 runtime_libs list of string, list of modules that should be installed with this module. This is similar to 'required' but '.vendor' suffix will be appended to the module names if the shared libraries have vendor variants and this module uses VNDK.
sanitize SanitizeUserProps
 never bool, Prevent use of any sanitizers on this module
 address bool, ASan (Address sanitizer), incompatible with static binaries. Always runs in a diagnostic mode. Use of address sanitizer disables cfi sanitizer. Hwaddress sanitizer takes precedence over this sanitizer.
 thread bool, TSan (Thread sanitizer), incompatible with static binaries and 32 bit architectures. Always runs in a diagnostic mode. Use of thread sanitizer disables cfi and scudo sanitizers. Hwaddress sanitizer takes precedence over this sanitizer.
 hwaddress bool, HWASan (Hardware Address sanitizer). Use of hwasan sanitizer disables cfi, address, thread, and scudo sanitizers.
 all_undefined bool, Undefined behavior sanitizer
 undefined bool, Subset of undefined behavior sanitizer
 misc_undefined list of string, List of specific undefined behavior sanitizers to enable
 fuzzer bool, Fuzzer, incompatible with static binaries.
 safestack bool, safe-stack sanitizer, incompatible with 32-bit architectures.
 cfi bool, cfi sanitizer, incompatible with asan, hwasan, fuzzer, or Darwin
 integer_overflow bool, signed/unsigned integer overflow sanitizer, incompatible with Darwin.
 scudo bool, scudo sanitizer, incompatible with asan, hwasan, tsan This should not be used in Android 11+ : https://source.android.com/devices/tech/debug/scudo deprecated
 scs bool, shadow-call-stack sanitizer, only available on arm64/riscv64.
 memtag_heap bool, Memory-tagging, only available on arm64 if diag.memtag unset or false, enables async memory tagging
 memtag_stack bool, Memory-tagging stack instrumentation, only available on arm64 Adds instrumentation to detect stack buffer overflows and use-after-scope using MTE.
 memtag_globals bool, Memory-tagging globals instrumentation, only available on arm64 Adds instrumentation to detect global buffer overflows using MTE.
 writeonly bool, A modifier for ASAN and HWASAN for write only instrumentation
diag
Sanitizers to run in the diagnostic mode (as opposed to the release mode). Replaces abort() on error with a human-readable error message. Address and Thread sanitizers always run in diagnostic mode.
 undefined bool, Undefined behavior sanitizer, diagnostic mode
 cfi bool, cfi sanitizer, diagnostic mode, incompatible with asan, hwasan, fuzzer, or Darwin
 integer_overflow bool, signed/unsigned integer overflow sanitizer, diagnostic mode, incompatible with Darwin.
 memtag_heap bool, Memory-tagging, only available on arm64 requires sanitizer.memtag: true if set, enables sync memory tagging
 misc_undefined list of string, List of specific undefined behavior sanitizers to enable in diagnostic mode
 no_recover list of string, List of sanitizers to pass to -fno-sanitize-recover results in only the first detected error for these sanitizers being reported and program then exits with a non-zero exit code.
config
Sanitizers to run with flag configuration specified
 cfi_assembly_support bool, Enables CFI support flags for assembly-heavy libraries
 recover list of string, List of sanitizers to pass to -fsanitize-recover allows execution to continue for these sanitizers to detect multiple errors rather than only the first one
 blocklist string, value to pass to -fsanitize-ignorelist
 sdk_variant_only bool, If true, always create an sdk variant and don't create a platform variant.
 sdk_version string, The API level that this module is built against. The APIs of this API level will be visible at build time, but use of any APIs newer than min_sdk_version will render the module unloadable on older devices. In the future it will be possible to weakly-link new APIs, making the behavior match Java: such modules will load on older devices, but calling new APIs on devices that do not support them will result in a crash. This property has the same behavior as sdk_version does for Java modules. For those familiar with Android Gradle, the property behaves similarly to how compileSdkVersion does for Java code. In addition, setting this property causes two variants to be built, one for the platform and one for apps.
shared StaticOrSharedProperties
 srcs configurable list of string
 tidy_disabled_srcs list of string
 tidy_timeout_srcs list of string
sanitized Sanitized
none
 srcs list of string
address
 srcs list of string
hwaddress
 srcs list of string
 cflags configurable list of string
 enabled bool
 whole_static_libs configurable list of string
 static_libs configurable list of string
 shared_libs configurable list of string
 system_shared_libs list of string
 export_shared_lib_headers list of string
 export_static_lib_headers list of string
 apex_available list of string
 installable bool
 shared_libs configurable list of string, list of modules that should be dynamically linked into this module.
 soc_specific bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist).
 static_libs configurable list of string, list of modules that should be statically linked into this module.
 static_ndk_lib bool
 stem string, set the name of the output
 stl string, Select the STL library to use. Possible values are "libc++", "libc++_static", "libstdc++", or "none". Leave blank to select the default.
strip
 none bool, Device modules default to stripping enabled leaving mini debuginfo. Host modules default to stripping disabled, but can be enabled by setting any other strip boolean property.
 all bool, all forces stripping everything, including the mini debug info.
 keep_symbols bool, keep_symbols enables stripping but keeps all symbols.
 keep_symbols_list list of string, keep_symbols_list specifies a list of symbols to keep if keep_symbols is enabled. If it is unset then all symbols are kept.
 keep_symbols_and_debug_frame bool, keep_symbols_and_debug_frame enables stripping but keeps all symbols and debug frames.
stubs StubsProperties
Generate stubs to make this library accessible to APEXes.
 symbol_file string, Relative path to the symbol map. The symbol map provides the list of symbols that are exported for stubs variant of this library.
 versions list of string, List versions to generate stubs libs for. The version name "current" is always implicitly added.
 implementation_installable bool, Whether to not require the implementation of the library to be installed if a client of the stubs is installed. Defaults to true; set to false if the implementation is made available by some other means, e.g. in a Microdroid virtual machine.
 suffix string, set suffix of the name of the output
 system_dlkm_specific bool, Install to partition system_dlkm when set to true.
 system_ext_specific bool, whether this module extends system. When set to true, it is installed into /system_ext (or /system/system_ext if system_ext partition does not exist).
 system_shared_libs list of string, list of system libraries that will be dynamically linked to shared library and executable modules. If unset, generally defaults to libc, libm, and libdl. Set to [] to prevent linking against the defaults.
 target interface
target.android
 compile_multilib string
 enabled bool
target.apex
 exclude_shared_libs list of string, list of shared libs that should not be used to build the apex variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the apex variant of the C/C++ module.
target.host
 compile_multilib string
target.non_apex
 exclude_shared_libs list of string, list of shared libs that should not be used to build the non-apex variant of the C/C++ module.
target.platform
header_abi_checker headerAbiCheckerProperties
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 required list of string, List of modules required by the core variant.
 exclude_required list of string, List of modules not required by the core variant.
 cflags list of string, List of additional cflags that should be used to build the platform variant of the C/C++ module.
 shared_libs list of string, list of shared libs that should be use to build the platform variant of a module that sets sdk_version. This should rarely be necessary, in most cases the same libraries are available for the SDK and platform variants.
 header_libs list of string, list of ehader libs that only should be used to build platform variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the platform variant of the C/C++ module.
target.product
 shared_libs list of string, list of shared libs that only should be used to build vendor or product variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build vendor or product variant of the C/C++ module.
 header_libs list of string, list of header libs that only should be used to build vendor or product variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor or product variant of the C/C++ module.
 version_script string, version script for vendor or product variant
 srcs list of string, list of source files that should only be used in vendor or product variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build vendor or product variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build vendor or product variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build vendor or product variant of the C/C++ module.
 override_export_include_dirs list of string, list of exported include directories, like export_include_dirs, that will be applied to vendor or product variant of this library. This will overwrite any other declarations.
 suffix string, set suffix of the name of the output
header_abi_checker headerAbiCheckerProperties
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 no_stubs bool, Disable stubs for vendor/product variants This is a workaround to keep `stubs` only for "core" variant (not product/vendor). It would be nice if we could put `stubs` into a `target: { core: {} }` block but it's not supported in soong yet. This could be removed/simplified once we have a better syntax.
target.ramdisk
 static_libs list of string, list of static libs that only should be used to build the ramdisk variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the ramdisk variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the ramdisk variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the ramdisk variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build the ramdisk variants of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the ramdisk variants of the C/C++ module.
target.recovery
 required list of string, List of modules required by the recovery variant.
 exclude_required list of string, List of modules not required by the recovery variant.
 shared_libs list of string, list of shared libs that only should be used to build the recovery variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build the recovery variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the recovery variant of the C/C++ module.
 srcs list of string, list of source files that should only be used in the recovery variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build the recovery variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the recovery variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build the recovery variant of the C/C++ module.
target.vendor
 override_export_include_dirs list of string, list of exported include directories, like export_include_dirs, that will be applied to vendor or product variant of this library. This will overwrite any other declarations.
 shared_libs list of string, list of shared libs that only should be used to build vendor or product variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build vendor or product variant of the C/C++ module.
 header_libs list of string, list of header libs that only should be used to build vendor or product variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor or product variant of the C/C++ module.
 version_script string, version script for vendor or product variant
 srcs list of string, list of source files that should only be used in vendor or product variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build vendor or product variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build vendor or product variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build vendor or product variant of the C/C++ module.
 suffix string, set suffix of the name of the output
header_abi_checker headerAbiCheckerProperties
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 no_stubs bool, Disable stubs for vendor/product variants This is a workaround to keep `stubs` only for "core" variant (not product/vendor). It would be nice if we could put `stubs` into a `target: { core: {} }` block but it's not supported in soong yet. This could be removed/simplified once we have a better syntax.
target.vendor_ramdisk
 exclude_srcs list of string, list of source files that should not be used to build the ramdisk variants of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the ramdisk variants of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the vendor ramdisk variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the vendor ramdisk variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor ramdisk variant of the C/C++ module.
 target_required list of string, names of other modules to install on target if this module is installed
 team string, The team (defined by the owner/vendor) who owns the property.
 test_only bool, Indicates that the module and its source code are only used in tests, not production code. Used by coverage reports and potentially other tools.
 tidy bool, whether to run clang-tidy over C-like sources.
 tidy_checks list of string, Extra checks to enable or disable in clang-tidy
 tidy_checks_as_errors list of string, Checks that should be treated as errors.
 tidy_disabled_srcs list of string, list of source files that should not be compiled with clang-tidy.
 tidy_flags list of string, Extra flags to pass to clang-tidy
 tidy_timeout_srcs list of string, list of source files that should not be compiled by clang-tidy when TIDY_TIMEOUT is set.
 unexported_symbols_list string, local file name to pass to the linker as -unexported_symbols_list
 unique_host_soname bool, rename host libraries to prevent overlap with system installed libraries
 use_generic_config bool, Set to true if this module must be generic and does not require product-specific information. To be included in the system image, this property must be set to true.
 use_version_lib bool, make android::build:GetBuildNumber() available containing the build ID.
 vendor bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist). Use `soc_specific` instead for better meaning.
 vendor_available bool, whether this module should be allowed to be directly depended by other modules with `vendor: true`, `proprietary: true`, or `vendor_available:true`. If set to true, two variants will be built separately, one like normal, and the other limited to the set of libraries and headers that are exposed to /vendor modules. The vendor variant may be used with a different (newer) /system, so it shouldn't have any unversioned runtime dependencies, or make assumptions about the system that may not be true in the future. If set to false, this module becomes inaccessible from /vendor modules. The modules with vndk: {enabled: true} must define 'vendor_available' to 'true'. Nothing happens if BOARD_VNDK_VERSION isn't set in the BoardConfig.mk
 vendor_dlkm_specific bool, Install to partition vendor_dlkm when set to true.
vendor_public_library vendorPublicLibraryProperties
If this is a vendor public library, properties to describe the vendor public library stubs.
 symbol_file string, Relative path to the symbol map.
 unversioned bool, Whether the system library uses symbol versions.
 export_public_headers list of string, list of header libs to re-export include directories from.
 override_export_include_dirs list of string, list of directories relative to the Blueprints file that willbe added to the include path (using -I) for any module that links against the LLNDK variant of this module, replacing any that were listed outside the llndk clause.
 vendor_ramdisk bool, Whether this module is installed to vendor ramdisk
 vendor_ramdisk_available bool, Make this module available when building for vendor ramdisk. On device without a dedicated recovery partition, the module is only available after switching root into /first_stage_ramdisk. To expose the module before switching root, install the recovery variant instead.
 version_script string, local file name to pass to the linker as --version-script. Not supported on darwin, and will fail to build if provided to the darwin variant of a module.
 vintf_fragment_modules configurable list of string, vintf_fragment Modules required from this module.
 vintf_fragments configurable list of string, VINTF manifest fragments to be installed if this module is installed
 visibility list of string, Controls the visibility of this module to other modules. Allowable values are one or more of these formats:

 ["//visibility:public"]: Anyone can use this module.
 ["//visibility:private"]: Only rules in the module's package (not its subpackages) can use
     this module.
 ["//visibility:override"]: Discards any rules inherited from defaults or a creating module.
     Can only be used at the beginning of a list of visibility rules.
 ["//some/package:__pkg__", "//other/package:__pkg__"]: Only modules in some/package and
     other/package (defined in some/package/*.bp and other/package/*.bp) have access to
     this module. Note that sub-packages do not have access to the rule; for example,
     //some/package/foo:bar or //other/package/testing:bla wouldn't have access. __pkg__
     is a special module and must be used verbatim. It represents all of the modules in the
     package.
 ["//project:__subpackages__", "//other:__subpackages__"]: Only modules in packages project
     or other or in one of their sub-packages have access to this module. For example,
     //project:rule, //project/library:lib or //other/testing/internal:munge are allowed
     to depend on this rule (but not //independent:evil)
 ["//project"]: This is shorthand for ["//project:__pkg__"]
 [":__subpackages__"]: This is shorthand for ["//project:__subpackages__"] where
     //project is the module's package. e.g. using [":__subpackages__"] in
     packages/apps/Settings/Android.bp is equivalent to
     //packages/apps/Settings:__subpackages__.
 ["//visibility:legacy_public"]: The default visibility, behaves as //visibility:public
     for now. It is an error if it is used in a module.

If a module does not specify the `visibility` property then it uses the `default_visibility` property of the `package` module in the module's package. If the `default_visibility` property is not set for the module's package then it will use the `default_visibility` of its closest ancestor package for which a `default_visibility` property is specified. If no `default_visibility` property can be found then the module uses the global default of `//visibility:legacy_public`. The `visibility` property has no effect on a defaults module although it does apply to any non-defaults module that uses it. To set the visibility of a defaults module, use the `defaults_visibility` property on the defaults module; not to be confused with the `default_visibility` property on the package module. See https://android.googlesource.com/platform/build/soong/+/main/README.md#visibility for more details.
 whole_program_vtables bool, Use -fwhole-program-vtables cflag.
 whole_static_libs configurable list of string, list of modules whose object files should be linked into this module in their entirety. For static library modules, all of the .o files from the intermediate directory of the dependency will be linked into this modules .a file. For a shared library, the dependency's .a file will be linked into this module using -Wl,--whole-archive.
 yacc YaccProperties

cc_library_static

cc_library_static creates a static library for a device and/or host binary.
 name string, The name of the module. Must be unique across all modules.
 srcs configurable list of string, list of source files used to compile the C/C++ module. May be .c, .cpp, or .S files. srcs may reference the outputs of other modules that produce source files like genrule or filegroup using the syntax ":module".
 exclude_srcs configurable list of string, list of source files that should not be used to build the C/C++ module. This is most useful in the arch/multilib variants to remove non-common files
 defaults list of string
 host_supported bool, If set to true, build a variant of the module for the host. Defaults to false.
 device_supported bool, If set to true, build a variant of the module for the device. Defaults to true.
 afdo bool, Afdo allows developers self-service enroll for automatic feedback-directed optimization using profile data.
aidl
 libs list of string, List of aidl_library modules
 include_dirs list of string, list of directories that will be added to the aidl include paths.
 local_include_dirs list of string, list of directories relative to the Blueprints file that will be added to the aidl include paths.
 generate_traces bool, whether to generate traces (for systrace) for this interface
 flags list of string, list of flags that will be passed to the AIDL compiler
 export_aidl_headers bool, export headers generated from .aidl sources
 allow_undefined_symbols bool, allow the module to contain undefined symbols. By default, modules cannot contain undefined symbols that are not satisified by their immediate dependencies. Set this flag to true to remove --no-undefined from the linker flags. This flag should only be necessary for compiling low-level libraries like libc.
 apex_available list of string, Availability of this module in APEXes. Only the listed APEXes can contain this module. If the module has stubs then other APEXes and the platform may access it through them (subject to visibility). "//apex_available:anyapex" is a pseudo APEX name that matches to any APEX. "//apex_available:platform" refers to non-APEX partitions like "system.img". Prefix pattern (com.foo.*) can be used to match with any APEX name with the prefix(com.foo.). Default is ["//apex_available:platform"].
 arch interface
 asflags list of string, list of module-specific flags that will be used for .S compiles
 bootstrap bool, Allows this module to use non-APEX version of libraries. Useful for building binaries that are started before APEXes are activated.
 bpf_target bool, cc Build rules targeting BPF must set this to true. The correct fix is to ban targeting bpf in cc rules instead use bpf_rules. (b/323415017)
buildstubs bool
 bool bool
 c_std string, C standard version to use. Can be a specific version (such as "gnu11"), "experimental" (which will use draft versions like C1x when available), or the empty string (which will use the default).
 cflags configurable list of string, list of module-specific flags that will be used for C and C++ compiles.
 clang bool, Deprecated. true is the default, false is invalid.
 clang_asflags list of string, list of module-specific flags that will be used for .S compiles when compiling with clang
 clang_cflags list of string, list of module-specific flags that will be used for C and C++ compiles when compiling with clang
 clang_verify bool, Add "-Xclang -verify" to the cflags and appends "touch $out" to the clang command line.
 cmake_snapshot_supported bool, Allows this module to be included in CMake release snapshots to be built outside of Android build system and source tree.
 compile_multilib string, control whether this module compiles for 32-bit, 64-bit, or both. Possible values are "32" (compile for 32-bit only), "64" (compile for 64-bit only), "both" (compile for both architectures), or "first" (compile for 64-bit on a 64-bit platform, and 32-bit on a 32-bit platform).
 conlyflags list of string, list of module-specific flags that will be used for C compiles
 cpp_std string, C++ standard version to use. Can be a specific version (such as "gnu++11"), "experimental" (which will use draft versions like C++1z when available), or the empty string (which will use the default).
 cppflags configurable list of string, list of module-specific flags that will be used for C++ compiles
 debug_ramdisk bool, Whether this module is installed to debug ramdisk
 device_first_generated_headers configurable list of string, Same as generated_headers, but the dependencies will be added based on the first supported arch variant and the device os variant. This can be useful for creating a host tool that embeds a copy of a device tool, that it then extracts and pushes to a device at runtime.
 device_specific bool, whether this module is specific to a device, not only for SoC, but also for off-chip peripherals. When set to true, it is installed into /odm (or /vendor/odm if odm partition does not exist, or /system/vendor/odm if both odm and vendor partitions do not exist). This implies `soc_specific:true`.
dist Dist
configuration to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 targets list of string, Copy the output of this module to the $DIST_DIR when `dist` is specified on the command line and any of these targets are also on the command line, or otherwise built
 dest string, The name of the output artifact. This defaults to the basename of the output of the module.
 dir string, The directory within the dist directory to store the artifact. Defaults to the top level directory ("").
 suffix string, A suffix to add to the artifact file name (before any extension).
 append_artifact_with_product bool, If true, then the artifact file will be appended with _<product name>. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be foo_coral.apk. If false, there is no change to the artifact file name.
 prepend_artifact_with_product bool, If true, then the artifact file will be prepended with <product name>-. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be coral-foo.apk. If false, there is no change to the artifact file name.
 tag string, A string tag to select the OutputFiles associated with the tag. If no tag is specified then it will select the default dist paths provided by the module type. If a tag of "" is specified then it will return the default output files provided by the modules, i.e. the result of calling OutputFiles("").
 dists list of Dist, a list of configurations to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 double_loadable bool, whether this module is capable of being loaded with other instance (possibly an older version) of the same module in the same process. Currently, a shared library that is a member of VNDK (vndk: {enabled: true}) can be double loaded in a vendor process if the library is also a (direct and indirect) dependency of an LLNDK library. Such libraries must be explicitly marked as `double_loadable: true` by the owner, or the dependency from the LLNDK lib should be cut if the lib is not designed to be double loaded.
 dynamic_list string, local file name to pass to the linker as --dynamic-list. Not supported on darwin, and will fail to build if provided to the darwin variant of a module.
 enabled configurable bool, emit build rules for this module Disabling a module should only be done for those modules that cannot be built in the current environment. Modules that can build in the current environment but are not usually required (e.g. superceded by a prebuilt) should not be disabled as that will prevent them from being built by the checkbuild target and so prevent early detection of changes that have broken those modules.
 exclude_generated_sources list of string, list of generated sources that should not be used to build the C/C++ module. This is most useful in the arch/multilib variants to remove non-common files
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with this module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build this module
 exclude_static_libs list of string, list of static libs that should not be used to build this module
 export_cflags list of string, list of plain cc flags to be used for any module that links against this module.
 export_generated_headers list of string, list of generated headers to re-export include directories from. Entries must be present in generated_headers.
 export_header_lib_headers configurable list of string, list of header libraries to re-export include directories from. Entries must be present in header_libs.
 export_include_dirs configurable list of string, list of directories relative to the Blueprints file that will be added to the include path (using -I) for this module and any module that links against this module. Directories listed in export_include_dirs do not need to be listed in local_include_dirs.
 export_shared_lib_headers list of string, list of shared libraries to re-export include directories from. Entries must be present in shared_libs.
 export_static_lib_headers list of string, list of static libraries to re-export include directories from. Entries must be present in static_libs.
 export_system_include_dirs list of string, list of directories that will be added to the system include path using -isystem for this module and any module that links against this module.
 exported_symbols_list string, local file name to pass to the linker as -exported_symbols_list
 force_symbols_not_weak_list string, local file name to pass to the linker as -force_symbols_not_weak_list
 force_symbols_weak_list string, local file name to pass to the linker as -force_symbols_weak_list
 generated_headers configurable list of string, list of generated headers to add to the include path. These are the names of genrule modules.
 generated_sources list of string, list of generated sources to compile. These are the names of gensrcs or genrule modules.
 gnu_extensions bool, if set to false, use -std=c++* instead of -std=gnu++*
 group_static_libs bool, deprecated and ignored because lld makes it unnecessary. See b/189475744.
header_abi_checker headerAbiCheckerProperties
Properties for ABI compatibility checker.
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 header_libs configurable list of string, list of modules that should only provide headers for this module.
 host_cross_supported bool, If set to true, build a variant of the module for the host cross. Defaults to true.
 host_ldlibs list of string, -l arguments to pass to linker for host-provided shared libraries
 host_required list of string, names of other modules to install on host if this module is installed
 ignore_max_page_size bool, ignore max page size. By default, max page size must be the max page size set for the target.
 include_build_directory bool, Add the directory containing the Android.bp file to the list of include directories. Defaults to true.
 include_dirs configurable list of string, list of directories relative to the root of the source tree that will be added to the include path using -I. If possible, don't use this. If adding paths from the current directory use local_include_dirs, if adding paths from other modules use export_include_dirs in that module.
 init_rc configurable list of string, init.rc files to be installed if this module is installed
 inject_bssl_hash bool, Inject boringssl hash into the shared library. This is only intended for use by external/boringssl.
 install_in_root bool, Install output directly in {partition}/, not in any subdir. This is only intended for use by init_first_stage.
 install_in_xbin bool, Install output directly in {partition}/xbin
 installable bool
 instruction_set string, the instruction set architecture to use to compile the C/C++ module.
 ldflags list of string, list of module-specific flags that will be used for all link steps
 lex LexProperties
 licenses list of string, Describes the licenses applicable to this module. Must reference license modules.
 linker_scripts list of string, local files to pass to the linker as --script. Not supported on darwin or windows, and will fail to build if provided to the darwin or windows variant of a module.
llndk llndkLibraryProperties
If this is an LLNDK library, properties to describe the LLNDK stubs. Will be copied from the module pointed to by llndk_stubs if it is set.
 symbol_file string, Relative path to the symbol map. An example file can be seen here: TODO(danalbert): Make an example.
 export_headers_as_system bool, Whether to export any headers as -isystem instead of -I. Mainly for use by bionic/libc.
 unversioned bool, Whether the system library uses symbol versions.
 export_llndk_headers list of string, list of llndk headers to re-export include directories from.
 override_export_include_dirs list of string, list of directories relative to the Blueprints file that willbe added to the include path (using -I) for any module that links against the LLNDK variant of this module, replacing any that were listed outside the llndk clause.
 private bool, whether this module can be directly depended upon by libs that are installed to /vendor and /product. When set to true, this module can only be depended on by VNDK libraries, not vendor nor product libraries. This effectively hides this module from non-system modules. Default value is false.
 llndk_headers bool, if true, make this module available to provide headers to other modules that set llndk.symbol_file.
 moved_to_apex bool, moved_to_apex marks this module has having been distributed through an apex module.
 local_include_dirs configurable list of string, list of directories relative to the Blueprints file that will be added to the include path using -I
 logtags list of string, *.logtags files, to combine together in order to generate the /system/etc/event-log-tags file
lto
Lto must violate capitalization style for acronyms so that it can be referred to in blueprint files as "lto"
 never bool
 thin bool
 lto_O0 bool, Use --lto-O0 flag.
 min_sdk_version string, Minimum OS API level supported by this C or C++ module. This property becomes the value of the __ANDROID_API__ macro. When the C or C++ module is included in an APEX or an APK, this property is also used to ensure that the min_sdk_version of the containing module is not older (i.e. less) than this module's min_sdk_version. When not set, this property defaults to the value of sdk_version. When this is set to "apex_inherit", this tracks min_sdk_version of the containing APEX. When the module is not built for an APEX, "apex_inherit" defaults to sdk_version.
 multilib interface
 native_bridge_supported bool, Whether this module is built for non-native architectures (also known as native bridge binary)
 native_coverage bool
 no_crt_pad_segment bool, don't link in crt_pad_segment. This flag is currently only used internal to soong for testing and for vndk prebuilt shared libraries.
 no_full_install bool, When set to true, this module is not installed to the full install path (ex: under out/target/product/<name>/<partition>). It can be installed only to the packaging modules like android_filesystem.
 no_libcrt bool, don't link in libclang_rt.builtins-*.a
 nocrt bool, don't link in crt_begin and crt_end. This flag should only be necessary for compiling crt or libc.
 odm_available bool, This is the same as the "vendor_available" except that the install path of the vendor variant is /odm or /vendor/odm. By replacing "vendor_available: true" with "odm_available: true", the module will install its vendor variant to the /odm partition or /vendor/odm. As the modules with "odm_available: true" still create the vendor variants, they can link to the other vendor modules as the vendor_available modules do. Also, the vendor modules can link to odm_available modules. It may not be used for VNDK modules.
 odm_dlkm_specific bool, Install to partition odm_dlkm when set to true.
 openmp bool, Build and link with OpenMP
 optimize_for_size bool, Aggresively trade performance for smaller binary size. This should only be used for on-device binaries that are rarely executed and not performance critical.
orderfile
 instrumentation bool
 order_file_path string
 load_order_file bool
 cflags list of string, Additional compiler flags to use when building this module for orderfile profiling.
 overrides list of string, List of module names that are prevented from being installed when this module gets installed.
 owner string, vendor who owns this module
 pack_relocations bool, Generate compact dynamic relocation table, default true.
 product_available bool, whether this module should be allowed to be directly depended by other modules with `product_specific: true` or `product_available: true`. If set to true, an additional product variant will be built separately that is limited to the set of libraries and headers that are exposed to /product modules. The product variant may be used with a different (newer) /system, so it shouldn't have any unversioned runtime dependencies, or make assumptions about the system that may not be true in the future. If set to false, this module becomes inaccessible from /product modules. Different from the 'vendor_available' property, the modules with vndk: {enabled: true} don't have to define 'product_available'. The VNDK library without 'product_available' may not be depended on by any other modules that has product variants including the product available VNDKs. Nothing happens if BOARD_VNDK_VERSION isn't set in the BoardConfig.mk and PRODUCT_PRODUCT_VNDK_VERSION isn't set.
 product_specific bool, whether this module is specific to a software configuration of a product (e.g. country, network operator, etc). When set to true, it is installed into /product (or /system/product if product partition does not exist).
product_variables.arc
cflags
  []string
exclude_srcs
  []string
header_libs
  []string
include_dirs
  []string
shared_libs
  []string
static_libs
  []string
srcs
  []string
whole_static_libs
  []string
product_variables.binder32bit
cflags
  []string
product_variables.build_from_text_stub
static_libs
  []string
exclude_static_libs
  []string
product_variables.debuggable
cflags
  []string
cppflags
  []string
init_rc
  []string
required
  []string
host_required
  []string
target_required
  []string
strip.all
  *bool
strip.keep_symbols
  *bool
strip.keep_symbols_and_debug_frame
  *bool
static_libs
  []string
exclude_static_libs
  []string
whole_static_libs
  []string
shared_libs
  []string
srcs
  []string
exclude_srcs
  []string
product_variables.enforce_vintf_manifest
cflags
  []string
product_variables.eng
cflags
  []string
cppflags
  []string
lto.never
  *bool
sanitize.address
  *bool
product_variables.malloc_low_memory
cflags
  []string
shared_libs
  []string
whole_static_libs
  []string
static_libs
  []string
exclude_static_libs
  []string
srcs
  []string
header_libs
  []string
product_variables.malloc_pattern_fill_contents
cflags
  []string
product_variables.malloc_zero_contents
cflags
  []string
product_variables.native_coverage
srcs
  []string
exclude_srcs
  []string
product_variables.override_rs_driver
cflags
  []string
product_variables.platform_sdk_version
asflags
  []string
cflags
  []string
product_variables.release_aidl_use_unfrozen
cflags
  []string
required
  []string
vintf_fragment_modules
  []string
product_variables.safestack
cflags
  []string
product_variables.selinuxignoreneverallows
required
  []string
product_variables.shipping_api_level
cflags
  []string
product_variables.treble_linker_namespaces
cflags
  []string
product_variables.uml
cppflags
  []string
product_variables.unbundled_build
enabled Configurable[bool]
 Configurable[bool] proptools.Configurable[bool]
 proprietary bool, whether this is a proprietary vendor module, and should be installed into /vendor
proto
 type string, Proto generator type. C++: full or lite. Java: micro, nano, stream, or lite.
 plugin string, Proto plugin to use as the generator. Must be a cc_binary_host module.
 include_dirs list of string, list of directories that will be added to the protoc include paths.
 local_include_dirs list of string, list of directories relative to the bp file that will be added to the protoc include paths.
 canonical_path_from_root bool, whether to identify the proto files from the root of the source tree (the original method in Android, useful for android-specific protos), or relative from where they were specified (useful for external/third party protos). This defaults to true today, but is expected to default to false in the future.
 export_proto_headers bool, export headers generated from .proto sources
 static bool, Link statically against the protobuf runtime
 ramdisk bool, Whether this module is installed to ramdisk
 ramdisk_available bool, Make this module available when building for ramdisk. On device without a dedicated recovery partition, the module is only available after switching root into /first_stage_ramdisk. To expose the module before switching root, install the recovery variant instead.
 recovery bool, Whether this module is installed to recovery partition
 recovery_available bool, Make this module available when building for recovery
 relative_install_path string, install to a subdirectory of the default install path for the module
renderscript
 include_dirs list of string, list of directories that will be added to the llvm-rs-cc include paths
 flags list of string, list of flags that will be passed to llvm-rs-cc
 target_api string, Renderscript API level to target
 required configurable list of string, names of other modules to install if this module is installed
 rtti bool, pass -frtti instead of -fno-rtti
 runtime_libs list of string, list of modules that should be installed with this module. This is similar to 'required' but '.vendor' suffix will be appended to the module names if the shared libraries have vendor variants and this module uses VNDK.
sanitize SanitizeUserProps
 never bool, Prevent use of any sanitizers on this module
 address bool, ASan (Address sanitizer), incompatible with static binaries. Always runs in a diagnostic mode. Use of address sanitizer disables cfi sanitizer. Hwaddress sanitizer takes precedence over this sanitizer.
 thread bool, TSan (Thread sanitizer), incompatible with static binaries and 32 bit architectures. Always runs in a diagnostic mode. Use of thread sanitizer disables cfi and scudo sanitizers. Hwaddress sanitizer takes precedence over this sanitizer.
 hwaddress bool, HWASan (Hardware Address sanitizer). Use of hwasan sanitizer disables cfi, address, thread, and scudo sanitizers.
 all_undefined bool, Undefined behavior sanitizer
 undefined bool, Subset of undefined behavior sanitizer
 misc_undefined list of string, List of specific undefined behavior sanitizers to enable
 fuzzer bool, Fuzzer, incompatible with static binaries.
 safestack bool, safe-stack sanitizer, incompatible with 32-bit architectures.
 cfi bool, cfi sanitizer, incompatible with asan, hwasan, fuzzer, or Darwin
 integer_overflow bool, signed/unsigned integer overflow sanitizer, incompatible with Darwin.
 scudo bool, scudo sanitizer, incompatible with asan, hwasan, tsan This should not be used in Android 11+ : https://source.android.com/devices/tech/debug/scudo deprecated
 scs bool, shadow-call-stack sanitizer, only available on arm64/riscv64.
 memtag_heap bool, Memory-tagging, only available on arm64 if diag.memtag unset or false, enables async memory tagging
 memtag_stack bool, Memory-tagging stack instrumentation, only available on arm64 Adds instrumentation to detect stack buffer overflows and use-after-scope using MTE.
 memtag_globals bool, Memory-tagging globals instrumentation, only available on arm64 Adds instrumentation to detect global buffer overflows using MTE.
 writeonly bool, A modifier for ASAN and HWASAN for write only instrumentation
diag
Sanitizers to run in the diagnostic mode (as opposed to the release mode). Replaces abort() on error with a human-readable error message. Address and Thread sanitizers always run in diagnostic mode.
 undefined bool, Undefined behavior sanitizer, diagnostic mode
 cfi bool, cfi sanitizer, diagnostic mode, incompatible with asan, hwasan, fuzzer, or Darwin
 integer_overflow bool, signed/unsigned integer overflow sanitizer, diagnostic mode, incompatible with Darwin.
 memtag_heap bool, Memory-tagging, only available on arm64 requires sanitizer.memtag: true if set, enables sync memory tagging
 misc_undefined list of string, List of specific undefined behavior sanitizers to enable in diagnostic mode
 no_recover list of string, List of sanitizers to pass to -fno-sanitize-recover results in only the first detected error for these sanitizers being reported and program then exits with a non-zero exit code.
config
Sanitizers to run with flag configuration specified
 cfi_assembly_support bool, Enables CFI support flags for assembly-heavy libraries
 recover list of string, List of sanitizers to pass to -fsanitize-recover allows execution to continue for these sanitizers to detect multiple errors rather than only the first one
 blocklist string, value to pass to -fsanitize-ignorelist
 sdk_variant_only bool, If true, always create an sdk variant and don't create a platform variant.
 sdk_version string, The API level that this module is built against. The APIs of this API level will be visible at build time, but use of any APIs newer than min_sdk_version will render the module unloadable on older devices. In the future it will be possible to weakly-link new APIs, making the behavior match Java: such modules will load on older devices, but calling new APIs on devices that do not support them will result in a crash. This property has the same behavior as sdk_version does for Java modules. For those familiar with Android Gradle, the property behaves similarly to how compileSdkVersion does for Java code. In addition, setting this property causes two variants to be built, one for the platform and one for apps.
 shared_libs configurable list of string, list of modules that should be dynamically linked into this module.
 soc_specific bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist).
static StaticOrSharedProperties
 srcs configurable list of string
 tidy_disabled_srcs list of string
 tidy_timeout_srcs list of string
sanitized Sanitized
none
 srcs list of string
address
 srcs list of string
hwaddress
 srcs list of string
 cflags configurable list of string
 enabled bool
 whole_static_libs configurable list of string
 static_libs configurable list of string
 shared_libs configurable list of string
 system_shared_libs list of string
 export_shared_lib_headers list of string
 export_static_lib_headers list of string
 apex_available list of string
 installable bool
 static_libs configurable list of string, list of modules that should be statically linked into this module.
 static_ndk_lib bool
 stem string, set the name of the output
 stl string, Select the STL library to use. Possible values are "libc++", "libc++_static", "libstdc++", or "none". Leave blank to select the default.
strip
 none bool, Device modules default to stripping enabled leaving mini debuginfo. Host modules default to stripping disabled, but can be enabled by setting any other strip boolean property.
 all bool, all forces stripping everything, including the mini debug info.
 keep_symbols bool, keep_symbols enables stripping but keeps all symbols.
 keep_symbols_list list of string, keep_symbols_list specifies a list of symbols to keep if keep_symbols is enabled. If it is unset then all symbols are kept.
 keep_symbols_and_debug_frame bool, keep_symbols_and_debug_frame enables stripping but keeps all symbols and debug frames.
stubs StubsProperties
Generate stubs to make this library accessible to APEXes.
 symbol_file string, Relative path to the symbol map. The symbol map provides the list of symbols that are exported for stubs variant of this library.
 versions list of string, List versions to generate stubs libs for. The version name "current" is always implicitly added.
 implementation_installable bool, Whether to not require the implementation of the library to be installed if a client of the stubs is installed. Defaults to true; set to false if the implementation is made available by some other means, e.g. in a Microdroid virtual machine.
 suffix string, set suffix of the name of the output
 system_dlkm_specific bool, Install to partition system_dlkm when set to true.
 system_ext_specific bool, whether this module extends system. When set to true, it is installed into /system_ext (or /system/system_ext if system_ext partition does not exist).
 system_shared_libs list of string, list of system libraries that will be dynamically linked to shared library and executable modules. If unset, generally defaults to libc, libm, and libdl. Set to [] to prevent linking against the defaults.
 target interface
target.android
 compile_multilib string
 enabled bool
target.apex
 exclude_shared_libs list of string, list of shared libs that should not be used to build the apex variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the apex variant of the C/C++ module.
target.host
 compile_multilib string
target.non_apex
 exclude_shared_libs list of string, list of shared libs that should not be used to build the non-apex variant of the C/C++ module.
target.platform
header_abi_checker headerAbiCheckerProperties
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 required list of string, List of modules required by the core variant.
 exclude_required list of string, List of modules not required by the core variant.
 cflags list of string, List of additional cflags that should be used to build the platform variant of the C/C++ module.
 shared_libs list of string, list of shared libs that should be use to build the platform variant of a module that sets sdk_version. This should rarely be necessary, in most cases the same libraries are available for the SDK and platform variants.
 header_libs list of string, list of ehader libs that only should be used to build platform variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the platform variant of the C/C++ module.
target.product
 shared_libs list of string, list of shared libs that only should be used to build vendor or product variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build vendor or product variant of the C/C++ module.
 header_libs list of string, list of header libs that only should be used to build vendor or product variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor or product variant of the C/C++ module.
 version_script string, version script for vendor or product variant
 srcs list of string, list of source files that should only be used in vendor or product variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build vendor or product variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build vendor or product variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build vendor or product variant of the C/C++ module.
 override_export_include_dirs list of string, list of exported include directories, like export_include_dirs, that will be applied to vendor or product variant of this library. This will overwrite any other declarations.
 suffix string, set suffix of the name of the output
header_abi_checker headerAbiCheckerProperties
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 no_stubs bool, Disable stubs for vendor/product variants This is a workaround to keep `stubs` only for "core" variant (not product/vendor). It would be nice if we could put `stubs` into a `target: { core: {} }` block but it's not supported in soong yet. This could be removed/simplified once we have a better syntax.
target.ramdisk
 static_libs list of string, list of static libs that only should be used to build the ramdisk variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the ramdisk variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the ramdisk variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the ramdisk variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build the ramdisk variants of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the ramdisk variants of the C/C++ module.
target.recovery
 required list of string, List of modules required by the recovery variant.
 exclude_required list of string, List of modules not required by the recovery variant.
 shared_libs list of string, list of shared libs that only should be used to build the recovery variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build the recovery variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the recovery variant of the C/C++ module.
 srcs list of string, list of source files that should only be used in the recovery variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build the recovery variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the recovery variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build the recovery variant of the C/C++ module.
target.vendor
 override_export_include_dirs list of string, list of exported include directories, like export_include_dirs, that will be applied to vendor or product variant of this library. This will overwrite any other declarations.
 shared_libs list of string, list of shared libs that only should be used to build vendor or product variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build vendor or product variant of the C/C++ module.
 header_libs list of string, list of header libs that only should be used to build vendor or product variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor or product variant of the C/C++ module.
 version_script string, version script for vendor or product variant
 srcs list of string, list of source files that should only be used in vendor or product variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build vendor or product variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build vendor or product variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build vendor or product variant of the C/C++ module.
 suffix string, set suffix of the name of the output
header_abi_checker headerAbiCheckerProperties
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 no_stubs bool, Disable stubs for vendor/product variants This is a workaround to keep `stubs` only for "core" variant (not product/vendor). It would be nice if we could put `stubs` into a `target: { core: {} }` block but it's not supported in soong yet. This could be removed/simplified once we have a better syntax.
target.vendor_ramdisk
 exclude_srcs list of string, list of source files that should not be used to build the ramdisk variants of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the ramdisk variants of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the vendor ramdisk variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the vendor ramdisk variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor ramdisk variant of the C/C++ module.
 target_required list of string, names of other modules to install on target if this module is installed
 team string, The team (defined by the owner/vendor) who owns the property.
 test_only bool, Indicates that the module and its source code are only used in tests, not production code. Used by coverage reports and potentially other tools.
 tidy bool, whether to run clang-tidy over C-like sources.
 tidy_checks list of string, Extra checks to enable or disable in clang-tidy
 tidy_checks_as_errors list of string, Checks that should be treated as errors.
 tidy_disabled_srcs list of string, list of source files that should not be compiled with clang-tidy.
 tidy_flags list of string, Extra flags to pass to clang-tidy
 tidy_timeout_srcs list of string, list of source files that should not be compiled by clang-tidy when TIDY_TIMEOUT is set.
 unexported_symbols_list string, local file name to pass to the linker as -unexported_symbols_list
 unique_host_soname bool, rename host libraries to prevent overlap with system installed libraries
 use_generic_config bool, Set to true if this module must be generic and does not require product-specific information. To be included in the system image, this property must be set to true.
 use_version_lib bool, make android::build:GetBuildNumber() available containing the build ID.
 vendor bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist). Use `soc_specific` instead for better meaning.
 vendor_available bool, whether this module should be allowed to be directly depended by other modules with `vendor: true`, `proprietary: true`, or `vendor_available:true`. If set to true, two variants will be built separately, one like normal, and the other limited to the set of libraries and headers that are exposed to /vendor modules. The vendor variant may be used with a different (newer) /system, so it shouldn't have any unversioned runtime dependencies, or make assumptions about the system that may not be true in the future. If set to false, this module becomes inaccessible from /vendor modules. The modules with vndk: {enabled: true} must define 'vendor_available' to 'true'. Nothing happens if BOARD_VNDK_VERSION isn't set in the BoardConfig.mk
 vendor_dlkm_specific bool, Install to partition vendor_dlkm when set to true.
vendor_public_library vendorPublicLibraryProperties
If this is a vendor public library, properties to describe the vendor public library stubs.
 symbol_file string, Relative path to the symbol map.
 unversioned bool, Whether the system library uses symbol versions.
 export_public_headers list of string, list of header libs to re-export include directories from.
 override_export_include_dirs list of string, list of directories relative to the Blueprints file that willbe added to the include path (using -I) for any module that links against the LLNDK variant of this module, replacing any that were listed outside the llndk clause.
 vendor_ramdisk bool, Whether this module is installed to vendor ramdisk
 vendor_ramdisk_available bool, Make this module available when building for vendor ramdisk. On device without a dedicated recovery partition, the module is only available after switching root into /first_stage_ramdisk. To expose the module before switching root, install the recovery variant instead.
 version_script string, local file name to pass to the linker as --version-script. Not supported on darwin, and will fail to build if provided to the darwin variant of a module.
 vintf_fragment_modules configurable list of string, vintf_fragment Modules required from this module.
 vintf_fragments configurable list of string, VINTF manifest fragments to be installed if this module is installed
 visibility list of string, Controls the visibility of this module to other modules. Allowable values are one or more of these formats:

 ["//visibility:public"]: Anyone can use this module.
 ["//visibility:private"]: Only rules in the module's package (not its subpackages) can use
     this module.
 ["//visibility:override"]: Discards any rules inherited from defaults or a creating module.
     Can only be used at the beginning of a list of visibility rules.
 ["//some/package:__pkg__", "//other/package:__pkg__"]: Only modules in some/package and
     other/package (defined in some/package/*.bp and other/package/*.bp) have access to
     this module. Note that sub-packages do not have access to the rule; for example,
     //some/package/foo:bar or //other/package/testing:bla wouldn't have access. __pkg__
     is a special module and must be used verbatim. It represents all of the modules in the
     package.
 ["//project:__subpackages__", "//other:__subpackages__"]: Only modules in packages project
     or other or in one of their sub-packages have access to this module. For example,
     //project:rule, //project/library:lib or //other/testing/internal:munge are allowed
     to depend on this rule (but not //independent:evil)
 ["//project"]: This is shorthand for ["//project:__pkg__"]
 [":__subpackages__"]: This is shorthand for ["//project:__subpackages__"] where
     //project is the module's package. e.g. using [":__subpackages__"] in
     packages/apps/Settings/Android.bp is equivalent to
     //packages/apps/Settings:__subpackages__.
 ["//visibility:legacy_public"]: The default visibility, behaves as //visibility:public
     for now. It is an error if it is used in a module.

If a module does not specify the `visibility` property then it uses the `default_visibility` property of the `package` module in the module's package. If the `default_visibility` property is not set for the module's package then it will use the `default_visibility` of its closest ancestor package for which a `default_visibility` property is specified. If no `default_visibility` property can be found then the module uses the global default of `//visibility:legacy_public`. The `visibility` property has no effect on a defaults module although it does apply to any non-defaults module that uses it. To set the visibility of a defaults module, use the `defaults_visibility` property on the defaults module; not to be confused with the `default_visibility` property on the package module. See https://android.googlesource.com/platform/build/soong/+/main/README.md#visibility for more details.
 whole_program_vtables bool, Use -fwhole-program-vtables cflag.
 whole_static_libs configurable list of string, list of modules whose object files should be linked into this module in their entirety. For static library modules, all of the .o files from the intermediate directory of the dependency will be linked into this modules .a file. For a shared library, the dependency's .a file will be linked into this module using -Wl,--whole-archive.
 yacc YaccProperties

cc_object

cc_object runs the compiler without running the linker. It is rarely necessary, but sometimes used to generate .s files from .c files to use as input to a cc_genrule module.
 name string, The name of the module. Must be unique across all modules.
 srcs configurable list of string, list of source files used to compile the C/C++ module. May be .c, .cpp, or .S files. srcs may reference the outputs of other modules that produce source files like genrule or filegroup using the syntax ":module".
 exclude_srcs configurable list of string, list of source files that should not be used to build the C/C++ module. This is most useful in the arch/multilib variants to remove non-common files
 defaults list of string
 host_supported bool, If set to true, build a variant of the module for the host. Defaults to false.
 device_supported bool, If set to true, build a variant of the module for the device. Defaults to true.
aidl
 libs list of string, List of aidl_library modules
 include_dirs list of string, list of directories that will be added to the aidl include paths.
 local_include_dirs list of string, list of directories relative to the Blueprints file that will be added to the aidl include paths.
 generate_traces bool, whether to generate traces (for systrace) for this interface
 flags list of string, list of flags that will be passed to the AIDL compiler
 apex_available list of string, Availability of this module in APEXes. Only the listed APEXes can contain this module. If the module has stubs then other APEXes and the platform may access it through them (subject to visibility). "//apex_available:anyapex" is a pseudo APEX name that matches to any APEX. "//apex_available:platform" refers to non-APEX partitions like "system.img". Prefix pattern (com.foo.*) can be used to match with any APEX name with the prefix(com.foo.). Default is ["//apex_available:platform"].
 arch interface
 asflags list of string, list of module-specific flags that will be used for .S compiles
 bootstrap bool, Allows this module to use non-APEX version of libraries. Useful for building binaries that are started before APEXes are activated.
 bpf_target bool, cc Build rules targeting BPF must set this to true. The correct fix is to ban targeting bpf in cc rules instead use bpf_rules. (b/323415017)
 c_std string, C standard version to use. Can be a specific version (such as "gnu11"), "experimental" (which will use draft versions like C1x when available), or the empty string (which will use the default).
 cflags configurable list of string, list of module-specific flags that will be used for C and C++ compiles.
 clang bool, Deprecated. true is the default, false is invalid.
 clang_asflags list of string, list of module-specific flags that will be used for .S compiles when compiling with clang
 clang_cflags list of string, list of module-specific flags that will be used for C and C++ compiles when compiling with clang
 clang_verify bool, Add "-Xclang -verify" to the cflags and appends "touch $out" to the clang command line.
 cmake_snapshot_supported bool, Allows this module to be included in CMake release snapshots to be built outside of Android build system and source tree.
 compile_multilib string, control whether this module compiles for 32-bit, 64-bit, or both. Possible values are "32" (compile for 32-bit only), "64" (compile for 64-bit only), "both" (compile for both architectures), or "first" (compile for 64-bit on a 64-bit platform, and 32-bit on a 32-bit platform).
 conlyflags list of string, list of module-specific flags that will be used for C compiles
 cpp_std string, C++ standard version to use. Can be a specific version (such as "gnu++11"), "experimental" (which will use draft versions like C++1z when available), or the empty string (which will use the default).
 cppflags configurable list of string, list of module-specific flags that will be used for C++ compiles
 crt bool, Indicates that this module is a CRT object. CRT objects will be split into a variant per-API level between min_sdk_version and current.
 debug_ramdisk bool, Whether this module is installed to debug ramdisk
 device_first_generated_headers configurable list of string, Same as generated_headers, but the dependencies will be added based on the first supported arch variant and the device os variant. This can be useful for creating a host tool that embeds a copy of a device tool, that it then extracts and pushes to a device at runtime.
 device_specific bool, whether this module is specific to a device, not only for SoC, but also for off-chip peripherals. When set to true, it is installed into /odm (or /vendor/odm if odm partition does not exist, or /system/vendor/odm if both odm and vendor partitions do not exist). This implies `soc_specific:true`.
dist Dist
configuration to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 targets list of string, Copy the output of this module to the $DIST_DIR when `dist` is specified on the command line and any of these targets are also on the command line, or otherwise built
 dest string, The name of the output artifact. This defaults to the basename of the output of the module.
 dir string, The directory within the dist directory to store the artifact. Defaults to the top level directory ("").
 suffix string, A suffix to add to the artifact file name (before any extension).
 append_artifact_with_product bool, If true, then the artifact file will be appended with _<product name>. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be foo_coral.apk. If false, there is no change to the artifact file name.
 prepend_artifact_with_product bool, If true, then the artifact file will be prepended with <product name>-. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be coral-foo.apk. If false, there is no change to the artifact file name.
 tag string, A string tag to select the OutputFiles associated with the tag. If no tag is specified then it will select the default dist paths provided by the module type. If a tag of "" is specified then it will return the default output files provided by the modules, i.e. the result of calling OutputFiles("").
 dists list of Dist, a list of configurations to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 double_loadable bool, whether this module is capable of being loaded with other instance (possibly an older version) of the same module in the same process. Currently, a shared library that is a member of VNDK (vndk: {enabled: true}) can be double loaded in a vendor process if the library is also a (direct and indirect) dependency of an LLNDK library. Such libraries must be explicitly marked as `double_loadable: true` by the owner, or the dependency from the LLNDK lib should be cut if the lib is not designed to be double loaded.
 enabled configurable bool, emit build rules for this module Disabling a module should only be done for those modules that cannot be built in the current environment. Modules that can build in the current environment but are not usually required (e.g. superceded by a prebuilt) should not be disabled as that will prevent them from being built by the checkbuild target and so prevent early detection of changes that have broken those modules.
 exclude_from_ndk_sysroot bool, Indicates that this module should not be included in the NDK sysroot. Only applies to CRT objects. Defaults to false.
 exclude_generated_sources list of string, list of generated sources that should not be used to build the C/C++ module. This is most useful in the arch/multilib variants to remove non-common files
 generated_headers configurable list of string, list of generated headers to add to the include path. These are the names of genrule modules.
 generated_sources list of string, list of generated sources to compile. These are the names of gensrcs or genrule modules.
 gnu_extensions bool, if set to false, use -std=c++* instead of -std=gnu++*
 header_libs configurable list of string, list of modules that should only provide headers for this module.
 host_cross_supported bool, If set to true, build a variant of the module for the host cross. Defaults to true.
 host_required list of string, names of other modules to install on host if this module is installed
 include_build_directory bool, Add the directory containing the Android.bp file to the list of include directories. Defaults to true.
 include_dirs configurable list of string, list of directories relative to the root of the source tree that will be added to the include path using -I. If possible, don't use this. If adding paths from the current directory use local_include_dirs, if adding paths from other modules use export_include_dirs in that module.
 init_rc configurable list of string, init.rc files to be installed if this module is installed
 installable bool
 instruction_set string, the instruction set architecture to use to compile the C/C++ module.
 lex LexProperties
 licenses list of string, Describes the licenses applicable to this module. Must reference license modules.
 linker_script string, if set, the path to a linker script to pass to ld -r when combining multiple object files.
 local_include_dirs configurable list of string, list of directories relative to the Blueprints file that will be added to the include path using -I
 logtags list of string, *.logtags files, to combine together in order to generate the /system/etc/event-log-tags file
 min_sdk_version string, Minimum OS API level supported by this C or C++ module. This property becomes the value of the __ANDROID_API__ macro. When the C or C++ module is included in an APEX or an APK, this property is also used to ensure that the min_sdk_version of the containing module is not older (i.e. less) than this module's min_sdk_version. When not set, this property defaults to the value of sdk_version. When this is set to "apex_inherit", this tracks min_sdk_version of the containing APEX. When the module is not built for an APEX, "apex_inherit" defaults to sdk_version.
 multilib interface
 native_bridge_supported bool, Whether this module is built for non-native architectures (also known as native bridge binary)
 no_full_install bool, When set to true, this module is not installed to the full install path (ex: under out/target/product/<name>/<partition>). It can be installed only to the packaging modules like android_filesystem.
 objs list of string, names of other cc_object modules to link into this module using partial linking
 odm_available bool, This is the same as the "vendor_available" except that the install path of the vendor variant is /odm or /vendor/odm. By replacing "vendor_available: true" with "odm_available: true", the module will install its vendor variant to the /odm partition or /vendor/odm. As the modules with "odm_available: true" still create the vendor variants, they can link to the other vendor modules as the vendor_available modules do. Also, the vendor modules can link to odm_available modules. It may not be used for VNDK modules.
 odm_dlkm_specific bool, Install to partition odm_dlkm when set to true.
 openmp bool, Build and link with OpenMP
 optimize_for_size bool, Aggresively trade performance for smaller binary size. This should only be used for on-device binaries that are rarely executed and not performance critical.
 overrides list of string, List of module names that are prevented from being installed when this module gets installed.
 owner string, vendor who owns this module
 prefix_symbols string, if set, add an extra objcopy --prefix-symbols= step
 product_available bool, whether this module should be allowed to be directly depended by other modules with `product_specific: true` or `product_available: true`. If set to true, an additional product variant will be built separately that is limited to the set of libraries and headers that are exposed to /product modules. The product variant may be used with a different (newer) /system, so it shouldn't have any unversioned runtime dependencies, or make assumptions about the system that may not be true in the future. If set to false, this module becomes inaccessible from /product modules. Different from the 'vendor_available' property, the modules with vndk: {enabled: true} don't have to define 'product_available'. The VNDK library without 'product_available' may not be depended on by any other modules that has product variants including the product available VNDKs. Nothing happens if BOARD_VNDK_VERSION isn't set in the BoardConfig.mk and PRODUCT_PRODUCT_VNDK_VERSION isn't set.
 product_specific bool, whether this module is specific to a software configuration of a product (e.g. country, network operator, etc). When set to true, it is installed into /product (or /system/product if product partition does not exist).
product_variables.arc
cflags
  []string
exclude_srcs
  []string
header_libs
  []string
include_dirs
  []string
shared_libs
  []string
static_libs
  []string
srcs
  []string
product_variables.binder32bit
cflags
  []string
product_variables.build_from_text_stub
static_libs
  []string
product_variables.debuggable
cflags
  []string
cppflags
  []string
init_rc
  []string
required
  []string
host_required
  []string
target_required
  []string
static_libs
  []string
shared_libs
  []string
srcs
  []string
exclude_srcs
  []string
product_variables.enforce_vintf_manifest
cflags
  []string
product_variables.eng
cflags
  []string
cppflags
  []string
sanitize.address
  *bool
product_variables.malloc_low_memory
cflags
  []string
shared_libs
  []string
static_libs
  []string
srcs
  []string
header_libs
  []string
product_variables.malloc_pattern_fill_contents
cflags
  []string
product_variables.malloc_zero_contents
cflags
  []string
product_variables.native_coverage
srcs
  []string
exclude_srcs
  []string
product_variables.override_rs_driver
cflags
  []string
product_variables.platform_sdk_version
asflags
  []string
cflags
  []string
product_variables.release_aidl_use_unfrozen
cflags
  []string
required
  []string
vintf_fragment_modules
  []string
product_variables.safestack
cflags
  []string
product_variables.selinuxignoreneverallows
required
  []string
product_variables.shipping_api_level
cflags
  []string
product_variables.treble_linker_namespaces
cflags
  []string
product_variables.uml
cppflags
  []string
product_variables.unbundled_build
enabled Configurable[bool]
 Configurable[bool] proptools.Configurable[bool]
 proprietary bool, whether this is a proprietary vendor module, and should be installed into /vendor
proto
 type string, Proto generator type. C++: full or lite. Java: micro, nano, stream, or lite.
 plugin string, Proto plugin to use as the generator. Must be a cc_binary_host module.
 include_dirs list of string, list of directories that will be added to the protoc include paths.
 local_include_dirs list of string, list of directories relative to the bp file that will be added to the protoc include paths.
 canonical_path_from_root bool, whether to identify the proto files from the root of the source tree (the original method in Android, useful for android-specific protos), or relative from where they were specified (useful for external/third party protos). This defaults to true today, but is expected to default to false in the future.
 static bool, Link statically against the protobuf runtime
 ramdisk bool, Whether this module is installed to ramdisk
 ramdisk_available bool, Make this module available when building for ramdisk. On device without a dedicated recovery partition, the module is only available after switching root into /first_stage_ramdisk. To expose the module before switching root, install the recovery variant instead.
 recovery bool, Whether this module is installed to recovery partition
 recovery_available bool, Make this module available when building for recovery
renderscript
 include_dirs list of string, list of directories that will be added to the llvm-rs-cc include paths
 flags list of string, list of flags that will be passed to llvm-rs-cc
 target_api string, Renderscript API level to target
 required configurable list of string, names of other modules to install if this module is installed
 rtti bool, pass -frtti instead of -fno-rtti
sanitize SanitizeUserProps
 never bool, Prevent use of any sanitizers on this module
 address bool, ASan (Address sanitizer), incompatible with static binaries. Always runs in a diagnostic mode. Use of address sanitizer disables cfi sanitizer. Hwaddress sanitizer takes precedence over this sanitizer.
 thread bool, TSan (Thread sanitizer), incompatible with static binaries and 32 bit architectures. Always runs in a diagnostic mode. Use of thread sanitizer disables cfi and scudo sanitizers. Hwaddress sanitizer takes precedence over this sanitizer.
 hwaddress bool, HWASan (Hardware Address sanitizer). Use of hwasan sanitizer disables cfi, address, thread, and scudo sanitizers.
 all_undefined bool, Undefined behavior sanitizer
 undefined bool, Subset of undefined behavior sanitizer
 misc_undefined list of string, List of specific undefined behavior sanitizers to enable
 fuzzer bool, Fuzzer, incompatible with static binaries.
 safestack bool, safe-stack sanitizer, incompatible with 32-bit architectures.
 cfi bool, cfi sanitizer, incompatible with asan, hwasan, fuzzer, or Darwin
 integer_overflow bool, signed/unsigned integer overflow sanitizer, incompatible with Darwin.
 scudo bool, scudo sanitizer, incompatible with asan, hwasan, tsan This should not be used in Android 11+ : https://source.android.com/devices/tech/debug/scudo deprecated
 scs bool, shadow-call-stack sanitizer, only available on arm64/riscv64.
 memtag_heap bool, Memory-tagging, only available on arm64 if diag.memtag unset or false, enables async memory tagging
 memtag_stack bool, Memory-tagging stack instrumentation, only available on arm64 Adds instrumentation to detect stack buffer overflows and use-after-scope using MTE.
 memtag_globals bool, Memory-tagging globals instrumentation, only available on arm64 Adds instrumentation to detect global buffer overflows using MTE.
 writeonly bool, A modifier for ASAN and HWASAN for write only instrumentation
diag
Sanitizers to run in the diagnostic mode (as opposed to the release mode). Replaces abort() on error with a human-readable error message. Address and Thread sanitizers always run in diagnostic mode.
 undefined bool, Undefined behavior sanitizer, diagnostic mode
 cfi bool, cfi sanitizer, diagnostic mode, incompatible with asan, hwasan, fuzzer, or Darwin
 integer_overflow bool, signed/unsigned integer overflow sanitizer, diagnostic mode, incompatible with Darwin.
 memtag_heap bool, Memory-tagging, only available on arm64 requires sanitizer.memtag: true if set, enables sync memory tagging
 misc_undefined list of string, List of specific undefined behavior sanitizers to enable in diagnostic mode
 no_recover list of string, List of sanitizers to pass to -fno-sanitize-recover results in only the first detected error for these sanitizers being reported and program then exits with a non-zero exit code.
config
Sanitizers to run with flag configuration specified
 cfi_assembly_support bool, Enables CFI support flags for assembly-heavy libraries
 recover list of string, List of sanitizers to pass to -fsanitize-recover allows execution to continue for these sanitizers to detect multiple errors rather than only the first one
 blocklist string, value to pass to -fsanitize-ignorelist
 sdk_variant_only bool, If true, always create an sdk variant and don't create a platform variant.
 sdk_version string, The API level that this module is built against. The APIs of this API level will be visible at build time, but use of any APIs newer than min_sdk_version will render the module unloadable on older devices. In the future it will be possible to weakly-link new APIs, making the behavior match Java: such modules will load on older devices, but calling new APIs on devices that do not support them will result in a crash. This property has the same behavior as sdk_version does for Java modules. For those familiar with Android Gradle, the property behaves similarly to how compileSdkVersion does for Java code. In addition, setting this property causes two variants to be built, one for the platform and one for apps.
 shared_libs configurable list of string, list of shared library modules should only provide headers for this module.
 soc_specific bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist).
 static_libs configurable list of string, list of static library modules that should only provide headers for this module.
 stl string, Select the STL library to use. Possible values are "libc++", "libc++_static", "libstdc++", or "none". Leave blank to select the default.
 system_dlkm_specific bool, Install to partition system_dlkm when set to true.
 system_ext_specific bool, whether this module extends system. When set to true, it is installed into /system_ext (or /system/system_ext if system_ext partition does not exist).
 system_shared_libs list of string, list of default libraries that will provide headers for this module. If unset, generally defaults to libc, libm, and libdl. Set to [] to prevent using headers from the defaults.
 target interface
target.android
 compile_multilib string
 enabled bool
target.host
 compile_multilib string
target.platform
 cflags list of string, List of additional cflags that should be used to build the platform variant of the C/C++ module.
 required list of string, List of modules required by the core variant.
 exclude_required list of string, List of modules not required by the core variant.
target.product
 srcs list of string, list of source files that should only be used in vendor or product variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build vendor or product variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build vendor or product variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build vendor or product variant of the C/C++ module.
target.ramdisk
 exclude_srcs list of string, list of source files that should not be used to build the ramdisk variants of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the ramdisk variants of the C/C++ module.
target.recovery
 srcs list of string, list of source files that should only be used in the recovery variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build the recovery variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the recovery variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build the recovery variant of the C/C++ module.
 required list of string, List of modules required by the recovery variant.
 exclude_required list of string, List of modules not required by the recovery variant.
target.vendor
 srcs list of string, list of source files that should only be used in vendor or product variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build vendor or product variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build vendor or product variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build vendor or product variant of the C/C++ module.
target.vendor_ramdisk
 exclude_srcs list of string, list of source files that should not be used to build the ramdisk variants of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the ramdisk variants of the C/C++ module.
 target_required list of string, names of other modules to install on target if this module is installed
 team string, The team (defined by the owner/vendor) who owns the property.
 tidy_disabled_srcs list of string, list of source files that should not be compiled with clang-tidy.
 tidy_timeout_srcs list of string, list of source files that should not be compiled by clang-tidy when TIDY_TIMEOUT is set.
 use_generic_config bool, Set to true if this module must be generic and does not require product-specific information. To be included in the system image, this property must be set to true.
 vendor bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist). Use `soc_specific` instead for better meaning.
 vendor_available bool, whether this module should be allowed to be directly depended by other modules with `vendor: true`, `proprietary: true`, or `vendor_available:true`. If set to true, two variants will be built separately, one like normal, and the other limited to the set of libraries and headers that are exposed to /vendor modules. The vendor variant may be used with a different (newer) /system, so it shouldn't have any unversioned runtime dependencies, or make assumptions about the system that may not be true in the future. If set to false, this module becomes inaccessible from /vendor modules. The modules with vndk: {enabled: true} must define 'vendor_available' to 'true'. Nothing happens if BOARD_VNDK_VERSION isn't set in the BoardConfig.mk
 vendor_dlkm_specific bool, Install to partition vendor_dlkm when set to true.
 vendor_ramdisk bool, Whether this module is installed to vendor ramdisk
 vendor_ramdisk_available bool, Make this module available when building for vendor ramdisk. On device without a dedicated recovery partition, the module is only available after switching root into /first_stage_ramdisk. To expose the module before switching root, install the recovery variant instead.
 vintf_fragment_modules configurable list of string, vintf_fragment Modules required from this module.
 vintf_fragments configurable list of string, VINTF manifest fragments to be installed if this module is installed
 visibility list of string, Controls the visibility of this module to other modules. Allowable values are one or more of these formats:

 ["//visibility:public"]: Anyone can use this module.
 ["//visibility:private"]: Only rules in the module's package (not its subpackages) can use
     this module.
 ["//visibility:override"]: Discards any rules inherited from defaults or a creating module.
     Can only be used at the beginning of a list of visibility rules.
 ["//some/package:__pkg__", "//other/package:__pkg__"]: Only modules in some/package and
     other/package (defined in some/package/*.bp and other/package/*.bp) have access to
     this module. Note that sub-packages do not have access to the rule; for example,
     //some/package/foo:bar or //other/package/testing:bla wouldn't have access. __pkg__
     is a special module and must be used verbatim. It represents all of the modules in the
     package.
 ["//project:__subpackages__", "//other:__subpackages__"]: Only modules in packages project
     or other or in one of their sub-packages have access to this module. For example,
     //project:rule, //project/library:lib or //other/testing/internal:munge are allowed
     to depend on this rule (but not //independent:evil)
 ["//project"]: This is shorthand for ["//project:__pkg__"]
 [":__subpackages__"]: This is shorthand for ["//project:__subpackages__"] where
     //project is the module's package. e.g. using [":__subpackages__"] in
     packages/apps/Settings/Android.bp is equivalent to
     //packages/apps/Settings:__subpackages__.
 ["//visibility:legacy_public"]: The default visibility, behaves as //visibility:public
     for now. It is an error if it is used in a module.

If a module does not specify the `visibility` property then it uses the `default_visibility` property of the `package` module in the module's package. If the `default_visibility` property is not set for the module's package then it will use the `default_visibility` of its closest ancestor package for which a `default_visibility` property is specified. If no `default_visibility` property can be found then the module uses the global default of `//visibility:legacy_public`. The `visibility` property has no effect on a defaults module although it does apply to any non-defaults module that uses it. To set the visibility of a defaults module, use the `defaults_visibility` property on the defaults module; not to be confused with the `default_visibility` property on the package module. See https://android.googlesource.com/platform/build/soong/+/main/README.md#visibility for more details.
 yacc YaccProperties

cc_prebuilt_binary

cc_prebuilt_binary installs a precompiled executable in srcs property in the device's directory, for both the host and device
 name string, The name of the module. Must be unique across all modules.
 srcs configurable list of string, a prebuilt library or binary. Can reference a genrule module that generates an executable file.
 defaults list of string
 host_supported bool, If set to true, build a variant of the module for the host. Defaults to false.
 device_supported bool, If set to true, build a variant of the module for the device. Defaults to true.
 afdo bool, Afdo allows developers self-service enroll for automatic feedback-directed optimization using profile data.
 allow_undefined_symbols bool, allow the module to contain undefined symbols. By default, modules cannot contain undefined symbols that are not satisified by their immediate dependencies. Set this flag to true to remove --no-undefined from the linker flags. This flag should only be necessary for compiling low-level libraries like libc.
 apex_available list of string, Availability of this module in APEXes. Only the listed APEXes can contain this module. If the module has stubs then other APEXes and the platform may access it through them (subject to visibility). "//apex_available:anyapex" is a pseudo APEX name that matches to any APEX. "//apex_available:platform" refers to non-APEX partitions like "system.img". Prefix pattern (com.foo.*) can be used to match with any APEX name with the prefix(com.foo.). Default is ["//apex_available:platform"].
 arch interface
 bootstrap bool, Allows this module to use non-APEX version of libraries. Useful for building binaries that are started before APEXes are activated.
buildstubs bool
 bool bool
 check_elf_files bool, Check the prebuilt ELF files (e.g. DT_SONAME, DT_NEEDED, resolution of undefined symbols, etc), default true.
 clang bool, Deprecated. true is the default, false is invalid.
 cmake_snapshot_supported bool, Allows this module to be included in CMake release snapshots to be built outside of Android build system and source tree.
 compile_multilib string, control whether this module compiles for 32-bit, 64-bit, or both. Possible values are "32" (compile for 32-bit only), "64" (compile for 64-bit only), "both" (compile for both architectures), or "first" (compile for 64-bit on a 64-bit platform, and 32-bit on a 32-bit platform).
 debug_ramdisk bool, Whether this module is installed to debug ramdisk
 device_specific bool, whether this module is specific to a device, not only for SoC, but also for off-chip peripherals. When set to true, it is installed into /odm (or /vendor/odm if odm partition does not exist, or /system/vendor/odm if both odm and vendor partitions do not exist). This implies `soc_specific:true`.
dist Dist
configuration to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 targets list of string, Copy the output of this module to the $DIST_DIR when `dist` is specified on the command line and any of these targets are also on the command line, or otherwise built
 dest string, The name of the output artifact. This defaults to the basename of the output of the module.
 dir string, The directory within the dist directory to store the artifact. Defaults to the top level directory ("").
 suffix string, A suffix to add to the artifact file name (before any extension).
 append_artifact_with_product bool, If true, then the artifact file will be appended with _<product name>. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be foo_coral.apk. If false, there is no change to the artifact file name.
 prepend_artifact_with_product bool, If true, then the artifact file will be prepended with <product name>-. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be coral-foo.apk. If false, there is no change to the artifact file name.
 tag string, A string tag to select the OutputFiles associated with the tag. If no tag is specified then it will select the default dist paths provided by the module type. If a tag of "" is specified then it will return the default output files provided by the modules, i.e. the result of calling OutputFiles("").
 dists list of Dist, a list of configurations to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 double_loadable bool, whether this module is capable of being loaded with other instance (possibly an older version) of the same module in the same process. Currently, a shared library that is a member of VNDK (vndk: {enabled: true}) can be double loaded in a vendor process if the library is also a (direct and indirect) dependency of an LLNDK library. Such libraries must be explicitly marked as `double_loadable: true` by the owner, or the dependency from the LLNDK lib should be cut if the lib is not designed to be double loaded.
 dynamic_list string, local file name to pass to the linker as --dynamic-list. Not supported on darwin, and will fail to build if provided to the darwin variant of a module.
 enabled configurable bool, emit build rules for this module Disabling a module should only be done for those modules that cannot be built in the current environment. Modules that can build in the current environment but are not usually required (e.g. superceded by a prebuilt) should not be disabled as that will prevent them from being built by the checkbuild target and so prevent early detection of changes that have broken those modules.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with this module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build this module
 exclude_static_libs list of string, list of static libs that should not be used to build this module
 export_generated_headers list of string, list of generated headers to re-export include directories from. Entries must be present in generated_headers.
 export_header_lib_headers configurable list of string, list of header libraries to re-export include directories from. Entries must be present in header_libs.
 export_shared_lib_headers list of string, list of shared libraries to re-export include directories from. Entries must be present in shared_libs.
 export_static_lib_headers list of string, list of static libraries to re-export include directories from. Entries must be present in static_libs.
 group_static_libs bool, deprecated and ignored because lld makes it unnecessary. See b/189475744.
 header_libs configurable list of string, list of modules that should only provide headers for this module.
 host_cross_supported bool, If set to true, build a variant of the module for the host cross. Defaults to true.
 host_ldlibs list of string, -l arguments to pass to linker for host-provided shared libraries
 host_required list of string, names of other modules to install on host if this module is installed
 ignore_max_page_size bool, ignore max page size. By default, max page size must be the max page size set for the target.
 init_rc configurable list of string, init.rc files to be installed if this module is installed
 inject_bssl_hash bool, Inject boringssl hash into the shared library. This is only intended for use by external/boringssl.
 install_in_root bool, Install output directly in {partition}/, not in any subdir. This is only intended for use by init_first_stage.
 install_in_xbin bool, Install output directly in {partition}/xbin
 installable bool
 ldflags list of string, list of module-specific flags that will be used for all link steps
 licenses list of string, Describes the licenses applicable to this module. Must reference license modules.
 linker_scripts list of string, local files to pass to the linker as --script. Not supported on darwin or windows, and will fail to build if provided to the darwin or windows variant of a module.
 logtags list of string, *.logtags files, to combine together in order to generate the /system/etc/event-log-tags file
lto
Lto must violate capitalization style for acronyms so that it can be referred to in blueprint files as "lto"
 never bool
 thin bool
 lto_O0 bool, Use --lto-O0 flag.
 min_sdk_version string, Minimum OS API level supported by this C or C++ module. This property becomes the value of the __ANDROID_API__ macro. When the C or C++ module is included in an APEX or an APK, this property is also used to ensure that the min_sdk_version of the containing module is not older (i.e. less) than this module's min_sdk_version. When not set, this property defaults to the value of sdk_version. When this is set to "apex_inherit", this tracks min_sdk_version of the containing APEX. When the module is not built for an APEX, "apex_inherit" defaults to sdk_version.
 multilib interface
 native_bridge_supported bool, Whether this module is built for non-native architectures (also known as native bridge binary)
 native_coverage bool
 no_crt_pad_segment bool, don't link in crt_pad_segment. This flag is currently only used internal to soong for testing and for vndk prebuilt shared libraries.
 no_full_install bool, When set to true, this module is not installed to the full install path (ex: under out/target/product/<name>/<partition>). It can be installed only to the packaging modules like android_filesystem.
 no_libcrt bool, don't link in libclang_rt.builtins-*.a
 nocrt bool, don't link in crt_begin and crt_end. This flag should only be necessary for compiling crt or libc.
 odm_available bool, This is the same as the "vendor_available" except that the install path of the vendor variant is /odm or /vendor/odm. By replacing "vendor_available: true" with "odm_available: true", the module will install its vendor variant to the /odm partition or /vendor/odm. As the modules with "odm_available: true" still create the vendor variants, they can link to the other vendor modules as the vendor_available modules do. Also, the vendor modules can link to odm_available modules. It may not be used for VNDK modules.
 odm_dlkm_specific bool, Install to partition odm_dlkm when set to true.
 optimize_for_size bool, Aggresively trade performance for smaller binary size. This should only be used for on-device binaries that are rarely executed and not performance critical.
orderfile
 instrumentation bool
 order_file_path string
 load_order_file bool
 cflags list of string, Additional compiler flags to use when building this module for orderfile profiling.
 overrides list of string, Names of modules to be overridden. Listed modules can only be other binaries (in Make or Soong). This does not completely prevent installation of the overridden binaries, but if both binaries would be installed by default (in PRODUCT_PACKAGES) the other binary will be removed from PRODUCT_PACKAGES.
 owner string, vendor who owns this module
 pack_relocations bool, Generate compact dynamic relocation table, default true.
 prefer configurable bool, When prefer is set to true the prebuilt will be used instead of any source module with a matching name.
 prefix_symbols string, if set, add an extra objcopy --prefix-symbols= step
 product_available bool, whether this module should be allowed to be directly depended by other modules with `product_specific: true` or `product_available: true`. If set to true, an additional product variant will be built separately that is limited to the set of libraries and headers that are exposed to /product modules. The product variant may be used with a different (newer) /system, so it shouldn't have any unversioned runtime dependencies, or make assumptions about the system that may not be true in the future. If set to false, this module becomes inaccessible from /product modules. Different from the 'vendor_available' property, the modules with vndk: {enabled: true} don't have to define 'product_available'. The VNDK library without 'product_available' may not be depended on by any other modules that has product variants including the product available VNDKs. Nothing happens if BOARD_VNDK_VERSION isn't set in the BoardConfig.mk and PRODUCT_PRODUCT_VNDK_VERSION isn't set.
 product_specific bool, whether this module is specific to a software configuration of a product (e.g. country, network operator, etc). When set to true, it is installed into /product (or /system/product if product partition does not exist).
product_variables.arc
header_libs
  []string
shared_libs
  []string
static_libs
  []string
srcs
  []string
whole_static_libs
  []string
product_variables.build_from_text_stub
static_libs
  []string
exclude_static_libs
  []string
product_variables.debuggable
init_rc
  []string
required
  []string
host_required
  []string
target_required
  []string
strip.all
  *bool
strip.keep_symbols
  *bool
strip.keep_symbols_and_debug_frame
  *bool
static_libs
  []string
exclude_static_libs
  []string
whole_static_libs
  []string
shared_libs
  []string
srcs
  []string
product_variables.eng
lto.never
  *bool
sanitize.address
  *bool
product_variables.malloc_low_memory
shared_libs
  []string
whole_static_libs
  []string
static_libs
  []string
exclude_static_libs
  []string
srcs
  []string
header_libs
  []string
product_variables.native_coverage
srcs
  []string
product_variables.release_aidl_use_unfrozen
required
  []string
vintf_fragment_modules
  []string
product_variables.selinuxignoreneverallows
required
  []string
product_variables.unbundled_build
enabled Configurable[bool]
 Configurable[bool] proptools.Configurable[bool]
 proprietary bool, whether this is a proprietary vendor module, and should be installed into /vendor
 ramdisk bool, Whether this module is installed to ramdisk
 ramdisk_available bool, Make this module available when building for ramdisk. On device without a dedicated recovery partition, the module is only available after switching root into /first_stage_ramdisk. To expose the module before switching root, install the recovery variant instead.
 recovery bool, Whether this module is installed to recovery partition
 recovery_available bool, Make this module available when building for recovery
 relative_install_path string, install to a subdirectory of the default install path for the module
 required configurable list of string, names of other modules to install if this module is installed
 runtime_libs list of string, list of modules that should be installed with this module. This is similar to 'required' but '.vendor' suffix will be appended to the module names if the shared libraries have vendor variants and this module uses VNDK.
sanitize SanitizeUserProps
 never bool, Prevent use of any sanitizers on this module
 address bool, ASan (Address sanitizer), incompatible with static binaries. Always runs in a diagnostic mode. Use of address sanitizer disables cfi sanitizer. Hwaddress sanitizer takes precedence over this sanitizer.
 thread bool, TSan (Thread sanitizer), incompatible with static binaries and 32 bit architectures. Always runs in a diagnostic mode. Use of thread sanitizer disables cfi and scudo sanitizers. Hwaddress sanitizer takes precedence over this sanitizer.
 hwaddress bool, HWASan (Hardware Address sanitizer). Use of hwasan sanitizer disables cfi, address, thread, and scudo sanitizers.
 all_undefined bool, Undefined behavior sanitizer
 undefined bool, Subset of undefined behavior sanitizer
 misc_undefined list of string, List of specific undefined behavior sanitizers to enable
 fuzzer bool, Fuzzer, incompatible with static binaries.
 safestack bool, safe-stack sanitizer, incompatible with 32-bit architectures.
 cfi bool, cfi sanitizer, incompatible with asan, hwasan, fuzzer, or Darwin
 integer_overflow bool, signed/unsigned integer overflow sanitizer, incompatible with Darwin.
 scudo bool, scudo sanitizer, incompatible with asan, hwasan, tsan This should not be used in Android 11+ : https://source.android.com/devices/tech/debug/scudo deprecated
 scs bool, shadow-call-stack sanitizer, only available on arm64/riscv64.
 memtag_heap bool, Memory-tagging, only available on arm64 if diag.memtag unset or false, enables async memory tagging
 memtag_stack bool, Memory-tagging stack instrumentation, only available on arm64 Adds instrumentation to detect stack buffer overflows and use-after-scope using MTE.
 memtag_globals bool, Memory-tagging globals instrumentation, only available on arm64 Adds instrumentation to detect global buffer overflows using MTE.
 writeonly bool, A modifier for ASAN and HWASAN for write only instrumentation
diag
Sanitizers to run in the diagnostic mode (as opposed to the release mode). Replaces abort() on error with a human-readable error message. Address and Thread sanitizers always run in diagnostic mode.
 undefined bool, Undefined behavior sanitizer, diagnostic mode
 cfi bool, cfi sanitizer, diagnostic mode, incompatible with asan, hwasan, fuzzer, or Darwin
 integer_overflow bool, signed/unsigned integer overflow sanitizer, diagnostic mode, incompatible with Darwin.
 memtag_heap bool, Memory-tagging, only available on arm64 requires sanitizer.memtag: true if set, enables sync memory tagging
 misc_undefined list of string, List of specific undefined behavior sanitizers to enable in diagnostic mode
 no_recover list of string, List of sanitizers to pass to -fno-sanitize-recover results in only the first detected error for these sanitizers being reported and program then exits with a non-zero exit code.
config
Sanitizers to run with flag configuration specified
 cfi_assembly_support bool, Enables CFI support flags for assembly-heavy libraries
 recover list of string, List of sanitizers to pass to -fsanitize-recover allows execution to continue for these sanitizers to detect multiple errors rather than only the first one
 blocklist string, value to pass to -fsanitize-ignorelist
sanitized.address
 srcs list of string
sanitized.hwaddress
 srcs list of string
sanitized.none
 srcs list of string
 sdk_variant_only bool, If true, always create an sdk variant and don't create a platform variant.
 sdk_version string, The API level that this module is built against. The APIs of this API level will be visible at build time, but use of any APIs newer than min_sdk_version will render the module unloadable on older devices. In the future it will be possible to weakly-link new APIs, making the behavior match Java: such modules will load on older devices, but calling new APIs on devices that do not support them will result in a crash. This property has the same behavior as sdk_version does for Java modules. For those familiar with Android Gradle, the property behaves similarly to how compileSdkVersion does for Java code. In addition, setting this property causes two variants to be built, one for the platform and one for apps.
 shared_libs configurable list of string, list of modules that should be dynamically linked into this module.
 soc_specific bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist).
 source_module_name string, Name of the source soong module that gets shadowed by this prebuilt If unspecified, follows the naming convention that the source module of the prebuilt is Name() without "prebuilt_" prefix
 static_executable bool, compile executable with -static
 static_libs configurable list of string, list of modules that should be statically linked into this module.
 stem string, set the name of the output
 stl string, Select the STL library to use. Possible values are "libc++", "libc++_static", "libstdc++", or "none". Leave blank to select the default.
strip
 none bool, Device modules default to stripping enabled leaving mini debuginfo. Host modules default to stripping disabled, but can be enabled by setting any other strip boolean property.
 all bool, all forces stripping everything, including the mini debug info.
 keep_symbols bool, keep_symbols enables stripping but keeps all symbols.
 keep_symbols_list list of string, keep_symbols_list specifies a list of symbols to keep if keep_symbols is enabled. If it is unset then all symbols are kept.
 keep_symbols_and_debug_frame bool, keep_symbols_and_debug_frame enables stripping but keeps all symbols and debug frames.
 suffix string, append to the name of the output
 system_dlkm_specific bool, Install to partition system_dlkm when set to true.
 system_ext_specific bool, whether this module extends system. When set to true, it is installed into /system_ext (or /system/system_ext if system_ext partition does not exist).
 system_shared_libs list of string, list of system libraries that will be dynamically linked to shared library and executable modules. If unset, generally defaults to libc, libm, and libdl. Set to [] to prevent linking against the defaults.
 target interface
target.android
 compile_multilib string
 enabled bool
target.apex
 exclude_shared_libs list of string, list of shared libs that should not be used to build the apex variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the apex variant of the C/C++ module.
target.host
 compile_multilib string
target.non_apex
 exclude_shared_libs list of string, list of shared libs that should not be used to build the non-apex variant of the C/C++ module.
target.platform
 shared_libs list of string, list of shared libs that should be use to build the platform variant of a module that sets sdk_version. This should rarely be necessary, in most cases the same libraries are available for the SDK and platform variants.
 header_libs list of string, list of ehader libs that only should be used to build platform variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the platform variant of the C/C++ module.
 required list of string, List of modules required by the core variant.
 exclude_required list of string, List of modules not required by the core variant.
target.product
 shared_libs list of string, list of shared libs that only should be used to build vendor or product variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build vendor or product variant of the C/C++ module.
 header_libs list of string, list of header libs that only should be used to build vendor or product variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor or product variant of the C/C++ module.
 version_script string, version script for vendor or product variant
target.ramdisk
 static_libs list of string, list of static libs that only should be used to build the ramdisk variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the ramdisk variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the ramdisk variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the ramdisk variant of the C/C++ module.
target.recovery
 required list of string, List of modules required by the recovery variant.
 exclude_required list of string, List of modules not required by the recovery variant.
 shared_libs list of string, list of shared libs that only should be used to build the recovery variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build the recovery variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the recovery variant of the C/C++ module.
target.vendor
 shared_libs list of string, list of shared libs that only should be used to build vendor or product variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build vendor or product variant of the C/C++ module.
 header_libs list of string, list of header libs that only should be used to build vendor or product variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor or product variant of the C/C++ module.
 version_script string, version script for vendor or product variant
target.vendor_ramdisk
 exclude_shared_libs list of string, list of shared libs that should not be used to build the vendor ramdisk variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the vendor ramdisk variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor ramdisk variant of the C/C++ module.
 target_required list of string, names of other modules to install on target if this module is installed
 team string, The team (defined by the owner/vendor) who owns the property.
 tidy bool, whether to run clang-tidy over C-like sources.
 tidy_checks list of string, Extra checks to enable or disable in clang-tidy
 tidy_checks_as_errors list of string, Checks that should be treated as errors.
 tidy_flags list of string, Extra flags to pass to clang-tidy
 use_generic_config bool, Set to true if this module must be generic and does not require product-specific information. To be included in the system image, this property must be set to true.
 use_source_config_var ConfigVarProperties, When specified this names a Soong config variable that controls the prefer property. If the value of the named Soong config variable is true then prefer is set to false and vice versa. If the Soong config variable is not set then it defaults to false, so prefer defaults to true. If specified then the prefer property is ignored in favor of the value of the Soong config variable. DEPRECATED: This property is being deprecated b/308188211. Use RELEASE_APEX_CONTRIBUTIONS build flags to select prebuilts of mainline modules.
 use_version_lib bool, make android::build:GetBuildNumber() available containing the build ID.
 vendor bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist). Use `soc_specific` instead for better meaning.
 vendor_available bool, whether this module should be allowed to be directly depended by other modules with `vendor: true`, `proprietary: true`, or `vendor_available:true`. If set to true, two variants will be built separately, one like normal, and the other limited to the set of libraries and headers that are exposed to /vendor modules. The vendor variant may be used with a different (newer) /system, so it shouldn't have any unversioned runtime dependencies, or make assumptions about the system that may not be true in the future. If set to false, this module becomes inaccessible from /vendor modules. The modules with vndk: {enabled: true} must define 'vendor_available' to 'true'. Nothing happens if BOARD_VNDK_VERSION isn't set in the BoardConfig.mk
 vendor_dlkm_specific bool, Install to partition vendor_dlkm when set to true.
 vendor_ramdisk bool, Whether this module is installed to vendor ramdisk
 vendor_ramdisk_available bool, Make this module available when building for vendor ramdisk. On device without a dedicated recovery partition, the module is only available after switching root into /first_stage_ramdisk. To expose the module before switching root, install the recovery variant instead.
 version_script string, local file name to pass to the linker as --version-script. Not supported on darwin, and will fail to build if provided to the darwin variant of a module.
 vintf_fragment_modules configurable list of string, vintf_fragment Modules required from this module.
 vintf_fragments configurable list of string, VINTF manifest fragments to be installed if this module is installed
 visibility list of string, Controls the visibility of this module to other modules. Allowable values are one or more of these formats:

 ["//visibility:public"]: Anyone can use this module.
 ["//visibility:private"]: Only rules in the module's package (not its subpackages) can use
     this module.
 ["//visibility:override"]: Discards any rules inherited from defaults or a creating module.
     Can only be used at the beginning of a list of visibility rules.
 ["//some/package:__pkg__", "//other/package:__pkg__"]: Only modules in some/package and
     other/package (defined in some/package/*.bp and other/package/*.bp) have access to
     this module. Note that sub-packages do not have access to the rule; for example,
     //some/package/foo:bar or //other/package/testing:bla wouldn't have access. __pkg__
     is a special module and must be used verbatim. It represents all of the modules in the
     package.
 ["//project:__subpackages__", "//other:__subpackages__"]: Only modules in packages project
     or other or in one of their sub-packages have access to this module. For example,
     //project:rule, //project/library:lib or //other/testing/internal:munge are allowed
     to depend on this rule (but not //independent:evil)
 ["//project"]: This is shorthand for ["//project:__pkg__"]
 [":__subpackages__"]: This is shorthand for ["//project:__subpackages__"] where
     //project is the module's package. e.g. using [":__subpackages__"] in
     packages/apps/Settings/Android.bp is equivalent to
     //packages/apps/Settings:__subpackages__.
 ["//visibility:legacy_public"]: The default visibility, behaves as //visibility:public
     for now. It is an error if it is used in a module.

If a module does not specify the `visibility` property then it uses the `default_visibility` property of the `package` module in the module's package. If the `default_visibility` property is not set for the module's package then it will use the `default_visibility` of its closest ancestor package for which a `default_visibility` property is specified. If no `default_visibility` property can be found then the module uses the global default of `//visibility:legacy_public`. The `visibility` property has no effect on a defaults module although it does apply to any non-defaults module that uses it. To set the visibility of a defaults module, use the `defaults_visibility` property on the defaults module; not to be confused with the `default_visibility` property on the package module. See https://android.googlesource.com/platform/build/soong/+/main/README.md#visibility for more details.
 whole_program_vtables bool, Use -fwhole-program-vtables cflag.
 whole_static_libs configurable list of string, list of modules whose object files should be linked into this module in their entirety. For static library modules, all of the .o files from the intermediate directory of the dependency will be linked into this modules .a file. For a shared library, the dependency's .a file will be linked into this module using -Wl,--whole-archive.
 windows_import_lib string, Optionally provide an import library if this is a Windows PE DLL prebuilt. This is needed only if this library is linked by other modules in build time. Only makes sense for the Windows target.

cc_prebuilt_library

cc_prebuilt_library installs a precompiled shared library that are listed in the srcs property in the device's directory.
 name string, The name of the module. Must be unique across all modules.
 srcs configurable list of string, a prebuilt library or binary. Can reference a genrule module that generates an executable file.
 exclude_srcs configurable list of string, list of source files that should not be used to build the C/C++ module. This is most useful in the arch/multilib variants to remove non-common files
 defaults list of string
 host_supported bool, If set to true, build a variant of the module for the host. Defaults to false.
 device_supported bool, If set to true, build a variant of the module for the device. Defaults to true.
 afdo bool, Afdo allows developers self-service enroll for automatic feedback-directed optimization using profile data.
aidl
 export_aidl_headers bool, export headers generated from .aidl sources
 libs list of string, List of aidl_library modules
 include_dirs list of string, list of directories that will be added to the aidl include paths.
 local_include_dirs list of string, list of directories relative to the Blueprints file that will be added to the aidl include paths.
 generate_traces bool, whether to generate traces (for systrace) for this interface
 flags list of string, list of flags that will be passed to the AIDL compiler
 allow_undefined_symbols bool, allow the module to contain undefined symbols. By default, modules cannot contain undefined symbols that are not satisified by their immediate dependencies. Set this flag to true to remove --no-undefined from the linker flags. This flag should only be necessary for compiling low-level libraries like libc.
 apex_available list of string, Availability of this module in APEXes. Only the listed APEXes can contain this module. If the module has stubs then other APEXes and the platform may access it through them (subject to visibility). "//apex_available:anyapex" is a pseudo APEX name that matches to any APEX. "//apex_available:platform" refers to non-APEX partitions like "system.img". Prefix pattern (com.foo.*) can be used to match with any APEX name with the prefix(com.foo.). Default is ["//apex_available:platform"].
 arch interface
 asflags list of string, list of module-specific flags that will be used for .S compiles
 bootstrap bool, Allows this module to use non-APEX version of libraries. Useful for building binaries that are started before APEXes are activated.
 bpf_target bool, cc Build rules targeting BPF must set this to true. The correct fix is to ban targeting bpf in cc rules instead use bpf_rules. (b/323415017)
buildstubs bool
 bool bool
 c_std string, C standard version to use. Can be a specific version (such as "gnu11"), "experimental" (which will use draft versions like C1x when available), or the empty string (which will use the default).
 cflags configurable list of string, list of module-specific flags that will be used for C and C++ compiles.
 check_elf_files bool, Check the prebuilt ELF files (e.g. DT_SONAME, DT_NEEDED, resolution of undefined symbols, etc), default true.
 clang bool, Deprecated. true is the default, false is invalid.
 clang_asflags list of string, list of module-specific flags that will be used for .S compiles when compiling with clang
 clang_cflags list of string, list of module-specific flags that will be used for C and C++ compiles when compiling with clang
 clang_verify bool, Add "-Xclang -verify" to the cflags and appends "touch $out" to the clang command line.
 cmake_snapshot_supported bool, Allows this module to be included in CMake release snapshots to be built outside of Android build system and source tree.
 compile_multilib string, control whether this module compiles for 32-bit, 64-bit, or both. Possible values are "32" (compile for 32-bit only), "64" (compile for 64-bit only), "both" (compile for both architectures), or "first" (compile for 64-bit on a 64-bit platform, and 32-bit on a 32-bit platform).
 conlyflags list of string, list of module-specific flags that will be used for C compiles
 cpp_std string, C++ standard version to use. Can be a specific version (such as "gnu++11"), "experimental" (which will use draft versions like C++1z when available), or the empty string (which will use the default).
 cppflags configurable list of string, list of module-specific flags that will be used for C++ compiles
 debug_ramdisk bool, Whether this module is installed to debug ramdisk
 device_first_generated_headers configurable list of string, Same as generated_headers, but the dependencies will be added based on the first supported arch variant and the device os variant. This can be useful for creating a host tool that embeds a copy of a device tool, that it then extracts and pushes to a device at runtime.
 device_specific bool, whether this module is specific to a device, not only for SoC, but also for off-chip peripherals. When set to true, it is installed into /odm (or /vendor/odm if odm partition does not exist, or /system/vendor/odm if both odm and vendor partitions do not exist). This implies `soc_specific:true`.
dist Dist
configuration to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 targets list of string, Copy the output of this module to the $DIST_DIR when `dist` is specified on the command line and any of these targets are also on the command line, or otherwise built
 dest string, The name of the output artifact. This defaults to the basename of the output of the module.
 dir string, The directory within the dist directory to store the artifact. Defaults to the top level directory ("").
 suffix string, A suffix to add to the artifact file name (before any extension).
 append_artifact_with_product bool, If true, then the artifact file will be appended with _<product name>. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be foo_coral.apk. If false, there is no change to the artifact file name.
 prepend_artifact_with_product bool, If true, then the artifact file will be prepended with <product name>-. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be coral-foo.apk. If false, there is no change to the artifact file name.
 tag string, A string tag to select the OutputFiles associated with the tag. If no tag is specified then it will select the default dist paths provided by the module type. If a tag of "" is specified then it will return the default output files provided by the modules, i.e. the result of calling OutputFiles("").
 dists list of Dist, a list of configurations to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 double_loadable bool, whether this module is capable of being loaded with other instance (possibly an older version) of the same module in the same process. Currently, a shared library that is a member of VNDK (vndk: {enabled: true}) can be double loaded in a vendor process if the library is also a (direct and indirect) dependency of an LLNDK library. Such libraries must be explicitly marked as `double_loadable: true` by the owner, or the dependency from the LLNDK lib should be cut if the lib is not designed to be double loaded.
 dynamic_list string, local file name to pass to the linker as --dynamic-list. Not supported on darwin, and will fail to build if provided to the darwin variant of a module.
 enabled configurable bool, emit build rules for this module Disabling a module should only be done for those modules that cannot be built in the current environment. Modules that can build in the current environment but are not usually required (e.g. superceded by a prebuilt) should not be disabled as that will prevent them from being built by the checkbuild target and so prevent early detection of changes that have broken those modules.
 exclude_generated_sources list of string, list of generated sources that should not be used to build the C/C++ module. This is most useful in the arch/multilib variants to remove non-common files
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with this module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build this module
 exclude_static_libs list of string, list of static libs that should not be used to build this module
 export_cflags list of string, list of plain cc flags to be used for any module that links against this module.
 export_generated_headers list of string, list of generated headers to re-export include directories from. Entries must be present in generated_headers.
 export_header_lib_headers configurable list of string, list of header libraries to re-export include directories from. Entries must be present in header_libs.
 export_include_dirs configurable list of string, list of directories relative to the Blueprints file that will be added to the include path (using -I) for this module and any module that links against this module. Directories listed in export_include_dirs do not need to be listed in local_include_dirs.
 export_shared_lib_headers list of string, list of shared libraries to re-export include directories from. Entries must be present in shared_libs.
 export_static_lib_headers list of string, list of static libraries to re-export include directories from. Entries must be present in static_libs.
 export_system_include_dirs list of string, list of directories that will be added to the system include path using -isystem for this module and any module that links against this module.
 exported_symbols_list string, local file name to pass to the linker as -exported_symbols_list
 force_symbols_not_weak_list string, local file name to pass to the linker as -force_symbols_not_weak_list
 force_symbols_weak_list string, local file name to pass to the linker as -force_symbols_weak_list
 generated_headers configurable list of string, list of generated headers to add to the include path. These are the names of genrule modules.
 generated_sources list of string, list of generated sources to compile. These are the names of gensrcs or genrule modules.
 gnu_extensions bool, if set to false, use -std=c++* instead of -std=gnu++*
 group_static_libs bool, deprecated and ignored because lld makes it unnecessary. See b/189475744.
header_abi_checker headerAbiCheckerProperties
Properties for ABI compatibility checker.
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 header_libs configurable list of string, list of modules that should only provide headers for this module.
 host_cross_supported bool, If set to true, build a variant of the module for the host cross. Defaults to true.
 host_ldlibs list of string, -l arguments to pass to linker for host-provided shared libraries
 host_required list of string, names of other modules to install on host if this module is installed
 ignore_max_page_size bool, ignore max page size. By default, max page size must be the max page size set for the target.
 include_build_directory bool, Add the directory containing the Android.bp file to the list of include directories. Defaults to true.
 include_dirs configurable list of string, list of directories relative to the root of the source tree that will be added to the include path using -I. If possible, don't use this. If adding paths from the current directory use local_include_dirs, if adding paths from other modules use export_include_dirs in that module.
 init_rc configurable list of string, init.rc files to be installed if this module is installed
 inject_bssl_hash bool, Inject boringssl hash into the shared library. This is only intended for use by external/boringssl.
 install_in_root bool, Install output directly in {partition}/, not in any subdir. This is only intended for use by init_first_stage.
 install_in_xbin bool, Install output directly in {partition}/xbin
 installable bool
 instruction_set string, the instruction set architecture to use to compile the C/C++ module.
 ldflags list of string, list of module-specific flags that will be used for all link steps
 lex LexProperties
 licenses list of string, Describes the licenses applicable to this module. Must reference license modules.
 linker_scripts list of string, local files to pass to the linker as --script. Not supported on darwin or windows, and will fail to build if provided to the darwin or windows variant of a module.
llndk llndkLibraryProperties
If this is an LLNDK library, properties to describe the LLNDK stubs. Will be copied from the module pointed to by llndk_stubs if it is set.
 symbol_file string, Relative path to the symbol map. An example file can be seen here: TODO(danalbert): Make an example.
 export_headers_as_system bool, Whether to export any headers as -isystem instead of -I. Mainly for use by bionic/libc.
 unversioned bool, Whether the system library uses symbol versions.
 export_llndk_headers list of string, list of llndk headers to re-export include directories from.
 override_export_include_dirs list of string, list of directories relative to the Blueprints file that willbe added to the include path (using -I) for any module that links against the LLNDK variant of this module, replacing any that were listed outside the llndk clause.
 private bool, whether this module can be directly depended upon by libs that are installed to /vendor and /product. When set to true, this module can only be depended on by VNDK libraries, not vendor nor product libraries. This effectively hides this module from non-system modules. Default value is false.
 llndk_headers bool, if true, make this module available to provide headers to other modules that set llndk.symbol_file.
 moved_to_apex bool, moved_to_apex marks this module has having been distributed through an apex module.
 local_include_dirs configurable list of string, list of directories relative to the Blueprints file that will be added to the include path using -I
 logtags list of string, *.logtags files, to combine together in order to generate the /system/etc/event-log-tags file
lto
Lto must violate capitalization style for acronyms so that it can be referred to in blueprint files as "lto"
 never bool
 thin bool
 lto_O0 bool, Use --lto-O0 flag.
 min_sdk_version string, Minimum OS API level supported by this C or C++ module. This property becomes the value of the __ANDROID_API__ macro. When the C or C++ module is included in an APEX or an APK, this property is also used to ensure that the min_sdk_version of the containing module is not older (i.e. less) than this module's min_sdk_version. When not set, this property defaults to the value of sdk_version. When this is set to "apex_inherit", this tracks min_sdk_version of the containing APEX. When the module is not built for an APEX, "apex_inherit" defaults to sdk_version.
 multilib interface
 native_bridge_supported bool, Whether this module is built for non-native architectures (also known as native bridge binary)
 native_coverage bool
 no_crt_pad_segment bool, don't link in crt_pad_segment. This flag is currently only used internal to soong for testing and for vndk prebuilt shared libraries.
 no_full_install bool, When set to true, this module is not installed to the full install path (ex: under out/target/product/<name>/<partition>). It can be installed only to the packaging modules like android_filesystem.
 no_libcrt bool, don't link in libclang_rt.builtins-*.a
 nocrt bool, don't link in crt_begin and crt_end. This flag should only be necessary for compiling crt or libc.
 odm_available bool, This is the same as the "vendor_available" except that the install path of the vendor variant is /odm or /vendor/odm. By replacing "vendor_available: true" with "odm_available: true", the module will install its vendor variant to the /odm partition or /vendor/odm. As the modules with "odm_available: true" still create the vendor variants, they can link to the other vendor modules as the vendor_available modules do. Also, the vendor modules can link to odm_available modules. It may not be used for VNDK modules.
 odm_dlkm_specific bool, Install to partition odm_dlkm when set to true.
 openmp bool, Build and link with OpenMP
 optimize_for_size bool, Aggresively trade performance for smaller binary size. This should only be used for on-device binaries that are rarely executed and not performance critical.
orderfile
 instrumentation bool
 order_file_path string
 load_order_file bool
 cflags list of string, Additional compiler flags to use when building this module for orderfile profiling.
 overrides list of string, Names of modules to be overridden. Listed modules can only be other shared libraries (in Make or Soong). This does not completely prevent installation of the overridden libraries, but if both binaries would be installed by default (in PRODUCT_PACKAGES) the other library will be removed from PRODUCT_PACKAGES.
 owner string, vendor who owns this module
 pack_relocations bool, Generate compact dynamic relocation table, default true.
 prefer configurable bool, When prefer is set to true the prebuilt will be used instead of any source module with a matching name.
 prefix_symbols string, if set, add an extra objcopy --prefix-symbols= step
 product_available bool, whether this module should be allowed to be directly depended by other modules with `product_specific: true` or `product_available: true`. If set to true, an additional product variant will be built separately that is limited to the set of libraries and headers that are exposed to /product modules. The product variant may be used with a different (newer) /system, so it shouldn't have any unversioned runtime dependencies, or make assumptions about the system that may not be true in the future. If set to false, this module becomes inaccessible from /product modules. Different from the 'vendor_available' property, the modules with vndk: {enabled: true} don't have to define 'product_available'. The VNDK library without 'product_available' may not be depended on by any other modules that has product variants including the product available VNDKs. Nothing happens if BOARD_VNDK_VERSION isn't set in the BoardConfig.mk and PRODUCT_PRODUCT_VNDK_VERSION isn't set.
 product_specific bool, whether this module is specific to a software configuration of a product (e.g. country, network operator, etc). When set to true, it is installed into /product (or /system/product if product partition does not exist).
product_variables.arc
cflags
  []string
exclude_srcs
  []string
header_libs
  []string
include_dirs
  []string
shared_libs
  []string
static_libs
  []string
srcs
  []string
whole_static_libs
  []string
product_variables.binder32bit
cflags
  []string
product_variables.build_from_text_stub
static_libs
  []string
exclude_static_libs
  []string
product_variables.debuggable
cflags
  []string
cppflags
  []string
init_rc
  []string
required
  []string
host_required
  []string
target_required
  []string
strip.all
  *bool
strip.keep_symbols
  *bool
strip.keep_symbols_and_debug_frame
  *bool
static_libs
  []string
exclude_static_libs
  []string
whole_static_libs
  []string
shared_libs
  []string
srcs
  []string
exclude_srcs
  []string
product_variables.enforce_vintf_manifest
cflags
  []string
product_variables.eng
cflags
  []string
cppflags
  []string
lto.never
  *bool
sanitize.address
  *bool
product_variables.malloc_low_memory
cflags
  []string
shared_libs
  []string
whole_static_libs
  []string
static_libs
  []string
exclude_static_libs
  []string
srcs
  []string
header_libs
  []string
product_variables.malloc_pattern_fill_contents
cflags
  []string
product_variables.malloc_zero_contents
cflags
  []string
product_variables.native_coverage
srcs
  []string
exclude_srcs
  []string
product_variables.override_rs_driver
cflags
  []string
product_variables.platform_sdk_version
asflags
  []string
cflags
  []string
product_variables.release_aidl_use_unfrozen
cflags
  []string
required
  []string
vintf_fragment_modules
  []string
product_variables.safestack
cflags
  []string
product_variables.selinuxignoreneverallows
required
  []string
product_variables.shipping_api_level
cflags
  []string
product_variables.treble_linker_namespaces
cflags
  []string
product_variables.uml
cppflags
  []string
product_variables.unbundled_build
enabled Configurable[bool]
 Configurable[bool] proptools.Configurable[bool]
 proprietary bool, whether this is a proprietary vendor module, and should be installed into /vendor
proto
 type string, Proto generator type. C++: full or lite. Java: micro, nano, stream, or lite.
 plugin string, Proto plugin to use as the generator. Must be a cc_binary_host module.
 include_dirs list of string, list of directories that will be added to the protoc include paths.
 local_include_dirs list of string, list of directories relative to the bp file that will be added to the protoc include paths.
 canonical_path_from_root bool, whether to identify the proto files from the root of the source tree (the original method in Android, useful for android-specific protos), or relative from where they were specified (useful for external/third party protos). This defaults to true today, but is expected to default to false in the future.
 export_proto_headers bool, export headers generated from .proto sources
 static bool, Link statically against the protobuf runtime
 ramdisk bool, Whether this module is installed to ramdisk
 ramdisk_available bool, Make this module available when building for ramdisk. On device without a dedicated recovery partition, the module is only available after switching root into /first_stage_ramdisk. To expose the module before switching root, install the recovery variant instead.
 recovery bool, Whether this module is installed to recovery partition
 recovery_available bool, Make this module available when building for recovery
 relative_install_path string, install to a subdirectory of the default install path for the module
renderscript
 include_dirs list of string, list of directories that will be added to the llvm-rs-cc include paths
 flags list of string, list of flags that will be passed to llvm-rs-cc
 target_api string, Renderscript API level to target
 required configurable list of string, names of other modules to install if this module is installed
 rtti bool, pass -frtti instead of -fno-rtti
 runtime_libs list of string, list of modules that should be installed with this module. This is similar to 'required' but '.vendor' suffix will be appended to the module names if the shared libraries have vendor variants and this module uses VNDK.
sanitize SanitizeUserProps
 never bool, Prevent use of any sanitizers on this module
 address bool, ASan (Address sanitizer), incompatible with static binaries. Always runs in a diagnostic mode. Use of address sanitizer disables cfi sanitizer. Hwaddress sanitizer takes precedence over this sanitizer.
 thread bool, TSan (Thread sanitizer), incompatible with static binaries and 32 bit architectures. Always runs in a diagnostic mode. Use of thread sanitizer disables cfi and scudo sanitizers. Hwaddress sanitizer takes precedence over this sanitizer.
 hwaddress bool, HWASan (Hardware Address sanitizer). Use of hwasan sanitizer disables cfi, address, thread, and scudo sanitizers.
 all_undefined bool, Undefined behavior sanitizer
 undefined bool, Subset of undefined behavior sanitizer
 misc_undefined list of string, List of specific undefined behavior sanitizers to enable
 fuzzer bool, Fuzzer, incompatible with static binaries.
 safestack bool, safe-stack sanitizer, incompatible with 32-bit architectures.
 cfi bool, cfi sanitizer, incompatible with asan, hwasan, fuzzer, or Darwin
 integer_overflow bool, signed/unsigned integer overflow sanitizer, incompatible with Darwin.
 scudo bool, scudo sanitizer, incompatible with asan, hwasan, tsan This should not be used in Android 11+ : https://source.android.com/devices/tech/debug/scudo deprecated
 scs bool, shadow-call-stack sanitizer, only available on arm64/riscv64.
 memtag_heap bool, Memory-tagging, only available on arm64 if diag.memtag unset or false, enables async memory tagging
 memtag_stack bool, Memory-tagging stack instrumentation, only available on arm64 Adds instrumentation to detect stack buffer overflows and use-after-scope using MTE.
 memtag_globals bool, Memory-tagging globals instrumentation, only available on arm64 Adds instrumentation to detect global buffer overflows using MTE.
 writeonly bool, A modifier for ASAN and HWASAN for write only instrumentation
diag
Sanitizers to run in the diagnostic mode (as opposed to the release mode). Replaces abort() on error with a human-readable error message. Address and Thread sanitizers always run in diagnostic mode.
 undefined bool, Undefined behavior sanitizer, diagnostic mode
 cfi bool, cfi sanitizer, diagnostic mode, incompatible with asan, hwasan, fuzzer, or Darwin
 integer_overflow bool, signed/unsigned integer overflow sanitizer, diagnostic mode, incompatible with Darwin.
 memtag_heap bool, Memory-tagging, only available on arm64 requires sanitizer.memtag: true if set, enables sync memory tagging
 misc_undefined list of string, List of specific undefined behavior sanitizers to enable in diagnostic mode
 no_recover list of string, List of sanitizers to pass to -fno-sanitize-recover results in only the first detected error for these sanitizers being reported and program then exits with a non-zero exit code.
config
Sanitizers to run with flag configuration specified
 cfi_assembly_support bool, Enables CFI support flags for assembly-heavy libraries
 recover list of string, List of sanitizers to pass to -fsanitize-recover allows execution to continue for these sanitizers to detect multiple errors rather than only the first one
 blocklist string, value to pass to -fsanitize-ignorelist
sanitized.address
 srcs list of string
sanitized.hwaddress
 srcs list of string
sanitized.none
 srcs list of string
 sdk_variant_only bool, If true, always create an sdk variant and don't create a platform variant.
 sdk_version string, The API level that this module is built against. The APIs of this API level will be visible at build time, but use of any APIs newer than min_sdk_version will render the module unloadable on older devices. In the future it will be possible to weakly-link new APIs, making the behavior match Java: such modules will load on older devices, but calling new APIs on devices that do not support them will result in a crash. This property has the same behavior as sdk_version does for Java modules. For those familiar with Android Gradle, the property behaves similarly to how compileSdkVersion does for Java code. In addition, setting this property causes two variants to be built, one for the platform and one for apps.
shared StaticOrSharedProperties
 srcs configurable list of string
 tidy_disabled_srcs list of string
 tidy_timeout_srcs list of string
sanitized Sanitized
none
 srcs list of string
address
 srcs list of string
hwaddress
 srcs list of string
 cflags configurable list of string
 enabled bool
 whole_static_libs configurable list of string
 static_libs configurable list of string
 shared_libs configurable list of string
 system_shared_libs list of string
 export_shared_lib_headers list of string
 export_static_lib_headers list of string
 apex_available list of string
 installable bool
 shared_libs configurable list of string, list of modules that should be dynamically linked into this module.
 soc_specific bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist).
 source_module_name string, Name of the source soong module that gets shadowed by this prebuilt If unspecified, follows the naming convention that the source module of the prebuilt is Name() without "prebuilt_" prefix
static StaticOrSharedProperties
 srcs configurable list of string
 tidy_disabled_srcs list of string
 tidy_timeout_srcs list of string
sanitized Sanitized
none
 srcs list of string
address
 srcs list of string
hwaddress
 srcs list of string
 cflags configurable list of string
 enabled bool
 whole_static_libs configurable list of string
 static_libs configurable list of string
 shared_libs configurable list of string
 system_shared_libs list of string
 export_shared_lib_headers list of string
 export_static_lib_headers list of string
 apex_available list of string
 installable bool
 static_libs configurable list of string, list of modules that should be statically linked into this module.
 static_ndk_lib bool
 stem string, set the name of the output
 stl string, Select the STL library to use. Possible values are "libc++", "libc++_static", "libstdc++", or "none". Leave blank to select the default.
strip
 none bool, Device modules default to stripping enabled leaving mini debuginfo. Host modules default to stripping disabled, but can be enabled by setting any other strip boolean property.
 all bool, all forces stripping everything, including the mini debug info.
 keep_symbols bool, keep_symbols enables stripping but keeps all symbols.
 keep_symbols_list list of string, keep_symbols_list specifies a list of symbols to keep if keep_symbols is enabled. If it is unset then all symbols are kept.
 keep_symbols_and_debug_frame bool, keep_symbols_and_debug_frame enables stripping but keeps all symbols and debug frames.
stubs StubsProperties
Generate stubs to make this library accessible to APEXes.
 symbol_file string, Relative path to the symbol map. The symbol map provides the list of symbols that are exported for stubs variant of this library.
 versions list of string, List versions to generate stubs libs for. The version name "current" is always implicitly added.
 implementation_installable bool, Whether to not require the implementation of the library to be installed if a client of the stubs is installed. Defaults to true; set to false if the implementation is made available by some other means, e.g. in a Microdroid virtual machine.
 suffix string, set suffix of the name of the output
 system_dlkm_specific bool, Install to partition system_dlkm when set to true.
 system_ext_specific bool, whether this module extends system. When set to true, it is installed into /system_ext (or /system/system_ext if system_ext partition does not exist).
 system_shared_libs list of string, list of system libraries that will be dynamically linked to shared library and executable modules. If unset, generally defaults to libc, libm, and libdl. Set to [] to prevent linking against the defaults.
 target interface
target.android
 compile_multilib string
 enabled bool
target.apex
 exclude_shared_libs list of string, list of shared libs that should not be used to build the apex variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the apex variant of the C/C++ module.
target.host
 compile_multilib string
target.non_apex
 exclude_shared_libs list of string, list of shared libs that should not be used to build the non-apex variant of the C/C++ module.
target.platform
 shared_libs list of string, list of shared libs that should be use to build the platform variant of a module that sets sdk_version. This should rarely be necessary, in most cases the same libraries are available for the SDK and platform variants.
 header_libs list of string, list of ehader libs that only should be used to build platform variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the platform variant of the C/C++ module.
header_abi_checker headerAbiCheckerProperties
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 cflags list of string, List of additional cflags that should be used to build the platform variant of the C/C++ module.
 required list of string, List of modules required by the core variant.
 exclude_required list of string, List of modules not required by the core variant.
target.product
 suffix string, set suffix of the name of the output
header_abi_checker headerAbiCheckerProperties
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 no_stubs bool, Disable stubs for vendor/product variants This is a workaround to keep `stubs` only for "core" variant (not product/vendor). It would be nice if we could put `stubs` into a `target: { core: {} }` block but it's not supported in soong yet. This could be removed/simplified once we have a better syntax.
 shared_libs list of string, list of shared libs that only should be used to build vendor or product variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build vendor or product variant of the C/C++ module.
 header_libs list of string, list of header libs that only should be used to build vendor or product variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor or product variant of the C/C++ module.
 version_script string, version script for vendor or product variant
 override_export_include_dirs list of string, list of exported include directories, like export_include_dirs, that will be applied to vendor or product variant of this library. This will overwrite any other declarations.
 srcs list of string, list of source files that should only be used in vendor or product variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build vendor or product variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build vendor or product variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build vendor or product variant of the C/C++ module.
target.ramdisk
 static_libs list of string, list of static libs that only should be used to build the ramdisk variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the ramdisk variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the ramdisk variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the ramdisk variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build the ramdisk variants of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the ramdisk variants of the C/C++ module.
target.recovery
 shared_libs list of string, list of shared libs that only should be used to build the recovery variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build the recovery variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the recovery variant of the C/C++ module.
 srcs list of string, list of source files that should only be used in the recovery variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build the recovery variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the recovery variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build the recovery variant of the C/C++ module.
 required list of string, List of modules required by the recovery variant.
 exclude_required list of string, List of modules not required by the recovery variant.
target.vendor
 suffix string, set suffix of the name of the output
header_abi_checker headerAbiCheckerProperties
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 no_stubs bool, Disable stubs for vendor/product variants This is a workaround to keep `stubs` only for "core" variant (not product/vendor). It would be nice if we could put `stubs` into a `target: { core: {} }` block but it's not supported in soong yet. This could be removed/simplified once we have a better syntax.
 override_export_include_dirs list of string, list of exported include directories, like export_include_dirs, that will be applied to vendor or product variant of this library. This will overwrite any other declarations.
 srcs list of string, list of source files that should only be used in vendor or product variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build vendor or product variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build vendor or product variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build vendor or product variant of the C/C++ module.
 shared_libs list of string, list of shared libs that only should be used to build vendor or product variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build vendor or product variant of the C/C++ module.
 header_libs list of string, list of header libs that only should be used to build vendor or product variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor or product variant of the C/C++ module.
 version_script string, version script for vendor or product variant
target.vendor_ramdisk
 exclude_shared_libs list of string, list of shared libs that should not be used to build the vendor ramdisk variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the vendor ramdisk variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor ramdisk variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build the ramdisk variants of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the ramdisk variants of the C/C++ module.
 target_required list of string, names of other modules to install on target if this module is installed
 team string, The team (defined by the owner/vendor) who owns the property.
 test_only bool, Indicates that the module and its source code are only used in tests, not production code. Used by coverage reports and potentially other tools.
 tidy bool, whether to run clang-tidy over C-like sources.
 tidy_checks list of string, Extra checks to enable or disable in clang-tidy
 tidy_checks_as_errors list of string, Checks that should be treated as errors.
 tidy_disabled_srcs list of string, list of source files that should not be compiled with clang-tidy.
 tidy_flags list of string, Extra flags to pass to clang-tidy
 tidy_timeout_srcs list of string, list of source files that should not be compiled by clang-tidy when TIDY_TIMEOUT is set.
 unexported_symbols_list string, local file name to pass to the linker as -unexported_symbols_list
 unique_host_soname bool, rename host libraries to prevent overlap with system installed libraries
 use_generic_config bool, Set to true if this module must be generic and does not require product-specific information. To be included in the system image, this property must be set to true.
 use_source_config_var ConfigVarProperties, When specified this names a Soong config variable that controls the prefer property. If the value of the named Soong config variable is true then prefer is set to false and vice versa. If the Soong config variable is not set then it defaults to false, so prefer defaults to true. If specified then the prefer property is ignored in favor of the value of the Soong config variable. DEPRECATED: This property is being deprecated b/308188211. Use RELEASE_APEX_CONTRIBUTIONS build flags to select prebuilts of mainline modules.
 use_version_lib bool, make android::build:GetBuildNumber() available containing the build ID.
 vendor bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist). Use `soc_specific` instead for better meaning.
 vendor_available bool, whether this module should be allowed to be directly depended by other modules with `vendor: true`, `proprietary: true`, or `vendor_available:true`. If set to true, two variants will be built separately, one like normal, and the other limited to the set of libraries and headers that are exposed to /vendor modules. The vendor variant may be used with a different (newer) /system, so it shouldn't have any unversioned runtime dependencies, or make assumptions about the system that may not be true in the future. If set to false, this module becomes inaccessible from /vendor modules. The modules with vndk: {enabled: true} must define 'vendor_available' to 'true'. Nothing happens if BOARD_VNDK_VERSION isn't set in the BoardConfig.mk
 vendor_dlkm_specific bool, Install to partition vendor_dlkm when set to true.
vendor_public_library vendorPublicLibraryProperties
If this is a vendor public library, properties to describe the vendor public library stubs.
 symbol_file string, Relative path to the symbol map.
 unversioned bool, Whether the system library uses symbol versions.
 export_public_headers list of string, list of header libs to re-export include directories from.
 override_export_include_dirs list of string, list of directories relative to the Blueprints file that willbe added to the include path (using -I) for any module that links against the LLNDK variant of this module, replacing any that were listed outside the llndk clause.
 vendor_ramdisk bool, Whether this module is installed to vendor ramdisk
 vendor_ramdisk_available bool, Make this module available when building for vendor ramdisk. On device without a dedicated recovery partition, the module is only available after switching root into /first_stage_ramdisk. To expose the module before switching root, install the recovery variant instead.
 version_script string, local file name to pass to the linker as --version-script. Not supported on darwin, and will fail to build if provided to the darwin variant of a module.
 vintf_fragment_modules configurable list of string, vintf_fragment Modules required from this module.
 vintf_fragments configurable list of string, VINTF manifest fragments to be installed if this module is installed
 visibility list of string, Controls the visibility of this module to other modules. Allowable values are one or more of these formats:

 ["//visibility:public"]: Anyone can use this module.
 ["//visibility:private"]: Only rules in the module's package (not its subpackages) can use
     this module.
 ["//visibility:override"]: Discards any rules inherited from defaults or a creating module.
     Can only be used at the beginning of a list of visibility rules.
 ["//some/package:__pkg__", "//other/package:__pkg__"]: Only modules in some/package and
     other/package (defined in some/package/*.bp and other/package/*.bp) have access to
     this module. Note that sub-packages do not have access to the rule; for example,
     //some/package/foo:bar or //other/package/testing:bla wouldn't have access. __pkg__
     is a special module and must be used verbatim. It represents all of the modules in the
     package.
 ["//project:__subpackages__", "//other:__subpackages__"]: Only modules in packages project
     or other or in one of their sub-packages have access to this module. For example,
     //project:rule, //project/library:lib or //other/testing/internal:munge are allowed
     to depend on this rule (but not //independent:evil)
 ["//project"]: This is shorthand for ["//project:__pkg__"]
 [":__subpackages__"]: This is shorthand for ["//project:__subpackages__"] where
     //project is the module's package. e.g. using [":__subpackages__"] in
     packages/apps/Settings/Android.bp is equivalent to
     //packages/apps/Settings:__subpackages__.
 ["//visibility:legacy_public"]: The default visibility, behaves as //visibility:public
     for now. It is an error if it is used in a module.

If a module does not specify the `visibility` property then it uses the `default_visibility` property of the `package` module in the module's package. If the `default_visibility` property is not set for the module's package then it will use the `default_visibility` of its closest ancestor package for which a `default_visibility` property is specified. If no `default_visibility` property can be found then the module uses the global default of `//visibility:legacy_public`. The `visibility` property has no effect on a defaults module although it does apply to any non-defaults module that uses it. To set the visibility of a defaults module, use the `defaults_visibility` property on the defaults module; not to be confused with the `default_visibility` property on the package module. See https://android.googlesource.com/platform/build/soong/+/main/README.md#visibility for more details.
 whole_program_vtables bool, Use -fwhole-program-vtables cflag.
 whole_static_libs configurable list of string, list of modules whose object files should be linked into this module in their entirety. For static library modules, all of the .o files from the intermediate directory of the dependency will be linked into this modules .a file. For a shared library, the dependency's .a file will be linked into this module using -Wl,--whole-archive.
 windows_import_lib string, Optionally provide an import library if this is a Windows PE DLL prebuilt. This is needed only if this library is linked by other modules in build time. Only makes sense for the Windows target.
 yacc YaccProperties

cc_prebuilt_library_headers

cc_prebuilt_library_headers is a prebuilt version of cc_library_headers
 name string, The name of the module. Must be unique across all modules.
 srcs configurable list of string, a prebuilt library or binary. Can reference a genrule module that generates an executable file.
 exclude_srcs configurable list of string, list of source files that should not be used to build the C/C++ module. This is most useful in the arch/multilib variants to remove non-common files
 defaults list of string
 host_supported bool, If set to true, build a variant of the module for the host. Defaults to false.
 device_supported bool, If set to true, build a variant of the module for the device. Defaults to true.
 afdo bool, Afdo allows developers self-service enroll for automatic feedback-directed optimization using profile data.
aidl
 export_aidl_headers bool, export headers generated from .aidl sources
 libs list of string, List of aidl_library modules
 include_dirs list of string, list of directories that will be added to the aidl include paths.
 local_include_dirs list of string, list of directories relative to the Blueprints file that will be added to the aidl include paths.
 generate_traces bool, whether to generate traces (for systrace) for this interface
 flags list of string, list of flags that will be passed to the AIDL compiler
 allow_undefined_symbols bool, allow the module to contain undefined symbols. By default, modules cannot contain undefined symbols that are not satisified by their immediate dependencies. Set this flag to true to remove --no-undefined from the linker flags. This flag should only be necessary for compiling low-level libraries like libc.
 apex_available list of string, Availability of this module in APEXes. Only the listed APEXes can contain this module. If the module has stubs then other APEXes and the platform may access it through them (subject to visibility). "//apex_available:anyapex" is a pseudo APEX name that matches to any APEX. "//apex_available:platform" refers to non-APEX partitions like "system.img". Prefix pattern (com.foo.*) can be used to match with any APEX name with the prefix(com.foo.). Default is ["//apex_available:platform"].
 arch interface
 asflags list of string, list of module-specific flags that will be used for .S compiles
 bootstrap bool, Allows this module to use non-APEX version of libraries. Useful for building binaries that are started before APEXes are activated.
 bpf_target bool, cc Build rules targeting BPF must set this to true. The correct fix is to ban targeting bpf in cc rules instead use bpf_rules. (b/323415017)
buildstubs bool
 bool bool
 c_std string, C standard version to use. Can be a specific version (such as "gnu11"), "experimental" (which will use draft versions like C1x when available), or the empty string (which will use the default).
 cflags configurable list of string, list of module-specific flags that will be used for C and C++ compiles.
 check_elf_files bool, Check the prebuilt ELF files (e.g. DT_SONAME, DT_NEEDED, resolution of undefined symbols, etc), default true.
 clang bool, Deprecated. true is the default, false is invalid.
 clang_asflags list of string, list of module-specific flags that will be used for .S compiles when compiling with clang
 clang_cflags list of string, list of module-specific flags that will be used for C and C++ compiles when compiling with clang
 clang_verify bool, Add "-Xclang -verify" to the cflags and appends "touch $out" to the clang command line.
 cmake_snapshot_supported bool, Allows this module to be included in CMake release snapshots to be built outside of Android build system and source tree.
 compile_multilib string, control whether this module compiles for 32-bit, 64-bit, or both. Possible values are "32" (compile for 32-bit only), "64" (compile for 64-bit only), "both" (compile for both architectures), or "first" (compile for 64-bit on a 64-bit platform, and 32-bit on a 32-bit platform).
 conlyflags list of string, list of module-specific flags that will be used for C compiles
 cpp_std string, C++ standard version to use. Can be a specific version (such as "gnu++11"), "experimental" (which will use draft versions like C++1z when available), or the empty string (which will use the default).
 cppflags configurable list of string, list of module-specific flags that will be used for C++ compiles
 debug_ramdisk bool, Whether this module is installed to debug ramdisk
 device_first_generated_headers configurable list of string, Same as generated_headers, but the dependencies will be added based on the first supported arch variant and the device os variant. This can be useful for creating a host tool that embeds a copy of a device tool, that it then extracts and pushes to a device at runtime.
 device_specific bool, whether this module is specific to a device, not only for SoC, but also for off-chip peripherals. When set to true, it is installed into /odm (or /vendor/odm if odm partition does not exist, or /system/vendor/odm if both odm and vendor partitions do not exist). This implies `soc_specific:true`.
dist Dist
configuration to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 targets list of string, Copy the output of this module to the $DIST_DIR when `dist` is specified on the command line and any of these targets are also on the command line, or otherwise built
 dest string, The name of the output artifact. This defaults to the basename of the output of the module.
 dir string, The directory within the dist directory to store the artifact. Defaults to the top level directory ("").
 suffix string, A suffix to add to the artifact file name (before any extension).
 append_artifact_with_product bool, If true, then the artifact file will be appended with _<product name>. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be foo_coral.apk. If false, there is no change to the artifact file name.
 prepend_artifact_with_product bool, If true, then the artifact file will be prepended with <product name>-. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be coral-foo.apk. If false, there is no change to the artifact file name.
 tag string, A string tag to select the OutputFiles associated with the tag. If no tag is specified then it will select the default dist paths provided by the module type. If a tag of "" is specified then it will return the default output files provided by the modules, i.e. the result of calling OutputFiles("").
 dists list of Dist, a list of configurations to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 double_loadable bool, whether this module is capable of being loaded with other instance (possibly an older version) of the same module in the same process. Currently, a shared library that is a member of VNDK (vndk: {enabled: true}) can be double loaded in a vendor process if the library is also a (direct and indirect) dependency of an LLNDK library. Such libraries must be explicitly marked as `double_loadable: true` by the owner, or the dependency from the LLNDK lib should be cut if the lib is not designed to be double loaded.
 dynamic_list string, local file name to pass to the linker as --dynamic-list. Not supported on darwin, and will fail to build if provided to the darwin variant of a module.
 enabled configurable bool, emit build rules for this module Disabling a module should only be done for those modules that cannot be built in the current environment. Modules that can build in the current environment but are not usually required (e.g. superceded by a prebuilt) should not be disabled as that will prevent them from being built by the checkbuild target and so prevent early detection of changes that have broken those modules.
 exclude_generated_sources list of string, list of generated sources that should not be used to build the C/C++ module. This is most useful in the arch/multilib variants to remove non-common files
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with this module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build this module
 exclude_static_libs list of string, list of static libs that should not be used to build this module
 export_cflags list of string, list of plain cc flags to be used for any module that links against this module.
 export_generated_headers list of string, list of generated headers to re-export include directories from. Entries must be present in generated_headers.
 export_header_lib_headers configurable list of string, list of header libraries to re-export include directories from. Entries must be present in header_libs.
 export_include_dirs configurable list of string, list of directories relative to the Blueprints file that will be added to the include path (using -I) for this module and any module that links against this module. Directories listed in export_include_dirs do not need to be listed in local_include_dirs.
 export_shared_lib_headers list of string, list of shared libraries to re-export include directories from. Entries must be present in shared_libs.
 export_static_lib_headers list of string, list of static libraries to re-export include directories from. Entries must be present in static_libs.
 export_system_include_dirs list of string, list of directories that will be added to the system include path using -isystem for this module and any module that links against this module.
 exported_symbols_list string, local file name to pass to the linker as -exported_symbols_list
 force_symbols_not_weak_list string, local file name to pass to the linker as -force_symbols_not_weak_list
 force_symbols_weak_list string, local file name to pass to the linker as -force_symbols_weak_list
 generated_headers configurable list of string, list of generated headers to add to the include path. These are the names of genrule modules.
 generated_sources list of string, list of generated sources to compile. These are the names of gensrcs or genrule modules.
 gnu_extensions bool, if set to false, use -std=c++* instead of -std=gnu++*
 group_static_libs bool, deprecated and ignored because lld makes it unnecessary. See b/189475744.
header_abi_checker headerAbiCheckerProperties
Properties for ABI compatibility checker.
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 header_libs configurable list of string, list of modules that should only provide headers for this module.
 host_cross_supported bool, If set to true, build a variant of the module for the host cross. Defaults to true.
 host_ldlibs list of string, -l arguments to pass to linker for host-provided shared libraries
 host_required list of string, names of other modules to install on host if this module is installed
 ignore_max_page_size bool, ignore max page size. By default, max page size must be the max page size set for the target.
 include_build_directory bool, Add the directory containing the Android.bp file to the list of include directories. Defaults to true.
 include_dirs configurable list of string, list of directories relative to the root of the source tree that will be added to the include path using -I. If possible, don't use this. If adding paths from the current directory use local_include_dirs, if adding paths from other modules use export_include_dirs in that module.
 init_rc configurable list of string, init.rc files to be installed if this module is installed
 inject_bssl_hash bool, Inject boringssl hash into the shared library. This is only intended for use by external/boringssl.
 install_in_root bool, Install output directly in {partition}/, not in any subdir. This is only intended for use by init_first_stage.
 install_in_xbin bool, Install output directly in {partition}/xbin
 installable bool
 instruction_set string, the instruction set architecture to use to compile the C/C++ module.
 ldflags list of string, list of module-specific flags that will be used for all link steps
 lex LexProperties
 licenses list of string, Describes the licenses applicable to this module. Must reference license modules.
 linker_scripts list of string, local files to pass to the linker as --script. Not supported on darwin or windows, and will fail to build if provided to the darwin or windows variant of a module.
llndk llndkLibraryProperties
If this is an LLNDK library, properties to describe the LLNDK stubs. Will be copied from the module pointed to by llndk_stubs if it is set.
 symbol_file string, Relative path to the symbol map. An example file can be seen here: TODO(danalbert): Make an example.
 export_headers_as_system bool, Whether to export any headers as -isystem instead of -I. Mainly for use by bionic/libc.
 unversioned bool, Whether the system library uses symbol versions.
 export_llndk_headers list of string, list of llndk headers to re-export include directories from.
 override_export_include_dirs list of string, list of directories relative to the Blueprints file that willbe added to the include path (using -I) for any module that links against the LLNDK variant of this module, replacing any that were listed outside the llndk clause.
 private bool, whether this module can be directly depended upon by libs that are installed to /vendor and /product. When set to true, this module can only be depended on by VNDK libraries, not vendor nor product libraries. This effectively hides this module from non-system modules. Default value is false.
 llndk_headers bool, if true, make this module available to provide headers to other modules that set llndk.symbol_file.
 moved_to_apex bool, moved_to_apex marks this module has having been distributed through an apex module.
 local_include_dirs configurable list of string, list of directories relative to the Blueprints file that will be added to the include path using -I
 logtags list of string, *.logtags files, to combine together in order to generate the /system/etc/event-log-tags file
lto
Lto must violate capitalization style for acronyms so that it can be referred to in blueprint files as "lto"
 never bool
 thin bool
 lto_O0 bool, Use --lto-O0 flag.
 min_sdk_version string, Minimum OS API level supported by this C or C++ module. This property becomes the value of the __ANDROID_API__ macro. When the C or C++ module is included in an APEX or an APK, this property is also used to ensure that the min_sdk_version of the containing module is not older (i.e. less) than this module's min_sdk_version. When not set, this property defaults to the value of sdk_version. When this is set to "apex_inherit", this tracks min_sdk_version of the containing APEX. When the module is not built for an APEX, "apex_inherit" defaults to sdk_version.
 multilib interface
 native_bridge_supported bool, Whether this module is built for non-native architectures (also known as native bridge binary)
 native_coverage bool
 no_crt_pad_segment bool, don't link in crt_pad_segment. This flag is currently only used internal to soong for testing and for vndk prebuilt shared libraries.
 no_full_install bool, When set to true, this module is not installed to the full install path (ex: under out/target/product/<name>/<partition>). It can be installed only to the packaging modules like android_filesystem.
 no_libcrt bool, don't link in libclang_rt.builtins-*.a
 nocrt bool, don't link in crt_begin and crt_end. This flag should only be necessary for compiling crt or libc.
 odm_available bool, This is the same as the "vendor_available" except that the install path of the vendor variant is /odm or /vendor/odm. By replacing "vendor_available: true" with "odm_available: true", the module will install its vendor variant to the /odm partition or /vendor/odm. As the modules with "odm_available: true" still create the vendor variants, they can link to the other vendor modules as the vendor_available modules do. Also, the vendor modules can link to odm_available modules. It may not be used for VNDK modules.
 odm_dlkm_specific bool, Install to partition odm_dlkm when set to true.
 openmp bool, Build and link with OpenMP
 optimize_for_size bool, Aggresively trade performance for smaller binary size. This should only be used for on-device binaries that are rarely executed and not performance critical.
orderfile
 instrumentation bool
 order_file_path string
 load_order_file bool
 cflags list of string, Additional compiler flags to use when building this module for orderfile profiling.
 overrides list of string, List of module names that are prevented from being installed when this module gets installed.
 owner string, vendor who owns this module
 pack_relocations bool, Generate compact dynamic relocation table, default true.
 prefer configurable bool, When prefer is set to true the prebuilt will be used instead of any source module with a matching name.
 prefix_symbols string, if set, add an extra objcopy --prefix-symbols= step
 product_available bool, whether this module should be allowed to be directly depended by other modules with `product_specific: true` or `product_available: true`. If set to true, an additional product variant will be built separately that is limited to the set of libraries and headers that are exposed to /product modules. The product variant may be used with a different (newer) /system, so it shouldn't have any unversioned runtime dependencies, or make assumptions about the system that may not be true in the future. If set to false, this module becomes inaccessible from /product modules. Different from the 'vendor_available' property, the modules with vndk: {enabled: true} don't have to define 'product_available'. The VNDK library without 'product_available' may not be depended on by any other modules that has product variants including the product available VNDKs. Nothing happens if BOARD_VNDK_VERSION isn't set in the BoardConfig.mk and PRODUCT_PRODUCT_VNDK_VERSION isn't set.
 product_specific bool, whether this module is specific to a software configuration of a product (e.g. country, network operator, etc). When set to true, it is installed into /product (or /system/product if product partition does not exist).
product_variables.arc
cflags
  []string
exclude_srcs
  []string
header_libs
  []string
include_dirs
  []string
shared_libs
  []string
static_libs
  []string
srcs
  []string
whole_static_libs
  []string
product_variables.binder32bit
cflags
  []string
product_variables.build_from_text_stub
static_libs
  []string
exclude_static_libs
  []string
product_variables.debuggable
cflags
  []string
cppflags
  []string
init_rc
  []string
required
  []string
host_required
  []string
target_required
  []string
strip.all
  *bool
strip.keep_symbols
  *bool
strip.keep_symbols_and_debug_frame
  *bool
static_libs
  []string
exclude_static_libs
  []string
whole_static_libs
  []string
shared_libs
  []string
srcs
  []string
exclude_srcs
  []string
product_variables.enforce_vintf_manifest
cflags
  []string
product_variables.eng
cflags
  []string
cppflags
  []string
lto.never
  *bool
sanitize.address
  *bool
product_variables.malloc_low_memory
cflags
  []string
shared_libs
  []string
whole_static_libs
  []string
static_libs
  []string
exclude_static_libs
  []string
srcs
  []string
header_libs
  []string
product_variables.malloc_pattern_fill_contents
cflags
  []string
product_variables.malloc_zero_contents
cflags
  []string
product_variables.native_coverage
srcs
  []string
exclude_srcs
  []string
product_variables.override_rs_driver
cflags
  []string
product_variables.platform_sdk_version
asflags
  []string
cflags
  []string
product_variables.release_aidl_use_unfrozen
cflags
  []string
required
  []string
vintf_fragment_modules
  []string
product_variables.safestack
cflags
  []string
product_variables.selinuxignoreneverallows
required
  []string
product_variables.shipping_api_level
cflags
  []string
product_variables.treble_linker_namespaces
cflags
  []string
product_variables.uml
cppflags
  []string
product_variables.unbundled_build
enabled Configurable[bool]
 Configurable[bool] proptools.Configurable[bool]
 proprietary bool, whether this is a proprietary vendor module, and should be installed into /vendor
proto
 export_proto_headers bool, export headers generated from .proto sources
 type string, Proto generator type. C++: full or lite. Java: micro, nano, stream, or lite.
 plugin string, Proto plugin to use as the generator. Must be a cc_binary_host module.
 include_dirs list of string, list of directories that will be added to the protoc include paths.
 local_include_dirs list of string, list of directories relative to the bp file that will be added to the protoc include paths.
 canonical_path_from_root bool, whether to identify the proto files from the root of the source tree (the original method in Android, useful for android-specific protos), or relative from where they were specified (useful for external/third party protos). This defaults to true today, but is expected to default to false in the future.
 static bool, Link statically against the protobuf runtime
 ramdisk bool, Whether this module is installed to ramdisk
 ramdisk_available bool, Make this module available when building for ramdisk. On device without a dedicated recovery partition, the module is only available after switching root into /first_stage_ramdisk. To expose the module before switching root, install the recovery variant instead.
 recovery bool, Whether this module is installed to recovery partition
 recovery_available bool, Make this module available when building for recovery
 relative_install_path string, install to a subdirectory of the default install path for the module
renderscript
 include_dirs list of string, list of directories that will be added to the llvm-rs-cc include paths
 flags list of string, list of flags that will be passed to llvm-rs-cc
 target_api string, Renderscript API level to target
 required configurable list of string, names of other modules to install if this module is installed
 rtti bool, pass -frtti instead of -fno-rtti
 runtime_libs list of string, list of modules that should be installed with this module. This is similar to 'required' but '.vendor' suffix will be appended to the module names if the shared libraries have vendor variants and this module uses VNDK.
sanitize SanitizeUserProps
 never bool, Prevent use of any sanitizers on this module
 address bool, ASan (Address sanitizer), incompatible with static binaries. Always runs in a diagnostic mode. Use of address sanitizer disables cfi sanitizer. Hwaddress sanitizer takes precedence over this sanitizer.
 thread bool, TSan (Thread sanitizer), incompatible with static binaries and 32 bit architectures. Always runs in a diagnostic mode. Use of thread sanitizer disables cfi and scudo sanitizers. Hwaddress sanitizer takes precedence over this sanitizer.
 hwaddress bool, HWASan (Hardware Address sanitizer). Use of hwasan sanitizer disables cfi, address, thread, and scudo sanitizers.
 all_undefined bool, Undefined behavior sanitizer
 undefined bool, Subset of undefined behavior sanitizer
 misc_undefined list of string, List of specific undefined behavior sanitizers to enable
 fuzzer bool, Fuzzer, incompatible with static binaries.
 safestack bool, safe-stack sanitizer, incompatible with 32-bit architectures.
 cfi bool, cfi sanitizer, incompatible with asan, hwasan, fuzzer, or Darwin
 integer_overflow bool, signed/unsigned integer overflow sanitizer, incompatible with Darwin.
 scudo bool, scudo sanitizer, incompatible with asan, hwasan, tsan This should not be used in Android 11+ : https://source.android.com/devices/tech/debug/scudo deprecated
 scs bool, shadow-call-stack sanitizer, only available on arm64/riscv64.
 memtag_heap bool, Memory-tagging, only available on arm64 if diag.memtag unset or false, enables async memory tagging
 memtag_stack bool, Memory-tagging stack instrumentation, only available on arm64 Adds instrumentation to detect stack buffer overflows and use-after-scope using MTE.
 memtag_globals bool, Memory-tagging globals instrumentation, only available on arm64 Adds instrumentation to detect global buffer overflows using MTE.
 writeonly bool, A modifier for ASAN and HWASAN for write only instrumentation
diag
Sanitizers to run in the diagnostic mode (as opposed to the release mode). Replaces abort() on error with a human-readable error message. Address and Thread sanitizers always run in diagnostic mode.
 undefined bool, Undefined behavior sanitizer, diagnostic mode
 cfi bool, cfi sanitizer, diagnostic mode, incompatible with asan, hwasan, fuzzer, or Darwin
 integer_overflow bool, signed/unsigned integer overflow sanitizer, diagnostic mode, incompatible with Darwin.
 memtag_heap bool, Memory-tagging, only available on arm64 requires sanitizer.memtag: true if set, enables sync memory tagging
 misc_undefined list of string, List of specific undefined behavior sanitizers to enable in diagnostic mode
 no_recover list of string, List of sanitizers to pass to -fno-sanitize-recover results in only the first detected error for these sanitizers being reported and program then exits with a non-zero exit code.
config
Sanitizers to run with flag configuration specified
 cfi_assembly_support bool, Enables CFI support flags for assembly-heavy libraries
 recover list of string, List of sanitizers to pass to -fsanitize-recover allows execution to continue for these sanitizers to detect multiple errors rather than only the first one
 blocklist string, value to pass to -fsanitize-ignorelist
sanitized.address
 srcs list of string
sanitized.hwaddress
 srcs list of string
sanitized.none
 srcs list of string
 sdk_variant_only bool, If true, always create an sdk variant and don't create a platform variant.
 sdk_version string, The API level that this module is built against. The APIs of this API level will be visible at build time, but use of any APIs newer than min_sdk_version will render the module unloadable on older devices. In the future it will be possible to weakly-link new APIs, making the behavior match Java: such modules will load on older devices, but calling new APIs on devices that do not support them will result in a crash. This property has the same behavior as sdk_version does for Java modules. For those familiar with Android Gradle, the property behaves similarly to how compileSdkVersion does for Java code. In addition, setting this property causes two variants to be built, one for the platform and one for apps.
 shared_libs configurable list of string, list of modules that should be dynamically linked into this module.
 soc_specific bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist).
 source_module_name string, Name of the source soong module that gets shadowed by this prebuilt If unspecified, follows the naming convention that the source module of the prebuilt is Name() without "prebuilt_" prefix
 static_libs configurable list of string, list of modules that should be statically linked into this module.
 static_ndk_lib bool
 stem string, set the name of the output
 stl string, Select the STL library to use. Possible values are "libc++", "libc++_static", "libstdc++", or "none". Leave blank to select the default.
strip
 none bool, Device modules default to stripping enabled leaving mini debuginfo. Host modules default to stripping disabled, but can be enabled by setting any other strip boolean property.
 all bool, all forces stripping everything, including the mini debug info.
 keep_symbols bool, keep_symbols enables stripping but keeps all symbols.
 keep_symbols_list list of string, keep_symbols_list specifies a list of symbols to keep if keep_symbols is enabled. If it is unset then all symbols are kept.
 keep_symbols_and_debug_frame bool, keep_symbols_and_debug_frame enables stripping but keeps all symbols and debug frames.
stubs StubsProperties
Generate stubs to make this library accessible to APEXes.
 symbol_file string, Relative path to the symbol map. The symbol map provides the list of symbols that are exported for stubs variant of this library.
 versions list of string, List versions to generate stubs libs for. The version name "current" is always implicitly added.
 implementation_installable bool, Whether to not require the implementation of the library to be installed if a client of the stubs is installed. Defaults to true; set to false if the implementation is made available by some other means, e.g. in a Microdroid virtual machine.
 suffix string, set suffix of the name of the output
 system_dlkm_specific bool, Install to partition system_dlkm when set to true.
 system_ext_specific bool, whether this module extends system. When set to true, it is installed into /system_ext (or /system/system_ext if system_ext partition does not exist).
 system_shared_libs list of string, list of system libraries that will be dynamically linked to shared library and executable modules. If unset, generally defaults to libc, libm, and libdl. Set to [] to prevent linking against the defaults.
 target interface
target.android
 compile_multilib string
 enabled bool
target.apex
 exclude_shared_libs list of string, list of shared libs that should not be used to build the apex variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the apex variant of the C/C++ module.
target.host
 compile_multilib string
target.non_apex
 exclude_shared_libs list of string, list of shared libs that should not be used to build the non-apex variant of the C/C++ module.
target.platform
 cflags list of string, List of additional cflags that should be used to build the platform variant of the C/C++ module.
 shared_libs list of string, list of shared libs that should be use to build the platform variant of a module that sets sdk_version. This should rarely be necessary, in most cases the same libraries are available for the SDK and platform variants.
 header_libs list of string, list of ehader libs that only should be used to build platform variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the platform variant of the C/C++ module.
 required list of string, List of modules required by the core variant.
 exclude_required list of string, List of modules not required by the core variant.
header_abi_checker headerAbiCheckerProperties
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
target.product
 suffix string, set suffix of the name of the output
header_abi_checker headerAbiCheckerProperties
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 no_stubs bool, Disable stubs for vendor/product variants This is a workaround to keep `stubs` only for "core" variant (not product/vendor). It would be nice if we could put `stubs` into a `target: { core: {} }` block but it's not supported in soong yet. This could be removed/simplified once we have a better syntax.
 srcs list of string, list of source files that should only be used in vendor or product variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build vendor or product variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build vendor or product variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build vendor or product variant of the C/C++ module.
 shared_libs list of string, list of shared libs that only should be used to build vendor or product variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build vendor or product variant of the C/C++ module.
 header_libs list of string, list of header libs that only should be used to build vendor or product variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor or product variant of the C/C++ module.
 version_script string, version script for vendor or product variant
 override_export_include_dirs list of string, list of exported include directories, like export_include_dirs, that will be applied to vendor or product variant of this library. This will overwrite any other declarations.
target.ramdisk
 exclude_srcs list of string, list of source files that should not be used to build the ramdisk variants of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the ramdisk variants of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build the ramdisk variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the ramdisk variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the ramdisk variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the ramdisk variant of the C/C++ module.
target.recovery
 required list of string, List of modules required by the recovery variant.
 exclude_required list of string, List of modules not required by the recovery variant.
 srcs list of string, list of source files that should only be used in the recovery variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build the recovery variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the recovery variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build the recovery variant of the C/C++ module.
 shared_libs list of string, list of shared libs that only should be used to build the recovery variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build the recovery variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the recovery variant of the C/C++ module.
target.vendor
 srcs list of string, list of source files that should only be used in vendor or product variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build vendor or product variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build vendor or product variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build vendor or product variant of the C/C++ module.
 suffix string, set suffix of the name of the output
header_abi_checker headerAbiCheckerProperties
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 no_stubs bool, Disable stubs for vendor/product variants This is a workaround to keep `stubs` only for "core" variant (not product/vendor). It would be nice if we could put `stubs` into a `target: { core: {} }` block but it's not supported in soong yet. This could be removed/simplified once we have a better syntax.
 override_export_include_dirs list of string, list of exported include directories, like export_include_dirs, that will be applied to vendor or product variant of this library. This will overwrite any other declarations.
 shared_libs list of string, list of shared libs that only should be used to build vendor or product variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build vendor or product variant of the C/C++ module.
 header_libs list of string, list of header libs that only should be used to build vendor or product variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor or product variant of the C/C++ module.
 version_script string, version script for vendor or product variant
target.vendor_ramdisk
 exclude_shared_libs list of string, list of shared libs that should not be used to build the vendor ramdisk variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the vendor ramdisk variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor ramdisk variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build the ramdisk variants of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the ramdisk variants of the C/C++ module.
 target_required list of string, names of other modules to install on target if this module is installed
 team string, The team (defined by the owner/vendor) who owns the property.
 test_only bool, Indicates that the module and its source code are only used in tests, not production code. Used by coverage reports and potentially other tools.
 tidy bool, whether to run clang-tidy over C-like sources.
 tidy_checks list of string, Extra checks to enable or disable in clang-tidy
 tidy_checks_as_errors list of string, Checks that should be treated as errors.
 tidy_disabled_srcs list of string, list of source files that should not be compiled with clang-tidy.
 tidy_flags list of string, Extra flags to pass to clang-tidy
 tidy_timeout_srcs list of string, list of source files that should not be compiled by clang-tidy when TIDY_TIMEOUT is set.
 unexported_symbols_list string, local file name to pass to the linker as -unexported_symbols_list
 unique_host_soname bool, rename host libraries to prevent overlap with system installed libraries
 use_generic_config bool, Set to true if this module must be generic and does not require product-specific information. To be included in the system image, this property must be set to true.
 use_source_config_var ConfigVarProperties, When specified this names a Soong config variable that controls the prefer property. If the value of the named Soong config variable is true then prefer is set to false and vice versa. If the Soong config variable is not set then it defaults to false, so prefer defaults to true. If specified then the prefer property is ignored in favor of the value of the Soong config variable. DEPRECATED: This property is being deprecated b/308188211. Use RELEASE_APEX_CONTRIBUTIONS build flags to select prebuilts of mainline modules.
 use_version_lib bool, make android::build:GetBuildNumber() available containing the build ID.
 vendor bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist). Use `soc_specific` instead for better meaning.
 vendor_available bool, whether this module should be allowed to be directly depended by other modules with `vendor: true`, `proprietary: true`, or `vendor_available:true`. If set to true, two variants will be built separately, one like normal, and the other limited to the set of libraries and headers that are exposed to /vendor modules. The vendor variant may be used with a different (newer) /system, so it shouldn't have any unversioned runtime dependencies, or make assumptions about the system that may not be true in the future. If set to false, this module becomes inaccessible from /vendor modules. The modules with vndk: {enabled: true} must define 'vendor_available' to 'true'. Nothing happens if BOARD_VNDK_VERSION isn't set in the BoardConfig.mk
 vendor_dlkm_specific bool, Install to partition vendor_dlkm when set to true.
vendor_public_library vendorPublicLibraryProperties
If this is a vendor public library, properties to describe the vendor public library stubs.
 symbol_file string, Relative path to the symbol map.
 unversioned bool, Whether the system library uses symbol versions.
 export_public_headers list of string, list of header libs to re-export include directories from.
 override_export_include_dirs list of string, list of directories relative to the Blueprints file that willbe added to the include path (using -I) for any module that links against the LLNDK variant of this module, replacing any that were listed outside the llndk clause.
 vendor_ramdisk bool, Whether this module is installed to vendor ramdisk
 vendor_ramdisk_available bool, Make this module available when building for vendor ramdisk. On device without a dedicated recovery partition, the module is only available after switching root into /first_stage_ramdisk. To expose the module before switching root, install the recovery variant instead.
 version_script string, local file name to pass to the linker as --version-script. Not supported on darwin, and will fail to build if provided to the darwin variant of a module.
 vintf_fragment_modules configurable list of string, vintf_fragment Modules required from this module.
 vintf_fragments configurable list of string, VINTF manifest fragments to be installed if this module is installed
 visibility list of string, Controls the visibility of this module to other modules. Allowable values are one or more of these formats:

 ["//visibility:public"]: Anyone can use this module.
 ["//visibility:private"]: Only rules in the module's package (not its subpackages) can use
     this module.
 ["//visibility:override"]: Discards any rules inherited from defaults or a creating module.
     Can only be used at the beginning of a list of visibility rules.
 ["//some/package:__pkg__", "//other/package:__pkg__"]: Only modules in some/package and
     other/package (defined in some/package/*.bp and other/package/*.bp) have access to
     this module. Note that sub-packages do not have access to the rule; for example,
     //some/package/foo:bar or //other/package/testing:bla wouldn't have access. __pkg__
     is a special module and must be used verbatim. It represents all of the modules in the
     package.
 ["//project:__subpackages__", "//other:__subpackages__"]: Only modules in packages project
     or other or in one of their sub-packages have access to this module. For example,
     //project:rule, //project/library:lib or //other/testing/internal:munge are allowed
     to depend on this rule (but not //independent:evil)
 ["//project"]: This is shorthand for ["//project:__pkg__"]
 [":__subpackages__"]: This is shorthand for ["//project:__subpackages__"] where
     //project is the module's package. e.g. using [":__subpackages__"] in
     packages/apps/Settings/Android.bp is equivalent to
     //packages/apps/Settings:__subpackages__.
 ["//visibility:legacy_public"]: The default visibility, behaves as //visibility:public
     for now. It is an error if it is used in a module.

If a module does not specify the `visibility` property then it uses the `default_visibility` property of the `package` module in the module's package. If the `default_visibility` property is not set for the module's package then it will use the `default_visibility` of its closest ancestor package for which a `default_visibility` property is specified. If no `default_visibility` property can be found then the module uses the global default of `//visibility:legacy_public`. The `visibility` property has no effect on a defaults module although it does apply to any non-defaults module that uses it. To set the visibility of a defaults module, use the `defaults_visibility` property on the defaults module; not to be confused with the `default_visibility` property on the package module. See https://android.googlesource.com/platform/build/soong/+/main/README.md#visibility for more details.
 whole_program_vtables bool, Use -fwhole-program-vtables cflag.
 whole_static_libs configurable list of string, list of modules whose object files should be linked into this module in their entirety. For static library modules, all of the .o files from the intermediate directory of the dependency will be linked into this modules .a file. For a shared library, the dependency's .a file will be linked into this module using -Wl,--whole-archive.
 windows_import_lib string, Optionally provide an import library if this is a Windows PE DLL prebuilt. This is needed only if this library is linked by other modules in build time. Only makes sense for the Windows target.
 yacc YaccProperties

cc_prebuilt_library_shared

cc_prebuilt_library_shared installs a precompiled shared library that are listed in the srcs property in the device's directory.
 name string, The name of the module. Must be unique across all modules.
 srcs configurable list of string, a prebuilt library or binary. Can reference a genrule module that generates an executable file.
 exclude_srcs configurable list of string, list of source files that should not be used to build the C/C++ module. This is most useful in the arch/multilib variants to remove non-common files
 defaults list of string
 host_supported bool, If set to true, build a variant of the module for the host. Defaults to false.
 device_supported bool, If set to true, build a variant of the module for the device. Defaults to true.
 afdo bool, Afdo allows developers self-service enroll for automatic feedback-directed optimization using profile data.
aidl
 libs list of string, List of aidl_library modules
 include_dirs list of string, list of directories that will be added to the aidl include paths.
 local_include_dirs list of string, list of directories relative to the Blueprints file that will be added to the aidl include paths.
 generate_traces bool, whether to generate traces (for systrace) for this interface
 flags list of string, list of flags that will be passed to the AIDL compiler
 export_aidl_headers bool, export headers generated from .aidl sources
 allow_undefined_symbols bool, allow the module to contain undefined symbols. By default, modules cannot contain undefined symbols that are not satisified by their immediate dependencies. Set this flag to true to remove --no-undefined from the linker flags. This flag should only be necessary for compiling low-level libraries like libc.
 apex_available list of string, Availability of this module in APEXes. Only the listed APEXes can contain this module. If the module has stubs then other APEXes and the platform may access it through them (subject to visibility). "//apex_available:anyapex" is a pseudo APEX name that matches to any APEX. "//apex_available:platform" refers to non-APEX partitions like "system.img". Prefix pattern (com.foo.*) can be used to match with any APEX name with the prefix(com.foo.). Default is ["//apex_available:platform"].
 arch interface
 asflags list of string, list of module-specific flags that will be used for .S compiles
 bootstrap bool, Allows this module to use non-APEX version of libraries. Useful for building binaries that are started before APEXes are activated.
 bpf_target bool, cc Build rules targeting BPF must set this to true. The correct fix is to ban targeting bpf in cc rules instead use bpf_rules. (b/323415017)
buildstubs bool
 bool bool
 c_std string, C standard version to use. Can be a specific version (such as "gnu11"), "experimental" (which will use draft versions like C1x when available), or the empty string (which will use the default).
 cflags configurable list of string, list of module-specific flags that will be used for C and C++ compiles.
 check_elf_files bool, Check the prebuilt ELF files (e.g. DT_SONAME, DT_NEEDED, resolution of undefined symbols, etc), default true.
 clang bool, Deprecated. true is the default, false is invalid.
 clang_asflags list of string, list of module-specific flags that will be used for .S compiles when compiling with clang
 clang_cflags list of string, list of module-specific flags that will be used for C and C++ compiles when compiling with clang
 clang_verify bool, Add "-Xclang -verify" to the cflags and appends "touch $out" to the clang command line.
 cmake_snapshot_supported bool, Allows this module to be included in CMake release snapshots to be built outside of Android build system and source tree.
 compile_multilib string, control whether this module compiles for 32-bit, 64-bit, or both. Possible values are "32" (compile for 32-bit only), "64" (compile for 64-bit only), "both" (compile for both architectures), or "first" (compile for 64-bit on a 64-bit platform, and 32-bit on a 32-bit platform).
 conlyflags list of string, list of module-specific flags that will be used for C compiles
 cpp_std string, C++ standard version to use. Can be a specific version (such as "gnu++11"), "experimental" (which will use draft versions like C++1z when available), or the empty string (which will use the default).
 cppflags configurable list of string, list of module-specific flags that will be used for C++ compiles
 debug_ramdisk bool, Whether this module is installed to debug ramdisk
 device_first_generated_headers configurable list of string, Same as generated_headers, but the dependencies will be added based on the first supported arch variant and the device os variant. This can be useful for creating a host tool that embeds a copy of a device tool, that it then extracts and pushes to a device at runtime.
 device_specific bool, whether this module is specific to a device, not only for SoC, but also for off-chip peripherals. When set to true, it is installed into /odm (or /vendor/odm if odm partition does not exist, or /system/vendor/odm if both odm and vendor partitions do not exist). This implies `soc_specific:true`.
dist Dist
configuration to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 targets list of string, Copy the output of this module to the $DIST_DIR when `dist` is specified on the command line and any of these targets are also on the command line, or otherwise built
 dest string, The name of the output artifact. This defaults to the basename of the output of the module.
 dir string, The directory within the dist directory to store the artifact. Defaults to the top level directory ("").
 suffix string, A suffix to add to the artifact file name (before any extension).
 append_artifact_with_product bool, If true, then the artifact file will be appended with _<product name>. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be foo_coral.apk. If false, there is no change to the artifact file name.
 prepend_artifact_with_product bool, If true, then the artifact file will be prepended with <product name>-. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be coral-foo.apk. If false, there is no change to the artifact file name.
 tag string, A string tag to select the OutputFiles associated with the tag. If no tag is specified then it will select the default dist paths provided by the module type. If a tag of "" is specified then it will return the default output files provided by the modules, i.e. the result of calling OutputFiles("").
 dists list of Dist, a list of configurations to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 double_loadable bool, whether this module is capable of being loaded with other instance (possibly an older version) of the same module in the same process. Currently, a shared library that is a member of VNDK (vndk: {enabled: true}) can be double loaded in a vendor process if the library is also a (direct and indirect) dependency of an LLNDK library. Such libraries must be explicitly marked as `double_loadable: true` by the owner, or the dependency from the LLNDK lib should be cut if the lib is not designed to be double loaded.
 dynamic_list string, local file name to pass to the linker as --dynamic-list. Not supported on darwin, and will fail to build if provided to the darwin variant of a module.
 enabled configurable bool, emit build rules for this module Disabling a module should only be done for those modules that cannot be built in the current environment. Modules that can build in the current environment but are not usually required (e.g. superceded by a prebuilt) should not be disabled as that will prevent them from being built by the checkbuild target and so prevent early detection of changes that have broken those modules.
 exclude_generated_sources list of string, list of generated sources that should not be used to build the C/C++ module. This is most useful in the arch/multilib variants to remove non-common files
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with this module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build this module
 exclude_static_libs list of string, list of static libs that should not be used to build this module
 export_cflags list of string, list of plain cc flags to be used for any module that links against this module.
 export_generated_headers list of string, list of generated headers to re-export include directories from. Entries must be present in generated_headers.
 export_header_lib_headers configurable list of string, list of header libraries to re-export include directories from. Entries must be present in header_libs.
 export_include_dirs configurable list of string, list of directories relative to the Blueprints file that will be added to the include path (using -I) for this module and any module that links against this module. Directories listed in export_include_dirs do not need to be listed in local_include_dirs.
 export_shared_lib_headers list of string, list of shared libraries to re-export include directories from. Entries must be present in shared_libs.
 export_static_lib_headers list of string, list of static libraries to re-export include directories from. Entries must be present in static_libs.
 export_system_include_dirs list of string, list of directories that will be added to the system include path using -isystem for this module and any module that links against this module.
 exported_symbols_list string, local file name to pass to the linker as -exported_symbols_list
 force_symbols_not_weak_list string, local file name to pass to the linker as -force_symbols_not_weak_list
 force_symbols_weak_list string, local file name to pass to the linker as -force_symbols_weak_list
 generated_headers configurable list of string, list of generated headers to add to the include path. These are the names of genrule modules.
 generated_sources list of string, list of generated sources to compile. These are the names of gensrcs or genrule modules.
 gnu_extensions bool, if set to false, use -std=c++* instead of -std=gnu++*
 group_static_libs bool, deprecated and ignored because lld makes it unnecessary. See b/189475744.
header_abi_checker headerAbiCheckerProperties
Properties for ABI compatibility checker.
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 header_libs configurable list of string, list of modules that should only provide headers for this module.
 host_cross_supported bool, If set to true, build a variant of the module for the host cross. Defaults to true.
 host_ldlibs list of string, -l arguments to pass to linker for host-provided shared libraries
 host_required list of string, names of other modules to install on host if this module is installed
 ignore_max_page_size bool, ignore max page size. By default, max page size must be the max page size set for the target.
 include_build_directory bool, Add the directory containing the Android.bp file to the list of include directories. Defaults to true.
 include_dirs configurable list of string, list of directories relative to the root of the source tree that will be added to the include path using -I. If possible, don't use this. If adding paths from the current directory use local_include_dirs, if adding paths from other modules use export_include_dirs in that module.
 init_rc configurable list of string, init.rc files to be installed if this module is installed
 inject_bssl_hash bool, Inject boringssl hash into the shared library. This is only intended for use by external/boringssl.
 install_in_root bool, Install output directly in {partition}/, not in any subdir. This is only intended for use by init_first_stage.
 install_in_xbin bool, Install output directly in {partition}/xbin
 installable bool
 instruction_set string, the instruction set architecture to use to compile the C/C++ module.
 ldflags list of string, list of module-specific flags that will be used for all link steps
 lex LexProperties
 licenses list of string, Describes the licenses applicable to this module. Must reference license modules.
 linker_scripts list of string, local files to pass to the linker as --script. Not supported on darwin or windows, and will fail to build if provided to the darwin or windows variant of a module.
llndk llndkLibraryProperties
If this is an LLNDK library, properties to describe the LLNDK stubs. Will be copied from the module pointed to by llndk_stubs if it is set.
 symbol_file string, Relative path to the symbol map. An example file can be seen here: TODO(danalbert): Make an example.
 export_headers_as_system bool, Whether to export any headers as -isystem instead of -I. Mainly for use by bionic/libc.
 unversioned bool, Whether the system library uses symbol versions.
 export_llndk_headers list of string, list of llndk headers to re-export include directories from.
 override_export_include_dirs list of string, list of directories relative to the Blueprints file that willbe added to the include path (using -I) for any module that links against the LLNDK variant of this module, replacing any that were listed outside the llndk clause.
 private bool, whether this module can be directly depended upon by libs that are installed to /vendor and /product. When set to true, this module can only be depended on by VNDK libraries, not vendor nor product libraries. This effectively hides this module from non-system modules. Default value is false.
 llndk_headers bool, if true, make this module available to provide headers to other modules that set llndk.symbol_file.
 moved_to_apex bool, moved_to_apex marks this module has having been distributed through an apex module.
 local_include_dirs configurable list of string, list of directories relative to the Blueprints file that will be added to the include path using -I
 logtags list of string, *.logtags files, to combine together in order to generate the /system/etc/event-log-tags file
lto
Lto must violate capitalization style for acronyms so that it can be referred to in blueprint files as "lto"
 never bool
 thin bool
 lto_O0 bool, Use --lto-O0 flag.
 min_sdk_version string, Minimum OS API level supported by this C or C++ module. This property becomes the value of the __ANDROID_API__ macro. When the C or C++ module is included in an APEX or an APK, this property is also used to ensure that the min_sdk_version of the containing module is not older (i.e. less) than this module's min_sdk_version. When not set, this property defaults to the value of sdk_version. When this is set to "apex_inherit", this tracks min_sdk_version of the containing APEX. When the module is not built for an APEX, "apex_inherit" defaults to sdk_version.
 multilib interface
 native_bridge_supported bool, Whether this module is built for non-native architectures (also known as native bridge binary)
 native_coverage bool
 no_crt_pad_segment bool, don't link in crt_pad_segment. This flag is currently only used internal to soong for testing and for vndk prebuilt shared libraries.
 no_full_install bool, When set to true, this module is not installed to the full install path (ex: under out/target/product/<name>/<partition>). It can be installed only to the packaging modules like android_filesystem.
 no_libcrt bool, don't link in libclang_rt.builtins-*.a
 nocrt bool, don't link in crt_begin and crt_end. This flag should only be necessary for compiling crt or libc.
 odm_available bool, This is the same as the "vendor_available" except that the install path of the vendor variant is /odm or /vendor/odm. By replacing "vendor_available: true" with "odm_available: true", the module will install its vendor variant to the /odm partition or /vendor/odm. As the modules with "odm_available: true" still create the vendor variants, they can link to the other vendor modules as the vendor_available modules do. Also, the vendor modules can link to odm_available modules. It may not be used for VNDK modules.
 odm_dlkm_specific bool, Install to partition odm_dlkm when set to true.
 openmp bool, Build and link with OpenMP
 optimize_for_size bool, Aggresively trade performance for smaller binary size. This should only be used for on-device binaries that are rarely executed and not performance critical.
orderfile
 instrumentation bool
 order_file_path string
 load_order_file bool
 cflags list of string, Additional compiler flags to use when building this module for orderfile profiling.
 overrides list of string, List of module names that are prevented from being installed when this module gets installed.
 owner string, vendor who owns this module
 pack_relocations bool, Generate compact dynamic relocation table, default true.
 prefer configurable bool, When prefer is set to true the prebuilt will be used instead of any source module with a matching name.
 prefix_symbols string, if set, add an extra objcopy --prefix-symbols= step
 product_available bool, whether this module should be allowed to be directly depended by other modules with `product_specific: true` or `product_available: true`. If set to true, an additional product variant will be built separately that is limited to the set of libraries and headers that are exposed to /product modules. The product variant may be used with a different (newer) /system, so it shouldn't have any unversioned runtime dependencies, or make assumptions about the system that may not be true in the future. If set to false, this module becomes inaccessible from /product modules. Different from the 'vendor_available' property, the modules with vndk: {enabled: true} don't have to define 'product_available'. The VNDK library without 'product_available' may not be depended on by any other modules that has product variants including the product available VNDKs. Nothing happens if BOARD_VNDK_VERSION isn't set in the BoardConfig.mk and PRODUCT_PRODUCT_VNDK_VERSION isn't set.
 product_specific bool, whether this module is specific to a software configuration of a product (e.g. country, network operator, etc). When set to true, it is installed into /product (or /system/product if product partition does not exist).
product_variables.arc
cflags
  []string
exclude_srcs
  []string
header_libs
  []string
include_dirs
  []string
shared_libs
  []string
static_libs
  []string
srcs
  []string
whole_static_libs
  []string
product_variables.binder32bit
cflags
  []string
product_variables.build_from_text_stub
static_libs
  []string
exclude_static_libs
  []string
product_variables.debuggable
cflags
  []string
cppflags
  []string
init_rc
  []string
required
  []string
host_required
  []string
target_required
  []string
strip.all
  *bool
strip.keep_symbols
  *bool
strip.keep_symbols_and_debug_frame
  *bool
static_libs
  []string
exclude_static_libs
  []string
whole_static_libs
  []string
shared_libs
  []string
srcs
  []string
exclude_srcs
  []string
product_variables.enforce_vintf_manifest
cflags
  []string
product_variables.eng
cflags
  []string
cppflags
  []string
lto.never
  *bool
sanitize.address
  *bool
product_variables.malloc_low_memory
cflags
  []string
shared_libs
  []string
whole_static_libs
  []string
static_libs
  []string
exclude_static_libs
  []string
srcs
  []string
header_libs
  []string
product_variables.malloc_pattern_fill_contents
cflags
  []string
product_variables.malloc_zero_contents
cflags
  []string
product_variables.native_coverage
srcs
  []string
exclude_srcs
  []string
product_variables.override_rs_driver
cflags
  []string
product_variables.platform_sdk_version
asflags
  []string
cflags
  []string
product_variables.release_aidl_use_unfrozen
cflags
  []string
required
  []string
vintf_fragment_modules
  []string
product_variables.safestack
cflags
  []string
product_variables.selinuxignoreneverallows
required
  []string
product_variables.shipping_api_level
cflags
  []string
product_variables.treble_linker_namespaces
cflags
  []string
product_variables.uml
cppflags
  []string
product_variables.unbundled_build
enabled Configurable[bool]
 Configurable[bool] proptools.Configurable[bool]
 proprietary bool, whether this is a proprietary vendor module, and should be installed into /vendor
proto
 export_proto_headers bool, export headers generated from .proto sources
 type string, Proto generator type. C++: full or lite. Java: micro, nano, stream, or lite.
 plugin string, Proto plugin to use as the generator. Must be a cc_binary_host module.
 include_dirs list of string, list of directories that will be added to the protoc include paths.
 local_include_dirs list of string, list of directories relative to the bp file that will be added to the protoc include paths.
 canonical_path_from_root bool, whether to identify the proto files from the root of the source tree (the original method in Android, useful for android-specific protos), or relative from where they were specified (useful for external/third party protos). This defaults to true today, but is expected to default to false in the future.
 static bool, Link statically against the protobuf runtime
 ramdisk bool, Whether this module is installed to ramdisk
 ramdisk_available bool, Make this module available when building for ramdisk. On device without a dedicated recovery partition, the module is only available after switching root into /first_stage_ramdisk. To expose the module before switching root, install the recovery variant instead.
 recovery bool, Whether this module is installed to recovery partition
 recovery_available bool, Make this module available when building for recovery
 relative_install_path string, install to a subdirectory of the default install path for the module
renderscript
 include_dirs list of string, list of directories that will be added to the llvm-rs-cc include paths
 flags list of string, list of flags that will be passed to llvm-rs-cc
 target_api string, Renderscript API level to target
 required configurable list of string, names of other modules to install if this module is installed
 rtti bool, pass -frtti instead of -fno-rtti
 runtime_libs list of string, list of modules that should be installed with this module. This is similar to 'required' but '.vendor' suffix will be appended to the module names if the shared libraries have vendor variants and this module uses VNDK.
sanitize SanitizeUserProps
 never bool, Prevent use of any sanitizers on this module
 address bool, ASan (Address sanitizer), incompatible with static binaries. Always runs in a diagnostic mode. Use of address sanitizer disables cfi sanitizer. Hwaddress sanitizer takes precedence over this sanitizer.
 thread bool, TSan (Thread sanitizer), incompatible with static binaries and 32 bit architectures. Always runs in a diagnostic mode. Use of thread sanitizer disables cfi and scudo sanitizers. Hwaddress sanitizer takes precedence over this sanitizer.
 hwaddress bool, HWASan (Hardware Address sanitizer). Use of hwasan sanitizer disables cfi, address, thread, and scudo sanitizers.
 all_undefined bool, Undefined behavior sanitizer
 undefined bool, Subset of undefined behavior sanitizer
 misc_undefined list of string, List of specific undefined behavior sanitizers to enable
 fuzzer bool, Fuzzer, incompatible with static binaries.
 safestack bool, safe-stack sanitizer, incompatible with 32-bit architectures.
 cfi bool, cfi sanitizer, incompatible with asan, hwasan, fuzzer, or Darwin
 integer_overflow bool, signed/unsigned integer overflow sanitizer, incompatible with Darwin.
 scudo bool, scudo sanitizer, incompatible with asan, hwasan, tsan This should not be used in Android 11+ : https://source.android.com/devices/tech/debug/scudo deprecated
 scs bool, shadow-call-stack sanitizer, only available on arm64/riscv64.
 memtag_heap bool, Memory-tagging, only available on arm64 if diag.memtag unset or false, enables async memory tagging
 memtag_stack bool, Memory-tagging stack instrumentation, only available on arm64 Adds instrumentation to detect stack buffer overflows and use-after-scope using MTE.
 memtag_globals bool, Memory-tagging globals instrumentation, only available on arm64 Adds instrumentation to detect global buffer overflows using MTE.
 writeonly bool, A modifier for ASAN and HWASAN for write only instrumentation
diag
Sanitizers to run in the diagnostic mode (as opposed to the release mode). Replaces abort() on error with a human-readable error message. Address and Thread sanitizers always run in diagnostic mode.
 undefined bool, Undefined behavior sanitizer, diagnostic mode
 cfi bool, cfi sanitizer, diagnostic mode, incompatible with asan, hwasan, fuzzer, or Darwin
 integer_overflow bool, signed/unsigned integer overflow sanitizer, diagnostic mode, incompatible with Darwin.
 memtag_heap bool, Memory-tagging, only available on arm64 requires sanitizer.memtag: true if set, enables sync memory tagging
 misc_undefined list of string, List of specific undefined behavior sanitizers to enable in diagnostic mode
 no_recover list of string, List of sanitizers to pass to -fno-sanitize-recover results in only the first detected error for these sanitizers being reported and program then exits with a non-zero exit code.
config
Sanitizers to run with flag configuration specified
 cfi_assembly_support bool, Enables CFI support flags for assembly-heavy libraries
 recover list of string, List of sanitizers to pass to -fsanitize-recover allows execution to continue for these sanitizers to detect multiple errors rather than only the first one
 blocklist string, value to pass to -fsanitize-ignorelist
sanitized.address
 srcs list of string
sanitized.hwaddress
 srcs list of string
sanitized.none
 srcs list of string
 sdk_variant_only bool, If true, always create an sdk variant and don't create a platform variant.
 sdk_version string, The API level that this module is built against. The APIs of this API level will be visible at build time, but use of any APIs newer than min_sdk_version will render the module unloadable on older devices. In the future it will be possible to weakly-link new APIs, making the behavior match Java: such modules will load on older devices, but calling new APIs on devices that do not support them will result in a crash. This property has the same behavior as sdk_version does for Java modules. For those familiar with Android Gradle, the property behaves similarly to how compileSdkVersion does for Java code. In addition, setting this property causes two variants to be built, one for the platform and one for apps.
shared StaticOrSharedProperties
 srcs configurable list of string
 tidy_disabled_srcs list of string
 tidy_timeout_srcs list of string
sanitized Sanitized
none
 srcs list of string
address
 srcs list of string
hwaddress
 srcs list of string
 cflags configurable list of string
 enabled bool
 whole_static_libs configurable list of string
 static_libs configurable list of string
 shared_libs configurable list of string
 system_shared_libs list of string
 export_shared_lib_headers list of string
 export_static_lib_headers list of string
 apex_available list of string
 installable bool
 shared_libs configurable list of string, list of modules that should be dynamically linked into this module.
 soc_specific bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist).
 source_module_name string, Name of the source soong module that gets shadowed by this prebuilt If unspecified, follows the naming convention that the source module of the prebuilt is Name() without "prebuilt_" prefix
 static_libs configurable list of string, list of modules that should be statically linked into this module.
 static_ndk_lib bool
 stem string, set the name of the output
 stl string, Select the STL library to use. Possible values are "libc++", "libc++_static", "libstdc++", or "none". Leave blank to select the default.
strip
 none bool, Device modules default to stripping enabled leaving mini debuginfo. Host modules default to stripping disabled, but can be enabled by setting any other strip boolean property.
 all bool, all forces stripping everything, including the mini debug info.
 keep_symbols bool, keep_symbols enables stripping but keeps all symbols.
 keep_symbols_list list of string, keep_symbols_list specifies a list of symbols to keep if keep_symbols is enabled. If it is unset then all symbols are kept.
 keep_symbols_and_debug_frame bool, keep_symbols_and_debug_frame enables stripping but keeps all symbols and debug frames.
stubs StubsProperties
Generate stubs to make this library accessible to APEXes.
 symbol_file string, Relative path to the symbol map. The symbol map provides the list of symbols that are exported for stubs variant of this library.
 versions list of string, List versions to generate stubs libs for. The version name "current" is always implicitly added.
 implementation_installable bool, Whether to not require the implementation of the library to be installed if a client of the stubs is installed. Defaults to true; set to false if the implementation is made available by some other means, e.g. in a Microdroid virtual machine.
 suffix string, set suffix of the name of the output
 system_dlkm_specific bool, Install to partition system_dlkm when set to true.
 system_ext_specific bool, whether this module extends system. When set to true, it is installed into /system_ext (or /system/system_ext if system_ext partition does not exist).
 system_shared_libs list of string, list of system libraries that will be dynamically linked to shared library and executable modules. If unset, generally defaults to libc, libm, and libdl. Set to [] to prevent linking against the defaults.
 target interface
target.android
 compile_multilib string
 enabled bool
target.apex
 exclude_shared_libs list of string, list of shared libs that should not be used to build the apex variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the apex variant of the C/C++ module.
target.host
 compile_multilib string
target.non_apex
 exclude_shared_libs list of string, list of shared libs that should not be used to build the non-apex variant of the C/C++ module.
target.platform
 shared_libs list of string, list of shared libs that should be use to build the platform variant of a module that sets sdk_version. This should rarely be necessary, in most cases the same libraries are available for the SDK and platform variants.
 header_libs list of string, list of ehader libs that only should be used to build platform variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the platform variant of the C/C++ module.
header_abi_checker headerAbiCheckerProperties
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 required list of string, List of modules required by the core variant.
 exclude_required list of string, List of modules not required by the core variant.
 cflags list of string, List of additional cflags that should be used to build the platform variant of the C/C++ module.
target.product
 override_export_include_dirs list of string, list of exported include directories, like export_include_dirs, that will be applied to vendor or product variant of this library. This will overwrite any other declarations.
 suffix string, set suffix of the name of the output
header_abi_checker headerAbiCheckerProperties
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 no_stubs bool, Disable stubs for vendor/product variants This is a workaround to keep `stubs` only for "core" variant (not product/vendor). It would be nice if we could put `stubs` into a `target: { core: {} }` block but it's not supported in soong yet. This could be removed/simplified once we have a better syntax.
 shared_libs list of string, list of shared libs that only should be used to build vendor or product variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build vendor or product variant of the C/C++ module.
 header_libs list of string, list of header libs that only should be used to build vendor or product variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor or product variant of the C/C++ module.
 version_script string, version script for vendor or product variant
 srcs list of string, list of source files that should only be used in vendor or product variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build vendor or product variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build vendor or product variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build vendor or product variant of the C/C++ module.
target.ramdisk
 static_libs list of string, list of static libs that only should be used to build the ramdisk variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the ramdisk variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the ramdisk variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the ramdisk variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build the ramdisk variants of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the ramdisk variants of the C/C++ module.
target.recovery
 srcs list of string, list of source files that should only be used in the recovery variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build the recovery variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the recovery variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build the recovery variant of the C/C++ module.
 shared_libs list of string, list of shared libs that only should be used to build the recovery variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build the recovery variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the recovery variant of the C/C++ module.
 required list of string, List of modules required by the recovery variant.
 exclude_required list of string, List of modules not required by the recovery variant.
target.vendor
 shared_libs list of string, list of shared libs that only should be used to build vendor or product variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build vendor or product variant of the C/C++ module.
 header_libs list of string, list of header libs that only should be used to build vendor or product variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor or product variant of the C/C++ module.
 version_script string, version script for vendor or product variant
 override_export_include_dirs list of string, list of exported include directories, like export_include_dirs, that will be applied to vendor or product variant of this library. This will overwrite any other declarations.
 srcs list of string, list of source files that should only be used in vendor or product variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build vendor or product variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build vendor or product variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build vendor or product variant of the C/C++ module.
 suffix string, set suffix of the name of the output
header_abi_checker headerAbiCheckerProperties
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 no_stubs bool, Disable stubs for vendor/product variants This is a workaround to keep `stubs` only for "core" variant (not product/vendor). It would be nice if we could put `stubs` into a `target: { core: {} }` block but it's not supported in soong yet. This could be removed/simplified once we have a better syntax.
target.vendor_ramdisk
 exclude_shared_libs list of string, list of shared libs that should not be used to build the vendor ramdisk variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the vendor ramdisk variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor ramdisk variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build the ramdisk variants of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the ramdisk variants of the C/C++ module.
 target_required list of string, names of other modules to install on target if this module is installed
 team string, The team (defined by the owner/vendor) who owns the property.
 test_only bool, Indicates that the module and its source code are only used in tests, not production code. Used by coverage reports and potentially other tools.
 tidy bool, whether to run clang-tidy over C-like sources.
 tidy_checks list of string, Extra checks to enable or disable in clang-tidy
 tidy_checks_as_errors list of string, Checks that should be treated as errors.
 tidy_disabled_srcs list of string, list of source files that should not be compiled with clang-tidy.
 tidy_flags list of string, Extra flags to pass to clang-tidy
 tidy_timeout_srcs list of string, list of source files that should not be compiled by clang-tidy when TIDY_TIMEOUT is set.
 unexported_symbols_list string, local file name to pass to the linker as -unexported_symbols_list
 unique_host_soname bool, rename host libraries to prevent overlap with system installed libraries
 use_generic_config bool, Set to true if this module must be generic and does not require product-specific information. To be included in the system image, this property must be set to true.
 use_source_config_var ConfigVarProperties, When specified this names a Soong config variable that controls the prefer property. If the value of the named Soong config variable is true then prefer is set to false and vice versa. If the Soong config variable is not set then it defaults to false, so prefer defaults to true. If specified then the prefer property is ignored in favor of the value of the Soong config variable. DEPRECATED: This property is being deprecated b/308188211. Use RELEASE_APEX_CONTRIBUTIONS build flags to select prebuilts of mainline modules.
 use_version_lib bool, make android::build:GetBuildNumber() available containing the build ID.
 vendor bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist). Use `soc_specific` instead for better meaning.
 vendor_available bool, whether this module should be allowed to be directly depended by other modules with `vendor: true`, `proprietary: true`, or `vendor_available:true`. If set to true, two variants will be built separately, one like normal, and the other limited to the set of libraries and headers that are exposed to /vendor modules. The vendor variant may be used with a different (newer) /system, so it shouldn't have any unversioned runtime dependencies, or make assumptions about the system that may not be true in the future. If set to false, this module becomes inaccessible from /vendor modules. The modules with vndk: {enabled: true} must define 'vendor_available' to 'true'. Nothing happens if BOARD_VNDK_VERSION isn't set in the BoardConfig.mk
 vendor_dlkm_specific bool, Install to partition vendor_dlkm when set to true.
vendor_public_library vendorPublicLibraryProperties
If this is a vendor public library, properties to describe the vendor public library stubs.
 symbol_file string, Relative path to the symbol map.
 unversioned bool, Whether the system library uses symbol versions.
 export_public_headers list of string, list of header libs to re-export include directories from.
 override_export_include_dirs list of string, list of directories relative to the Blueprints file that willbe added to the include path (using -I) for any module that links against the LLNDK variant of this module, replacing any that were listed outside the llndk clause.
 vendor_ramdisk bool, Whether this module is installed to vendor ramdisk
 vendor_ramdisk_available bool, Make this module available when building for vendor ramdisk. On device without a dedicated recovery partition, the module is only available after switching root into /first_stage_ramdisk. To expose the module before switching root, install the recovery variant instead.
 version_script string, local file name to pass to the linker as --version-script. Not supported on darwin, and will fail to build if provided to the darwin variant of a module.
 vintf_fragment_modules configurable list of string, vintf_fragment Modules required from this module.
 vintf_fragments configurable list of string, VINTF manifest fragments to be installed if this module is installed
 visibility list of string, Controls the visibility of this module to other modules. Allowable values are one or more of these formats:

 ["//visibility:public"]: Anyone can use this module.
 ["//visibility:private"]: Only rules in the module's package (not its subpackages) can use
     this module.
 ["//visibility:override"]: Discards any rules inherited from defaults or a creating module.
     Can only be used at the beginning of a list of visibility rules.
 ["//some/package:__pkg__", "//other/package:__pkg__"]: Only modules in some/package and
     other/package (defined in some/package/*.bp and other/package/*.bp) have access to
     this module. Note that sub-packages do not have access to the rule; for example,
     //some/package/foo:bar or //other/package/testing:bla wouldn't have access. __pkg__
     is a special module and must be used verbatim. It represents all of the modules in the
     package.
 ["//project:__subpackages__", "//other:__subpackages__"]: Only modules in packages project
     or other or in one of their sub-packages have access to this module. For example,
     //project:rule, //project/library:lib or //other/testing/internal:munge are allowed
     to depend on this rule (but not //independent:evil)
 ["//project"]: This is shorthand for ["//project:__pkg__"]
 [":__subpackages__"]: This is shorthand for ["//project:__subpackages__"] where
     //project is the module's package. e.g. using [":__subpackages__"] in
     packages/apps/Settings/Android.bp is equivalent to
     //packages/apps/Settings:__subpackages__.
 ["//visibility:legacy_public"]: The default visibility, behaves as //visibility:public
     for now. It is an error if it is used in a module.

If a module does not specify the `visibility` property then it uses the `default_visibility` property of the `package` module in the module's package. If the `default_visibility` property is not set for the module's package then it will use the `default_visibility` of its closest ancestor package for which a `default_visibility` property is specified. If no `default_visibility` property can be found then the module uses the global default of `//visibility:legacy_public`. The `visibility` property has no effect on a defaults module although it does apply to any non-defaults module that uses it. To set the visibility of a defaults module, use the `defaults_visibility` property on the defaults module; not to be confused with the `default_visibility` property on the package module. See https://android.googlesource.com/platform/build/soong/+/main/README.md#visibility for more details.
 whole_program_vtables bool, Use -fwhole-program-vtables cflag.
 whole_static_libs configurable list of string, list of modules whose object files should be linked into this module in their entirety. For static library modules, all of the .o files from the intermediate directory of the dependency will be linked into this modules .a file. For a shared library, the dependency's .a file will be linked into this module using -Wl,--whole-archive.
 windows_import_lib string, Optionally provide an import library if this is a Windows PE DLL prebuilt. This is needed only if this library is linked by other modules in build time. Only makes sense for the Windows target.
 yacc YaccProperties

cc_prebuilt_library_static

cc_prebuilt_library_static installs a precompiled static library that are listed in the srcs property in the device's directory.
 name string, The name of the module. Must be unique across all modules.
 srcs configurable list of string, a prebuilt library or binary. Can reference a genrule module that generates an executable file.
 exclude_srcs configurable list of string, list of source files that should not be used to build the C/C++ module. This is most useful in the arch/multilib variants to remove non-common files
 defaults list of string
 host_supported bool, If set to true, build a variant of the module for the host. Defaults to false.
 device_supported bool, If set to true, build a variant of the module for the device. Defaults to true.
 afdo bool, Afdo allows developers self-service enroll for automatic feedback-directed optimization using profile data.
aidl
 export_aidl_headers bool, export headers generated from .aidl sources
 libs list of string, List of aidl_library modules
 include_dirs list of string, list of directories that will be added to the aidl include paths.
 local_include_dirs list of string, list of directories relative to the Blueprints file that will be added to the aidl include paths.
 generate_traces bool, whether to generate traces (for systrace) for this interface
 flags list of string, list of flags that will be passed to the AIDL compiler
 allow_undefined_symbols bool, allow the module to contain undefined symbols. By default, modules cannot contain undefined symbols that are not satisified by their immediate dependencies. Set this flag to true to remove --no-undefined from the linker flags. This flag should only be necessary for compiling low-level libraries like libc.
 apex_available list of string, Availability of this module in APEXes. Only the listed APEXes can contain this module. If the module has stubs then other APEXes and the platform may access it through them (subject to visibility). "//apex_available:anyapex" is a pseudo APEX name that matches to any APEX. "//apex_available:platform" refers to non-APEX partitions like "system.img". Prefix pattern (com.foo.*) can be used to match with any APEX name with the prefix(com.foo.). Default is ["//apex_available:platform"].
 arch interface
 asflags list of string, list of module-specific flags that will be used for .S compiles
 bootstrap bool, Allows this module to use non-APEX version of libraries. Useful for building binaries that are started before APEXes are activated.
 bpf_target bool, cc Build rules targeting BPF must set this to true. The correct fix is to ban targeting bpf in cc rules instead use bpf_rules. (b/323415017)
buildstubs bool
 bool bool
 c_std string, C standard version to use. Can be a specific version (such as "gnu11"), "experimental" (which will use draft versions like C1x when available), or the empty string (which will use the default).
 cflags configurable list of string, list of module-specific flags that will be used for C and C++ compiles.
 check_elf_files bool, Check the prebuilt ELF files (e.g. DT_SONAME, DT_NEEDED, resolution of undefined symbols, etc), default true.
 clang bool, Deprecated. true is the default, false is invalid.
 clang_asflags list of string, list of module-specific flags that will be used for .S compiles when compiling with clang
 clang_cflags list of string, list of module-specific flags that will be used for C and C++ compiles when compiling with clang
 clang_verify bool, Add "-Xclang -verify" to the cflags and appends "touch $out" to the clang command line.
 cmake_snapshot_supported bool, Allows this module to be included in CMake release snapshots to be built outside of Android build system and source tree.
 compile_multilib string, control whether this module compiles for 32-bit, 64-bit, or both. Possible values are "32" (compile for 32-bit only), "64" (compile for 64-bit only), "both" (compile for both architectures), or "first" (compile for 64-bit on a 64-bit platform, and 32-bit on a 32-bit platform).
 conlyflags list of string, list of module-specific flags that will be used for C compiles
 cpp_std string, C++ standard version to use. Can be a specific version (such as "gnu++11"), "experimental" (which will use draft versions like C++1z when available), or the empty string (which will use the default).
 cppflags configurable list of string, list of module-specific flags that will be used for C++ compiles
 debug_ramdisk bool, Whether this module is installed to debug ramdisk
 device_first_generated_headers configurable list of string, Same as generated_headers, but the dependencies will be added based on the first supported arch variant and the device os variant. This can be useful for creating a host tool that embeds a copy of a device tool, that it then extracts and pushes to a device at runtime.
 device_specific bool, whether this module is specific to a device, not only for SoC, but also for off-chip peripherals. When set to true, it is installed into /odm (or /vendor/odm if odm partition does not exist, or /system/vendor/odm if both odm and vendor partitions do not exist). This implies `soc_specific:true`.
dist Dist
configuration to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 targets list of string, Copy the output of this module to the $DIST_DIR when `dist` is specified on the command line and any of these targets are also on the command line, or otherwise built
 dest string, The name of the output artifact. This defaults to the basename of the output of the module.
 dir string, The directory within the dist directory to store the artifact. Defaults to the top level directory ("").
 suffix string, A suffix to add to the artifact file name (before any extension).
 append_artifact_with_product bool, If true, then the artifact file will be appended with _<product name>. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be foo_coral.apk. If false, there is no change to the artifact file name.
 prepend_artifact_with_product bool, If true, then the artifact file will be prepended with <product name>-. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be coral-foo.apk. If false, there is no change to the artifact file name.
 tag string, A string tag to select the OutputFiles associated with the tag. If no tag is specified then it will select the default dist paths provided by the module type. If a tag of "" is specified then it will return the default output files provided by the modules, i.e. the result of calling OutputFiles("").
 dists list of Dist, a list of configurations to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 double_loadable bool, whether this module is capable of being loaded with other instance (possibly an older version) of the same module in the same process. Currently, a shared library that is a member of VNDK (vndk: {enabled: true}) can be double loaded in a vendor process if the library is also a (direct and indirect) dependency of an LLNDK library. Such libraries must be explicitly marked as `double_loadable: true` by the owner, or the dependency from the LLNDK lib should be cut if the lib is not designed to be double loaded.
 dynamic_list string, local file name to pass to the linker as --dynamic-list. Not supported on darwin, and will fail to build if provided to the darwin variant of a module.
 enabled configurable bool, emit build rules for this module Disabling a module should only be done for those modules that cannot be built in the current environment. Modules that can build in the current environment but are not usually required (e.g. superceded by a prebuilt) should not be disabled as that will prevent them from being built by the checkbuild target and so prevent early detection of changes that have broken those modules.
 exclude_generated_sources list of string, list of generated sources that should not be used to build the C/C++ module. This is most useful in the arch/multilib variants to remove non-common files
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with this module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build this module
 exclude_static_libs list of string, list of static libs that should not be used to build this module
 export_cflags list of string, list of plain cc flags to be used for any module that links against this module.
 export_generated_headers list of string, list of generated headers to re-export include directories from. Entries must be present in generated_headers.
 export_header_lib_headers configurable list of string, list of header libraries to re-export include directories from. Entries must be present in header_libs.
 export_include_dirs configurable list of string, list of directories relative to the Blueprints file that will be added to the include path (using -I) for this module and any module that links against this module. Directories listed in export_include_dirs do not need to be listed in local_include_dirs.
 export_shared_lib_headers list of string, list of shared libraries to re-export include directories from. Entries must be present in shared_libs.
 export_static_lib_headers list of string, list of static libraries to re-export include directories from. Entries must be present in static_libs.
 export_system_include_dirs list of string, list of directories that will be added to the system include path using -isystem for this module and any module that links against this module.
 exported_symbols_list string, local file name to pass to the linker as -exported_symbols_list
 force_symbols_not_weak_list string, local file name to pass to the linker as -force_symbols_not_weak_list
 force_symbols_weak_list string, local file name to pass to the linker as -force_symbols_weak_list
 generated_headers configurable list of string, list of generated headers to add to the include path. These are the names of genrule modules.
 generated_sources list of string, list of generated sources to compile. These are the names of gensrcs or genrule modules.
 gnu_extensions bool, if set to false, use -std=c++* instead of -std=gnu++*
 group_static_libs bool, deprecated and ignored because lld makes it unnecessary. See b/189475744.
header_abi_checker headerAbiCheckerProperties
Properties for ABI compatibility checker.
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 header_libs configurable list of string, list of modules that should only provide headers for this module.
 host_cross_supported bool, If set to true, build a variant of the module for the host cross. Defaults to true.
 host_ldlibs list of string, -l arguments to pass to linker for host-provided shared libraries
 host_required list of string, names of other modules to install on host if this module is installed
 ignore_max_page_size bool, ignore max page size. By default, max page size must be the max page size set for the target.
 include_build_directory bool, Add the directory containing the Android.bp file to the list of include directories. Defaults to true.
 include_dirs configurable list of string, list of directories relative to the root of the source tree that will be added to the include path using -I. If possible, don't use this. If adding paths from the current directory use local_include_dirs, if adding paths from other modules use export_include_dirs in that module.
 init_rc configurable list of string, init.rc files to be installed if this module is installed
 inject_bssl_hash bool, Inject boringssl hash into the shared library. This is only intended for use by external/boringssl.
 install_in_root bool, Install output directly in {partition}/, not in any subdir. This is only intended for use by init_first_stage.
 install_in_xbin bool, Install output directly in {partition}/xbin
 installable bool
 instruction_set string, the instruction set architecture to use to compile the C/C++ module.
 ldflags list of string, list of module-specific flags that will be used for all link steps
 lex LexProperties
 licenses list of string, Describes the licenses applicable to this module. Must reference license modules.
 linker_scripts list of string, local files to pass to the linker as --script. Not supported on darwin or windows, and will fail to build if provided to the darwin or windows variant of a module.
llndk llndkLibraryProperties
If this is an LLNDK library, properties to describe the LLNDK stubs. Will be copied from the module pointed to by llndk_stubs if it is set.
 symbol_file string, Relative path to the symbol map. An example file can be seen here: TODO(danalbert): Make an example.
 export_headers_as_system bool, Whether to export any headers as -isystem instead of -I. Mainly for use by bionic/libc.
 unversioned bool, Whether the system library uses symbol versions.
 export_llndk_headers list of string, list of llndk headers to re-export include directories from.
 override_export_include_dirs list of string, list of directories relative to the Blueprints file that willbe added to the include path (using -I) for any module that links against the LLNDK variant of this module, replacing any that were listed outside the llndk clause.
 private bool, whether this module can be directly depended upon by libs that are installed to /vendor and /product. When set to true, this module can only be depended on by VNDK libraries, not vendor nor product libraries. This effectively hides this module from non-system modules. Default value is false.
 llndk_headers bool, if true, make this module available to provide headers to other modules that set llndk.symbol_file.
 moved_to_apex bool, moved_to_apex marks this module has having been distributed through an apex module.
 local_include_dirs configurable list of string, list of directories relative to the Blueprints file that will be added to the include path using -I
 logtags list of string, *.logtags files, to combine together in order to generate the /system/etc/event-log-tags file
lto
Lto must violate capitalization style for acronyms so that it can be referred to in blueprint files as "lto"
 never bool
 thin bool
 lto_O0 bool, Use --lto-O0 flag.
 min_sdk_version string, Minimum OS API level supported by this C or C++ module. This property becomes the value of the __ANDROID_API__ macro. When the C or C++ module is included in an APEX or an APK, this property is also used to ensure that the min_sdk_version of the containing module is not older (i.e. less) than this module's min_sdk_version. When not set, this property defaults to the value of sdk_version. When this is set to "apex_inherit", this tracks min_sdk_version of the containing APEX. When the module is not built for an APEX, "apex_inherit" defaults to sdk_version.
 multilib interface
 native_bridge_supported bool, Whether this module is built for non-native architectures (also known as native bridge binary)
 native_coverage bool
 no_crt_pad_segment bool, don't link in crt_pad_segment. This flag is currently only used internal to soong for testing and for vndk prebuilt shared libraries.
 no_full_install bool, When set to true, this module is not installed to the full install path (ex: under out/target/product/<name>/<partition>). It can be installed only to the packaging modules like android_filesystem.
 no_libcrt bool, don't link in libclang_rt.builtins-*.a
 nocrt bool, don't link in crt_begin and crt_end. This flag should only be necessary for compiling crt or libc.
 odm_available bool, This is the same as the "vendor_available" except that the install path of the vendor variant is /odm or /vendor/odm. By replacing "vendor_available: true" with "odm_available: true", the module will install its vendor variant to the /odm partition or /vendor/odm. As the modules with "odm_available: true" still create the vendor variants, they can link to the other vendor modules as the vendor_available modules do. Also, the vendor modules can link to odm_available modules. It may not be used for VNDK modules.
 odm_dlkm_specific bool, Install to partition odm_dlkm when set to true.
 openmp bool, Build and link with OpenMP
 optimize_for_size bool, Aggresively trade performance for smaller binary size. This should only be used for on-device binaries that are rarely executed and not performance critical.
orderfile
 instrumentation bool
 order_file_path string
 load_order_file bool
 cflags list of string, Additional compiler flags to use when building this module for orderfile profiling.
 overrides list of string, Names of modules to be overridden. Listed modules can only be other shared libraries (in Make or Soong). This does not completely prevent installation of the overridden libraries, but if both binaries would be installed by default (in PRODUCT_PACKAGES) the other library will be removed from PRODUCT_PACKAGES.
 owner string, vendor who owns this module
 pack_relocations bool, Generate compact dynamic relocation table, default true.
 prefer configurable bool, When prefer is set to true the prebuilt will be used instead of any source module with a matching name.
 prefix_symbols string, if set, add an extra objcopy --prefix-symbols= step
 product_available bool, whether this module should be allowed to be directly depended by other modules with `product_specific: true` or `product_available: true`. If set to true, an additional product variant will be built separately that is limited to the set of libraries and headers that are exposed to /product modules. The product variant may be used with a different (newer) /system, so it shouldn't have any unversioned runtime dependencies, or make assumptions about the system that may not be true in the future. If set to false, this module becomes inaccessible from /product modules. Different from the 'vendor_available' property, the modules with vndk: {enabled: true} don't have to define 'product_available'. The VNDK library without 'product_available' may not be depended on by any other modules that has product variants including the product available VNDKs. Nothing happens if BOARD_VNDK_VERSION isn't set in the BoardConfig.mk and PRODUCT_PRODUCT_VNDK_VERSION isn't set.
 product_specific bool, whether this module is specific to a software configuration of a product (e.g. country, network operator, etc). When set to true, it is installed into /product (or /system/product if product partition does not exist).
product_variables.arc
cflags
  []string
exclude_srcs
  []string
header_libs
  []string
include_dirs
  []string
shared_libs
  []string
static_libs
  []string
srcs
  []string
whole_static_libs
  []string
product_variables.binder32bit
cflags
  []string
product_variables.build_from_text_stub
static_libs
  []string
exclude_static_libs
  []string
product_variables.debuggable
cflags
  []string
cppflags
  []string
init_rc
  []string
required
  []string
host_required
  []string
target_required
  []string
strip.all
  *bool
strip.keep_symbols
  *bool
strip.keep_symbols_and_debug_frame
  *bool
static_libs
  []string
exclude_static_libs
  []string
whole_static_libs
  []string
shared_libs
  []string
srcs
  []string
exclude_srcs
  []string
product_variables.enforce_vintf_manifest
cflags
  []string
product_variables.eng
cflags
  []string
cppflags
  []string
lto.never
  *bool
sanitize.address
  *bool
product_variables.malloc_low_memory
cflags
  []string
shared_libs
  []string
whole_static_libs
  []string
static_libs
  []string
exclude_static_libs
  []string
srcs
  []string
header_libs
  []string
product_variables.malloc_pattern_fill_contents
cflags
  []string
product_variables.malloc_zero_contents
cflags
  []string
product_variables.native_coverage
srcs
  []string
exclude_srcs
  []string
product_variables.override_rs_driver
cflags
  []string
product_variables.platform_sdk_version
asflags
  []string
cflags
  []string
product_variables.release_aidl_use_unfrozen
cflags
  []string
required
  []string
vintf_fragment_modules
  []string
product_variables.safestack
cflags
  []string
product_variables.selinuxignoreneverallows
required
  []string
product_variables.shipping_api_level
cflags
  []string
product_variables.treble_linker_namespaces
cflags
  []string
product_variables.uml
cppflags
  []string
product_variables.unbundled_build
enabled Configurable[bool]
 Configurable[bool] proptools.Configurable[bool]
 proprietary bool, whether this is a proprietary vendor module, and should be installed into /vendor
proto
 export_proto_headers bool, export headers generated from .proto sources
 type string, Proto generator type. C++: full or lite. Java: micro, nano, stream, or lite.
 plugin string, Proto plugin to use as the generator. Must be a cc_binary_host module.
 include_dirs list of string, list of directories that will be added to the protoc include paths.
 local_include_dirs list of string, list of directories relative to the bp file that will be added to the protoc include paths.
 canonical_path_from_root bool, whether to identify the proto files from the root of the source tree (the original method in Android, useful for android-specific protos), or relative from where they were specified (useful for external/third party protos). This defaults to true today, but is expected to default to false in the future.
 static bool, Link statically against the protobuf runtime
 ramdisk bool, Whether this module is installed to ramdisk
 ramdisk_available bool, Make this module available when building for ramdisk. On device without a dedicated recovery partition, the module is only available after switching root into /first_stage_ramdisk. To expose the module before switching root, install the recovery variant instead.
 recovery bool, Whether this module is installed to recovery partition
 recovery_available bool, Make this module available when building for recovery
 relative_install_path string, install to a subdirectory of the default install path for the module
renderscript
 include_dirs list of string, list of directories that will be added to the llvm-rs-cc include paths
 flags list of string, list of flags that will be passed to llvm-rs-cc
 target_api string, Renderscript API level to target
 required configurable list of string, names of other modules to install if this module is installed
 rtti bool, pass -frtti instead of -fno-rtti
 runtime_libs list of string, list of modules that should be installed with this module. This is similar to 'required' but '.vendor' suffix will be appended to the module names if the shared libraries have vendor variants and this module uses VNDK.
sanitize SanitizeUserProps
 never bool, Prevent use of any sanitizers on this module
 address bool, ASan (Address sanitizer), incompatible with static binaries. Always runs in a diagnostic mode. Use of address sanitizer disables cfi sanitizer. Hwaddress sanitizer takes precedence over this sanitizer.
 thread bool, TSan (Thread sanitizer), incompatible with static binaries and 32 bit architectures. Always runs in a diagnostic mode. Use of thread sanitizer disables cfi and scudo sanitizers. Hwaddress sanitizer takes precedence over this sanitizer.
 hwaddress bool, HWASan (Hardware Address sanitizer). Use of hwasan sanitizer disables cfi, address, thread, and scudo sanitizers.
 all_undefined bool, Undefined behavior sanitizer
 undefined bool, Subset of undefined behavior sanitizer
 misc_undefined list of string, List of specific undefined behavior sanitizers to enable
 fuzzer bool, Fuzzer, incompatible with static binaries.
 safestack bool, safe-stack sanitizer, incompatible with 32-bit architectures.
 cfi bool, cfi sanitizer, incompatible with asan, hwasan, fuzzer, or Darwin
 integer_overflow bool, signed/unsigned integer overflow sanitizer, incompatible with Darwin.
 scudo bool, scudo sanitizer, incompatible with asan, hwasan, tsan This should not be used in Android 11+ : https://source.android.com/devices/tech/debug/scudo deprecated
 scs bool, shadow-call-stack sanitizer, only available on arm64/riscv64.
 memtag_heap bool, Memory-tagging, only available on arm64 if diag.memtag unset or false, enables async memory tagging
 memtag_stack bool, Memory-tagging stack instrumentation, only available on arm64 Adds instrumentation to detect stack buffer overflows and use-after-scope using MTE.
 memtag_globals bool, Memory-tagging globals instrumentation, only available on arm64 Adds instrumentation to detect global buffer overflows using MTE.
 writeonly bool, A modifier for ASAN and HWASAN for write only instrumentation
diag
Sanitizers to run in the diagnostic mode (as opposed to the release mode). Replaces abort() on error with a human-readable error message. Address and Thread sanitizers always run in diagnostic mode.
 undefined bool, Undefined behavior sanitizer, diagnostic mode
 cfi bool, cfi sanitizer, diagnostic mode, incompatible with asan, hwasan, fuzzer, or Darwin
 integer_overflow bool, signed/unsigned integer overflow sanitizer, diagnostic mode, incompatible with Darwin.
 memtag_heap bool, Memory-tagging, only available on arm64 requires sanitizer.memtag: true if set, enables sync memory tagging
 misc_undefined list of string, List of specific undefined behavior sanitizers to enable in diagnostic mode
 no_recover list of string, List of sanitizers to pass to -fno-sanitize-recover results in only the first detected error for these sanitizers being reported and program then exits with a non-zero exit code.
config
Sanitizers to run with flag configuration specified
 cfi_assembly_support bool, Enables CFI support flags for assembly-heavy libraries
 recover list of string, List of sanitizers to pass to -fsanitize-recover allows execution to continue for these sanitizers to detect multiple errors rather than only the first one
 blocklist string, value to pass to -fsanitize-ignorelist
sanitized.address
 srcs list of string
sanitized.hwaddress
 srcs list of string
sanitized.none
 srcs list of string
 sdk_variant_only bool, If true, always create an sdk variant and don't create a platform variant.
 sdk_version string, The API level that this module is built against. The APIs of this API level will be visible at build time, but use of any APIs newer than min_sdk_version will render the module unloadable on older devices. In the future it will be possible to weakly-link new APIs, making the behavior match Java: such modules will load on older devices, but calling new APIs on devices that do not support them will result in a crash. This property has the same behavior as sdk_version does for Java modules. For those familiar with Android Gradle, the property behaves similarly to how compileSdkVersion does for Java code. In addition, setting this property causes two variants to be built, one for the platform and one for apps.
 shared_libs configurable list of string, list of modules that should be dynamically linked into this module.
 soc_specific bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist).
 source_module_name string, Name of the source soong module that gets shadowed by this prebuilt If unspecified, follows the naming convention that the source module of the prebuilt is Name() without "prebuilt_" prefix
static StaticOrSharedProperties
 srcs configurable list of string
 tidy_disabled_srcs list of string
 tidy_timeout_srcs list of string
sanitized Sanitized
none
 srcs list of string
address
 srcs list of string
hwaddress
 srcs list of string
 cflags configurable list of string
 enabled bool
 whole_static_libs configurable list of string
 static_libs configurable list of string
 shared_libs configurable list of string
 system_shared_libs list of string
 export_shared_lib_headers list of string
 export_static_lib_headers list of string
 apex_available list of string
 installable bool
 static_libs configurable list of string, list of modules that should be statically linked into this module.
 static_ndk_lib bool
 stem string, set the name of the output
 stl string, Select the STL library to use. Possible values are "libc++", "libc++_static", "libstdc++", or "none". Leave blank to select the default.
strip
 none bool, Device modules default to stripping enabled leaving mini debuginfo. Host modules default to stripping disabled, but can be enabled by setting any other strip boolean property.
 all bool, all forces stripping everything, including the mini debug info.
 keep_symbols bool, keep_symbols enables stripping but keeps all symbols.
 keep_symbols_list list of string, keep_symbols_list specifies a list of symbols to keep if keep_symbols is enabled. If it is unset then all symbols are kept.
 keep_symbols_and_debug_frame bool, keep_symbols_and_debug_frame enables stripping but keeps all symbols and debug frames.
stubs StubsProperties
Generate stubs to make this library accessible to APEXes.
 symbol_file string, Relative path to the symbol map. The symbol map provides the list of symbols that are exported for stubs variant of this library.
 versions list of string, List versions to generate stubs libs for. The version name "current" is always implicitly added.
 implementation_installable bool, Whether to not require the implementation of the library to be installed if a client of the stubs is installed. Defaults to true; set to false if the implementation is made available by some other means, e.g. in a Microdroid virtual machine.
 suffix string, set suffix of the name of the output
 system_dlkm_specific bool, Install to partition system_dlkm when set to true.
 system_ext_specific bool, whether this module extends system. When set to true, it is installed into /system_ext (or /system/system_ext if system_ext partition does not exist).
 system_shared_libs list of string, list of system libraries that will be dynamically linked to shared library and executable modules. If unset, generally defaults to libc, libm, and libdl. Set to [] to prevent linking against the defaults.
 target interface
target.android
 compile_multilib string
 enabled bool
target.apex
 exclude_shared_libs list of string, list of shared libs that should not be used to build the apex variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the apex variant of the C/C++ module.
target.host
 compile_multilib string
target.non_apex
 exclude_shared_libs list of string, list of shared libs that should not be used to build the non-apex variant of the C/C++ module.
target.platform
 required list of string, List of modules required by the core variant.
 exclude_required list of string, List of modules not required by the core variant.
 shared_libs list of string, list of shared libs that should be use to build the platform variant of a module that sets sdk_version. This should rarely be necessary, in most cases the same libraries are available for the SDK and platform variants.
 header_libs list of string, list of ehader libs that only should be used to build platform variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the platform variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the platform variant of the C/C++ module.
header_abi_checker headerAbiCheckerProperties
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
target.product
 srcs list of string, list of source files that should only be used in vendor or product variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build vendor or product variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build vendor or product variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build vendor or product variant of the C/C++ module.
 suffix string, set suffix of the name of the output
header_abi_checker headerAbiCheckerProperties
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 no_stubs bool, Disable stubs for vendor/product variants This is a workaround to keep `stubs` only for "core" variant (not product/vendor). It would be nice if we could put `stubs` into a `target: { core: {} }` block but it's not supported in soong yet. This could be removed/simplified once we have a better syntax.
 override_export_include_dirs list of string, list of exported include directories, like export_include_dirs, that will be applied to vendor or product variant of this library. This will overwrite any other declarations.
 shared_libs list of string, list of shared libs that only should be used to build vendor or product variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build vendor or product variant of the C/C++ module.
 header_libs list of string, list of header libs that only should be used to build vendor or product variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor or product variant of the C/C++ module.
 version_script string, version script for vendor or product variant
target.ramdisk
 exclude_srcs list of string, list of source files that should not be used to build the ramdisk variants of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the ramdisk variants of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build the ramdisk variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the ramdisk variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the ramdisk variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the ramdisk variant of the C/C++ module.
target.recovery
 required list of string, List of modules required by the recovery variant.
 exclude_required list of string, List of modules not required by the recovery variant.
 shared_libs list of string, list of shared libs that only should be used to build the recovery variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build the recovery variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the recovery variant of the C/C++ module.
 srcs list of string, list of source files that should only be used in the recovery variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build the recovery variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the recovery variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build the recovery variant of the C/C++ module.
target.vendor
 shared_libs list of string, list of shared libs that only should be used to build vendor or product variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build vendor or product variant of the C/C++ module.
 header_libs list of string, list of header libs that only should be used to build vendor or product variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor or product variant of the C/C++ module.
 version_script string, version script for vendor or product variant
 suffix string, set suffix of the name of the output
header_abi_checker headerAbiCheckerProperties
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 no_stubs bool, Disable stubs for vendor/product variants This is a workaround to keep `stubs` only for "core" variant (not product/vendor). It would be nice if we could put `stubs` into a `target: { core: {} }` block but it's not supported in soong yet. This could be removed/simplified once we have a better syntax.
 override_export_include_dirs list of string, list of exported include directories, like export_include_dirs, that will be applied to vendor or product variant of this library. This will overwrite any other declarations.
 srcs list of string, list of source files that should only be used in vendor or product variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build vendor or product variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build vendor or product variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build vendor or product variant of the C/C++ module.
target.vendor_ramdisk
 exclude_srcs list of string, list of source files that should not be used to build the ramdisk variants of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the ramdisk variants of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the vendor ramdisk variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the vendor ramdisk variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor ramdisk variant of the C/C++ module.
 target_required list of string, names of other modules to install on target if this module is installed
 team string, The team (defined by the owner/vendor) who owns the property.
 test_only bool, Indicates that the module and its source code are only used in tests, not production code. Used by coverage reports and potentially other tools.
 tidy bool, whether to run clang-tidy over C-like sources.
 tidy_checks list of string, Extra checks to enable or disable in clang-tidy
 tidy_checks_as_errors list of string, Checks that should be treated as errors.
 tidy_disabled_srcs list of string, list of source files that should not be compiled with clang-tidy.
 tidy_flags list of string, Extra flags to pass to clang-tidy
 tidy_timeout_srcs list of string, list of source files that should not be compiled by clang-tidy when TIDY_TIMEOUT is set.
 unexported_symbols_list string, local file name to pass to the linker as -unexported_symbols_list
 unique_host_soname bool, rename host libraries to prevent overlap with system installed libraries
 use_generic_config bool, Set to true if this module must be generic and does not require product-specific information. To be included in the system image, this property must be set to true.
 use_source_config_var ConfigVarProperties, When specified this names a Soong config variable that controls the prefer property. If the value of the named Soong config variable is true then prefer is set to false and vice versa. If the Soong config variable is not set then it defaults to false, so prefer defaults to true. If specified then the prefer property is ignored in favor of the value of the Soong config variable. DEPRECATED: This property is being deprecated b/308188211. Use RELEASE_APEX_CONTRIBUTIONS build flags to select prebuilts of mainline modules.
 use_version_lib bool, make android::build:GetBuildNumber() available containing the build ID.
 vendor bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist). Use `soc_specific` instead for better meaning.
 vendor_available bool, whether this module should be allowed to be directly depended by other modules with `vendor: true`, `proprietary: true`, or `vendor_available:true`. If set to true, two variants will be built separately, one like normal, and the other limited to the set of libraries and headers that are exposed to /vendor modules. The vendor variant may be used with a different (newer) /system, so it shouldn't have any unversioned runtime dependencies, or make assumptions about the system that may not be true in the future. If set to false, this module becomes inaccessible from /vendor modules. The modules with vndk: {enabled: true} must define 'vendor_available' to 'true'. Nothing happens if BOARD_VNDK_VERSION isn't set in the BoardConfig.mk
 vendor_dlkm_specific bool, Install to partition vendor_dlkm when set to true.
vendor_public_library vendorPublicLibraryProperties
If this is a vendor public library, properties to describe the vendor public library stubs.
 symbol_file string, Relative path to the symbol map.
 unversioned bool, Whether the system library uses symbol versions.
 export_public_headers list of string, list of header libs to re-export include directories from.
 override_export_include_dirs list of string, list of directories relative to the Blueprints file that willbe added to the include path (using -I) for any module that links against the LLNDK variant of this module, replacing any that were listed outside the llndk clause.
 vendor_ramdisk bool, Whether this module is installed to vendor ramdisk
 vendor_ramdisk_available bool, Make this module available when building for vendor ramdisk. On device without a dedicated recovery partition, the module is only available after switching root into /first_stage_ramdisk. To expose the module before switching root, install the recovery variant instead.
 version_script string, local file name to pass to the linker as --version-script. Not supported on darwin, and will fail to build if provided to the darwin variant of a module.
 vintf_fragment_modules configurable list of string, vintf_fragment Modules required from this module.
 vintf_fragments configurable list of string, VINTF manifest fragments to be installed if this module is installed
 visibility list of string, Controls the visibility of this module to other modules. Allowable values are one or more of these formats:

 ["//visibility:public"]: Anyone can use this module.
 ["//visibility:private"]: Only rules in the module's package (not its subpackages) can use
     this module.
 ["//visibility:override"]: Discards any rules inherited from defaults or a creating module.
     Can only be used at the beginning of a list of visibility rules.
 ["//some/package:__pkg__", "//other/package:__pkg__"]: Only modules in some/package and
     other/package (defined in some/package/*.bp and other/package/*.bp) have access to
     this module. Note that sub-packages do not have access to the rule; for example,
     //some/package/foo:bar or //other/package/testing:bla wouldn't have access. __pkg__
     is a special module and must be used verbatim. It represents all of the modules in the
     package.
 ["//project:__subpackages__", "//other:__subpackages__"]: Only modules in packages project
     or other or in one of their sub-packages have access to this module. For example,
     //project:rule, //project/library:lib or //other/testing/internal:munge are allowed
     to depend on this rule (but not //independent:evil)
 ["//project"]: This is shorthand for ["//project:__pkg__"]
 [":__subpackages__"]: This is shorthand for ["//project:__subpackages__"] where
     //project is the module's package. e.g. using [":__subpackages__"] in
     packages/apps/Settings/Android.bp is equivalent to
     //packages/apps/Settings:__subpackages__.
 ["//visibility:legacy_public"]: The default visibility, behaves as //visibility:public
     for now. It is an error if it is used in a module.

If a module does not specify the `visibility` property then it uses the `default_visibility` property of the `package` module in the module's package. If the `default_visibility` property is not set for the module's package then it will use the `default_visibility` of its closest ancestor package for which a `default_visibility` property is specified. If no `default_visibility` property can be found then the module uses the global default of `//visibility:legacy_public`. The `visibility` property has no effect on a defaults module although it does apply to any non-defaults module that uses it. To set the visibility of a defaults module, use the `defaults_visibility` property on the defaults module; not to be confused with the `default_visibility` property on the package module. See https://android.googlesource.com/platform/build/soong/+/main/README.md#visibility for more details.
 whole_program_vtables bool, Use -fwhole-program-vtables cflag.
 whole_static_libs configurable list of string, list of modules whose object files should be linked into this module in their entirety. For static library modules, all of the .o files from the intermediate directory of the dependency will be linked into this modules .a file. For a shared library, the dependency's .a file will be linked into this module using -Wl,--whole-archive.
 windows_import_lib string, Optionally provide an import library if this is a Windows PE DLL prebuilt. This is needed only if this library is linked by other modules in build time. Only makes sense for the Windows target.
 yacc YaccProperties

cc_prebuilt_object

 name string, The name of the module. Must be unique across all modules.
 srcs list of string
 defaults list of string
 host_supported bool, If set to true, build a variant of the module for the host. Defaults to false.
 device_supported bool, If set to true, build a variant of the module for the device. Defaults to true.
 apex_available list of string, Availability of this module in APEXes. Only the listed APEXes can contain this module. If the module has stubs then other APEXes and the platform may access it through them (subject to visibility). "//apex_available:anyapex" is a pseudo APEX name that matches to any APEX. "//apex_available:platform" refers to non-APEX partitions like "system.img". Prefix pattern (com.foo.*) can be used to match with any APEX name with the prefix(com.foo.). Default is ["//apex_available:platform"].
 arch interface
 bootstrap bool, Allows this module to use non-APEX version of libraries. Useful for building binaries that are started before APEXes are activated.
 clang bool, Deprecated. true is the default, false is invalid.
 cmake_snapshot_supported bool, Allows this module to be included in CMake release snapshots to be built outside of Android build system and source tree.
 compile_multilib string, control whether this module compiles for 32-bit, 64-bit, or both. Possible values are "32" (compile for 32-bit only), "64" (compile for 64-bit only), "both" (compile for both architectures), or "first" (compile for 64-bit on a 64-bit platform, and 32-bit on a 32-bit platform).
 crt bool, Indicates that this module is a CRT object. CRT objects will be split into a variant per-API level between min_sdk_version and current.
 debug_ramdisk bool, Whether this module is installed to debug ramdisk
 device_specific bool, whether this module is specific to a device, not only for SoC, but also for off-chip peripherals. When set to true, it is installed into /odm (or /vendor/odm if odm partition does not exist, or /system/vendor/odm if both odm and vendor partitions do not exist). This implies `soc_specific:true`.
dist Dist
configuration to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 targets list of string, Copy the output of this module to the $DIST_DIR when `dist` is specified on the command line and any of these targets are also on the command line, or otherwise built
 dest string, The name of the output artifact. This defaults to the basename of the output of the module.
 dir string, The directory within the dist directory to store the artifact. Defaults to the top level directory ("").
 suffix string, A suffix to add to the artifact file name (before any extension).
 append_artifact_with_product bool, If true, then the artifact file will be appended with _<product name>. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be foo_coral.apk. If false, there is no change to the artifact file name.
 prepend_artifact_with_product bool, If true, then the artifact file will be prepended with <product name>-. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be coral-foo.apk. If false, there is no change to the artifact file name.
 tag string, A string tag to select the OutputFiles associated with the tag. If no tag is specified then it will select the default dist paths provided by the module type. If a tag of "" is specified then it will return the default output files provided by the modules, i.e. the result of calling OutputFiles("").
 dists list of Dist, a list of configurations to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 double_loadable bool, whether this module is capable of being loaded with other instance (possibly an older version) of the same module in the same process. Currently, a shared library that is a member of VNDK (vndk: {enabled: true}) can be double loaded in a vendor process if the library is also a (direct and indirect) dependency of an LLNDK library. Such libraries must be explicitly marked as `double_loadable: true` by the owner, or the dependency from the LLNDK lib should be cut if the lib is not designed to be double loaded.
 enabled configurable bool, emit build rules for this module Disabling a module should only be done for those modules that cannot be built in the current environment. Modules that can build in the current environment but are not usually required (e.g. superceded by a prebuilt) should not be disabled as that will prevent them from being built by the checkbuild target and so prevent early detection of changes that have broken those modules.
 exclude_from_ndk_sysroot bool, Indicates that this module should not be included in the NDK sysroot. Only applies to CRT objects. Defaults to false.
 header_libs configurable list of string, list of modules that should only provide headers for this module.
 host_cross_supported bool, If set to true, build a variant of the module for the host cross. Defaults to true.
 host_required list of string, names of other modules to install on host if this module is installed
 init_rc configurable list of string, init.rc files to be installed if this module is installed
 installable bool
 licenses list of string, Describes the licenses applicable to this module. Must reference license modules.
 linker_script string, if set, the path to a linker script to pass to ld -r when combining multiple object files.
 logtags list of string, *.logtags files, to combine together in order to generate the /system/etc/event-log-tags file
 min_sdk_version string, Minimum OS API level supported by this C or C++ module. This property becomes the value of the __ANDROID_API__ macro. When the C or C++ module is included in an APEX or an APK, this property is also used to ensure that the min_sdk_version of the containing module is not older (i.e. less) than this module's min_sdk_version. When not set, this property defaults to the value of sdk_version. When this is set to "apex_inherit", this tracks min_sdk_version of the containing APEX. When the module is not built for an APEX, "apex_inherit" defaults to sdk_version.
 multilib interface
 native_bridge_supported bool, Whether this module is built for non-native architectures (also known as native bridge binary)
 no_full_install bool, When set to true, this module is not installed to the full install path (ex: under out/target/product/<name>/<partition>). It can be installed only to the packaging modules like android_filesystem.
 objs list of string, names of other cc_object modules to link into this module using partial linking
 odm_available bool, This is the same as the "vendor_available" except that the install path of the vendor variant is /odm or /vendor/odm. By replacing "vendor_available: true" with "odm_available: true", the module will install its vendor variant to the /odm partition or /vendor/odm. As the modules with "odm_available: true" still create the vendor variants, they can link to the other vendor modules as the vendor_available modules do. Also, the vendor modules can link to odm_available modules. It may not be used for VNDK modules.
 odm_dlkm_specific bool, Install to partition odm_dlkm when set to true.
 optimize_for_size bool, Aggresively trade performance for smaller binary size. This should only be used for on-device binaries that are rarely executed and not performance critical.
 overrides list of string, List of module names that are prevented from being installed when this module gets installed.
 owner string, vendor who owns this module
 prefer configurable bool, When prefer is set to true the prebuilt will be used instead of any source module with a matching name.
 prefix_symbols string, if set, add an extra objcopy --prefix-symbols= step
 product_available bool, whether this module should be allowed to be directly depended by other modules with `product_specific: true` or `product_available: true`. If set to true, an additional product variant will be built separately that is limited to the set of libraries and headers that are exposed to /product modules. The product variant may be used with a different (newer) /system, so it shouldn't have any unversioned runtime dependencies, or make assumptions about the system that may not be true in the future. If set to false, this module becomes inaccessible from /product modules. Different from the 'vendor_available' property, the modules with vndk: {enabled: true} don't have to define 'product_available'. The VNDK library without 'product_available' may not be depended on by any other modules that has product variants including the product available VNDKs. Nothing happens if BOARD_VNDK_VERSION isn't set in the BoardConfig.mk and PRODUCT_PRODUCT_VNDK_VERSION isn't set.
 product_specific bool, whether this module is specific to a software configuration of a product (e.g. country, network operator, etc). When set to true, it is installed into /product (or /system/product if product partition does not exist).
product_variables.arc
header_libs
  []string
shared_libs
  []string
static_libs
  []string
srcs
  []string
product_variables.build_from_text_stub
static_libs
  []string
product_variables.debuggable
init_rc
  []string
required
  []string
host_required
  []string
target_required
  []string
static_libs
  []string
shared_libs
  []string
srcs
  []string
product_variables.eng
sanitize.address
  *bool
product_variables.malloc_low_memory
shared_libs
  []string
static_libs
  []string
srcs
  []string
header_libs
  []string
product_variables.native_coverage
srcs
  []string
product_variables.release_aidl_use_unfrozen
required
  []string
vintf_fragment_modules
  []string
product_variables.selinuxignoreneverallows
required
  []string
product_variables.unbundled_build
enabled Configurable[bool]
 Configurable[bool] proptools.Configurable[bool]
 proprietary bool, whether this is a proprietary vendor module, and should be installed into /vendor
 ramdisk bool, Whether this module is installed to ramdisk
 ramdisk_available bool, Make this module available when building for ramdisk. On device without a dedicated recovery partition, the module is only available after switching root into /first_stage_ramdisk. To expose the module before switching root, install the recovery variant instead.
 recovery bool, Whether this module is installed to recovery partition
 recovery_available bool, Make this module available when building for recovery
 required configurable list of string, names of other modules to install if this module is installed
sanitize SanitizeUserProps
 never bool, Prevent use of any sanitizers on this module
 address bool, ASan (Address sanitizer), incompatible with static binaries. Always runs in a diagnostic mode. Use of address sanitizer disables cfi sanitizer. Hwaddress sanitizer takes precedence over this sanitizer.
 thread bool, TSan (Thread sanitizer), incompatible with static binaries and 32 bit architectures. Always runs in a diagnostic mode. Use of thread sanitizer disables cfi and scudo sanitizers. Hwaddress sanitizer takes precedence over this sanitizer.
 hwaddress bool, HWASan (Hardware Address sanitizer). Use of hwasan sanitizer disables cfi, address, thread, and scudo sanitizers.
 all_undefined bool, Undefined behavior sanitizer
 undefined bool, Subset of undefined behavior sanitizer
 misc_undefined list of string, List of specific undefined behavior sanitizers to enable
 fuzzer bool, Fuzzer, incompatible with static binaries.
 safestack bool, safe-stack sanitizer, incompatible with 32-bit architectures.
 cfi bool, cfi sanitizer, incompatible with asan, hwasan, fuzzer, or Darwin
 integer_overflow bool, signed/unsigned integer overflow sanitizer, incompatible with Darwin.
 scudo bool, scudo sanitizer, incompatible with asan, hwasan, tsan This should not be used in Android 11+ : https://source.android.com/devices/tech/debug/scudo deprecated
 scs bool, shadow-call-stack sanitizer, only available on arm64/riscv64.
 memtag_heap bool, Memory-tagging, only available on arm64 if diag.memtag unset or false, enables async memory tagging
 memtag_stack bool, Memory-tagging stack instrumentation, only available on arm64 Adds instrumentation to detect stack buffer overflows and use-after-scope using MTE.
 memtag_globals bool, Memory-tagging globals instrumentation, only available on arm64 Adds instrumentation to detect global buffer overflows using MTE.
 writeonly bool, A modifier for ASAN and HWASAN for write only instrumentation
diag
Sanitizers to run in the diagnostic mode (as opposed to the release mode). Replaces abort() on error with a human-readable error message. Address and Thread sanitizers always run in diagnostic mode.
 undefined bool, Undefined behavior sanitizer, diagnostic mode
 cfi bool, cfi sanitizer, diagnostic mode, incompatible with asan, hwasan, fuzzer, or Darwin
 integer_overflow bool, signed/unsigned integer overflow sanitizer, diagnostic mode, incompatible with Darwin.
 memtag_heap bool, Memory-tagging, only available on arm64 requires sanitizer.memtag: true if set, enables sync memory tagging
 misc_undefined list of string, List of specific undefined behavior sanitizers to enable in diagnostic mode
 no_recover list of string, List of sanitizers to pass to -fno-sanitize-recover results in only the first detected error for these sanitizers being reported and program then exits with a non-zero exit code.
config
Sanitizers to run with flag configuration specified
 cfi_assembly_support bool, Enables CFI support flags for assembly-heavy libraries
 recover list of string, List of sanitizers to pass to -fsanitize-recover allows execution to continue for these sanitizers to detect multiple errors rather than only the first one
 blocklist string, value to pass to -fsanitize-ignorelist
 sdk_variant_only bool, If true, always create an sdk variant and don't create a platform variant.
 sdk_version string, The API level that this module is built against. The APIs of this API level will be visible at build time, but use of any APIs newer than min_sdk_version will render the module unloadable on older devices. In the future it will be possible to weakly-link new APIs, making the behavior match Java: such modules will load on older devices, but calling new APIs on devices that do not support them will result in a crash. This property has the same behavior as sdk_version does for Java modules. For those familiar with Android Gradle, the property behaves similarly to how compileSdkVersion does for Java code. In addition, setting this property causes two variants to be built, one for the platform and one for apps.
 shared_libs configurable list of string, list of shared library modules should only provide headers for this module.
 soc_specific bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist).
 source_module_name string, Name of the source soong module that gets shadowed by this prebuilt If unspecified, follows the naming convention that the source module of the prebuilt is Name() without "prebuilt_" prefix
 static_libs configurable list of string, list of static library modules that should only provide headers for this module.
 stl string, Select the STL library to use. Possible values are "libc++", "libc++_static", "libstdc++", or "none". Leave blank to select the default.
 system_dlkm_specific bool, Install to partition system_dlkm when set to true.
 system_ext_specific bool, whether this module extends system. When set to true, it is installed into /system_ext (or /system/system_ext if system_ext partition does not exist).
 system_shared_libs list of string, list of default libraries that will provide headers for this module. If unset, generally defaults to libc, libm, and libdl. Set to [] to prevent using headers from the defaults.
 target interface
target.android
 compile_multilib string
 enabled bool
target.host
 compile_multilib string
target.platform
 required list of string, List of modules required by the core variant.
 exclude_required list of string, List of modules not required by the core variant.
target.recovery
 required list of string, List of modules required by the recovery variant.
 exclude_required list of string, List of modules not required by the recovery variant.
 target_required list of string, names of other modules to install on target if this module is installed
 team string, The team (defined by the owner/vendor) who owns the property.
 use_generic_config bool, Set to true if this module must be generic and does not require product-specific information. To be included in the system image, this property must be set to true.
 use_source_config_var ConfigVarProperties, When specified this names a Soong config variable that controls the prefer property. If the value of the named Soong config variable is true then prefer is set to false and vice versa. If the Soong config variable is not set then it defaults to false, so prefer defaults to true. If specified then the prefer property is ignored in favor of the value of the Soong config variable. DEPRECATED: This property is being deprecated b/308188211. Use RELEASE_APEX_CONTRIBUTIONS build flags to select prebuilts of mainline modules.
 vendor bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist). Use `soc_specific` instead for better meaning.
 vendor_available bool, whether this module should be allowed to be directly depended by other modules with `vendor: true`, `proprietary: true`, or `vendor_available:true`. If set to true, two variants will be built separately, one like normal, and the other limited to the set of libraries and headers that are exposed to /vendor modules. The vendor variant may be used with a different (newer) /system, so it shouldn't have any unversioned runtime dependencies, or make assumptions about the system that may not be true in the future. If set to false, this module becomes inaccessible from /vendor modules. The modules with vndk: {enabled: true} must define 'vendor_available' to 'true'. Nothing happens if BOARD_VNDK_VERSION isn't set in the BoardConfig.mk
 vendor_dlkm_specific bool, Install to partition vendor_dlkm when set to true.
 vendor_ramdisk bool, Whether this module is installed to vendor ramdisk
 vendor_ramdisk_available bool, Make this module available when building for vendor ramdisk. On device without a dedicated recovery partition, the module is only available after switching root into /first_stage_ramdisk. To expose the module before switching root, install the recovery variant instead.
 vintf_fragment_modules configurable list of string, vintf_fragment Modules required from this module.
 vintf_fragments configurable list of string, VINTF manifest fragments to be installed if this module is installed
 visibility list of string, Controls the visibility of this module to other modules. Allowable values are one or more of these formats:

 ["//visibility:public"]: Anyone can use this module.
 ["//visibility:private"]: Only rules in the module's package (not its subpackages) can use
     this module.
 ["//visibility:override"]: Discards any rules inherited from defaults or a creating module.
     Can only be used at the beginning of a list of visibility rules.
 ["//some/package:__pkg__", "//other/package:__pkg__"]: Only modules in some/package and
     other/package (defined in some/package/*.bp and other/package/*.bp) have access to
     this module. Note that sub-packages do not have access to the rule; for example,
     //some/package/foo:bar or //other/package/testing:bla wouldn't have access. __pkg__
     is a special module and must be used verbatim. It represents all of the modules in the
     package.
 ["//project:__subpackages__", "//other:__subpackages__"]: Only modules in packages project
     or other or in one of their sub-packages have access to this module. For example,
     //project:rule, //project/library:lib or //other/testing/internal:munge are allowed
     to depend on this rule (but not //independent:evil)
 ["//project"]: This is shorthand for ["//project:__pkg__"]
 [":__subpackages__"]: This is shorthand for ["//project:__subpackages__"] where
     //project is the module's package. e.g. using [":__subpackages__"] in
     packages/apps/Settings/Android.bp is equivalent to
     //packages/apps/Settings:__subpackages__.
 ["//visibility:legacy_public"]: The default visibility, behaves as //visibility:public
     for now. It is an error if it is used in a module.

If a module does not specify the `visibility` property then it uses the `default_visibility` property of the `package` module in the module's package. If the `default_visibility` property is not set for the module's package then it will use the `default_visibility` of its closest ancestor package for which a `default_visibility` property is specified. If no `default_visibility` property can be found then the module uses the global default of `//visibility:legacy_public`. The `visibility` property has no effect on a defaults module although it does apply to any non-defaults module that uses it. To set the visibility of a defaults module, use the `defaults_visibility` property on the defaults module; not to be confused with the `default_visibility` property on the package module. See https://android.googlesource.com/platform/build/soong/+/main/README.md#visibility for more details.

cc_prebuilt_test_library_shared

cc_prebuilt_test_library_shared installs a precompiled shared library to be used as a data dependency of a test-related module (such as cc_test, or cc_test_library).
 name string, The name of the module. Must be unique across all modules.
 srcs configurable list of string, a prebuilt library or binary. Can reference a genrule module that generates an executable file.
 exclude_srcs configurable list of string, list of source files that should not be used to build the C/C++ module. This is most useful in the arch/multilib variants to remove non-common files
 defaults list of string
 host_supported bool, If set to true, build a variant of the module for the host. Defaults to false.
 device_supported bool, If set to true, build a variant of the module for the device. Defaults to true.
 afdo bool, Afdo allows developers self-service enroll for automatic feedback-directed optimization using profile data.
aidl
 export_aidl_headers bool, export headers generated from .aidl sources
 libs list of string, List of aidl_library modules
 include_dirs list of string, list of directories that will be added to the aidl include paths.
 local_include_dirs list of string, list of directories relative to the Blueprints file that will be added to the aidl include paths.
 generate_traces bool, whether to generate traces (for systrace) for this interface
 flags list of string, list of flags that will be passed to the AIDL compiler
 allow_undefined_symbols bool, allow the module to contain undefined symbols. By default, modules cannot contain undefined symbols that are not satisified by their immediate dependencies. Set this flag to true to remove --no-undefined from the linker flags. This flag should only be necessary for compiling low-level libraries like libc.
 apex_available list of string, Availability of this module in APEXes. Only the listed APEXes can contain this module. If the module has stubs then other APEXes and the platform may access it through them (subject to visibility). "//apex_available:anyapex" is a pseudo APEX name that matches to any APEX. "//apex_available:platform" refers to non-APEX partitions like "system.img". Prefix pattern (com.foo.*) can be used to match with any APEX name with the prefix(com.foo.). Default is ["//apex_available:platform"].
 arch interface
 asflags list of string, list of module-specific flags that will be used for .S compiles
 bootstrap bool, Allows this module to use non-APEX version of libraries. Useful for building binaries that are started before APEXes are activated.
 bpf_target bool, cc Build rules targeting BPF must set this to true. The correct fix is to ban targeting bpf in cc rules instead use bpf_rules. (b/323415017)
buildstubs bool
 bool bool
 c_std string, C standard version to use. Can be a specific version (such as "gnu11"), "experimental" (which will use draft versions like C1x when available), or the empty string (which will use the default).
 cflags configurable list of string, list of module-specific flags that will be used for C and C++ compiles.
 check_elf_files bool, Check the prebuilt ELF files (e.g. DT_SONAME, DT_NEEDED, resolution of undefined symbols, etc), default true.
 clang bool, Deprecated. true is the default, false is invalid.
 clang_asflags list of string, list of module-specific flags that will be used for .S compiles when compiling with clang
 clang_cflags list of string, list of module-specific flags that will be used for C and C++ compiles when compiling with clang
 clang_verify bool, Add "-Xclang -verify" to the cflags and appends "touch $out" to the clang command line.
 cmake_snapshot_supported bool, Allows this module to be included in CMake release snapshots to be built outside of Android build system and source tree.
 compile_multilib string, control whether this module compiles for 32-bit, 64-bit, or both. Possible values are "32" (compile for 32-bit only), "64" (compile for 64-bit only), "both" (compile for both architectures), or "first" (compile for 64-bit on a 64-bit platform, and 32-bit on a 32-bit platform).
 conlyflags list of string, list of module-specific flags that will be used for C compiles
 cpp_std string, C++ standard version to use. Can be a specific version (such as "gnu++11"), "experimental" (which will use draft versions like C++1z when available), or the empty string (which will use the default).
 cppflags configurable list of string, list of module-specific flags that will be used for C++ compiles
 debug_ramdisk bool, Whether this module is installed to debug ramdisk
 device_first_generated_headers configurable list of string, Same as generated_headers, but the dependencies will be added based on the first supported arch variant and the device os variant. This can be useful for creating a host tool that embeds a copy of a device tool, that it then extracts and pushes to a device at runtime.
 device_specific bool, whether this module is specific to a device, not only for SoC, but also for off-chip peripherals. When set to true, it is installed into /odm (or /vendor/odm if odm partition does not exist, or /system/vendor/odm if both odm and vendor partitions do not exist). This implies `soc_specific:true`.
dist Dist
configuration to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 targets list of string, Copy the output of this module to the $DIST_DIR when `dist` is specified on the command line and any of these targets are also on the command line, or otherwise built
 dest string, The name of the output artifact. This defaults to the basename of the output of the module.
 dir string, The directory within the dist directory to store the artifact. Defaults to the top level directory ("").
 suffix string, A suffix to add to the artifact file name (before any extension).
 append_artifact_with_product bool, If true, then the artifact file will be appended with _<product name>. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be foo_coral.apk. If false, there is no change to the artifact file name.
 prepend_artifact_with_product bool, If true, then the artifact file will be prepended with <product name>-. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be coral-foo.apk. If false, there is no change to the artifact file name.
 tag string, A string tag to select the OutputFiles associated with the tag. If no tag is specified then it will select the default dist paths provided by the module type. If a tag of "" is specified then it will return the default output files provided by the modules, i.e. the result of calling OutputFiles("").
 dists list of Dist, a list of configurations to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 double_loadable bool, whether this module is capable of being loaded with other instance (possibly an older version) of the same module in the same process. Currently, a shared library that is a member of VNDK (vndk: {enabled: true}) can be double loaded in a vendor process if the library is also a (direct and indirect) dependency of an LLNDK library. Such libraries must be explicitly marked as `double_loadable: true` by the owner, or the dependency from the LLNDK lib should be cut if the lib is not designed to be double loaded.
 dynamic_list string, local file name to pass to the linker as --dynamic-list. Not supported on darwin, and will fail to build if provided to the darwin variant of a module.
 enabled configurable bool, emit build rules for this module Disabling a module should only be done for those modules that cannot be built in the current environment. Modules that can build in the current environment but are not usually required (e.g. superceded by a prebuilt) should not be disabled as that will prevent them from being built by the checkbuild target and so prevent early detection of changes that have broken those modules.
 exclude_generated_sources list of string, list of generated sources that should not be used to build the C/C++ module. This is most useful in the arch/multilib variants to remove non-common files
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with this module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build this module
 exclude_static_libs list of string, list of static libs that should not be used to build this module
 export_cflags list of string, list of plain cc flags to be used for any module that links against this module.
 export_generated_headers list of string, list of generated headers to re-export include directories from. Entries must be present in generated_headers.
 export_header_lib_headers configurable list of string, list of header libraries to re-export include directories from. Entries must be present in header_libs.
 export_include_dirs configurable list of string, list of directories relative to the Blueprints file that will be added to the include path (using -I) for this module and any module that links against this module. Directories listed in export_include_dirs do not need to be listed in local_include_dirs.
 export_shared_lib_headers list of string, list of shared libraries to re-export include directories from. Entries must be present in shared_libs.
 export_static_lib_headers list of string, list of static libraries to re-export include directories from. Entries must be present in static_libs.
 export_system_include_dirs list of string, list of directories that will be added to the system include path using -isystem for this module and any module that links against this module.
 exported_symbols_list string, local file name to pass to the linker as -exported_symbols_list
 force_symbols_not_weak_list string, local file name to pass to the linker as -force_symbols_not_weak_list
 force_symbols_weak_list string, local file name to pass to the linker as -force_symbols_weak_list
 generated_headers configurable list of string, list of generated headers to add to the include path. These are the names of genrule modules.
 generated_sources list of string, list of generated sources to compile. These are the names of gensrcs or genrule modules.
 gnu_extensions bool, if set to false, use -std=c++* instead of -std=gnu++*
 group_static_libs bool, deprecated and ignored because lld makes it unnecessary. See b/189475744.
header_abi_checker headerAbiCheckerProperties
Properties for ABI compatibility checker.
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 header_libs configurable list of string, list of modules that should only provide headers for this module.
 host_cross_supported bool, If set to true, build a variant of the module for the host cross. Defaults to true.
 host_ldlibs list of string, -l arguments to pass to linker for host-provided shared libraries
 host_required list of string, names of other modules to install on host if this module is installed
 ignore_max_page_size bool, ignore max page size. By default, max page size must be the max page size set for the target.
 include_build_directory bool, Add the directory containing the Android.bp file to the list of include directories. Defaults to true.
 include_dirs configurable list of string, list of directories relative to the root of the source tree that will be added to the include path using -I. If possible, don't use this. If adding paths from the current directory use local_include_dirs, if adding paths from other modules use export_include_dirs in that module.
 init_rc configurable list of string, init.rc files to be installed if this module is installed
 inject_bssl_hash bool, Inject boringssl hash into the shared library. This is only intended for use by external/boringssl.
 install_in_root bool, Install output directly in {partition}/, not in any subdir. This is only intended for use by init_first_stage.
 install_in_xbin bool, Install output directly in {partition}/xbin
 installable bool
 instruction_set string, the instruction set architecture to use to compile the C/C++ module.
 ldflags list of string, list of module-specific flags that will be used for all link steps
 lex LexProperties
 licenses list of string, Describes the licenses applicable to this module. Must reference license modules.
 linker_scripts list of string, local files to pass to the linker as --script. Not supported on darwin or windows, and will fail to build if provided to the darwin or windows variant of a module.
llndk llndkLibraryProperties
If this is an LLNDK library, properties to describe the LLNDK stubs. Will be copied from the module pointed to by llndk_stubs if it is set.
 symbol_file string, Relative path to the symbol map. An example file can be seen here: TODO(danalbert): Make an example.
 export_headers_as_system bool, Whether to export any headers as -isystem instead of -I. Mainly for use by bionic/libc.
 unversioned bool, Whether the system library uses symbol versions.
 export_llndk_headers list of string, list of llndk headers to re-export include directories from.
 override_export_include_dirs list of string, list of directories relative to the Blueprints file that willbe added to the include path (using -I) for any module that links against the LLNDK variant of this module, replacing any that were listed outside the llndk clause.
 private bool, whether this module can be directly depended upon by libs that are installed to /vendor and /product. When set to true, this module can only be depended on by VNDK libraries, not vendor nor product libraries. This effectively hides this module from non-system modules. Default value is false.
 llndk_headers bool, if true, make this module available to provide headers to other modules that set llndk.symbol_file.
 moved_to_apex bool, moved_to_apex marks this module has having been distributed through an apex module.
 local_include_dirs configurable list of string, list of directories relative to the Blueprints file that will be added to the include path using -I
 logtags list of string, *.logtags files, to combine together in order to generate the /system/etc/event-log-tags file
lto
Lto must violate capitalization style for acronyms so that it can be referred to in blueprint files as "lto"
 never bool
 thin bool
 lto_O0 bool, Use --lto-O0 flag.
 min_sdk_version string, Minimum OS API level supported by this C or C++ module. This property becomes the value of the __ANDROID_API__ macro. When the C or C++ module is included in an APEX or an APK, this property is also used to ensure that the min_sdk_version of the containing module is not older (i.e. less) than this module's min_sdk_version. When not set, this property defaults to the value of sdk_version. When this is set to "apex_inherit", this tracks min_sdk_version of the containing APEX. When the module is not built for an APEX, "apex_inherit" defaults to sdk_version.
 multilib interface
 native_bridge_supported bool, Whether this module is built for non-native architectures (also known as native bridge binary)
 native_coverage bool
 no_crt_pad_segment bool, don't link in crt_pad_segment. This flag is currently only used internal to soong for testing and for vndk prebuilt shared libraries.
 no_full_install bool, When set to true, this module is not installed to the full install path (ex: under out/target/product/<name>/<partition>). It can be installed only to the packaging modules like android_filesystem.
 no_libcrt bool, don't link in libclang_rt.builtins-*.a
 nocrt bool, don't link in crt_begin and crt_end. This flag should only be necessary for compiling crt or libc.
 odm_available bool, This is the same as the "vendor_available" except that the install path of the vendor variant is /odm or /vendor/odm. By replacing "vendor_available: true" with "odm_available: true", the module will install its vendor variant to the /odm partition or /vendor/odm. As the modules with "odm_available: true" still create the vendor variants, they can link to the other vendor modules as the vendor_available modules do. Also, the vendor modules can link to odm_available modules. It may not be used for VNDK modules.
 odm_dlkm_specific bool, Install to partition odm_dlkm when set to true.
 openmp bool, Build and link with OpenMP
 optimize_for_size bool, Aggresively trade performance for smaller binary size. This should only be used for on-device binaries that are rarely executed and not performance critical.
orderfile
 instrumentation bool
 order_file_path string
 load_order_file bool
 cflags list of string, Additional compiler flags to use when building this module for orderfile profiling.
 overrides list of string, Names of modules to be overridden. Listed modules can only be other shared libraries (in Make or Soong). This does not completely prevent installation of the overridden libraries, but if both binaries would be installed by default (in PRODUCT_PACKAGES) the other library will be removed from PRODUCT_PACKAGES.
 owner string, vendor who owns this module
 pack_relocations bool, Generate compact dynamic relocation table, default true.
 prefer configurable bool, When prefer is set to true the prebuilt will be used instead of any source module with a matching name.
 prefix_symbols string, if set, add an extra objcopy --prefix-symbols= step
 product_available bool, whether this module should be allowed to be directly depended by other modules with `product_specific: true` or `product_available: true`. If set to true, an additional product variant will be built separately that is limited to the set of libraries and headers that are exposed to /product modules. The product variant may be used with a different (newer) /system, so it shouldn't have any unversioned runtime dependencies, or make assumptions about the system that may not be true in the future. If set to false, this module becomes inaccessible from /product modules. Different from the 'vendor_available' property, the modules with vndk: {enabled: true} don't have to define 'product_available'. The VNDK library without 'product_available' may not be depended on by any other modules that has product variants including the product available VNDKs. Nothing happens if BOARD_VNDK_VERSION isn't set in the BoardConfig.mk and PRODUCT_PRODUCT_VNDK_VERSION isn't set.
 product_specific bool, whether this module is specific to a software configuration of a product (e.g. country, network operator, etc). When set to true, it is installed into /product (or /system/product if product partition does not exist).
product_variables.arc
cflags
  []string
exclude_srcs
  []string
header_libs
  []string
include_dirs
  []string
shared_libs
  []string
static_libs
  []string
srcs
  []string
whole_static_libs
  []string
product_variables.binder32bit
cflags
  []string
product_variables.build_from_text_stub
static_libs
  []string
exclude_static_libs
  []string
product_variables.debuggable
cflags
  []string
cppflags
  []string
init_rc
  []string
required
  []string
host_required
  []string
target_required
  []string
strip.all
  *bool
strip.keep_symbols
  *bool
strip.keep_symbols_and_debug_frame
  *bool
static_libs
  []string
exclude_static_libs
  []string
whole_static_libs
  []string
shared_libs
  []string
srcs
  []string
exclude_srcs
  []string
product_variables.enforce_vintf_manifest
cflags
  []string
product_variables.eng
cflags
  []string
cppflags
  []string
lto.never
  *bool
sanitize.address
  *bool
product_variables.malloc_low_memory
cflags
  []string
shared_libs
  []string
whole_static_libs
  []string
static_libs
  []string
exclude_static_libs
  []string
srcs
  []string
header_libs
  []string
product_variables.malloc_pattern_fill_contents
cflags
  []string
product_variables.malloc_zero_contents
cflags
  []string
product_variables.native_coverage
srcs
  []string
exclude_srcs
  []string
product_variables.override_rs_driver
cflags
  []string
product_variables.platform_sdk_version
asflags
  []string
cflags
  []string
product_variables.release_aidl_use_unfrozen
cflags
  []string
required
  []string
vintf_fragment_modules
  []string
product_variables.safestack
cflags
  []string
product_variables.selinuxignoreneverallows
required
  []string
product_variables.shipping_api_level
cflags
  []string
product_variables.treble_linker_namespaces
cflags
  []string
product_variables.uml
cppflags
  []string
product_variables.unbundled_build
enabled Configurable[bool]
 Configurable[bool] proptools.Configurable[bool]
 proprietary bool, whether this is a proprietary vendor module, and should be installed into /vendor
proto
 export_proto_headers bool, export headers generated from .proto sources
 type string, Proto generator type. C++: full or lite. Java: micro, nano, stream, or lite.
 plugin string, Proto plugin to use as the generator. Must be a cc_binary_host module.
 include_dirs list of string, list of directories that will be added to the protoc include paths.
 local_include_dirs list of string, list of directories relative to the bp file that will be added to the protoc include paths.
 canonical_path_from_root bool, whether to identify the proto files from the root of the source tree (the original method in Android, useful for android-specific protos), or relative from where they were specified (useful for external/third party protos). This defaults to true today, but is expected to default to false in the future.
 static bool, Link statically against the protobuf runtime
 ramdisk bool, Whether this module is installed to ramdisk
 ramdisk_available bool, Make this module available when building for ramdisk. On device without a dedicated recovery partition, the module is only available after switching root into /first_stage_ramdisk. To expose the module before switching root, install the recovery variant instead.
 recovery bool, Whether this module is installed to recovery partition
 recovery_available bool, Make this module available when building for recovery
 relative_install_path string, install to a subdirectory of the default install path for the module
renderscript
 include_dirs list of string, list of directories that will be added to the llvm-rs-cc include paths
 flags list of string, list of flags that will be passed to llvm-rs-cc
 target_api string, Renderscript API level to target
 required configurable list of string, names of other modules to install if this module is installed
 rtti bool, pass -frtti instead of -fno-rtti
 runtime_libs list of string, list of modules that should be installed with this module. This is similar to 'required' but '.vendor' suffix will be appended to the module names if the shared libraries have vendor variants and this module uses VNDK.
sanitize SanitizeUserProps
 never bool, Prevent use of any sanitizers on this module
 address bool, ASan (Address sanitizer), incompatible with static binaries. Always runs in a diagnostic mode. Use of address sanitizer disables cfi sanitizer. Hwaddress sanitizer takes precedence over this sanitizer.
 thread bool, TSan (Thread sanitizer), incompatible with static binaries and 32 bit architectures. Always runs in a diagnostic mode. Use of thread sanitizer disables cfi and scudo sanitizers. Hwaddress sanitizer takes precedence over this sanitizer.
 hwaddress bool, HWASan (Hardware Address sanitizer). Use of hwasan sanitizer disables cfi, address, thread, and scudo sanitizers.
 all_undefined bool, Undefined behavior sanitizer
 undefined bool, Subset of undefined behavior sanitizer
 misc_undefined list of string, List of specific undefined behavior sanitizers to enable
 fuzzer bool, Fuzzer, incompatible with static binaries.
 safestack bool, safe-stack sanitizer, incompatible with 32-bit architectures.
 cfi bool, cfi sanitizer, incompatible with asan, hwasan, fuzzer, or Darwin
 integer_overflow bool, signed/unsigned integer overflow sanitizer, incompatible with Darwin.
 scudo bool, scudo sanitizer, incompatible with asan, hwasan, tsan This should not be used in Android 11+ : https://source.android.com/devices/tech/debug/scudo deprecated
 scs bool, shadow-call-stack sanitizer, only available on arm64/riscv64.
 memtag_heap bool, Memory-tagging, only available on arm64 if diag.memtag unset or false, enables async memory tagging
 memtag_stack bool, Memory-tagging stack instrumentation, only available on arm64 Adds instrumentation to detect stack buffer overflows and use-after-scope using MTE.
 memtag_globals bool, Memory-tagging globals instrumentation, only available on arm64 Adds instrumentation to detect global buffer overflows using MTE.
 writeonly bool, A modifier for ASAN and HWASAN for write only instrumentation
diag
Sanitizers to run in the diagnostic mode (as opposed to the release mode). Replaces abort() on error with a human-readable error message. Address and Thread sanitizers always run in diagnostic mode.
 undefined bool, Undefined behavior sanitizer, diagnostic mode
 cfi bool, cfi sanitizer, diagnostic mode, incompatible with asan, hwasan, fuzzer, or Darwin
 integer_overflow bool, signed/unsigned integer overflow sanitizer, diagnostic mode, incompatible with Darwin.
 memtag_heap bool, Memory-tagging, only available on arm64 requires sanitizer.memtag: true if set, enables sync memory tagging
 misc_undefined list of string, List of specific undefined behavior sanitizers to enable in diagnostic mode
 no_recover list of string, List of sanitizers to pass to -fno-sanitize-recover results in only the first detected error for these sanitizers being reported and program then exits with a non-zero exit code.
config
Sanitizers to run with flag configuration specified
 cfi_assembly_support bool, Enables CFI support flags for assembly-heavy libraries
 recover list of string, List of sanitizers to pass to -fsanitize-recover allows execution to continue for these sanitizers to detect multiple errors rather than only the first one
 blocklist string, value to pass to -fsanitize-ignorelist
sanitized.address
 srcs list of string
sanitized.hwaddress
 srcs list of string
sanitized.none
 srcs list of string
 sdk_variant_only bool, If true, always create an sdk variant and don't create a platform variant.
 sdk_version string, The API level that this module is built against. The APIs of this API level will be visible at build time, but use of any APIs newer than min_sdk_version will render the module unloadable on older devices. In the future it will be possible to weakly-link new APIs, making the behavior match Java: such modules will load on older devices, but calling new APIs on devices that do not support them will result in a crash. This property has the same behavior as sdk_version does for Java modules. For those familiar with Android Gradle, the property behaves similarly to how compileSdkVersion does for Java code. In addition, setting this property causes two variants to be built, one for the platform and one for apps.
shared StaticOrSharedProperties
 srcs configurable list of string
 tidy_disabled_srcs list of string
 tidy_timeout_srcs list of string
sanitized Sanitized
none
 srcs list of string
address
 srcs list of string
hwaddress
 srcs list of string
 cflags configurable list of string
 enabled bool
 whole_static_libs configurable list of string
 static_libs configurable list of string
 shared_libs configurable list of string
 system_shared_libs list of string
 export_shared_lib_headers list of string
 export_static_lib_headers list of string
 apex_available list of string
 installable bool
 shared_libs configurable list of string, list of modules that should be dynamically linked into this module.
 soc_specific bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist).
 source_module_name string, Name of the source soong module that gets shadowed by this prebuilt If unspecified, follows the naming convention that the source module of the prebuilt is Name() without "prebuilt_" prefix
 static_libs configurable list of string, list of modules that should be statically linked into this module.
 static_ndk_lib bool
 stem string, set the name of the output
 stl string, Select the STL library to use. Possible values are "libc++", "libc++_static", "libstdc++", or "none". Leave blank to select the default.
strip
 none bool, Device modules default to stripping enabled leaving mini debuginfo. Host modules default to stripping disabled, but can be enabled by setting any other strip boolean property.
 all bool, all forces stripping everything, including the mini debug info.
 keep_symbols bool, keep_symbols enables stripping but keeps all symbols.
 keep_symbols_list list of string, keep_symbols_list specifies a list of symbols to keep if keep_symbols is enabled. If it is unset then all symbols are kept.
 keep_symbols_and_debug_frame bool, keep_symbols_and_debug_frame enables stripping but keeps all symbols and debug frames.
stubs StubsProperties
Generate stubs to make this library accessible to APEXes.
 symbol_file string, Relative path to the symbol map. The symbol map provides the list of symbols that are exported for stubs variant of this library.
 versions list of string, List versions to generate stubs libs for. The version name "current" is always implicitly added.
 implementation_installable bool, Whether to not require the implementation of the library to be installed if a client of the stubs is installed. Defaults to true; set to false if the implementation is made available by some other means, e.g. in a Microdroid virtual machine.
 suffix string, set suffix of the name of the output
 system_dlkm_specific bool, Install to partition system_dlkm when set to true.
 system_ext_specific bool, whether this module extends system. When set to true, it is installed into /system_ext (or /system/system_ext if system_ext partition does not exist).
 system_shared_libs list of string, list of system libraries that will be dynamically linked to shared library and executable modules. If unset, generally defaults to libc, libm, and libdl. Set to [] to prevent linking against the defaults.
 target interface
target.android
 compile_multilib string
 enabled bool
target.apex
 exclude_shared_libs list of string, list of shared libs that should not be used to build the apex variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the apex variant of the C/C++ module.
target.host
 compile_multilib string
target.non_apex
 exclude_shared_libs list of string, list of shared libs that should not be used to build the non-apex variant of the C/C++ module.
target.platform
header_abi_checker headerAbiCheckerProperties
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 required list of string, List of modules required by the core variant.
 exclude_required list of string, List of modules not required by the core variant.
 shared_libs list of string, list of shared libs that should be use to build the platform variant of a module that sets sdk_version. This should rarely be necessary, in most cases the same libraries are available for the SDK and platform variants.
 header_libs list of string, list of ehader libs that only should be used to build platform variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the platform variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the platform variant of the C/C++ module.
target.product
 shared_libs list of string, list of shared libs that only should be used to build vendor or product variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build vendor or product variant of the C/C++ module.
 header_libs list of string, list of header libs that only should be used to build vendor or product variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor or product variant of the C/C++ module.
 version_script string, version script for vendor or product variant
 override_export_include_dirs list of string, list of exported include directories, like export_include_dirs, that will be applied to vendor or product variant of this library. This will overwrite any other declarations.
 srcs list of string, list of source files that should only be used in vendor or product variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build vendor or product variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build vendor or product variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build vendor or product variant of the C/C++ module.
 suffix string, set suffix of the name of the output
header_abi_checker headerAbiCheckerProperties
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 no_stubs bool, Disable stubs for vendor/product variants This is a workaround to keep `stubs` only for "core" variant (not product/vendor). It would be nice if we could put `stubs` into a `target: { core: {} }` block but it's not supported in soong yet. This could be removed/simplified once we have a better syntax.
target.ramdisk
 static_libs list of string, list of static libs that only should be used to build the ramdisk variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the ramdisk variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the ramdisk variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the ramdisk variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build the ramdisk variants of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the ramdisk variants of the C/C++ module.
target.recovery
 required list of string, List of modules required by the recovery variant.
 exclude_required list of string, List of modules not required by the recovery variant.
 srcs list of string, list of source files that should only be used in the recovery variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build the recovery variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the recovery variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build the recovery variant of the C/C++ module.
 shared_libs list of string, list of shared libs that only should be used to build the recovery variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build the recovery variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the recovery variant of the C/C++ module.
target.vendor
 srcs list of string, list of source files that should only be used in vendor or product variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build vendor or product variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build vendor or product variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build vendor or product variant of the C/C++ module.
 shared_libs list of string, list of shared libs that only should be used to build vendor or product variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build vendor or product variant of the C/C++ module.
 header_libs list of string, list of header libs that only should be used to build vendor or product variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor or product variant of the C/C++ module.
 version_script string, version script for vendor or product variant
 suffix string, set suffix of the name of the output
header_abi_checker headerAbiCheckerProperties
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 no_stubs bool, Disable stubs for vendor/product variants This is a workaround to keep `stubs` only for "core" variant (not product/vendor). It would be nice if we could put `stubs` into a `target: { core: {} }` block but it's not supported in soong yet. This could be removed/simplified once we have a better syntax.
 override_export_include_dirs list of string, list of exported include directories, like export_include_dirs, that will be applied to vendor or product variant of this library. This will overwrite any other declarations.
target.vendor_ramdisk
 exclude_shared_libs list of string, list of shared libs that should not be used to build the vendor ramdisk variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the vendor ramdisk variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor ramdisk variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build the ramdisk variants of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the ramdisk variants of the C/C++ module.
 target_required list of string, names of other modules to install on target if this module is installed
 team string, The team (defined by the owner/vendor) who owns the property.
 test_only bool, Indicates that the module and its source code are only used in tests, not production code. Used by coverage reports and potentially other tools.
 tidy bool, whether to run clang-tidy over C-like sources.
 tidy_checks list of string, Extra checks to enable or disable in clang-tidy
 tidy_checks_as_errors list of string, Checks that should be treated as errors.
 tidy_disabled_srcs list of string, list of source files that should not be compiled with clang-tidy.
 tidy_flags list of string, Extra flags to pass to clang-tidy
 tidy_timeout_srcs list of string, list of source files that should not be compiled by clang-tidy when TIDY_TIMEOUT is set.
 unexported_symbols_list string, local file name to pass to the linker as -unexported_symbols_list
 unique_host_soname bool, rename host libraries to prevent overlap with system installed libraries
 use_generic_config bool, Set to true if this module must be generic and does not require product-specific information. To be included in the system image, this property must be set to true.
 use_source_config_var ConfigVarProperties, When specified this names a Soong config variable that controls the prefer property. If the value of the named Soong config variable is true then prefer is set to false and vice versa. If the Soong config variable is not set then it defaults to false, so prefer defaults to true. If specified then the prefer property is ignored in favor of the value of the Soong config variable. DEPRECATED: This property is being deprecated b/308188211. Use RELEASE_APEX_CONTRIBUTIONS build flags to select prebuilts of mainline modules.
 use_version_lib bool, make android::build:GetBuildNumber() available containing the build ID.
 vendor bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist). Use `soc_specific` instead for better meaning.
 vendor_available bool, whether this module should be allowed to be directly depended by other modules with `vendor: true`, `proprietary: true`, or `vendor_available:true`. If set to true, two variants will be built separately, one like normal, and the other limited to the set of libraries and headers that are exposed to /vendor modules. The vendor variant may be used with a different (newer) /system, so it shouldn't have any unversioned runtime dependencies, or make assumptions about the system that may not be true in the future. If set to false, this module becomes inaccessible from /vendor modules. The modules with vndk: {enabled: true} must define 'vendor_available' to 'true'. Nothing happens if BOARD_VNDK_VERSION isn't set in the BoardConfig.mk
 vendor_dlkm_specific bool, Install to partition vendor_dlkm when set to true.
vendor_public_library vendorPublicLibraryProperties
If this is a vendor public library, properties to describe the vendor public library stubs.
 symbol_file string, Relative path to the symbol map.
 unversioned bool, Whether the system library uses symbol versions.
 export_public_headers list of string, list of header libs to re-export include directories from.
 override_export_include_dirs list of string, list of directories relative to the Blueprints file that willbe added to the include path (using -I) for any module that links against the LLNDK variant of this module, replacing any that were listed outside the llndk clause.
 vendor_ramdisk bool, Whether this module is installed to vendor ramdisk
 vendor_ramdisk_available bool, Make this module available when building for vendor ramdisk. On device without a dedicated recovery partition, the module is only available after switching root into /first_stage_ramdisk. To expose the module before switching root, install the recovery variant instead.
 version_script string, local file name to pass to the linker as --version-script. Not supported on darwin, and will fail to build if provided to the darwin variant of a module.
 vintf_fragment_modules configurable list of string, vintf_fragment Modules required from this module.
 vintf_fragments configurable list of string, VINTF manifest fragments to be installed if this module is installed
 visibility list of string, Controls the visibility of this module to other modules. Allowable values are one or more of these formats:

 ["//visibility:public"]: Anyone can use this module.
 ["//visibility:private"]: Only rules in the module's package (not its subpackages) can use
     this module.
 ["//visibility:override"]: Discards any rules inherited from defaults or a creating module.
     Can only be used at the beginning of a list of visibility rules.
 ["//some/package:__pkg__", "//other/package:__pkg__"]: Only modules in some/package and
     other/package (defined in some/package/*.bp and other/package/*.bp) have access to
     this module. Note that sub-packages do not have access to the rule; for example,
     //some/package/foo:bar or //other/package/testing:bla wouldn't have access. __pkg__
     is a special module and must be used verbatim. It represents all of the modules in the
     package.
 ["//project:__subpackages__", "//other:__subpackages__"]: Only modules in packages project
     or other or in one of their sub-packages have access to this module. For example,
     //project:rule, //project/library:lib or //other/testing/internal:munge are allowed
     to depend on this rule (but not //independent:evil)
 ["//project"]: This is shorthand for ["//project:__pkg__"]
 [":__subpackages__"]: This is shorthand for ["//project:__subpackages__"] where
     //project is the module's package. e.g. using [":__subpackages__"] in
     packages/apps/Settings/Android.bp is equivalent to
     //packages/apps/Settings:__subpackages__.
 ["//visibility:legacy_public"]: The default visibility, behaves as //visibility:public
     for now. It is an error if it is used in a module.

If a module does not specify the `visibility` property then it uses the `default_visibility` property of the `package` module in the module's package. If the `default_visibility` property is not set for the module's package then it will use the `default_visibility` of its closest ancestor package for which a `default_visibility` property is specified. If no `default_visibility` property can be found then the module uses the global default of `//visibility:legacy_public`. The `visibility` property has no effect on a defaults module although it does apply to any non-defaults module that uses it. To set the visibility of a defaults module, use the `defaults_visibility` property on the defaults module; not to be confused with the `default_visibility` property on the package module. See https://android.googlesource.com/platform/build/soong/+/main/README.md#visibility for more details.
 whole_program_vtables bool, Use -fwhole-program-vtables cflag.
 whole_static_libs configurable list of string, list of modules whose object files should be linked into this module in their entirety. For static library modules, all of the .o files from the intermediate directory of the dependency will be linked into this modules .a file. For a shared library, the dependency's .a file will be linked into this module using -Wl,--whole-archive.
 windows_import_lib string, Optionally provide an import library if this is a Windows PE DLL prebuilt. This is needed only if this library is linked by other modules in build time. Only makes sense for the Windows target.
 yacc YaccProperties

cc_preprocess_no_configuration

cc_preprocess_no_configuration modules run the c preprocessor on a single input source file. They also have "no configuration", meaning they don't have an arch or os associated with them, they should be thought of as pure textual transformations of the input file. In some cases this is good, in others you might want to do different transformations depending on what arch the result will be compiled in, in which case you can use cc_object instead of this module.
 name string, The name of the module. Must be unique across all modules.
 srcs list of string, Called Srcs for consistency with the other cc module types, but only accepts 1 input source file.
 cflags list of string, The flags to pass to the c compiler. Must include -E in order to enable preprocessing-only mode.
 compile_multilib string, control whether this module compiles for 32-bit, 64-bit, or both. Possible values are "32" (compile for 32-bit only), "64" (compile for 64-bit only), "both" (compile for both architectures), or "first" (compile for 64-bit on a 64-bit platform, and 32-bit on a 32-bit platform).
 debug_ramdisk bool, Whether this module is installed to debug ramdisk
 device_specific bool, whether this module is specific to a device, not only for SoC, but also for off-chip peripherals. When set to true, it is installed into /odm (or /vendor/odm if odm partition does not exist, or /system/vendor/odm if both odm and vendor partitions do not exist). This implies `soc_specific:true`.
dist Dist
configuration to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 targets list of string, Copy the output of this module to the $DIST_DIR when `dist` is specified on the command line and any of these targets are also on the command line, or otherwise built
 dest string, The name of the output artifact. This defaults to the basename of the output of the module.
 dir string, The directory within the dist directory to store the artifact. Defaults to the top level directory ("").
 suffix string, A suffix to add to the artifact file name (before any extension).
 append_artifact_with_product bool, If true, then the artifact file will be appended with _<product name>. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be foo_coral.apk. If false, there is no change to the artifact file name.
 prepend_artifact_with_product bool, If true, then the artifact file will be prepended with <product name>-. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be coral-foo.apk. If false, there is no change to the artifact file name.
 tag string, A string tag to select the OutputFiles associated with the tag. If no tag is specified then it will select the default dist paths provided by the module type. If a tag of "" is specified then it will return the default output files provided by the modules, i.e. the result of calling OutputFiles("").
 dists list of Dist, a list of configurations to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 enabled configurable bool, emit build rules for this module Disabling a module should only be done for those modules that cannot be built in the current environment. Modules that can build in the current environment but are not usually required (e.g. superceded by a prebuilt) should not be disabled as that will prevent them from being built by the checkbuild target and so prevent early detection of changes that have broken those modules.
 host_required list of string, names of other modules to install on host if this module is installed
 init_rc configurable list of string, init.rc files to be installed if this module is installed
 licenses list of string, Describes the licenses applicable to this module. Must reference license modules.
 native_bridge_supported bool, Whether this module is built for non-native architectures (also known as native bridge binary)
 no_full_install bool, When set to true, this module is not installed to the full install path (ex: under out/target/product/<name>/<partition>). It can be installed only to the packaging modules like android_filesystem.
 odm_dlkm_specific bool, Install to partition odm_dlkm when set to true.
 overrides list of string, List of module names that are prevented from being installed when this module gets installed.
 owner string, vendor who owns this module
 product_specific bool, whether this module is specific to a software configuration of a product (e.g. country, network operator, etc). When set to true, it is installed into /product (or /system/product if product partition does not exist).
product_variables.arc
cflags
  []string
srcs
  []string
product_variables.binder32bit
cflags
  []string
product_variables.debuggable
cflags
  []string
init_rc
  []string
required
  []string
host_required
  []string
target_required
  []string
srcs
  []string
product_variables.enforce_vintf_manifest
cflags
  []string
product_variables.eng
cflags
  []string
product_variables.malloc_low_memory
cflags
  []string
srcs
  []string
product_variables.malloc_pattern_fill_contents
cflags
  []string
product_variables.malloc_zero_contents
cflags
  []string
product_variables.native_coverage
srcs
  []string
product_variables.override_rs_driver
cflags
  []string
product_variables.platform_sdk_version
cflags
  []string
product_variables.release_aidl_use_unfrozen
cflags
  []string
required
  []string
vintf_fragment_modules
  []string
product_variables.safestack
cflags
  []string
product_variables.selinuxignoreneverallows
required
  []string
product_variables.shipping_api_level
cflags
  []string
product_variables.treble_linker_namespaces
cflags
  []string
product_variables.unbundled_build
enabled Configurable[bool]
 Configurable[bool] proptools.Configurable[bool]
 proprietary bool, whether this is a proprietary vendor module, and should be installed into /vendor
 ramdisk bool, Whether this module is installed to ramdisk
 recovery bool, Whether this module is installed to recovery partition
 required configurable list of string, names of other modules to install if this module is installed
 soc_specific bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist).
 system_dlkm_specific bool, Install to partition system_dlkm when set to true.
 system_ext_specific bool, whether this module extends system. When set to true, it is installed into /system_ext (or /system/system_ext if system_ext partition does not exist).
target.android
 compile_multilib string
 enabled bool
target.host
 compile_multilib string
 target_required list of string, names of other modules to install on target if this module is installed
 team string, The team (defined by the owner/vendor) who owns the property.
 use_generic_config bool, Set to true if this module must be generic and does not require product-specific information. To be included in the system image, this property must be set to true.
 vendor bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist). Use `soc_specific` instead for better meaning.
 vendor_dlkm_specific bool, Install to partition vendor_dlkm when set to true.
 vendor_ramdisk bool, Whether this module is installed to vendor ramdisk
 vintf_fragment_modules configurable list of string, vintf_fragment Modules required from this module.
 vintf_fragments configurable list of string, VINTF manifest fragments to be installed if this module is installed
 visibility list of string, Controls the visibility of this module to other modules. Allowable values are one or more of these formats:

 ["//visibility:public"]: Anyone can use this module.
 ["//visibility:private"]: Only rules in the module's package (not its subpackages) can use
     this module.
 ["//visibility:override"]: Discards any rules inherited from defaults or a creating module.
     Can only be used at the beginning of a list of visibility rules.
 ["//some/package:__pkg__", "//other/package:__pkg__"]: Only modules in some/package and
     other/package (defined in some/package/*.bp and other/package/*.bp) have access to
     this module. Note that sub-packages do not have access to the rule; for example,
     //some/package/foo:bar or //other/package/testing:bla wouldn't have access. __pkg__
     is a special module and must be used verbatim. It represents all of the modules in the
     package.
 ["//project:__subpackages__", "//other:__subpackages__"]: Only modules in packages project
     or other or in one of their sub-packages have access to this module. For example,
     //project:rule, //project/library:lib or //other/testing/internal:munge are allowed
     to depend on this rule (but not //independent:evil)
 ["//project"]: This is shorthand for ["//project:__pkg__"]
 [":__subpackages__"]: This is shorthand for ["//project:__subpackages__"] where
     //project is the module's package. e.g. using [":__subpackages__"] in
     packages/apps/Settings/Android.bp is equivalent to
     //packages/apps/Settings:__subpackages__.
 ["//visibility:legacy_public"]: The default visibility, behaves as //visibility:public
     for now. It is an error if it is used in a module.

If a module does not specify the `visibility` property then it uses the `default_visibility` property of the `package` module in the module's package. If the `default_visibility` property is not set for the module's package then it will use the `default_visibility` of its closest ancestor package for which a `default_visibility` property is specified. If no `default_visibility` property can be found then the module uses the global default of `//visibility:legacy_public`. The `visibility` property has no effect on a defaults module although it does apply to any non-defaults module that uses it. To set the visibility of a defaults module, use the `defaults_visibility` property on the defaults module; not to be confused with the `default_visibility` property on the package module. See https://android.googlesource.com/platform/build/soong/+/main/README.md#visibility for more details.

cc_rustlibs_for_make

cc_rustlibs_for_make creates a static library which bundles together rust_ffi_static deps for Make. This should not be depended on in Soong, and is probably not the module you need unless you are sure of what you're doing. These should only be declared as dependencies in Make. To ensure inclusion, rust_ffi_static modules should be declared in the whole_static_libs property.
 name string, The name of the module. Must be unique across all modules.
 srcs configurable list of string, list of source files used to compile the C/C++ module. May be .c, .cpp, or .S files. srcs may reference the outputs of other modules that produce source files like genrule or filegroup using the syntax ":module".
 exclude_srcs configurable list of string, list of source files that should not be used to build the C/C++ module. This is most useful in the arch/multilib variants to remove non-common files
 defaults list of string
 host_supported bool, If set to true, build a variant of the module for the host. Defaults to false.
 device_supported bool, If set to true, build a variant of the module for the device. Defaults to true.
 afdo bool, Afdo allows developers self-service enroll for automatic feedback-directed optimization using profile data.
aidl
 libs list of string, List of aidl_library modules
 include_dirs list of string, list of directories that will be added to the aidl include paths.
 local_include_dirs list of string, list of directories relative to the Blueprints file that will be added to the aidl include paths.
 generate_traces bool, whether to generate traces (for systrace) for this interface
 flags list of string, list of flags that will be passed to the AIDL compiler
 export_aidl_headers bool, export headers generated from .aidl sources
 allow_undefined_symbols bool, allow the module to contain undefined symbols. By default, modules cannot contain undefined symbols that are not satisified by their immediate dependencies. Set this flag to true to remove --no-undefined from the linker flags. This flag should only be necessary for compiling low-level libraries like libc.
 apex_available list of string, Availability of this module in APEXes. Only the listed APEXes can contain this module. If the module has stubs then other APEXes and the platform may access it through them (subject to visibility). "//apex_available:anyapex" is a pseudo APEX name that matches to any APEX. "//apex_available:platform" refers to non-APEX partitions like "system.img". Prefix pattern (com.foo.*) can be used to match with any APEX name with the prefix(com.foo.). Default is ["//apex_available:platform"].
 arch interface
 asflags list of string, list of module-specific flags that will be used for .S compiles
 bootstrap bool, Allows this module to use non-APEX version of libraries. Useful for building binaries that are started before APEXes are activated.
 bpf_target bool, cc Build rules targeting BPF must set this to true. The correct fix is to ban targeting bpf in cc rules instead use bpf_rules. (b/323415017)
buildstubs bool
 bool bool
 c_std string, C standard version to use. Can be a specific version (such as "gnu11"), "experimental" (which will use draft versions like C1x when available), or the empty string (which will use the default).
 cflags configurable list of string, list of module-specific flags that will be used for C and C++ compiles.
 clang bool, Deprecated. true is the default, false is invalid.
 clang_asflags list of string, list of module-specific flags that will be used for .S compiles when compiling with clang
 clang_cflags list of string, list of module-specific flags that will be used for C and C++ compiles when compiling with clang
 clang_verify bool, Add "-Xclang -verify" to the cflags and appends "touch $out" to the clang command line.
 cmake_snapshot_supported bool, Allows this module to be included in CMake release snapshots to be built outside of Android build system and source tree.
 compile_multilib string, control whether this module compiles for 32-bit, 64-bit, or both. Possible values are "32" (compile for 32-bit only), "64" (compile for 64-bit only), "both" (compile for both architectures), or "first" (compile for 64-bit on a 64-bit platform, and 32-bit on a 32-bit platform).
 conlyflags list of string, list of module-specific flags that will be used for C compiles
 cpp_std string, C++ standard version to use. Can be a specific version (such as "gnu++11"), "experimental" (which will use draft versions like C++1z when available), or the empty string (which will use the default).
 cppflags configurable list of string, list of module-specific flags that will be used for C++ compiles
 debug_ramdisk bool, Whether this module is installed to debug ramdisk
 device_first_generated_headers configurable list of string, Same as generated_headers, but the dependencies will be added based on the first supported arch variant and the device os variant. This can be useful for creating a host tool that embeds a copy of a device tool, that it then extracts and pushes to a device at runtime.
 device_specific bool, whether this module is specific to a device, not only for SoC, but also for off-chip peripherals. When set to true, it is installed into /odm (or /vendor/odm if odm partition does not exist, or /system/vendor/odm if both odm and vendor partitions do not exist). This implies `soc_specific:true`.
dist Dist
configuration to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 targets list of string, Copy the output of this module to the $DIST_DIR when `dist` is specified on the command line and any of these targets are also on the command line, or otherwise built
 dest string, The name of the output artifact. This defaults to the basename of the output of the module.
 dir string, The directory within the dist directory to store the artifact. Defaults to the top level directory ("").
 suffix string, A suffix to add to the artifact file name (before any extension).
 append_artifact_with_product bool, If true, then the artifact file will be appended with _<product name>. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be foo_coral.apk. If false, there is no change to the artifact file name.
 prepend_artifact_with_product bool, If true, then the artifact file will be prepended with <product name>-. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be coral-foo.apk. If false, there is no change to the artifact file name.
 tag string, A string tag to select the OutputFiles associated with the tag. If no tag is specified then it will select the default dist paths provided by the module type. If a tag of "" is specified then it will return the default output files provided by the modules, i.e. the result of calling OutputFiles("").
 dists list of Dist, a list of configurations to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 double_loadable bool, whether this module is capable of being loaded with other instance (possibly an older version) of the same module in the same process. Currently, a shared library that is a member of VNDK (vndk: {enabled: true}) can be double loaded in a vendor process if the library is also a (direct and indirect) dependency of an LLNDK library. Such libraries must be explicitly marked as `double_loadable: true` by the owner, or the dependency from the LLNDK lib should be cut if the lib is not designed to be double loaded.
 dynamic_list string, local file name to pass to the linker as --dynamic-list. Not supported on darwin, and will fail to build if provided to the darwin variant of a module.
 enabled configurable bool, emit build rules for this module Disabling a module should only be done for those modules that cannot be built in the current environment. Modules that can build in the current environment but are not usually required (e.g. superceded by a prebuilt) should not be disabled as that will prevent them from being built by the checkbuild target and so prevent early detection of changes that have broken those modules.
 exclude_generated_sources list of string, list of generated sources that should not be used to build the C/C++ module. This is most useful in the arch/multilib variants to remove non-common files
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with this module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build this module
 exclude_static_libs list of string, list of static libs that should not be used to build this module
 export_cflags list of string, list of plain cc flags to be used for any module that links against this module.
 export_generated_headers list of string, list of generated headers to re-export include directories from. Entries must be present in generated_headers.
 export_header_lib_headers configurable list of string, list of header libraries to re-export include directories from. Entries must be present in header_libs.
 export_include_dirs configurable list of string, list of directories relative to the Blueprints file that will be added to the include path (using -I) for this module and any module that links against this module. Directories listed in export_include_dirs do not need to be listed in local_include_dirs.
 export_shared_lib_headers list of string, list of shared libraries to re-export include directories from. Entries must be present in shared_libs.
 export_static_lib_headers list of string, list of static libraries to re-export include directories from. Entries must be present in static_libs.
 export_system_include_dirs list of string, list of directories that will be added to the system include path using -isystem for this module and any module that links against this module.
 exported_symbols_list string, local file name to pass to the linker as -exported_symbols_list
 force_symbols_not_weak_list string, local file name to pass to the linker as -force_symbols_not_weak_list
 force_symbols_weak_list string, local file name to pass to the linker as -force_symbols_weak_list
 generated_headers configurable list of string, list of generated headers to add to the include path. These are the names of genrule modules.
 generated_sources list of string, list of generated sources to compile. These are the names of gensrcs or genrule modules.
 gnu_extensions bool, if set to false, use -std=c++* instead of -std=gnu++*
 group_static_libs bool, deprecated and ignored because lld makes it unnecessary. See b/189475744.
header_abi_checker headerAbiCheckerProperties
Properties for ABI compatibility checker.
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 header_libs configurable list of string, list of modules that should only provide headers for this module.
 host_cross_supported bool, If set to true, build a variant of the module for the host cross. Defaults to true.
 host_ldlibs list of string, -l arguments to pass to linker for host-provided shared libraries
 host_required list of string, names of other modules to install on host if this module is installed
 ignore_max_page_size bool, ignore max page size. By default, max page size must be the max page size set for the target.
 include_build_directory bool, Add the directory containing the Android.bp file to the list of include directories. Defaults to true.
 include_dirs configurable list of string, list of directories relative to the root of the source tree that will be added to the include path using -I. If possible, don't use this. If adding paths from the current directory use local_include_dirs, if adding paths from other modules use export_include_dirs in that module.
 init_rc configurable list of string, init.rc files to be installed if this module is installed
 inject_bssl_hash bool, Inject boringssl hash into the shared library. This is only intended for use by external/boringssl.
 install_in_root bool, Install output directly in {partition}/, not in any subdir. This is only intended for use by init_first_stage.
 install_in_xbin bool, Install output directly in {partition}/xbin
 installable bool
 instruction_set string, the instruction set architecture to use to compile the C/C++ module.
 ldflags list of string, list of module-specific flags that will be used for all link steps
 lex LexProperties
 licenses list of string, Describes the licenses applicable to this module. Must reference license modules.
 linker_scripts list of string, local files to pass to the linker as --script. Not supported on darwin or windows, and will fail to build if provided to the darwin or windows variant of a module.
llndk llndkLibraryProperties
If this is an LLNDK library, properties to describe the LLNDK stubs. Will be copied from the module pointed to by llndk_stubs if it is set.
 symbol_file string, Relative path to the symbol map. An example file can be seen here: TODO(danalbert): Make an example.
 export_headers_as_system bool, Whether to export any headers as -isystem instead of -I. Mainly for use by bionic/libc.
 unversioned bool, Whether the system library uses symbol versions.
 export_llndk_headers list of string, list of llndk headers to re-export include directories from.
 override_export_include_dirs list of string, list of directories relative to the Blueprints file that willbe added to the include path (using -I) for any module that links against the LLNDK variant of this module, replacing any that were listed outside the llndk clause.
 private bool, whether this module can be directly depended upon by libs that are installed to /vendor and /product. When set to true, this module can only be depended on by VNDK libraries, not vendor nor product libraries. This effectively hides this module from non-system modules. Default value is false.
 llndk_headers bool, if true, make this module available to provide headers to other modules that set llndk.symbol_file.
 moved_to_apex bool, moved_to_apex marks this module has having been distributed through an apex module.
 local_include_dirs configurable list of string, list of directories relative to the Blueprints file that will be added to the include path using -I
 logtags list of string, *.logtags files, to combine together in order to generate the /system/etc/event-log-tags file
lto
Lto must violate capitalization style for acronyms so that it can be referred to in blueprint files as "lto"
 never bool
 thin bool
 lto_O0 bool, Use --lto-O0 flag.
 min_sdk_version string, Minimum OS API level supported by this C or C++ module. This property becomes the value of the __ANDROID_API__ macro. When the C or C++ module is included in an APEX or an APK, this property is also used to ensure that the min_sdk_version of the containing module is not older (i.e. less) than this module's min_sdk_version. When not set, this property defaults to the value of sdk_version. When this is set to "apex_inherit", this tracks min_sdk_version of the containing APEX. When the module is not built for an APEX, "apex_inherit" defaults to sdk_version.
 multilib interface
 native_bridge_supported bool, Whether this module is built for non-native architectures (also known as native bridge binary)
 native_coverage bool
 no_crt_pad_segment bool, don't link in crt_pad_segment. This flag is currently only used internal to soong for testing and for vndk prebuilt shared libraries.
 no_full_install bool, When set to true, this module is not installed to the full install path (ex: under out/target/product/<name>/<partition>). It can be installed only to the packaging modules like android_filesystem.
 no_libcrt bool, don't link in libclang_rt.builtins-*.a
 nocrt bool, don't link in crt_begin and crt_end. This flag should only be necessary for compiling crt or libc.
 odm_available bool, This is the same as the "vendor_available" except that the install path of the vendor variant is /odm or /vendor/odm. By replacing "vendor_available: true" with "odm_available: true", the module will install its vendor variant to the /odm partition or /vendor/odm. As the modules with "odm_available: true" still create the vendor variants, they can link to the other vendor modules as the vendor_available modules do. Also, the vendor modules can link to odm_available modules. It may not be used for VNDK modules.
 odm_dlkm_specific bool, Install to partition odm_dlkm when set to true.
 openmp bool, Build and link with OpenMP
 optimize_for_size bool, Aggresively trade performance for smaller binary size. This should only be used for on-device binaries that are rarely executed and not performance critical.
orderfile
 instrumentation bool
 order_file_path string
 load_order_file bool
 cflags list of string, Additional compiler flags to use when building this module for orderfile profiling.
 overrides list of string, List of module names that are prevented from being installed when this module gets installed.
 owner string, vendor who owns this module
 pack_relocations bool, Generate compact dynamic relocation table, default true.
 product_available bool, whether this module should be allowed to be directly depended by other modules with `product_specific: true` or `product_available: true`. If set to true, an additional product variant will be built separately that is limited to the set of libraries and headers that are exposed to /product modules. The product variant may be used with a different (newer) /system, so it shouldn't have any unversioned runtime dependencies, or make assumptions about the system that may not be true in the future. If set to false, this module becomes inaccessible from /product modules. Different from the 'vendor_available' property, the modules with vndk: {enabled: true} don't have to define 'product_available'. The VNDK library without 'product_available' may not be depended on by any other modules that has product variants including the product available VNDKs. Nothing happens if BOARD_VNDK_VERSION isn't set in the BoardConfig.mk and PRODUCT_PRODUCT_VNDK_VERSION isn't set.
 product_specific bool, whether this module is specific to a software configuration of a product (e.g. country, network operator, etc). When set to true, it is installed into /product (or /system/product if product partition does not exist).
product_variables.arc
cflags
  []string
exclude_srcs
  []string
header_libs
  []string
include_dirs
  []string
shared_libs
  []string
static_libs
  []string
srcs
  []string
whole_static_libs
  []string
product_variables.binder32bit
cflags
  []string
product_variables.build_from_text_stub
static_libs
  []string
exclude_static_libs
  []string
product_variables.debuggable
cflags
  []string
cppflags
  []string
init_rc
  []string
required
  []string
host_required
  []string
target_required
  []string
strip.all
  *bool
strip.keep_symbols
  *bool
strip.keep_symbols_and_debug_frame
  *bool
static_libs
  []string
exclude_static_libs
  []string
whole_static_libs
  []string
shared_libs
  []string
srcs
  []string
exclude_srcs
  []string
product_variables.enforce_vintf_manifest
cflags
  []string
product_variables.eng
cflags
  []string
cppflags
  []string
lto.never
  *bool
sanitize.address
  *bool
product_variables.malloc_low_memory
cflags
  []string
shared_libs
  []string
whole_static_libs
  []string
static_libs
  []string
exclude_static_libs
  []string
srcs
  []string
header_libs
  []string
product_variables.malloc_pattern_fill_contents
cflags
  []string
product_variables.malloc_zero_contents
cflags
  []string
product_variables.native_coverage
srcs
  []string
exclude_srcs
  []string
product_variables.override_rs_driver
cflags
  []string
product_variables.platform_sdk_version
asflags
  []string
cflags
  []string
product_variables.release_aidl_use_unfrozen
cflags
  []string
required
  []string
vintf_fragment_modules
  []string
product_variables.safestack
cflags
  []string
product_variables.selinuxignoreneverallows
required
  []string
product_variables.shipping_api_level
cflags
  []string
product_variables.treble_linker_namespaces
cflags
  []string
product_variables.uml
cppflags
  []string
product_variables.unbundled_build
enabled Configurable[bool]
 Configurable[bool] proptools.Configurable[bool]
 proprietary bool, whether this is a proprietary vendor module, and should be installed into /vendor
proto
 type string, Proto generator type. C++: full or lite. Java: micro, nano, stream, or lite.
 plugin string, Proto plugin to use as the generator. Must be a cc_binary_host module.
 include_dirs list of string, list of directories that will be added to the protoc include paths.
 local_include_dirs list of string, list of directories relative to the bp file that will be added to the protoc include paths.
 canonical_path_from_root bool, whether to identify the proto files from the root of the source tree (the original method in Android, useful for android-specific protos), or relative from where they were specified (useful for external/third party protos). This defaults to true today, but is expected to default to false in the future.
 export_proto_headers bool, export headers generated from .proto sources
 static bool, Link statically against the protobuf runtime
 ramdisk bool, Whether this module is installed to ramdisk
 ramdisk_available bool, Make this module available when building for ramdisk. On device without a dedicated recovery partition, the module is only available after switching root into /first_stage_ramdisk. To expose the module before switching root, install the recovery variant instead.
 recovery bool, Whether this module is installed to recovery partition
 recovery_available bool, Make this module available when building for recovery
 relative_install_path string, install to a subdirectory of the default install path for the module
renderscript
 include_dirs list of string, list of directories that will be added to the llvm-rs-cc include paths
 flags list of string, list of flags that will be passed to llvm-rs-cc
 target_api string, Renderscript API level to target
 required configurable list of string, names of other modules to install if this module is installed
 rtti bool, pass -frtti instead of -fno-rtti
 runtime_libs list of string, list of modules that should be installed with this module. This is similar to 'required' but '.vendor' suffix will be appended to the module names if the shared libraries have vendor variants and this module uses VNDK.
sanitize SanitizeUserProps
 never bool, Prevent use of any sanitizers on this module
 address bool, ASan (Address sanitizer), incompatible with static binaries. Always runs in a diagnostic mode. Use of address sanitizer disables cfi sanitizer. Hwaddress sanitizer takes precedence over this sanitizer.
 thread bool, TSan (Thread sanitizer), incompatible with static binaries and 32 bit architectures. Always runs in a diagnostic mode. Use of thread sanitizer disables cfi and scudo sanitizers. Hwaddress sanitizer takes precedence over this sanitizer.
 hwaddress bool, HWASan (Hardware Address sanitizer). Use of hwasan sanitizer disables cfi, address, thread, and scudo sanitizers.
 all_undefined bool, Undefined behavior sanitizer
 undefined bool, Subset of undefined behavior sanitizer
 misc_undefined list of string, List of specific undefined behavior sanitizers to enable
 fuzzer bool, Fuzzer, incompatible with static binaries.
 safestack bool, safe-stack sanitizer, incompatible with 32-bit architectures.
 cfi bool, cfi sanitizer, incompatible with asan, hwasan, fuzzer, or Darwin
 integer_overflow bool, signed/unsigned integer overflow sanitizer, incompatible with Darwin.
 scudo bool, scudo sanitizer, incompatible with asan, hwasan, tsan This should not be used in Android 11+ : https://source.android.com/devices/tech/debug/scudo deprecated
 scs bool, shadow-call-stack sanitizer, only available on arm64/riscv64.
 memtag_heap bool, Memory-tagging, only available on arm64 if diag.memtag unset or false, enables async memory tagging
 memtag_stack bool, Memory-tagging stack instrumentation, only available on arm64 Adds instrumentation to detect stack buffer overflows and use-after-scope using MTE.
 memtag_globals bool, Memory-tagging globals instrumentation, only available on arm64 Adds instrumentation to detect global buffer overflows using MTE.
 writeonly bool, A modifier for ASAN and HWASAN for write only instrumentation
diag
Sanitizers to run in the diagnostic mode (as opposed to the release mode). Replaces abort() on error with a human-readable error message. Address and Thread sanitizers always run in diagnostic mode.
 undefined bool, Undefined behavior sanitizer, diagnostic mode
 cfi bool, cfi sanitizer, diagnostic mode, incompatible with asan, hwasan, fuzzer, or Darwin
 integer_overflow bool, signed/unsigned integer overflow sanitizer, diagnostic mode, incompatible with Darwin.
 memtag_heap bool, Memory-tagging, only available on arm64 requires sanitizer.memtag: true if set, enables sync memory tagging
 misc_undefined list of string, List of specific undefined behavior sanitizers to enable in diagnostic mode
 no_recover list of string, List of sanitizers to pass to -fno-sanitize-recover results in only the first detected error for these sanitizers being reported and program then exits with a non-zero exit code.
config
Sanitizers to run with flag configuration specified
 cfi_assembly_support bool, Enables CFI support flags for assembly-heavy libraries
 recover list of string, List of sanitizers to pass to -fsanitize-recover allows execution to continue for these sanitizers to detect multiple errors rather than only the first one
 blocklist string, value to pass to -fsanitize-ignorelist
 sdk_variant_only bool, If true, always create an sdk variant and don't create a platform variant.
 sdk_version string, The API level that this module is built against. The APIs of this API level will be visible at build time, but use of any APIs newer than min_sdk_version will render the module unloadable on older devices. In the future it will be possible to weakly-link new APIs, making the behavior match Java: such modules will load on older devices, but calling new APIs on devices that do not support them will result in a crash. This property has the same behavior as sdk_version does for Java modules. For those familiar with Android Gradle, the property behaves similarly to how compileSdkVersion does for Java code. In addition, setting this property causes two variants to be built, one for the platform and one for apps.
 shared_libs configurable list of string, list of modules that should be dynamically linked into this module.
 soc_specific bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist).
static StaticOrSharedProperties
 srcs configurable list of string
 tidy_disabled_srcs list of string
 tidy_timeout_srcs list of string
sanitized Sanitized
none
 srcs list of string
address
 srcs list of string
hwaddress
 srcs list of string
 cflags configurable list of string
 enabled bool
 whole_static_libs configurable list of string
 static_libs configurable list of string
 shared_libs configurable list of string
 system_shared_libs list of string
 export_shared_lib_headers list of string
 export_static_lib_headers list of string
 apex_available list of string
 installable bool
 static_libs configurable list of string, list of modules that should be statically linked into this module.
 static_ndk_lib bool
 stem string, set the name of the output
 stl string, Select the STL library to use. Possible values are "libc++", "libc++_static", "libstdc++", or "none". Leave blank to select the default.
strip
 none bool, Device modules default to stripping enabled leaving mini debuginfo. Host modules default to stripping disabled, but can be enabled by setting any other strip boolean property.
 all bool, all forces stripping everything, including the mini debug info.
 keep_symbols bool, keep_symbols enables stripping but keeps all symbols.
 keep_symbols_list list of string, keep_symbols_list specifies a list of symbols to keep if keep_symbols is enabled. If it is unset then all symbols are kept.
 keep_symbols_and_debug_frame bool, keep_symbols_and_debug_frame enables stripping but keeps all symbols and debug frames.
stubs StubsProperties
Generate stubs to make this library accessible to APEXes.
 symbol_file string, Relative path to the symbol map. The symbol map provides the list of symbols that are exported for stubs variant of this library.
 versions list of string, List versions to generate stubs libs for. The version name "current" is always implicitly added.
 implementation_installable bool, Whether to not require the implementation of the library to be installed if a client of the stubs is installed. Defaults to true; set to false if the implementation is made available by some other means, e.g. in a Microdroid virtual machine.
 suffix string, set suffix of the name of the output
 system_dlkm_specific bool, Install to partition system_dlkm when set to true.
 system_ext_specific bool, whether this module extends system. When set to true, it is installed into /system_ext (or /system/system_ext if system_ext partition does not exist).
 system_shared_libs list of string, list of system libraries that will be dynamically linked to shared library and executable modules. If unset, generally defaults to libc, libm, and libdl. Set to [] to prevent linking against the defaults.
 target interface
target.android
 compile_multilib string
 enabled bool
target.apex
 exclude_shared_libs list of string, list of shared libs that should not be used to build the apex variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the apex variant of the C/C++ module.
target.host
 compile_multilib string
target.non_apex
 exclude_shared_libs list of string, list of shared libs that should not be used to build the non-apex variant of the C/C++ module.
target.platform
header_abi_checker headerAbiCheckerProperties
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 required list of string, List of modules required by the core variant.
 exclude_required list of string, List of modules not required by the core variant.
 cflags list of string, List of additional cflags that should be used to build the platform variant of the C/C++ module.
 shared_libs list of string, list of shared libs that should be use to build the platform variant of a module that sets sdk_version. This should rarely be necessary, in most cases the same libraries are available for the SDK and platform variants.
 header_libs list of string, list of ehader libs that only should be used to build platform variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the platform variant of the C/C++ module.
target.product
 shared_libs list of string, list of shared libs that only should be used to build vendor or product variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build vendor or product variant of the C/C++ module.
 header_libs list of string, list of header libs that only should be used to build vendor or product variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor or product variant of the C/C++ module.
 version_script string, version script for vendor or product variant
 srcs list of string, list of source files that should only be used in vendor or product variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build vendor or product variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build vendor or product variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build vendor or product variant of the C/C++ module.
 override_export_include_dirs list of string, list of exported include directories, like export_include_dirs, that will be applied to vendor or product variant of this library. This will overwrite any other declarations.
 suffix string, set suffix of the name of the output
header_abi_checker headerAbiCheckerProperties
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 no_stubs bool, Disable stubs for vendor/product variants This is a workaround to keep `stubs` only for "core" variant (not product/vendor). It would be nice if we could put `stubs` into a `target: { core: {} }` block but it's not supported in soong yet. This could be removed/simplified once we have a better syntax.
target.ramdisk
 static_libs list of string, list of static libs that only should be used to build the ramdisk variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the ramdisk variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the ramdisk variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the ramdisk variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build the ramdisk variants of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the ramdisk variants of the C/C++ module.
target.recovery
 required list of string, List of modules required by the recovery variant.
 exclude_required list of string, List of modules not required by the recovery variant.
 shared_libs list of string, list of shared libs that only should be used to build the recovery variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build the recovery variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the recovery variant of the C/C++ module.
 srcs list of string, list of source files that should only be used in the recovery variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build the recovery variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the recovery variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build the recovery variant of the C/C++ module.
target.vendor
 override_export_include_dirs list of string, list of exported include directories, like export_include_dirs, that will be applied to vendor or product variant of this library. This will overwrite any other declarations.
 shared_libs list of string, list of shared libs that only should be used to build vendor or product variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build vendor or product variant of the C/C++ module.
 header_libs list of string, list of header libs that only should be used to build vendor or product variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor or product variant of the C/C++ module.
 version_script string, version script for vendor or product variant
 srcs list of string, list of source files that should only be used in vendor or product variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build vendor or product variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build vendor or product variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build vendor or product variant of the C/C++ module.
 suffix string, set suffix of the name of the output
header_abi_checker headerAbiCheckerProperties
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 no_stubs bool, Disable stubs for vendor/product variants This is a workaround to keep `stubs` only for "core" variant (not product/vendor). It would be nice if we could put `stubs` into a `target: { core: {} }` block but it's not supported in soong yet. This could be removed/simplified once we have a better syntax.
target.vendor_ramdisk
 exclude_srcs list of string, list of source files that should not be used to build the ramdisk variants of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the ramdisk variants of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the vendor ramdisk variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the vendor ramdisk variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor ramdisk variant of the C/C++ module.
 target_required list of string, names of other modules to install on target if this module is installed
 team string, The team (defined by the owner/vendor) who owns the property.
 test_only bool, Indicates that the module and its source code are only used in tests, not production code. Used by coverage reports and potentially other tools.
 tidy bool, whether to run clang-tidy over C-like sources.
 tidy_checks list of string, Extra checks to enable or disable in clang-tidy
 tidy_checks_as_errors list of string, Checks that should be treated as errors.
 tidy_disabled_srcs list of string, list of source files that should not be compiled with clang-tidy.
 tidy_flags list of string, Extra flags to pass to clang-tidy
 tidy_timeout_srcs list of string, list of source files that should not be compiled by clang-tidy when TIDY_TIMEOUT is set.
 unexported_symbols_list string, local file name to pass to the linker as -unexported_symbols_list
 unique_host_soname bool, rename host libraries to prevent overlap with system installed libraries
 use_generic_config bool, Set to true if this module must be generic and does not require product-specific information. To be included in the system image, this property must be set to true.
 use_version_lib bool, make android::build:GetBuildNumber() available containing the build ID.
 vendor bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist). Use `soc_specific` instead for better meaning.
 vendor_available bool, whether this module should be allowed to be directly depended by other modules with `vendor: true`, `proprietary: true`, or `vendor_available:true`. If set to true, two variants will be built separately, one like normal, and the other limited to the set of libraries and headers that are exposed to /vendor modules. The vendor variant may be used with a different (newer) /system, so it shouldn't have any unversioned runtime dependencies, or make assumptions about the system that may not be true in the future. If set to false, this module becomes inaccessible from /vendor modules. The modules with vndk: {enabled: true} must define 'vendor_available' to 'true'. Nothing happens if BOARD_VNDK_VERSION isn't set in the BoardConfig.mk
 vendor_dlkm_specific bool, Install to partition vendor_dlkm when set to true.
vendor_public_library vendorPublicLibraryProperties
If this is a vendor public library, properties to describe the vendor public library stubs.
 symbol_file string, Relative path to the symbol map.
 unversioned bool, Whether the system library uses symbol versions.
 export_public_headers list of string, list of header libs to re-export include directories from.
 override_export_include_dirs list of string, list of directories relative to the Blueprints file that willbe added to the include path (using -I) for any module that links against the LLNDK variant of this module, replacing any that were listed outside the llndk clause.
 vendor_ramdisk bool, Whether this module is installed to vendor ramdisk
 vendor_ramdisk_available bool, Make this module available when building for vendor ramdisk. On device without a dedicated recovery partition, the module is only available after switching root into /first_stage_ramdisk. To expose the module before switching root, install the recovery variant instead.
 version_script string, local file name to pass to the linker as --version-script. Not supported on darwin, and will fail to build if provided to the darwin variant of a module.
 vintf_fragment_modules configurable list of string, vintf_fragment Modules required from this module.
 vintf_fragments configurable list of string, VINTF manifest fragments to be installed if this module is installed
 visibility list of string, Controls the visibility of this module to other modules. Allowable values are one or more of these formats:

 ["//visibility:public"]: Anyone can use this module.
 ["//visibility:private"]: Only rules in the module's package (not its subpackages) can use
     this module.
 ["//visibility:override"]: Discards any rules inherited from defaults or a creating module.
     Can only be used at the beginning of a list of visibility rules.
 ["//some/package:__pkg__", "//other/package:__pkg__"]: Only modules in some/package and
     other/package (defined in some/package/*.bp and other/package/*.bp) have access to
     this module. Note that sub-packages do not have access to the rule; for example,
     //some/package/foo:bar or //other/package/testing:bla wouldn't have access. __pkg__
     is a special module and must be used verbatim. It represents all of the modules in the
     package.
 ["//project:__subpackages__", "//other:__subpackages__"]: Only modules in packages project
     or other or in one of their sub-packages have access to this module. For example,
     //project:rule, //project/library:lib or //other/testing/internal:munge are allowed
     to depend on this rule (but not //independent:evil)
 ["//project"]: This is shorthand for ["//project:__pkg__"]
 [":__subpackages__"]: This is shorthand for ["//project:__subpackages__"] where
     //project is the module's package. e.g. using [":__subpackages__"] in
     packages/apps/Settings/Android.bp is equivalent to
     //packages/apps/Settings:__subpackages__.
 ["//visibility:legacy_public"]: The default visibility, behaves as //visibility:public
     for now. It is an error if it is used in a module.

If a module does not specify the `visibility` property then it uses the `default_visibility` property of the `package` module in the module's package. If the `default_visibility` property is not set for the module's package then it will use the `default_visibility` of its closest ancestor package for which a `default_visibility` property is specified. If no `default_visibility` property can be found then the module uses the global default of `//visibility:legacy_public`. The `visibility` property has no effect on a defaults module although it does apply to any non-defaults module that uses it. To set the visibility of a defaults module, use the `defaults_visibility` property on the defaults module; not to be confused with the `default_visibility` property on the package module. See https://android.googlesource.com/platform/build/soong/+/main/README.md#visibility for more details.
 whole_program_vtables bool, Use -fwhole-program-vtables cflag.
 whole_static_libs configurable list of string, list of modules whose object files should be linked into this module in their entirety. For static library modules, all of the .o files from the intermediate directory of the dependency will be linked into this modules .a file. For a shared library, the dependency's .a file will be linked into this module using -Wl,--whole-archive.
 yacc YaccProperties

cc_test

cc_test generates a test config file and an executable binary file to test specific functionality on a device. The executable binary gets an implicit static_libs dependency on libgtests unless the gtest flag is set to false.
 name string, The name of the module. Must be unique across all modules.
 srcs configurable list of string, list of source files used to compile the C/C++ module. May be .c, .cpp, or .S files. srcs may reference the outputs of other modules that produce source files like genrule or filegroup using the syntax ":module".
 exclude_srcs configurable list of string, list of source files that should not be used to build the C/C++ module. This is most useful in the arch/multilib variants to remove non-common files
 defaults list of string
 host_supported bool, If set to true, build a variant of the module for the host. Defaults to false.
 device_supported bool, If set to true, build a variant of the module for the device. Defaults to true.
 afdo bool, Afdo allows developers self-service enroll for automatic feedback-directed optimization using profile data.
aidl
 libs list of string, List of aidl_library modules
 include_dirs list of string, list of directories that will be added to the aidl include paths.
 local_include_dirs list of string, list of directories relative to the Blueprints file that will be added to the aidl include paths.
 generate_traces bool, whether to generate traces (for systrace) for this interface
 flags list of string, list of flags that will be passed to the AIDL compiler
 allow_undefined_symbols bool, allow the module to contain undefined symbols. By default, modules cannot contain undefined symbols that are not satisified by their immediate dependencies. Set this flag to true to remove --no-undefined from the linker flags. This flag should only be necessary for compiling low-level libraries like libc.
 apex_available list of string, Availability of this module in APEXes. Only the listed APEXes can contain this module. If the module has stubs then other APEXes and the platform may access it through them (subject to visibility). "//apex_available:anyapex" is a pseudo APEX name that matches to any APEX. "//apex_available:platform" refers to non-APEX partitions like "system.img". Prefix pattern (com.foo.*) can be used to match with any APEX name with the prefix(com.foo.). Default is ["//apex_available:platform"].
 arch interface
 asflags list of string, list of module-specific flags that will be used for .S compiles
 auto_gen_config bool, Flag to indicate whether or not to create test config automatically. If AndroidTest.xml doesn't exist next to the Android.bp, this attribute doesn't need to be set to true explicitly.
 bootstrap bool, Allows this module to use non-APEX version of libraries. Useful for building binaries that are started before APEXes are activated.
 bpf_target bool, cc Build rules targeting BPF must set this to true. The correct fix is to ban targeting bpf in cc rules instead use bpf_rules. (b/323415017)
buildstubs bool
 bool bool
 c_std string, C standard version to use. Can be a specific version (such as "gnu11"), "experimental" (which will use draft versions like C1x when available), or the empty string (which will use the default).
 cflags configurable list of string, list of module-specific flags that will be used for C and C++ compiles.
 clang bool, Deprecated. true is the default, false is invalid.
 clang_asflags list of string, list of module-specific flags that will be used for .S compiles when compiling with clang
 clang_cflags list of string, list of module-specific flags that will be used for C and C++ compiles when compiling with clang
 clang_verify bool, Add "-Xclang -verify" to the cflags and appends "touch $out" to the clang command line.
 cmake_snapshot_supported bool, Allows this module to be included in CMake release snapshots to be built outside of Android build system and source tree.
 compile_multilib string, control whether this module compiles for 32-bit, 64-bit, or both. Possible values are "32" (compile for 32-bit only), "64" (compile for 64-bit only), "both" (compile for both architectures), or "first" (compile for 64-bit on a 64-bit platform, and 32-bit on a 32-bit platform).
 conlyflags list of string, list of module-specific flags that will be used for C compiles
 cpp_std string, C++ standard version to use. Can be a specific version (such as "gnu++11"), "experimental" (which will use draft versions like C++1z when available), or the empty string (which will use the default).
 cppflags configurable list of string, list of module-specific flags that will be used for C++ compiles
 data list of string, list of files or filegroup modules that provide data that should be installed alongside the test
 data_bins list of string, list of binary modules that should be installed alongside the test
 data_libs list of string, list of shared library modules that should be installed alongside the test
 debug_ramdisk bool, Whether this module is installed to debug ramdisk
 device_common_data list of string, Same as data, but adds dependencies on modules using the device's os variant, and common architecture's variant. Can be useful to add device-built apps to the data of a host test.
 device_first_data list of string, Same as data, but adds dependencies on modules using the device's os variant, and the device's first architecture's variant. Can be useful to add device-built apps to the data of a host test.
 device_first_generated_headers configurable list of string, Same as generated_headers, but the dependencies will be added based on the first supported arch variant and the device os variant. This can be useful for creating a host tool that embeds a copy of a device tool, that it then extracts and pushes to a device at runtime.
 device_specific bool, whether this module is specific to a device, not only for SoC, but also for off-chip peripherals. When set to true, it is installed into /odm (or /vendor/odm if odm partition does not exist, or /system/vendor/odm if both odm and vendor partitions do not exist). This implies `soc_specific:true`.
 disable_framework bool, Add RunCommandTargetPreparer to stop framework before the test and start it after the test.
dist Dist
configuration to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 targets list of string, Copy the output of this module to the $DIST_DIR when `dist` is specified on the command line and any of these targets are also on the command line, or otherwise built
 dest string, The name of the output artifact. This defaults to the basename of the output of the module.
 dir string, The directory within the dist directory to store the artifact. Defaults to the top level directory ("").
 suffix string, A suffix to add to the artifact file name (before any extension).
 append_artifact_with_product bool, If true, then the artifact file will be appended with _<product name>. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be foo_coral.apk. If false, there is no change to the artifact file name.
 prepend_artifact_with_product bool, If true, then the artifact file will be prepended with <product name>-. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be coral-foo.apk. If false, there is no change to the artifact file name.
 tag string, A string tag to select the OutputFiles associated with the tag. If no tag is specified then it will select the default dist paths provided by the module type. If a tag of "" is specified then it will return the default output files provided by the modules, i.e. the result of calling OutputFiles("").
 dists list of Dist, a list of configurations to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 double_loadable bool, whether this module is capable of being loaded with other instance (possibly an older version) of the same module in the same process. Currently, a shared library that is a member of VNDK (vndk: {enabled: true}) can be double loaded in a vendor process if the library is also a (direct and indirect) dependency of an LLNDK library. Such libraries must be explicitly marked as `double_loadable: true` by the owner, or the dependency from the LLNDK lib should be cut if the lib is not designed to be double loaded.
 dynamic_list string, local file name to pass to the linker as --dynamic-list. Not supported on darwin, and will fail to build if provided to the darwin variant of a module.
 enabled configurable bool, emit build rules for this module Disabling a module should only be done for those modules that cannot be built in the current environment. Modules that can build in the current environment but are not usually required (e.g. superceded by a prebuilt) should not be disabled as that will prevent them from being built by the checkbuild target and so prevent early detection of changes that have broken those modules.
 exclude_generated_sources list of string, list of generated sources that should not be used to build the C/C++ module. This is most useful in the arch/multilib variants to remove non-common files
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with this module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build this module
 exclude_static_libs list of string, list of static libs that should not be used to build this module
 export_generated_headers list of string, list of generated headers to re-export include directories from. Entries must be present in generated_headers.
 export_header_lib_headers configurable list of string, list of header libraries to re-export include directories from. Entries must be present in header_libs.
 export_shared_lib_headers list of string, list of shared libraries to re-export include directories from. Entries must be present in shared_libs.
 export_static_lib_headers list of string, list of static libraries to re-export include directories from. Entries must be present in static_libs.
 generated_headers configurable list of string, list of generated headers to add to the include path. These are the names of genrule modules.
 generated_sources list of string, list of generated sources to compile. These are the names of gensrcs or genrule modules.
 gnu_extensions bool, if set to false, use -std=c++* instead of -std=gnu++*
 group_static_libs bool, deprecated and ignored because lld makes it unnecessary. See b/189475744.
 gtest bool, if set, build against the gtest library. Defaults to true.
 header_libs configurable list of string, list of modules that should only provide headers for this module.
 host_common_data list of string, Same as data, but will add dependencies on modules using the host's os variation and the common arch variation. Useful for a device test that wants to depend on a host module, for example to include a custom Tradefed test runner.
 host_cross_supported bool, If set to true, build a variant of the module for the host cross. Defaults to true.
 host_ldlibs list of string, -l arguments to pass to linker for host-provided shared libraries
 host_required list of string, names of other modules to install on host if this module is installed
 ignore_max_page_size bool, ignore max page size. By default, max page size must be the max page size set for the target.
 include_build_directory bool, Add the directory containing the Android.bp file to the list of include directories. Defaults to true.
 include_dirs configurable list of string, list of directories relative to the root of the source tree that will be added to the include path using -I. If possible, don't use this. If adding paths from the current directory use local_include_dirs, if adding paths from other modules use export_include_dirs in that module.
 init_rc configurable list of string, init.rc files to be installed if this module is installed
 inject_bssl_hash bool, Inject boringssl hash into the shared library. This is only intended for use by external/boringssl.
 install_in_root bool, Install output directly in {partition}/, not in any subdir. This is only intended for use by init_first_stage.
 install_in_xbin bool, Install output directly in {partition}/xbin
 installable bool
 instruction_set string, the instruction set architecture to use to compile the C/C++ module.
 isolated bool, if set, use the isolated gtest runner. Defaults to false. Isolation is not supported on Windows.
 ldflags list of string, list of module-specific flags that will be used for all link steps
 lex LexProperties
 licenses list of string, Describes the licenses applicable to this module. Must reference license modules.
 linker_scripts list of string, local files to pass to the linker as --script. Not supported on darwin or windows, and will fail to build if provided to the darwin or windows variant of a module.
 local_include_dirs configurable list of string, list of directories relative to the Blueprints file that will be added to the include path using -I
 logtags list of string, *.logtags files, to combine together in order to generate the /system/etc/event-log-tags file
lto
Lto must violate capitalization style for acronyms so that it can be referred to in blueprint files as "lto"
 never bool
 thin bool
 lto_O0 bool, Use --lto-O0 flag.
 min_sdk_version string, Minimum OS API level supported by this C or C++ module. This property becomes the value of the __ANDROID_API__ macro. When the C or C++ module is included in an APEX or an APK, this property is also used to ensure that the min_sdk_version of the containing module is not older (i.e. less) than this module's min_sdk_version. When not set, this property defaults to the value of sdk_version. When this is set to "apex_inherit", this tracks min_sdk_version of the containing APEX. When the module is not built for an APEX, "apex_inherit" defaults to sdk_version.
 multilib interface
 native_bridge_supported bool, Whether this module is built for non-native architectures (also known as native bridge binary)
 native_coverage bool
 no_crt_pad_segment bool, don't link in crt_pad_segment. This flag is currently only used internal to soong for testing and for vndk prebuilt shared libraries.
 no_full_install bool, When set to true, this module is not installed to the full install path (ex: under out/target/product/<name>/<partition>). It can be installed only to the packaging modules like android_filesystem.
 no_libcrt bool, don't link in libclang_rt.builtins-*.a
 no_named_install_directory bool, Disables the creation of a test-specific directory when used with relative_install_path. Useful if several tests need to be in the same directory.
 nocrt bool, don't link in crt_begin and crt_end. This flag should only be necessary for compiling crt or libc.
 odm_available bool, This is the same as the "vendor_available" except that the install path of the vendor variant is /odm or /vendor/odm. By replacing "vendor_available: true" with "odm_available: true", the module will install its vendor variant to the /odm partition or /vendor/odm. As the modules with "odm_available: true" still create the vendor variants, they can link to the other vendor modules as the vendor_available modules do. Also, the vendor modules can link to odm_available modules. It may not be used for VNDK modules.
 odm_dlkm_specific bool, Install to partition odm_dlkm when set to true.
 openmp bool, Build and link with OpenMP
 optimize_for_size bool, Aggresively trade performance for smaller binary size. This should only be used for on-device binaries that are rarely executed and not performance critical.
orderfile
 instrumentation bool
 order_file_path string
 load_order_file bool
 cflags list of string, Additional compiler flags to use when building this module for orderfile profiling.
 overrides list of string, List of module names that are prevented from being installed when this module gets installed.
 owner string, vendor who owns this module
 pack_relocations bool, Generate compact dynamic relocation table, default true.
 per_testcase_directory bool, Install the test into a folder named for the module in all test suites.
 prefix_symbols string, if set, add an extra objcopy --prefix-symbols= step
 product_available bool, whether this module should be allowed to be directly depended by other modules with `product_specific: true` or `product_available: true`. If set to true, an additional product variant will be built separately that is limited to the set of libraries and headers that are exposed to /product modules. The product variant may be used with a different (newer) /system, so it shouldn't have any unversioned runtime dependencies, or make assumptions about the system that may not be true in the future. If set to false, this module becomes inaccessible from /product modules. Different from the 'vendor_available' property, the modules with vndk: {enabled: true} don't have to define 'product_available'. The VNDK library without 'product_available' may not be depended on by any other modules that has product variants including the product available VNDKs. Nothing happens if BOARD_VNDK_VERSION isn't set in the BoardConfig.mk and PRODUCT_PRODUCT_VNDK_VERSION isn't set.
 product_specific bool, whether this module is specific to a software configuration of a product (e.g. country, network operator, etc). When set to true, it is installed into /product (or /system/product if product partition does not exist).
product_variables.arc
cflags
  []string
exclude_srcs
  []string
header_libs
  []string
include_dirs
  []string
shared_libs
  []string
static_libs
  []string
srcs
  []string
whole_static_libs
  []string
product_variables.binder32bit
cflags
  []string
product_variables.build_from_text_stub
static_libs
  []string
exclude_static_libs
  []string
product_variables.debuggable
cflags
  []string
cppflags
  []string
init_rc
  []string
required
  []string
host_required
  []string
target_required
  []string
strip.all
  *bool
strip.keep_symbols
  *bool
strip.keep_symbols_and_debug_frame
  *bool
static_libs
  []string
exclude_static_libs
  []string
whole_static_libs
  []string
shared_libs
  []string
srcs
  []string
exclude_srcs
  []string
product_variables.enforce_vintf_manifest
cflags
  []string
product_variables.eng
cflags
  []string
cppflags
  []string
lto.never
  *bool
sanitize.address
  *bool
product_variables.malloc_low_memory
cflags
  []string
shared_libs
  []string
whole_static_libs
  []string
static_libs
  []string
exclude_static_libs
  []string
srcs
  []string
header_libs
  []string
product_variables.malloc_pattern_fill_contents
cflags
  []string
product_variables.malloc_zero_contents
cflags
  []string
product_variables.native_coverage
srcs
  []string
exclude_srcs
  []string
product_variables.override_rs_driver
cflags
  []string
product_variables.platform_sdk_version
asflags
  []string
cflags
  []string
product_variables.release_aidl_use_unfrozen
cflags
  []string
required
  []string
vintf_fragment_modules
  []string
product_variables.safestack
cflags
  []string
product_variables.selinuxignoreneverallows
required
  []string
product_variables.shipping_api_level
cflags
  []string
product_variables.treble_linker_namespaces
cflags
  []string
product_variables.uml
cppflags
  []string
product_variables.unbundled_build
enabled Configurable[bool]
 Configurable[bool] proptools.Configurable[bool]
 proprietary bool, whether this is a proprietary vendor module, and should be installed into /vendor
proto
 type string, Proto generator type. C++: full or lite. Java: micro, nano, stream, or lite.
 plugin string, Proto plugin to use as the generator. Must be a cc_binary_host module.
 include_dirs list of string, list of directories that will be added to the protoc include paths.
 local_include_dirs list of string, list of directories relative to the bp file that will be added to the protoc include paths.
 canonical_path_from_root bool, whether to identify the proto files from the root of the source tree (the original method in Android, useful for android-specific protos), or relative from where they were specified (useful for external/third party protos). This defaults to true today, but is expected to default to false in the future.
 static bool, Link statically against the protobuf runtime
 ramdisk bool, Whether this module is installed to ramdisk
 ramdisk_available bool, Make this module available when building for ramdisk. On device without a dedicated recovery partition, the module is only available after switching root into /first_stage_ramdisk. To expose the module before switching root, install the recovery variant instead.
 recovery bool, Whether this module is installed to recovery partition
 recovery_available bool, Make this module available when building for recovery
 relative_install_path string, install to a subdirectory of the default install path for the module
renderscript
 include_dirs list of string, list of directories that will be added to the llvm-rs-cc include paths
 flags list of string, list of flags that will be passed to llvm-rs-cc
 target_api string, Renderscript API level to target
 require_root bool, Add RootTargetPreparer to auto generated test config. This guarantees the test to run with root permission.
 required configurable list of string, names of other modules to install if this module is installed
 rtti bool, pass -frtti instead of -fno-rtti
 runtime_libs list of string, list of modules that should be installed with this module. This is similar to 'required' but '.vendor' suffix will be appended to the module names if the shared libraries have vendor variants and this module uses VNDK.
sanitize SanitizeUserProps
 never bool, Prevent use of any sanitizers on this module
 address bool, ASan (Address sanitizer), incompatible with static binaries. Always runs in a diagnostic mode. Use of address sanitizer disables cfi sanitizer. Hwaddress sanitizer takes precedence over this sanitizer.
 thread bool, TSan (Thread sanitizer), incompatible with static binaries and 32 bit architectures. Always runs in a diagnostic mode. Use of thread sanitizer disables cfi and scudo sanitizers. Hwaddress sanitizer takes precedence over this sanitizer.
 hwaddress bool, HWASan (Hardware Address sanitizer). Use of hwasan sanitizer disables cfi, address, thread, and scudo sanitizers.
 all_undefined bool, Undefined behavior sanitizer
 undefined bool, Subset of undefined behavior sanitizer
 misc_undefined list of string, List of specific undefined behavior sanitizers to enable
 fuzzer bool, Fuzzer, incompatible with static binaries.
 safestack bool, safe-stack sanitizer, incompatible with 32-bit architectures.
 cfi bool, cfi sanitizer, incompatible with asan, hwasan, fuzzer, or Darwin
 integer_overflow bool, signed/unsigned integer overflow sanitizer, incompatible with Darwin.
 scudo bool, scudo sanitizer, incompatible with asan, hwasan, tsan This should not be used in Android 11+ : https://source.android.com/devices/tech/debug/scudo deprecated
 scs bool, shadow-call-stack sanitizer, only available on arm64/riscv64.
 memtag_heap bool, Memory-tagging, only available on arm64 if diag.memtag unset or false, enables async memory tagging
 memtag_stack bool, Memory-tagging stack instrumentation, only available on arm64 Adds instrumentation to detect stack buffer overflows and use-after-scope using MTE.
 memtag_globals bool, Memory-tagging globals instrumentation, only available on arm64 Adds instrumentation to detect global buffer overflows using MTE.
 writeonly bool, A modifier for ASAN and HWASAN for write only instrumentation
diag
Sanitizers to run in the diagnostic mode (as opposed to the release mode). Replaces abort() on error with a human-readable error message. Address and Thread sanitizers always run in diagnostic mode.
 undefined bool, Undefined behavior sanitizer, diagnostic mode
 cfi bool, cfi sanitizer, diagnostic mode, incompatible with asan, hwasan, fuzzer, or Darwin
 integer_overflow bool, signed/unsigned integer overflow sanitizer, diagnostic mode, incompatible with Darwin.
 memtag_heap bool, Memory-tagging, only available on arm64 requires sanitizer.memtag: true if set, enables sync memory tagging
 misc_undefined list of string, List of specific undefined behavior sanitizers to enable in diagnostic mode
 no_recover list of string, List of sanitizers to pass to -fno-sanitize-recover results in only the first detected error for these sanitizers being reported and program then exits with a non-zero exit code.
config
Sanitizers to run with flag configuration specified
 cfi_assembly_support bool, Enables CFI support flags for assembly-heavy libraries
 recover list of string, List of sanitizers to pass to -fsanitize-recover allows execution to continue for these sanitizers to detect multiple errors rather than only the first one
 blocklist string, value to pass to -fsanitize-ignorelist
 sdk_variant_only bool, If true, always create an sdk variant and don't create a platform variant.
 sdk_version string, The API level that this module is built against. The APIs of this API level will be visible at build time, but use of any APIs newer than min_sdk_version will render the module unloadable on older devices. In the future it will be possible to weakly-link new APIs, making the behavior match Java: such modules will load on older devices, but calling new APIs on devices that do not support them will result in a crash. This property has the same behavior as sdk_version does for Java modules. For those familiar with Android Gradle, the property behaves similarly to how compileSdkVersion does for Java code. In addition, setting this property causes two variants to be built, one for the platform and one for apps.
 shared_libs configurable list of string, list of modules that should be dynamically linked into this module.
 soc_specific bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist).
 standalone_test bool, Install the test's dependencies into a folder named standalone-libs relative to the test's installation path. ld-library-path will be set to this path in the test's auto-generated config. This way the dependencies can be used by the test without having to manually install them to the device. See more details in go/standalone-native-device-tests.
 static_executable bool, compile executable with -static
 static_libs configurable list of string, list of modules that should be statically linked into this module.
 stem string, set the name of the output
 stl string, Select the STL library to use. Possible values are "libc++", "libc++_static", "libstdc++", or "none". Leave blank to select the default.
strip
 none bool, Device modules default to stripping enabled leaving mini debuginfo. Host modules default to stripping disabled, but can be enabled by setting any other strip boolean property.
 all bool, all forces stripping everything, including the mini debug info.
 keep_symbols bool, keep_symbols enables stripping but keeps all symbols.
 keep_symbols_list list of string, keep_symbols_list specifies a list of symbols to keep if keep_symbols is enabled. If it is unset then all symbols are kept.
 keep_symbols_and_debug_frame bool, keep_symbols_and_debug_frame enables stripping but keeps all symbols and debug frames.
 suffix string, append to the name of the output
 system_dlkm_specific bool, Install to partition system_dlkm when set to true.
 system_ext_specific bool, whether this module extends system. When set to true, it is installed into /system_ext (or /system/system_ext if system_ext partition does not exist).
 system_shared_libs list of string, list of system libraries that will be dynamically linked to shared library and executable modules. If unset, generally defaults to libc, libm, and libdl. Set to [] to prevent linking against the defaults.
 target interface
target.android
 compile_multilib string
 enabled bool
target.apex
 exclude_shared_libs list of string, list of shared libs that should not be used to build the apex variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the apex variant of the C/C++ module.
target.host
 compile_multilib string
target.non_apex
 exclude_shared_libs list of string, list of shared libs that should not be used to build the non-apex variant of the C/C++ module.
target.platform
 cflags list of string, List of additional cflags that should be used to build the platform variant of the C/C++ module.
 required list of string, List of modules required by the core variant.
 exclude_required list of string, List of modules not required by the core variant.
 shared_libs list of string, list of shared libs that should be use to build the platform variant of a module that sets sdk_version. This should rarely be necessary, in most cases the same libraries are available for the SDK and platform variants.
 header_libs list of string, list of ehader libs that only should be used to build platform variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the platform variant of the C/C++ module.
target.product
 srcs list of string, list of source files that should only be used in vendor or product variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build vendor or product variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build vendor or product variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build vendor or product variant of the C/C++ module.
 shared_libs list of string, list of shared libs that only should be used to build vendor or product variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build vendor or product variant of the C/C++ module.
 header_libs list of string, list of header libs that only should be used to build vendor or product variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor or product variant of the C/C++ module.
 version_script string, version script for vendor or product variant
target.ramdisk
 static_libs list of string, list of static libs that only should be used to build the ramdisk variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the ramdisk variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the ramdisk variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the ramdisk variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build the ramdisk variants of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the ramdisk variants of the C/C++ module.
target.recovery
 required list of string, List of modules required by the recovery variant.
 exclude_required list of string, List of modules not required by the recovery variant.
 srcs list of string, list of source files that should only be used in the recovery variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build the recovery variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the recovery variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build the recovery variant of the C/C++ module.
 shared_libs list of string, list of shared libs that only should be used to build the recovery variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build the recovery variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the recovery variant of the C/C++ module.
target.vendor
 shared_libs list of string, list of shared libs that only should be used to build vendor or product variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build vendor or product variant of the C/C++ module.
 header_libs list of string, list of header libs that only should be used to build vendor or product variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor or product variant of the C/C++ module.
 version_script string, version script for vendor or product variant
 srcs list of string, list of source files that should only be used in vendor or product variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build vendor or product variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build vendor or product variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build vendor or product variant of the C/C++ module.
target.vendor_ramdisk
 exclude_shared_libs list of string, list of shared libs that should not be used to build the vendor ramdisk variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the vendor ramdisk variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor ramdisk variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build the ramdisk variants of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the ramdisk variants of the C/C++ module.
 target_required list of string, names of other modules to install on target if this module is installed
 team string, The team (defined by the owner/vendor) who owns the property.
 test_config string, the name of the test configuration (for example "AndroidTest.xml") that should be installed with the module.
 test_config_template string, the name of the test configuration template (for example "AndroidTestTemplate.xml") that should be installed with the module.
 test_mainline_modules list of string, Add parameterized mainline modules to auto generated test config. The options will be handled by TradeFed to download and install the specified modules on the device.
test_options TestOptions
Test options.
 run_test_as string, The UID that you want to run the test as on a device.
 test_suite_tag list of string, A list of free-formed strings without spaces that categorize the test.
 extra_test_configs list of string, a list of extra test configuration files that should be installed with the module.
 min_shipping_api_level int64, Add ShippingApiLevelModuleController to auto generated test config. If the device properties for the shipping api level is less than the min_shipping_api_level, skip this module.
 vsr_min_shipping_api_level int64, Add ShippingApiLevelModuleController to auto generated test config. If any of the device shipping api level and vendor api level properties are less than the vsr_min_shipping_api_level, skip this module. As this includes the shipping api level check, it is not allowed to define min_shipping_api_level at the same time with this property.
 min_vndk_version int64, Add MinApiLevelModuleController with ro.vndk.version property. If ro.vndk.version has an integer value and the value is less than the min_vndk_version, skip this module.
 test_runner_options list of *ast.SelectorExpr, Extra <option> tags to add to the auto generated test xml file under the test runner, e.g., GTest. The "key" is optional in each of these.
 unit_test bool, If the test is a hostside (no device required) unittest that shall be run during presubmit check.
 tags list of string, Tags provide additional metadata to customize test execution by downstream test runners. The tags have no special meaning to Soong.
 test_suites list of string, list of compatibility suites (for example "cts", "vts") that the module should be installed into.
 tidy bool, whether to run clang-tidy over C-like sources.
 tidy_checks list of string, Extra checks to enable or disable in clang-tidy
 tidy_checks_as_errors list of string, Checks that should be treated as errors.
 tidy_disabled_srcs list of string, list of source files that should not be compiled with clang-tidy.
 tidy_flags list of string, Extra flags to pass to clang-tidy
 tidy_timeout_srcs list of string, list of source files that should not be compiled by clang-tidy when TIDY_TIMEOUT is set.
 use_generic_config bool, Set to true if this module must be generic and does not require product-specific information. To be included in the system image, this property must be set to true.
 use_version_lib bool, make android::build:GetBuildNumber() available containing the build ID.
 vendor bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist). Use `soc_specific` instead for better meaning.
 vendor_available bool, whether this module should be allowed to be directly depended by other modules with `vendor: true`, `proprietary: true`, or `vendor_available:true`. If set to true, two variants will be built separately, one like normal, and the other limited to the set of libraries and headers that are exposed to /vendor modules. The vendor variant may be used with a different (newer) /system, so it shouldn't have any unversioned runtime dependencies, or make assumptions about the system that may not be true in the future. If set to false, this module becomes inaccessible from /vendor modules. The modules with vndk: {enabled: true} must define 'vendor_available' to 'true'. Nothing happens if BOARD_VNDK_VERSION isn't set in the BoardConfig.mk
 vendor_dlkm_specific bool, Install to partition vendor_dlkm when set to true.
 vendor_ramdisk bool, Whether this module is installed to vendor ramdisk
 vendor_ramdisk_available bool, Make this module available when building for vendor ramdisk. On device without a dedicated recovery partition, the module is only available after switching root into /first_stage_ramdisk. To expose the module before switching root, install the recovery variant instead.
 version_script string, local file name to pass to the linker as --version-script. Not supported on darwin, and will fail to build if provided to the darwin variant of a module.
 vintf_fragment_modules configurable list of string, vintf_fragment Modules required from this module.
 vintf_fragments configurable list of string, VINTF manifest fragments to be installed if this module is installed
 visibility list of string, Controls the visibility of this module to other modules. Allowable values are one or more of these formats:

 ["//visibility:public"]: Anyone can use this module.
 ["//visibility:private"]: Only rules in the module's package (not its subpackages) can use
     this module.
 ["//visibility:override"]: Discards any rules inherited from defaults or a creating module.
     Can only be used at the beginning of a list of visibility rules.
 ["//some/package:__pkg__", "//other/package:__pkg__"]: Only modules in some/package and
     other/package (defined in some/package/*.bp and other/package/*.bp) have access to
     this module. Note that sub-packages do not have access to the rule; for example,
     //some/package/foo:bar or //other/package/testing:bla wouldn't have access. __pkg__
     is a special module and must be used verbatim. It represents all of the modules in the
     package.
 ["//project:__subpackages__", "//other:__subpackages__"]: Only modules in packages project
     or other or in one of their sub-packages have access to this module. For example,
     //project:rule, //project/library:lib or //other/testing/internal:munge are allowed
     to depend on this rule (but not //independent:evil)
 ["//project"]: This is shorthand for ["//project:__pkg__"]
 [":__subpackages__"]: This is shorthand for ["//project:__subpackages__"] where
     //project is the module's package. e.g. using [":__subpackages__"] in
     packages/apps/Settings/Android.bp is equivalent to
     //packages/apps/Settings:__subpackages__.
 ["//visibility:legacy_public"]: The default visibility, behaves as //visibility:public
     for now. It is an error if it is used in a module.

If a module does not specify the `visibility` property then it uses the `default_visibility` property of the `package` module in the module's package. If the `default_visibility` property is not set for the module's package then it will use the `default_visibility` of its closest ancestor package for which a `default_visibility` property is specified. If no `default_visibility` property can be found then the module uses the global default of `//visibility:legacy_public`. The `visibility` property has no effect on a defaults module although it does apply to any non-defaults module that uses it. To set the visibility of a defaults module, use the `defaults_visibility` property on the defaults module; not to be confused with the `default_visibility` property on the package module. See https://android.googlesource.com/platform/build/soong/+/main/README.md#visibility for more details.
 whole_program_vtables bool, Use -fwhole-program-vtables cflag.
 whole_static_libs configurable list of string, list of modules whose object files should be linked into this module in their entirety. For static library modules, all of the .o files from the intermediate directory of the dependency will be linked into this modules .a file. For a shared library, the dependency's .a file will be linked into this module using -Wl,--whole-archive.
 yacc YaccProperties

cc_test_host

cc_test_host compiles a test host binary.
 name string, The name of the module. Must be unique across all modules.
 srcs configurable list of string, list of source files used to compile the C/C++ module. May be .c, .cpp, or .S files. srcs may reference the outputs of other modules that produce source files like genrule or filegroup using the syntax ":module".
 exclude_srcs configurable list of string, list of source files that should not be used to build the C/C++ module. This is most useful in the arch/multilib variants to remove non-common files
 defaults list of string
 afdo bool, Afdo allows developers self-service enroll for automatic feedback-directed optimization using profile data.
aidl
 libs list of string, List of aidl_library modules
 include_dirs list of string, list of directories that will be added to the aidl include paths.
 local_include_dirs list of string, list of directories relative to the Blueprints file that will be added to the aidl include paths.
 generate_traces bool, whether to generate traces (for systrace) for this interface
 flags list of string, list of flags that will be passed to the AIDL compiler
 allow_undefined_symbols bool, allow the module to contain undefined symbols. By default, modules cannot contain undefined symbols that are not satisified by their immediate dependencies. Set this flag to true to remove --no-undefined from the linker flags. This flag should only be necessary for compiling low-level libraries like libc.
 apex_available list of string, Availability of this module in APEXes. Only the listed APEXes can contain this module. If the module has stubs then other APEXes and the platform may access it through them (subject to visibility). "//apex_available:anyapex" is a pseudo APEX name that matches to any APEX. "//apex_available:platform" refers to non-APEX partitions like "system.img". Prefix pattern (com.foo.*) can be used to match with any APEX name with the prefix(com.foo.). Default is ["//apex_available:platform"].
 arch interface
 asflags list of string, list of module-specific flags that will be used for .S compiles
 auto_gen_config bool, Flag to indicate whether or not to create test config automatically. If AndroidTest.xml doesn't exist next to the Android.bp, this attribute doesn't need to be set to true explicitly.
 bootstrap bool, Allows this module to use non-APEX version of libraries. Useful for building binaries that are started before APEXes are activated.
 bpf_target bool, cc Build rules targeting BPF must set this to true. The correct fix is to ban targeting bpf in cc rules instead use bpf_rules. (b/323415017)
buildstubs bool
 bool bool
 c_std string, C standard version to use. Can be a specific version (such as "gnu11"), "experimental" (which will use draft versions like C1x when available), or the empty string (which will use the default).
 cflags configurable list of string, list of module-specific flags that will be used for C and C++ compiles.
 clang bool, Deprecated. true is the default, false is invalid.
 clang_asflags list of string, list of module-specific flags that will be used for .S compiles when compiling with clang
 clang_cflags list of string, list of module-specific flags that will be used for C and C++ compiles when compiling with clang
 clang_verify bool, Add "-Xclang -verify" to the cflags and appends "touch $out" to the clang command line.
 cmake_snapshot_supported bool, Allows this module to be included in CMake release snapshots to be built outside of Android build system and source tree.
 compile_multilib string, control whether this module compiles for 32-bit, 64-bit, or both. Possible values are "32" (compile for 32-bit only), "64" (compile for 64-bit only), "both" (compile for both architectures), or "first" (compile for 64-bit on a 64-bit platform, and 32-bit on a 32-bit platform).
 conlyflags list of string, list of module-specific flags that will be used for C compiles
 cpp_std string, C++ standard version to use. Can be a specific version (such as "gnu++11"), "experimental" (which will use draft versions like C++1z when available), or the empty string (which will use the default).
 cppflags configurable list of string, list of module-specific flags that will be used for C++ compiles
 data list of string, list of files or filegroup modules that provide data that should be installed alongside the test
 data_bins list of string, list of binary modules that should be installed alongside the test
 data_libs list of string, list of shared library modules that should be installed alongside the test
 debug_ramdisk bool, Whether this module is installed to debug ramdisk
 device_common_data list of string, Same as data, but adds dependencies on modules using the device's os variant, and common architecture's variant. Can be useful to add device-built apps to the data of a host test.
 device_first_data list of string, Same as data, but adds dependencies on modules using the device's os variant, and the device's first architecture's variant. Can be useful to add device-built apps to the data of a host test.
 device_first_generated_headers configurable list of string, Same as generated_headers, but the dependencies will be added based on the first supported arch variant and the device os variant. This can be useful for creating a host tool that embeds a copy of a device tool, that it then extracts and pushes to a device at runtime.
 device_specific bool, whether this module is specific to a device, not only for SoC, but also for off-chip peripherals. When set to true, it is installed into /odm (or /vendor/odm if odm partition does not exist, or /system/vendor/odm if both odm and vendor partitions do not exist). This implies `soc_specific:true`.
 disable_framework bool, Add RunCommandTargetPreparer to stop framework before the test and start it after the test.
dist Dist
configuration to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 targets list of string, Copy the output of this module to the $DIST_DIR when `dist` is specified on the command line and any of these targets are also on the command line, or otherwise built
 dest string, The name of the output artifact. This defaults to the basename of the output of the module.
 dir string, The directory within the dist directory to store the artifact. Defaults to the top level directory ("").
 suffix string, A suffix to add to the artifact file name (before any extension).
 append_artifact_with_product bool, If true, then the artifact file will be appended with _<product name>. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be foo_coral.apk. If false, there is no change to the artifact file name.
 prepend_artifact_with_product bool, If true, then the artifact file will be prepended with <product name>-. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be coral-foo.apk. If false, there is no change to the artifact file name.
 tag string, A string tag to select the OutputFiles associated with the tag. If no tag is specified then it will select the default dist paths provided by the module type. If a tag of "" is specified then it will return the default output files provided by the modules, i.e. the result of calling OutputFiles("").
 dists list of Dist, a list of configurations to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 double_loadable bool, whether this module is capable of being loaded with other instance (possibly an older version) of the same module in the same process. Currently, a shared library that is a member of VNDK (vndk: {enabled: true}) can be double loaded in a vendor process if the library is also a (direct and indirect) dependency of an LLNDK library. Such libraries must be explicitly marked as `double_loadable: true` by the owner, or the dependency from the LLNDK lib should be cut if the lib is not designed to be double loaded.
 dynamic_list string, local file name to pass to the linker as --dynamic-list. Not supported on darwin, and will fail to build if provided to the darwin variant of a module.
 enabled configurable bool, emit build rules for this module Disabling a module should only be done for those modules that cannot be built in the current environment. Modules that can build in the current environment but are not usually required (e.g. superceded by a prebuilt) should not be disabled as that will prevent them from being built by the checkbuild target and so prevent early detection of changes that have broken those modules.
 exclude_generated_sources list of string, list of generated sources that should not be used to build the C/C++ module. This is most useful in the arch/multilib variants to remove non-common files
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with this module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build this module
 exclude_static_libs list of string, list of static libs that should not be used to build this module
 export_generated_headers list of string, list of generated headers to re-export include directories from. Entries must be present in generated_headers.
 export_header_lib_headers configurable list of string, list of header libraries to re-export include directories from. Entries must be present in header_libs.
 export_shared_lib_headers list of string, list of shared libraries to re-export include directories from. Entries must be present in shared_libs.
 export_static_lib_headers list of string, list of static libraries to re-export include directories from. Entries must be present in static_libs.
 generated_headers configurable list of string, list of generated headers to add to the include path. These are the names of genrule modules.
 generated_sources list of string, list of generated sources to compile. These are the names of gensrcs or genrule modules.
 gnu_extensions bool, if set to false, use -std=c++* instead of -std=gnu++*
 group_static_libs bool, deprecated and ignored because lld makes it unnecessary. See b/189475744.
 gtest bool, if set, build against the gtest library. Defaults to true.
 header_libs configurable list of string, list of modules that should only provide headers for this module.
 host_common_data list of string, Same as data, but will add dependencies on modules using the host's os variation and the common arch variation. Useful for a device test that wants to depend on a host module, for example to include a custom Tradefed test runner.
 host_cross_supported bool, If set to true, build a variant of the module for the host cross. Defaults to true.
 host_ldlibs list of string, -l arguments to pass to linker for host-provided shared libraries
 host_required list of string, names of other modules to install on host if this module is installed
 ignore_max_page_size bool, ignore max page size. By default, max page size must be the max page size set for the target.
 include_build_directory bool, Add the directory containing the Android.bp file to the list of include directories. Defaults to true.
 include_dirs configurable list of string, list of directories relative to the root of the source tree that will be added to the include path using -I. If possible, don't use this. If adding paths from the current directory use local_include_dirs, if adding paths from other modules use export_include_dirs in that module.
 init_rc configurable list of string, init.rc files to be installed if this module is installed
 inject_bssl_hash bool, Inject boringssl hash into the shared library. This is only intended for use by external/boringssl.
 install_in_root bool, Install output directly in {partition}/, not in any subdir. This is only intended for use by init_first_stage.
 install_in_xbin bool, Install output directly in {partition}/xbin
 installable bool
 instruction_set string, the instruction set architecture to use to compile the C/C++ module.
 isolated bool, if set, use the isolated gtest runner. Defaults to false. Isolation is not supported on Windows.
 ldflags list of string, list of module-specific flags that will be used for all link steps
 lex LexProperties
 licenses list of string, Describes the licenses applicable to this module. Must reference license modules.
 linker_scripts list of string, local files to pass to the linker as --script. Not supported on darwin or windows, and will fail to build if provided to the darwin or windows variant of a module.
 local_include_dirs configurable list of string, list of directories relative to the Blueprints file that will be added to the include path using -I
 logtags list of string, *.logtags files, to combine together in order to generate the /system/etc/event-log-tags file
lto
Lto must violate capitalization style for acronyms so that it can be referred to in blueprint files as "lto"
 never bool
 thin bool
 lto_O0 bool, Use --lto-O0 flag.
 min_sdk_version string, Minimum OS API level supported by this C or C++ module. This property becomes the value of the __ANDROID_API__ macro. When the C or C++ module is included in an APEX or an APK, this property is also used to ensure that the min_sdk_version of the containing module is not older (i.e. less) than this module's min_sdk_version. When not set, this property defaults to the value of sdk_version. When this is set to "apex_inherit", this tracks min_sdk_version of the containing APEX. When the module is not built for an APEX, "apex_inherit" defaults to sdk_version.
 multilib interface
 native_bridge_supported bool, Whether this module is built for non-native architectures (also known as native bridge binary)
 native_coverage bool
 no_crt_pad_segment bool, don't link in crt_pad_segment. This flag is currently only used internal to soong for testing and for vndk prebuilt shared libraries.
 no_full_install bool, When set to true, this module is not installed to the full install path (ex: under out/target/product/<name>/<partition>). It can be installed only to the packaging modules like android_filesystem.
 no_libcrt bool, don't link in libclang_rt.builtins-*.a
 no_named_install_directory bool, Disables the creation of a test-specific directory when used with relative_install_path. Useful if several tests need to be in the same directory.
 nocrt bool, don't link in crt_begin and crt_end. This flag should only be necessary for compiling crt or libc.
 odm_available bool, This is the same as the "vendor_available" except that the install path of the vendor variant is /odm or /vendor/odm. By replacing "vendor_available: true" with "odm_available: true", the module will install its vendor variant to the /odm partition or /vendor/odm. As the modules with "odm_available: true" still create the vendor variants, they can link to the other vendor modules as the vendor_available modules do. Also, the vendor modules can link to odm_available modules. It may not be used for VNDK modules.
 odm_dlkm_specific bool, Install to partition odm_dlkm when set to true.
 openmp bool, Build and link with OpenMP
 optimize_for_size bool, Aggresively trade performance for smaller binary size. This should only be used for on-device binaries that are rarely executed and not performance critical.
orderfile
 instrumentation bool
 order_file_path string
 load_order_file bool
 cflags list of string, Additional compiler flags to use when building this module for orderfile profiling.
 overrides list of string, List of module names that are prevented from being installed when this module gets installed.
 owner string, vendor who owns this module
 pack_relocations bool, Generate compact dynamic relocation table, default true.
 per_testcase_directory bool, Install the test into a folder named for the module in all test suites.
 prefix_symbols string, if set, add an extra objcopy --prefix-symbols= step
 product_available bool, whether this module should be allowed to be directly depended by other modules with `product_specific: true` or `product_available: true`. If set to true, an additional product variant will be built separately that is limited to the set of libraries and headers that are exposed to /product modules. The product variant may be used with a different (newer) /system, so it shouldn't have any unversioned runtime dependencies, or make assumptions about the system that may not be true in the future. If set to false, this module becomes inaccessible from /product modules. Different from the 'vendor_available' property, the modules with vndk: {enabled: true} don't have to define 'product_available'. The VNDK library without 'product_available' may not be depended on by any other modules that has product variants including the product available VNDKs. Nothing happens if BOARD_VNDK_VERSION isn't set in the BoardConfig.mk and PRODUCT_PRODUCT_VNDK_VERSION isn't set.
 product_specific bool, whether this module is specific to a software configuration of a product (e.g. country, network operator, etc). When set to true, it is installed into /product (or /system/product if product partition does not exist).
product_variables.arc
cflags
  []string
exclude_srcs
  []string
header_libs
  []string
include_dirs
  []string
shared_libs
  []string
static_libs
  []string
srcs
  []string
whole_static_libs
  []string
product_variables.binder32bit
cflags
  []string
product_variables.build_from_text_stub
static_libs
  []string
exclude_static_libs
  []string
product_variables.debuggable
cflags
  []string
cppflags
  []string
init_rc
  []string
required
  []string
host_required
  []string
target_required
  []string
strip.all
  *bool
strip.keep_symbols
  *bool
strip.keep_symbols_and_debug_frame
  *bool
static_libs
  []string
exclude_static_libs
  []string
whole_static_libs
  []string
shared_libs
  []string
srcs
  []string
exclude_srcs
  []string
product_variables.enforce_vintf_manifest
cflags
  []string
product_variables.eng
cflags
  []string
cppflags
  []string
lto.never
  *bool
sanitize.address
  *bool
product_variables.malloc_low_memory
cflags
  []string
shared_libs
  []string
whole_static_libs
  []string
static_libs
  []string
exclude_static_libs
  []string
srcs
  []string
header_libs
  []string
product_variables.malloc_pattern_fill_contents
cflags
  []string
product_variables.malloc_zero_contents
cflags
  []string
product_variables.native_coverage
srcs
  []string
exclude_srcs
  []string
product_variables.override_rs_driver
cflags
  []string
product_variables.platform_sdk_version
asflags
  []string
cflags
  []string
product_variables.release_aidl_use_unfrozen
cflags
  []string
required
  []string
vintf_fragment_modules
  []string
product_variables.safestack
cflags
  []string
product_variables.selinuxignoreneverallows
required
  []string
product_variables.shipping_api_level
cflags
  []string
product_variables.treble_linker_namespaces
cflags
  []string
product_variables.uml
cppflags
  []string
product_variables.unbundled_build
enabled Configurable[bool]
 Configurable[bool] proptools.Configurable[bool]
 proprietary bool, whether this is a proprietary vendor module, and should be installed into /vendor
proto
 static bool, Link statically against the protobuf runtime
 type string, Proto generator type. C++: full or lite. Java: micro, nano, stream, or lite.
 plugin string, Proto plugin to use as the generator. Must be a cc_binary_host module.
 include_dirs list of string, list of directories that will be added to the protoc include paths.
 local_include_dirs list of string, list of directories relative to the bp file that will be added to the protoc include paths.
 canonical_path_from_root bool, whether to identify the proto files from the root of the source tree (the original method in Android, useful for android-specific protos), or relative from where they were specified (useful for external/third party protos). This defaults to true today, but is expected to default to false in the future.
 ramdisk bool, Whether this module is installed to ramdisk
 ramdisk_available bool, Make this module available when building for ramdisk. On device without a dedicated recovery partition, the module is only available after switching root into /first_stage_ramdisk. To expose the module before switching root, install the recovery variant instead.
 recovery bool, Whether this module is installed to recovery partition
 recovery_available bool, Make this module available when building for recovery
 relative_install_path string, install to a subdirectory of the default install path for the module
renderscript
 include_dirs list of string, list of directories that will be added to the llvm-rs-cc include paths
 flags list of string, list of flags that will be passed to llvm-rs-cc
 target_api string, Renderscript API level to target
 require_root bool, Add RootTargetPreparer to auto generated test config. This guarantees the test to run with root permission.
 required configurable list of string, names of other modules to install if this module is installed
 rtti bool, pass -frtti instead of -fno-rtti
 runtime_libs list of string, list of modules that should be installed with this module. This is similar to 'required' but '.vendor' suffix will be appended to the module names if the shared libraries have vendor variants and this module uses VNDK.
sanitize SanitizeUserProps
 never bool, Prevent use of any sanitizers on this module
 address bool, ASan (Address sanitizer), incompatible with static binaries. Always runs in a diagnostic mode. Use of address sanitizer disables cfi sanitizer. Hwaddress sanitizer takes precedence over this sanitizer.
 thread bool, TSan (Thread sanitizer), incompatible with static binaries and 32 bit architectures. Always runs in a diagnostic mode. Use of thread sanitizer disables cfi and scudo sanitizers. Hwaddress sanitizer takes precedence over this sanitizer.
 hwaddress bool, HWASan (Hardware Address sanitizer). Use of hwasan sanitizer disables cfi, address, thread, and scudo sanitizers.
 all_undefined bool, Undefined behavior sanitizer
 undefined bool, Subset of undefined behavior sanitizer
 misc_undefined list of string, List of specific undefined behavior sanitizers to enable
 fuzzer bool, Fuzzer, incompatible with static binaries.
 safestack bool, safe-stack sanitizer, incompatible with 32-bit architectures.
 cfi bool, cfi sanitizer, incompatible with asan, hwasan, fuzzer, or Darwin
 integer_overflow bool, signed/unsigned integer overflow sanitizer, incompatible with Darwin.
 scudo bool, scudo sanitizer, incompatible with asan, hwasan, tsan This should not be used in Android 11+ : https://source.android.com/devices/tech/debug/scudo deprecated
 scs bool, shadow-call-stack sanitizer, only available on arm64/riscv64.
 memtag_heap bool, Memory-tagging, only available on arm64 if diag.memtag unset or false, enables async memory tagging
 memtag_stack bool, Memory-tagging stack instrumentation, only available on arm64 Adds instrumentation to detect stack buffer overflows and use-after-scope using MTE.
 memtag_globals bool, Memory-tagging globals instrumentation, only available on arm64 Adds instrumentation to detect global buffer overflows using MTE.
 writeonly bool, A modifier for ASAN and HWASAN for write only instrumentation
diag
Sanitizers to run in the diagnostic mode (as opposed to the release mode). Replaces abort() on error with a human-readable error message. Address and Thread sanitizers always run in diagnostic mode.
 undefined bool, Undefined behavior sanitizer, diagnostic mode
 cfi bool, cfi sanitizer, diagnostic mode, incompatible with asan, hwasan, fuzzer, or Darwin
 integer_overflow bool, signed/unsigned integer overflow sanitizer, diagnostic mode, incompatible with Darwin.
 memtag_heap bool, Memory-tagging, only available on arm64 requires sanitizer.memtag: true if set, enables sync memory tagging
 misc_undefined list of string, List of specific undefined behavior sanitizers to enable in diagnostic mode
 no_recover list of string, List of sanitizers to pass to -fno-sanitize-recover results in only the first detected error for these sanitizers being reported and program then exits with a non-zero exit code.
config
Sanitizers to run with flag configuration specified
 cfi_assembly_support bool, Enables CFI support flags for assembly-heavy libraries
 recover list of string, List of sanitizers to pass to -fsanitize-recover allows execution to continue for these sanitizers to detect multiple errors rather than only the first one
 blocklist string, value to pass to -fsanitize-ignorelist
 sdk_variant_only bool, If true, always create an sdk variant and don't create a platform variant.
 sdk_version string, The API level that this module is built against. The APIs of this API level will be visible at build time, but use of any APIs newer than min_sdk_version will render the module unloadable on older devices. In the future it will be possible to weakly-link new APIs, making the behavior match Java: such modules will load on older devices, but calling new APIs on devices that do not support them will result in a crash. This property has the same behavior as sdk_version does for Java modules. For those familiar with Android Gradle, the property behaves similarly to how compileSdkVersion does for Java code. In addition, setting this property causes two variants to be built, one for the platform and one for apps.
 shared_libs configurable list of string, list of modules that should be dynamically linked into this module.
 soc_specific bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist).
 standalone_test bool, Install the test's dependencies into a folder named standalone-libs relative to the test's installation path. ld-library-path will be set to this path in the test's auto-generated config. This way the dependencies can be used by the test without having to manually install them to the device. See more details in go/standalone-native-device-tests.
 static_executable bool, compile executable with -static
 static_libs configurable list of string, list of modules that should be statically linked into this module.
 stem string, set the name of the output
 stl string, Select the STL library to use. Possible values are "libc++", "libc++_static", "libstdc++", or "none". Leave blank to select the default.
strip
 none bool, Device modules default to stripping enabled leaving mini debuginfo. Host modules default to stripping disabled, but can be enabled by setting any other strip boolean property.
 all bool, all forces stripping everything, including the mini debug info.
 keep_symbols bool, keep_symbols enables stripping but keeps all symbols.
 keep_symbols_list list of string, keep_symbols_list specifies a list of symbols to keep if keep_symbols is enabled. If it is unset then all symbols are kept.
 keep_symbols_and_debug_frame bool, keep_symbols_and_debug_frame enables stripping but keeps all symbols and debug frames.
 suffix string, append to the name of the output
 system_dlkm_specific bool, Install to partition system_dlkm when set to true.
 system_ext_specific bool, whether this module extends system. When set to true, it is installed into /system_ext (or /system/system_ext if system_ext partition does not exist).
 system_shared_libs list of string, list of system libraries that will be dynamically linked to shared library and executable modules. If unset, generally defaults to libc, libm, and libdl. Set to [] to prevent linking against the defaults.
 target interface
target.android
 compile_multilib string
 enabled bool
target.apex
 exclude_shared_libs list of string, list of shared libs that should not be used to build the apex variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the apex variant of the C/C++ module.
target.host
 compile_multilib string
target.non_apex
 exclude_shared_libs list of string, list of shared libs that should not be used to build the non-apex variant of the C/C++ module.
target.platform
 cflags list of string, List of additional cflags that should be used to build the platform variant of the C/C++ module.
 required list of string, List of modules required by the core variant.
 exclude_required list of string, List of modules not required by the core variant.
 shared_libs list of string, list of shared libs that should be use to build the platform variant of a module that sets sdk_version. This should rarely be necessary, in most cases the same libraries are available for the SDK and platform variants.
 header_libs list of string, list of ehader libs that only should be used to build platform variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the platform variant of the C/C++ module.
target.product
 srcs list of string, list of source files that should only be used in vendor or product variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build vendor or product variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build vendor or product variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build vendor or product variant of the C/C++ module.
 shared_libs list of string, list of shared libs that only should be used to build vendor or product variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build vendor or product variant of the C/C++ module.
 header_libs list of string, list of header libs that only should be used to build vendor or product variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor or product variant of the C/C++ module.
 version_script string, version script for vendor or product variant
target.ramdisk
 static_libs list of string, list of static libs that only should be used to build the ramdisk variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the ramdisk variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the ramdisk variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the ramdisk variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build the ramdisk variants of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the ramdisk variants of the C/C++ module.
target.recovery
 required list of string, List of modules required by the recovery variant.
 exclude_required list of string, List of modules not required by the recovery variant.
 srcs list of string, list of source files that should only be used in the recovery variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build the recovery variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the recovery variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build the recovery variant of the C/C++ module.
 shared_libs list of string, list of shared libs that only should be used to build the recovery variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build the recovery variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the recovery variant of the C/C++ module.
target.vendor
 srcs list of string, list of source files that should only be used in vendor or product variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build vendor or product variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build vendor or product variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build vendor or product variant of the C/C++ module.
 shared_libs list of string, list of shared libs that only should be used to build vendor or product variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build vendor or product variant of the C/C++ module.
 header_libs list of string, list of header libs that only should be used to build vendor or product variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor or product variant of the C/C++ module.
 version_script string, version script for vendor or product variant
target.vendor_ramdisk
 exclude_shared_libs list of string, list of shared libs that should not be used to build the vendor ramdisk variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the vendor ramdisk variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor ramdisk variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build the ramdisk variants of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the ramdisk variants of the C/C++ module.
 target_required list of string, names of other modules to install on target if this module is installed
 team string, The team (defined by the owner/vendor) who owns the property.
 test_config string, the name of the test configuration (for example "AndroidTest.xml") that should be installed with the module.
 test_config_template string, the name of the test configuration template (for example "AndroidTestTemplate.xml") that should be installed with the module.
 test_mainline_modules list of string, Add parameterized mainline modules to auto generated test config. The options will be handled by TradeFed to download and install the specified modules on the device.
test_options TestOptions
Test options.
 run_test_as string, The UID that you want to run the test as on a device.
 test_suite_tag list of string, A list of free-formed strings without spaces that categorize the test.
 extra_test_configs list of string, a list of extra test configuration files that should be installed with the module.
 min_shipping_api_level int64, Add ShippingApiLevelModuleController to auto generated test config. If the device properties for the shipping api level is less than the min_shipping_api_level, skip this module.
 vsr_min_shipping_api_level int64, Add ShippingApiLevelModuleController to auto generated test config. If any of the device shipping api level and vendor api level properties are less than the vsr_min_shipping_api_level, skip this module. As this includes the shipping api level check, it is not allowed to define min_shipping_api_level at the same time with this property.
 min_vndk_version int64, Add MinApiLevelModuleController with ro.vndk.version property. If ro.vndk.version has an integer value and the value is less than the min_vndk_version, skip this module.
 test_runner_options list of *ast.SelectorExpr, Extra <option> tags to add to the auto generated test xml file under the test runner, e.g., GTest. The "key" is optional in each of these.
 unit_test bool, If the test is a hostside (no device required) unittest that shall be run during presubmit check.
 tags list of string, Tags provide additional metadata to customize test execution by downstream test runners. The tags have no special meaning to Soong.
 test_suites list of string, list of compatibility suites (for example "cts", "vts") that the module should be installed into.
 tidy bool, whether to run clang-tidy over C-like sources.
 tidy_checks list of string, Extra checks to enable or disable in clang-tidy
 tidy_checks_as_errors list of string, Checks that should be treated as errors.
 tidy_disabled_srcs list of string, list of source files that should not be compiled with clang-tidy.
 tidy_flags list of string, Extra flags to pass to clang-tidy
 tidy_timeout_srcs list of string, list of source files that should not be compiled by clang-tidy when TIDY_TIMEOUT is set.
 use_generic_config bool, Set to true if this module must be generic and does not require product-specific information. To be included in the system image, this property must be set to true.
 use_version_lib bool, make android::build:GetBuildNumber() available containing the build ID.
 vendor bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist). Use `soc_specific` instead for better meaning.
 vendor_available bool, whether this module should be allowed to be directly depended by other modules with `vendor: true`, `proprietary: true`, or `vendor_available:true`. If set to true, two variants will be built separately, one like normal, and the other limited to the set of libraries and headers that are exposed to /vendor modules. The vendor variant may be used with a different (newer) /system, so it shouldn't have any unversioned runtime dependencies, or make assumptions about the system that may not be true in the future. If set to false, this module becomes inaccessible from /vendor modules. The modules with vndk: {enabled: true} must define 'vendor_available' to 'true'. Nothing happens if BOARD_VNDK_VERSION isn't set in the BoardConfig.mk
 vendor_dlkm_specific bool, Install to partition vendor_dlkm when set to true.
 vendor_ramdisk bool, Whether this module is installed to vendor ramdisk
 vendor_ramdisk_available bool, Make this module available when building for vendor ramdisk. On device without a dedicated recovery partition, the module is only available after switching root into /first_stage_ramdisk. To expose the module before switching root, install the recovery variant instead.
 version_script string, local file name to pass to the linker as --version-script. Not supported on darwin, and will fail to build if provided to the darwin variant of a module.
 vintf_fragment_modules configurable list of string, vintf_fragment Modules required from this module.
 vintf_fragments configurable list of string, VINTF manifest fragments to be installed if this module is installed
 visibility list of string, Controls the visibility of this module to other modules. Allowable values are one or more of these formats:

 ["//visibility:public"]: Anyone can use this module.
 ["//visibility:private"]: Only rules in the module's package (not its subpackages) can use
     this module.
 ["//visibility:override"]: Discards any rules inherited from defaults or a creating module.
     Can only be used at the beginning of a list of visibility rules.
 ["//some/package:__pkg__", "//other/package:__pkg__"]: Only modules in some/package and
     other/package (defined in some/package/*.bp and other/package/*.bp) have access to
     this module. Note that sub-packages do not have access to the rule; for example,
     //some/package/foo:bar or //other/package/testing:bla wouldn't have access. __pkg__
     is a special module and must be used verbatim. It represents all of the modules in the
     package.
 ["//project:__subpackages__", "//other:__subpackages__"]: Only modules in packages project
     or other or in one of their sub-packages have access to this module. For example,
     //project:rule, //project/library:lib or //other/testing/internal:munge are allowed
     to depend on this rule (but not //independent:evil)
 ["//project"]: This is shorthand for ["//project:__pkg__"]
 [":__subpackages__"]: This is shorthand for ["//project:__subpackages__"] where
     //project is the module's package. e.g. using [":__subpackages__"] in
     packages/apps/Settings/Android.bp is equivalent to
     //packages/apps/Settings:__subpackages__.
 ["//visibility:legacy_public"]: The default visibility, behaves as //visibility:public
     for now. It is an error if it is used in a module.

If a module does not specify the `visibility` property then it uses the `default_visibility` property of the `package` module in the module's package. If the `default_visibility` property is not set for the module's package then it will use the `default_visibility` of its closest ancestor package for which a `default_visibility` property is specified. If no `default_visibility` property can be found then the module uses the global default of `//visibility:legacy_public`. The `visibility` property has no effect on a defaults module although it does apply to any non-defaults module that uses it. To set the visibility of a defaults module, use the `defaults_visibility` property on the defaults module; not to be confused with the `default_visibility` property on the package module. See https://android.googlesource.com/platform/build/soong/+/main/README.md#visibility for more details.
 whole_program_vtables bool, Use -fwhole-program-vtables cflag.
 whole_static_libs configurable list of string, list of modules whose object files should be linked into this module in their entirety. For static library modules, all of the .o files from the intermediate directory of the dependency will be linked into this modules .a file. For a shared library, the dependency's .a file will be linked into this module using -Wl,--whole-archive.
 yacc YaccProperties

cc_test_library

cc_test_library creates an archive of files (i.e. .o files) which is later referenced by another module (such as cc_test, cc_defaults or cc_test_library) for archiving or linking.
 name string, The name of the module. Must be unique across all modules.
 srcs configurable list of string, list of source files used to compile the C/C++ module. May be .c, .cpp, or .S files. srcs may reference the outputs of other modules that produce source files like genrule or filegroup using the syntax ":module".
 exclude_srcs configurable list of string, list of source files that should not be used to build the C/C++ module. This is most useful in the arch/multilib variants to remove non-common files
 defaults list of string
 host_supported bool, If set to true, build a variant of the module for the host. Defaults to false.
 device_supported bool, If set to true, build a variant of the module for the device. Defaults to true.
 afdo bool, Afdo allows developers self-service enroll for automatic feedback-directed optimization using profile data.
aidl
 libs list of string, List of aidl_library modules
 include_dirs list of string, list of directories that will be added to the aidl include paths.
 local_include_dirs list of string, list of directories relative to the Blueprints file that will be added to the aidl include paths.
 generate_traces bool, whether to generate traces (for systrace) for this interface
 flags list of string, list of flags that will be passed to the AIDL compiler
 export_aidl_headers bool, export headers generated from .aidl sources
 allow_undefined_symbols bool, allow the module to contain undefined symbols. By default, modules cannot contain undefined symbols that are not satisified by their immediate dependencies. Set this flag to true to remove --no-undefined from the linker flags. This flag should only be necessary for compiling low-level libraries like libc.
 apex_available list of string, Availability of this module in APEXes. Only the listed APEXes can contain this module. If the module has stubs then other APEXes and the platform may access it through them (subject to visibility). "//apex_available:anyapex" is a pseudo APEX name that matches to any APEX. "//apex_available:platform" refers to non-APEX partitions like "system.img". Prefix pattern (com.foo.*) can be used to match with any APEX name with the prefix(com.foo.). Default is ["//apex_available:platform"].
 arch interface
 asflags list of string, list of module-specific flags that will be used for .S compiles
 bootstrap bool, Allows this module to use non-APEX version of libraries. Useful for building binaries that are started before APEXes are activated.
 bpf_target bool, cc Build rules targeting BPF must set this to true. The correct fix is to ban targeting bpf in cc rules instead use bpf_rules. (b/323415017)
buildstubs bool
 bool bool
 c_std string, C standard version to use. Can be a specific version (such as "gnu11"), "experimental" (which will use draft versions like C1x when available), or the empty string (which will use the default).
 cflags configurable list of string, list of module-specific flags that will be used for C and C++ compiles.
 clang bool, Deprecated. true is the default, false is invalid.
 clang_asflags list of string, list of module-specific flags that will be used for .S compiles when compiling with clang
 clang_cflags list of string, list of module-specific flags that will be used for C and C++ compiles when compiling with clang
 clang_verify bool, Add "-Xclang -verify" to the cflags and appends "touch $out" to the clang command line.
 cmake_snapshot_supported bool, Allows this module to be included in CMake release snapshots to be built outside of Android build system and source tree.
 compile_multilib string, control whether this module compiles for 32-bit, 64-bit, or both. Possible values are "32" (compile for 32-bit only), "64" (compile for 64-bit only), "both" (compile for both architectures), or "first" (compile for 64-bit on a 64-bit platform, and 32-bit on a 32-bit platform).
 conlyflags list of string, list of module-specific flags that will be used for C compiles
 cpp_std string, C++ standard version to use. Can be a specific version (such as "gnu++11"), "experimental" (which will use draft versions like C++1z when available), or the empty string (which will use the default).
 cppflags configurable list of string, list of module-specific flags that will be used for C++ compiles
 debug_ramdisk bool, Whether this module is installed to debug ramdisk
 device_first_generated_headers configurable list of string, Same as generated_headers, but the dependencies will be added based on the first supported arch variant and the device os variant. This can be useful for creating a host tool that embeds a copy of a device tool, that it then extracts and pushes to a device at runtime.
 device_specific bool, whether this module is specific to a device, not only for SoC, but also for off-chip peripherals. When set to true, it is installed into /odm (or /vendor/odm if odm partition does not exist, or /system/vendor/odm if both odm and vendor partitions do not exist). This implies `soc_specific:true`.
dist Dist
configuration to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 targets list of string, Copy the output of this module to the $DIST_DIR when `dist` is specified on the command line and any of these targets are also on the command line, or otherwise built
 dest string, The name of the output artifact. This defaults to the basename of the output of the module.
 dir string, The directory within the dist directory to store the artifact. Defaults to the top level directory ("").
 suffix string, A suffix to add to the artifact file name (before any extension).
 append_artifact_with_product bool, If true, then the artifact file will be appended with _<product name>. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be foo_coral.apk. If false, there is no change to the artifact file name.
 prepend_artifact_with_product bool, If true, then the artifact file will be prepended with <product name>-. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be coral-foo.apk. If false, there is no change to the artifact file name.
 tag string, A string tag to select the OutputFiles associated with the tag. If no tag is specified then it will select the default dist paths provided by the module type. If a tag of "" is specified then it will return the default output files provided by the modules, i.e. the result of calling OutputFiles("").
 dists list of Dist, a list of configurations to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 double_loadable bool, whether this module is capable of being loaded with other instance (possibly an older version) of the same module in the same process. Currently, a shared library that is a member of VNDK (vndk: {enabled: true}) can be double loaded in a vendor process if the library is also a (direct and indirect) dependency of an LLNDK library. Such libraries must be explicitly marked as `double_loadable: true` by the owner, or the dependency from the LLNDK lib should be cut if the lib is not designed to be double loaded.
 dynamic_list string, local file name to pass to the linker as --dynamic-list. Not supported on darwin, and will fail to build if provided to the darwin variant of a module.
 enabled configurable bool, emit build rules for this module Disabling a module should only be done for those modules that cannot be built in the current environment. Modules that can build in the current environment but are not usually required (e.g. superceded by a prebuilt) should not be disabled as that will prevent them from being built by the checkbuild target and so prevent early detection of changes that have broken those modules.
 exclude_generated_sources list of string, list of generated sources that should not be used to build the C/C++ module. This is most useful in the arch/multilib variants to remove non-common files
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with this module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build this module
 exclude_static_libs list of string, list of static libs that should not be used to build this module
 export_cflags list of string, list of plain cc flags to be used for any module that links against this module.
 export_generated_headers list of string, list of generated headers to re-export include directories from. Entries must be present in generated_headers.
 export_header_lib_headers configurable list of string, list of header libraries to re-export include directories from. Entries must be present in header_libs.
 export_include_dirs configurable list of string, list of directories relative to the Blueprints file that will be added to the include path (using -I) for this module and any module that links against this module. Directories listed in export_include_dirs do not need to be listed in local_include_dirs.
 export_shared_lib_headers list of string, list of shared libraries to re-export include directories from. Entries must be present in shared_libs.
 export_static_lib_headers list of string, list of static libraries to re-export include directories from. Entries must be present in static_libs.
 export_system_include_dirs list of string, list of directories that will be added to the system include path using -isystem for this module and any module that links against this module.
 exported_symbols_list string, local file name to pass to the linker as -exported_symbols_list
 force_symbols_not_weak_list string, local file name to pass to the linker as -force_symbols_not_weak_list
 force_symbols_weak_list string, local file name to pass to the linker as -force_symbols_weak_list
 generated_headers configurable list of string, list of generated headers to add to the include path. These are the names of genrule modules.
 generated_sources list of string, list of generated sources to compile. These are the names of gensrcs or genrule modules.
 gnu_extensions bool, if set to false, use -std=c++* instead of -std=gnu++*
 group_static_libs bool, deprecated and ignored because lld makes it unnecessary. See b/189475744.
 gtest bool, if set, build against the gtest library. Defaults to true.
header_abi_checker headerAbiCheckerProperties
Properties for ABI compatibility checker.
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 header_libs configurable list of string, list of modules that should only provide headers for this module.
 host_cross_supported bool, If set to true, build a variant of the module for the host cross. Defaults to true.
 host_ldlibs list of string, -l arguments to pass to linker for host-provided shared libraries
 host_required list of string, names of other modules to install on host if this module is installed
 ignore_max_page_size bool, ignore max page size. By default, max page size must be the max page size set for the target.
 include_build_directory bool, Add the directory containing the Android.bp file to the list of include directories. Defaults to true.
 include_dirs configurable list of string, list of directories relative to the root of the source tree that will be added to the include path using -I. If possible, don't use this. If adding paths from the current directory use local_include_dirs, if adding paths from other modules use export_include_dirs in that module.
 init_rc configurable list of string, init.rc files to be installed if this module is installed
 inject_bssl_hash bool, Inject boringssl hash into the shared library. This is only intended for use by external/boringssl.
 install_in_root bool, Install output directly in {partition}/, not in any subdir. This is only intended for use by init_first_stage.
 install_in_xbin bool, Install output directly in {partition}/xbin
 installable bool
 instruction_set string, the instruction set architecture to use to compile the C/C++ module.
 isolated bool, if set, use the isolated gtest runner. Defaults to false. Isolation is not supported on Windows.
 ldflags list of string, list of module-specific flags that will be used for all link steps
 lex LexProperties
 licenses list of string, Describes the licenses applicable to this module. Must reference license modules.
 linker_scripts list of string, local files to pass to the linker as --script. Not supported on darwin or windows, and will fail to build if provided to the darwin or windows variant of a module.
llndk llndkLibraryProperties
If this is an LLNDK library, properties to describe the LLNDK stubs. Will be copied from the module pointed to by llndk_stubs if it is set.
 symbol_file string, Relative path to the symbol map. An example file can be seen here: TODO(danalbert): Make an example.
 export_headers_as_system bool, Whether to export any headers as -isystem instead of -I. Mainly for use by bionic/libc.
 unversioned bool, Whether the system library uses symbol versions.
 export_llndk_headers list of string, list of llndk headers to re-export include directories from.
 override_export_include_dirs list of string, list of directories relative to the Blueprints file that willbe added to the include path (using -I) for any module that links against the LLNDK variant of this module, replacing any that were listed outside the llndk clause.
 private bool, whether this module can be directly depended upon by libs that are installed to /vendor and /product. When set to true, this module can only be depended on by VNDK libraries, not vendor nor product libraries. This effectively hides this module from non-system modules. Default value is false.
 llndk_headers bool, if true, make this module available to provide headers to other modules that set llndk.symbol_file.
 moved_to_apex bool, moved_to_apex marks this module has having been distributed through an apex module.
 local_include_dirs configurable list of string, list of directories relative to the Blueprints file that will be added to the include path using -I
 logtags list of string, *.logtags files, to combine together in order to generate the /system/etc/event-log-tags file
lto
Lto must violate capitalization style for acronyms so that it can be referred to in blueprint files as "lto"
 never bool
 thin bool
 lto_O0 bool, Use --lto-O0 flag.
 min_sdk_version string, Minimum OS API level supported by this C or C++ module. This property becomes the value of the __ANDROID_API__ macro. When the C or C++ module is included in an APEX or an APK, this property is also used to ensure that the min_sdk_version of the containing module is not older (i.e. less) than this module's min_sdk_version. When not set, this property defaults to the value of sdk_version. When this is set to "apex_inherit", this tracks min_sdk_version of the containing APEX. When the module is not built for an APEX, "apex_inherit" defaults to sdk_version.
 multilib interface
 native_bridge_supported bool, Whether this module is built for non-native architectures (also known as native bridge binary)
 native_coverage bool
 no_crt_pad_segment bool, don't link in crt_pad_segment. This flag is currently only used internal to soong for testing and for vndk prebuilt shared libraries.
 no_full_install bool, When set to true, this module is not installed to the full install path (ex: under out/target/product/<name>/<partition>). It can be installed only to the packaging modules like android_filesystem.
 no_libcrt bool, don't link in libclang_rt.builtins-*.a
 nocrt bool, don't link in crt_begin and crt_end. This flag should only be necessary for compiling crt or libc.
 odm_available bool, This is the same as the "vendor_available" except that the install path of the vendor variant is /odm or /vendor/odm. By replacing "vendor_available: true" with "odm_available: true", the module will install its vendor variant to the /odm partition or /vendor/odm. As the modules with "odm_available: true" still create the vendor variants, they can link to the other vendor modules as the vendor_available modules do. Also, the vendor modules can link to odm_available modules. It may not be used for VNDK modules.
 odm_dlkm_specific bool, Install to partition odm_dlkm when set to true.
 openmp bool, Build and link with OpenMP
 optimize_for_size bool, Aggresively trade performance for smaller binary size. This should only be used for on-device binaries that are rarely executed and not performance critical.
orderfile
 instrumentation bool
 order_file_path string
 load_order_file bool
 cflags list of string, Additional compiler flags to use when building this module for orderfile profiling.
 overrides list of string, Names of modules to be overridden. Listed modules can only be other shared libraries (in Make or Soong). This does not completely prevent installation of the overridden libraries, but if both binaries would be installed by default (in PRODUCT_PACKAGES) the other library will be removed from PRODUCT_PACKAGES.
 owner string, vendor who owns this module
 pack_relocations bool, Generate compact dynamic relocation table, default true.
 product_available bool, whether this module should be allowed to be directly depended by other modules with `product_specific: true` or `product_available: true`. If set to true, an additional product variant will be built separately that is limited to the set of libraries and headers that are exposed to /product modules. The product variant may be used with a different (newer) /system, so it shouldn't have any unversioned runtime dependencies, or make assumptions about the system that may not be true in the future. If set to false, this module becomes inaccessible from /product modules. Different from the 'vendor_available' property, the modules with vndk: {enabled: true} don't have to define 'product_available'. The VNDK library without 'product_available' may not be depended on by any other modules that has product variants including the product available VNDKs. Nothing happens if BOARD_VNDK_VERSION isn't set in the BoardConfig.mk and PRODUCT_PRODUCT_VNDK_VERSION isn't set.
 product_specific bool, whether this module is specific to a software configuration of a product (e.g. country, network operator, etc). When set to true, it is installed into /product (or /system/product if product partition does not exist).
product_variables.arc
cflags
  []string
exclude_srcs
  []string
header_libs
  []string
include_dirs
  []string
shared_libs
  []string
static_libs
  []string
srcs
  []string
whole_static_libs
  []string
product_variables.binder32bit
cflags
  []string
product_variables.build_from_text_stub
static_libs
  []string
exclude_static_libs
  []string
product_variables.debuggable
cflags
  []string
cppflags
  []string
init_rc
  []string
required
  []string
host_required
  []string
target_required
  []string
strip.all
  *bool
strip.keep_symbols
  *bool
strip.keep_symbols_and_debug_frame
  *bool
static_libs
  []string
exclude_static_libs
  []string
whole_static_libs
  []string
shared_libs
  []string
srcs
  []string
exclude_srcs
  []string
product_variables.enforce_vintf_manifest
cflags
  []string
product_variables.eng
cflags
  []string
cppflags
  []string
lto.never
  *bool
sanitize.address
  *bool
product_variables.malloc_low_memory
cflags
  []string
shared_libs
  []string
whole_static_libs
  []string
static_libs
  []string
exclude_static_libs
  []string
srcs
  []string
header_libs
  []string
product_variables.malloc_pattern_fill_contents
cflags
  []string
product_variables.malloc_zero_contents
cflags
  []string
product_variables.native_coverage
srcs
  []string
exclude_srcs
  []string
product_variables.override_rs_driver
cflags
  []string
product_variables.platform_sdk_version
asflags
  []string
cflags
  []string
product_variables.release_aidl_use_unfrozen
cflags
  []string
required
  []string
vintf_fragment_modules
  []string
product_variables.safestack
cflags
  []string
product_variables.selinuxignoreneverallows
required
  []string
product_variables.shipping_api_level
cflags
  []string
product_variables.treble_linker_namespaces
cflags
  []string
product_variables.uml
cppflags
  []string
product_variables.unbundled_build
enabled Configurable[bool]
 Configurable[bool] proptools.Configurable[bool]
 proprietary bool, whether this is a proprietary vendor module, and should be installed into /vendor
proto
 export_proto_headers bool, export headers generated from .proto sources
 type string, Proto generator type. C++: full or lite. Java: micro, nano, stream, or lite.
 plugin string, Proto plugin to use as the generator. Must be a cc_binary_host module.
 include_dirs list of string, list of directories that will be added to the protoc include paths.
 local_include_dirs list of string, list of directories relative to the bp file that will be added to the protoc include paths.
 canonical_path_from_root bool, whether to identify the proto files from the root of the source tree (the original method in Android, useful for android-specific protos), or relative from where they were specified (useful for external/third party protos). This defaults to true today, but is expected to default to false in the future.
 static bool, Link statically against the protobuf runtime
 ramdisk bool, Whether this module is installed to ramdisk
 ramdisk_available bool, Make this module available when building for ramdisk. On device without a dedicated recovery partition, the module is only available after switching root into /first_stage_ramdisk. To expose the module before switching root, install the recovery variant instead.
 recovery bool, Whether this module is installed to recovery partition
 recovery_available bool, Make this module available when building for recovery
 relative_install_path string, install to a subdirectory of the default install path for the module
renderscript
 include_dirs list of string, list of directories that will be added to the llvm-rs-cc include paths
 flags list of string, list of flags that will be passed to llvm-rs-cc
 target_api string, Renderscript API level to target
 required configurable list of string, names of other modules to install if this module is installed
 rtti bool, pass -frtti instead of -fno-rtti
 runtime_libs list of string, list of modules that should be installed with this module. This is similar to 'required' but '.vendor' suffix will be appended to the module names if the shared libraries have vendor variants and this module uses VNDK.
sanitize SanitizeUserProps
 never bool, Prevent use of any sanitizers on this module
 address bool, ASan (Address sanitizer), incompatible with static binaries. Always runs in a diagnostic mode. Use of address sanitizer disables cfi sanitizer. Hwaddress sanitizer takes precedence over this sanitizer.
 thread bool, TSan (Thread sanitizer), incompatible with static binaries and 32 bit architectures. Always runs in a diagnostic mode. Use of thread sanitizer disables cfi and scudo sanitizers. Hwaddress sanitizer takes precedence over this sanitizer.
 hwaddress bool, HWASan (Hardware Address sanitizer). Use of hwasan sanitizer disables cfi, address, thread, and scudo sanitizers.
 all_undefined bool, Undefined behavior sanitizer
 undefined bool, Subset of undefined behavior sanitizer
 misc_undefined list of string, List of specific undefined behavior sanitizers to enable
 fuzzer bool, Fuzzer, incompatible with static binaries.
 safestack bool, safe-stack sanitizer, incompatible with 32-bit architectures.
 cfi bool, cfi sanitizer, incompatible with asan, hwasan, fuzzer, or Darwin
 integer_overflow bool, signed/unsigned integer overflow sanitizer, incompatible with Darwin.
 scudo bool, scudo sanitizer, incompatible with asan, hwasan, tsan This should not be used in Android 11+ : https://source.android.com/devices/tech/debug/scudo deprecated
 scs bool, shadow-call-stack sanitizer, only available on arm64/riscv64.
 memtag_heap bool, Memory-tagging, only available on arm64 if diag.memtag unset or false, enables async memory tagging
 memtag_stack bool, Memory-tagging stack instrumentation, only available on arm64 Adds instrumentation to detect stack buffer overflows and use-after-scope using MTE.
 memtag_globals bool, Memory-tagging globals instrumentation, only available on arm64 Adds instrumentation to detect global buffer overflows using MTE.
 writeonly bool, A modifier for ASAN and HWASAN for write only instrumentation
diag
Sanitizers to run in the diagnostic mode (as opposed to the release mode). Replaces abort() on error with a human-readable error message. Address and Thread sanitizers always run in diagnostic mode.
 undefined bool, Undefined behavior sanitizer, diagnostic mode
 cfi bool, cfi sanitizer, diagnostic mode, incompatible with asan, hwasan, fuzzer, or Darwin
 integer_overflow bool, signed/unsigned integer overflow sanitizer, diagnostic mode, incompatible with Darwin.
 memtag_heap bool, Memory-tagging, only available on arm64 requires sanitizer.memtag: true if set, enables sync memory tagging
 misc_undefined list of string, List of specific undefined behavior sanitizers to enable in diagnostic mode
 no_recover list of string, List of sanitizers to pass to -fno-sanitize-recover results in only the first detected error for these sanitizers being reported and program then exits with a non-zero exit code.
config
Sanitizers to run with flag configuration specified
 cfi_assembly_support bool, Enables CFI support flags for assembly-heavy libraries
 recover list of string, List of sanitizers to pass to -fsanitize-recover allows execution to continue for these sanitizers to detect multiple errors rather than only the first one
 blocklist string, value to pass to -fsanitize-ignorelist
 sdk_variant_only bool, If true, always create an sdk variant and don't create a platform variant.
 sdk_version string, The API level that this module is built against. The APIs of this API level will be visible at build time, but use of any APIs newer than min_sdk_version will render the module unloadable on older devices. In the future it will be possible to weakly-link new APIs, making the behavior match Java: such modules will load on older devices, but calling new APIs on devices that do not support them will result in a crash. This property has the same behavior as sdk_version does for Java modules. For those familiar with Android Gradle, the property behaves similarly to how compileSdkVersion does for Java code. In addition, setting this property causes two variants to be built, one for the platform and one for apps.
shared StaticOrSharedProperties
 srcs configurable list of string
 tidy_disabled_srcs list of string
 tidy_timeout_srcs list of string
sanitized Sanitized
none
 srcs list of string
address
 srcs list of string
hwaddress
 srcs list of string
 cflags configurable list of string
 enabled bool
 whole_static_libs configurable list of string
 static_libs configurable list of string
 shared_libs configurable list of string
 system_shared_libs list of string
 export_shared_lib_headers list of string
 export_static_lib_headers list of string
 apex_available list of string
 installable bool
 shared_libs configurable list of string, list of modules that should be dynamically linked into this module.
 soc_specific bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist).
static StaticOrSharedProperties
 srcs configurable list of string
 tidy_disabled_srcs list of string
 tidy_timeout_srcs list of string
sanitized Sanitized
none
 srcs list of string
address
 srcs list of string
hwaddress
 srcs list of string
 cflags configurable list of string
 enabled bool
 whole_static_libs configurable list of string
 static_libs configurable list of string
 shared_libs configurable list of string
 system_shared_libs list of string
 export_shared_lib_headers list of string
 export_static_lib_headers list of string
 apex_available list of string
 installable bool
 static_libs configurable list of string, list of modules that should be statically linked into this module.
 static_ndk_lib bool
 stem string, set the name of the output
 stl string, Select the STL library to use. Possible values are "libc++", "libc++_static", "libstdc++", or "none". Leave blank to select the default.
strip
 none bool, Device modules default to stripping enabled leaving mini debuginfo. Host modules default to stripping disabled, but can be enabled by setting any other strip boolean property.
 all bool, all forces stripping everything, including the mini debug info.
 keep_symbols bool, keep_symbols enables stripping but keeps all symbols.
 keep_symbols_list list of string, keep_symbols_list specifies a list of symbols to keep if keep_symbols is enabled. If it is unset then all symbols are kept.
 keep_symbols_and_debug_frame bool, keep_symbols_and_debug_frame enables stripping but keeps all symbols and debug frames.
stubs StubsProperties
Generate stubs to make this library accessible to APEXes.
 symbol_file string, Relative path to the symbol map. The symbol map provides the list of symbols that are exported for stubs variant of this library.
 versions list of string, List versions to generate stubs libs for. The version name "current" is always implicitly added.
 implementation_installable bool, Whether to not require the implementation of the library to be installed if a client of the stubs is installed. Defaults to true; set to false if the implementation is made available by some other means, e.g. in a Microdroid virtual machine.
 suffix string, set suffix of the name of the output
 system_dlkm_specific bool, Install to partition system_dlkm when set to true.
 system_ext_specific bool, whether this module extends system. When set to true, it is installed into /system_ext (or /system/system_ext if system_ext partition does not exist).
 system_shared_libs list of string, list of system libraries that will be dynamically linked to shared library and executable modules. If unset, generally defaults to libc, libm, and libdl. Set to [] to prevent linking against the defaults.
 target interface
target.android
 compile_multilib string
 enabled bool
target.apex
 exclude_shared_libs list of string, list of shared libs that should not be used to build the apex variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the apex variant of the C/C++ module.
target.host
 compile_multilib string
target.non_apex
 exclude_shared_libs list of string, list of shared libs that should not be used to build the non-apex variant of the C/C++ module.
target.platform
header_abi_checker headerAbiCheckerProperties
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 required list of string, List of modules required by the core variant.
 exclude_required list of string, List of modules not required by the core variant.
 cflags list of string, List of additional cflags that should be used to build the platform variant of the C/C++ module.
 shared_libs list of string, list of shared libs that should be use to build the platform variant of a module that sets sdk_version. This should rarely be necessary, in most cases the same libraries are available for the SDK and platform variants.
 header_libs list of string, list of ehader libs that only should be used to build platform variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the platform variant of the C/C++ module.
target.product
 override_export_include_dirs list of string, list of exported include directories, like export_include_dirs, that will be applied to vendor or product variant of this library. This will overwrite any other declarations.
 srcs list of string, list of source files that should only be used in vendor or product variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build vendor or product variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build vendor or product variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build vendor or product variant of the C/C++ module.
 suffix string, set suffix of the name of the output
header_abi_checker headerAbiCheckerProperties
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 no_stubs bool, Disable stubs for vendor/product variants This is a workaround to keep `stubs` only for "core" variant (not product/vendor). It would be nice if we could put `stubs` into a `target: { core: {} }` block but it's not supported in soong yet. This could be removed/simplified once we have a better syntax.
 shared_libs list of string, list of shared libs that only should be used to build vendor or product variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build vendor or product variant of the C/C++ module.
 header_libs list of string, list of header libs that only should be used to build vendor or product variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor or product variant of the C/C++ module.
 version_script string, version script for vendor or product variant
target.ramdisk
 exclude_srcs list of string, list of source files that should not be used to build the ramdisk variants of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the ramdisk variants of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build the ramdisk variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the ramdisk variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the ramdisk variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the ramdisk variant of the C/C++ module.
target.recovery
 srcs list of string, list of source files that should only be used in the recovery variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build the recovery variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the recovery variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build the recovery variant of the C/C++ module.
 shared_libs list of string, list of shared libs that only should be used to build the recovery variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build the recovery variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the recovery variant of the C/C++ module.
 required list of string, List of modules required by the recovery variant.
 exclude_required list of string, List of modules not required by the recovery variant.
target.vendor
 shared_libs list of string, list of shared libs that only should be used to build vendor or product variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build vendor or product variant of the C/C++ module.
 header_libs list of string, list of header libs that only should be used to build vendor or product variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor or product variant of the C/C++ module.
 version_script string, version script for vendor or product variant
 override_export_include_dirs list of string, list of exported include directories, like export_include_dirs, that will be applied to vendor or product variant of this library. This will overwrite any other declarations.
 srcs list of string, list of source files that should only be used in vendor or product variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build vendor or product variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build vendor or product variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build vendor or product variant of the C/C++ module.
 suffix string, set suffix of the name of the output
header_abi_checker headerAbiCheckerProperties
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 no_stubs bool, Disable stubs for vendor/product variants This is a workaround to keep `stubs` only for "core" variant (not product/vendor). It would be nice if we could put `stubs` into a `target: { core: {} }` block but it's not supported in soong yet. This could be removed/simplified once we have a better syntax.
target.vendor_ramdisk
 exclude_shared_libs list of string, list of shared libs that should not be used to build the vendor ramdisk variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the vendor ramdisk variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor ramdisk variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build the ramdisk variants of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the ramdisk variants of the C/C++ module.
 target_required list of string, names of other modules to install on target if this module is installed
 team string, The team (defined by the owner/vendor) who owns the property.
 test_suites list of string, list of compatibility suites (for example "cts", "vts") that the module should be installed into.
 tidy bool, whether to run clang-tidy over C-like sources.
 tidy_checks list of string, Extra checks to enable or disable in clang-tidy
 tidy_checks_as_errors list of string, Checks that should be treated as errors.
 tidy_disabled_srcs list of string, list of source files that should not be compiled with clang-tidy.
 tidy_flags list of string, Extra flags to pass to clang-tidy
 tidy_timeout_srcs list of string, list of source files that should not be compiled by clang-tidy when TIDY_TIMEOUT is set.
 unexported_symbols_list string, local file name to pass to the linker as -unexported_symbols_list
 unique_host_soname bool, rename host libraries to prevent overlap with system installed libraries
 use_generic_config bool, Set to true if this module must be generic and does not require product-specific information. To be included in the system image, this property must be set to true.
 use_version_lib bool, make android::build:GetBuildNumber() available containing the build ID.
 vendor bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist). Use `soc_specific` instead for better meaning.
 vendor_available bool, whether this module should be allowed to be directly depended by other modules with `vendor: true`, `proprietary: true`, or `vendor_available:true`. If set to true, two variants will be built separately, one like normal, and the other limited to the set of libraries and headers that are exposed to /vendor modules. The vendor variant may be used with a different (newer) /system, so it shouldn't have any unversioned runtime dependencies, or make assumptions about the system that may not be true in the future. If set to false, this module becomes inaccessible from /vendor modules. The modules with vndk: {enabled: true} must define 'vendor_available' to 'true'. Nothing happens if BOARD_VNDK_VERSION isn't set in the BoardConfig.mk
 vendor_dlkm_specific bool, Install to partition vendor_dlkm when set to true.
vendor_public_library vendorPublicLibraryProperties
If this is a vendor public library, properties to describe the vendor public library stubs.
 symbol_file string, Relative path to the symbol map.
 unversioned bool, Whether the system library uses symbol versions.
 export_public_headers list of string, list of header libs to re-export include directories from.
 override_export_include_dirs list of string, list of directories relative to the Blueprints file that willbe added to the include path (using -I) for any module that links against the LLNDK variant of this module, replacing any that were listed outside the llndk clause.
 vendor_ramdisk bool, Whether this module is installed to vendor ramdisk
 vendor_ramdisk_available bool, Make this module available when building for vendor ramdisk. On device without a dedicated recovery partition, the module is only available after switching root into /first_stage_ramdisk. To expose the module before switching root, install the recovery variant instead.
 version_script string, local file name to pass to the linker as --version-script. Not supported on darwin, and will fail to build if provided to the darwin variant of a module.
 vintf_fragment_modules configurable list of string, vintf_fragment Modules required from this module.
 vintf_fragments configurable list of string, VINTF manifest fragments to be installed if this module is installed
 visibility list of string, Controls the visibility of this module to other modules. Allowable values are one or more of these formats:

 ["//visibility:public"]: Anyone can use this module.
 ["//visibility:private"]: Only rules in the module's package (not its subpackages) can use
     this module.
 ["//visibility:override"]: Discards any rules inherited from defaults or a creating module.
     Can only be used at the beginning of a list of visibility rules.
 ["//some/package:__pkg__", "//other/package:__pkg__"]: Only modules in some/package and
     other/package (defined in some/package/*.bp and other/package/*.bp) have access to
     this module. Note that sub-packages do not have access to the rule; for example,
     //some/package/foo:bar or //other/package/testing:bla wouldn't have access. __pkg__
     is a special module and must be used verbatim. It represents all of the modules in the
     package.
 ["//project:__subpackages__", "//other:__subpackages__"]: Only modules in packages project
     or other or in one of their sub-packages have access to this module. For example,
     //project:rule, //project/library:lib or //other/testing/internal:munge are allowed
     to depend on this rule (but not //independent:evil)
 ["//project"]: This is shorthand for ["//project:__pkg__"]
 [":__subpackages__"]: This is shorthand for ["//project:__subpackages__"] where
     //project is the module's package. e.g. using [":__subpackages__"] in
     packages/apps/Settings/Android.bp is equivalent to
     //packages/apps/Settings:__subpackages__.
 ["//visibility:legacy_public"]: The default visibility, behaves as //visibility:public
     for now. It is an error if it is used in a module.

If a module does not specify the `visibility` property then it uses the `default_visibility` property of the `package` module in the module's package. If the `default_visibility` property is not set for the module's package then it will use the `default_visibility` of its closest ancestor package for which a `default_visibility` property is specified. If no `default_visibility` property can be found then the module uses the global default of `//visibility:legacy_public`. The `visibility` property has no effect on a defaults module although it does apply to any non-defaults module that uses it. To set the visibility of a defaults module, use the `defaults_visibility` property on the defaults module; not to be confused with the `default_visibility` property on the package module. See https://android.googlesource.com/platform/build/soong/+/main/README.md#visibility for more details.
 whole_program_vtables bool, Use -fwhole-program-vtables cflag.
 whole_static_libs configurable list of string, list of modules whose object files should be linked into this module in their entirety. For static library modules, all of the .o files from the intermediate directory of the dependency will be linked into this modules .a file. For a shared library, the dependency's .a file will be linked into this module using -Wl,--whole-archive.
 yacc YaccProperties

fdo_profile

 name string, The name of the module. Must be unique across all modules.
 arch interface
 compile_multilib string, control whether this module compiles for 32-bit, 64-bit, or both. Possible values are "32" (compile for 32-bit only), "64" (compile for 64-bit only), "both" (compile for both architectures), or "first" (compile for 64-bit on a 64-bit platform, and 32-bit on a 32-bit platform).
 debug_ramdisk bool, Whether this module is installed to debug ramdisk
 device_specific bool, whether this module is specific to a device, not only for SoC, but also for off-chip peripherals. When set to true, it is installed into /odm (or /vendor/odm if odm partition does not exist, or /system/vendor/odm if both odm and vendor partitions do not exist). This implies `soc_specific:true`.
dist Dist
configuration to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 targets list of string, Copy the output of this module to the $DIST_DIR when `dist` is specified on the command line and any of these targets are also on the command line, or otherwise built
 dest string, The name of the output artifact. This defaults to the basename of the output of the module.
 dir string, The directory within the dist directory to store the artifact. Defaults to the top level directory ("").
 suffix string, A suffix to add to the artifact file name (before any extension).
 append_artifact_with_product bool, If true, then the artifact file will be appended with _<product name>. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be foo_coral.apk. If false, there is no change to the artifact file name.
 prepend_artifact_with_product bool, If true, then the artifact file will be prepended with <product name>-. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be coral-foo.apk. If false, there is no change to the artifact file name.
 tag string, A string tag to select the OutputFiles associated with the tag. If no tag is specified then it will select the default dist paths provided by the module type. If a tag of "" is specified then it will return the default output files provided by the modules, i.e. the result of calling OutputFiles("").
 dists list of Dist, a list of configurations to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 enabled configurable bool, emit build rules for this module Disabling a module should only be done for those modules that cannot be built in the current environment. Modules that can build in the current environment but are not usually required (e.g. superceded by a prebuilt) should not be disabled as that will prevent them from being built by the checkbuild target and so prevent early detection of changes that have broken those modules.
 host_required list of string, names of other modules to install on host if this module is installed
 init_rc configurable list of string, init.rc files to be installed if this module is installed
 licenses list of string, Describes the licenses applicable to this module. Must reference license modules.
 multilib interface
 native_bridge_supported bool, Whether this module is built for non-native architectures (also known as native bridge binary)
 no_full_install bool, When set to true, this module is not installed to the full install path (ex: under out/target/product/<name>/<partition>). It can be installed only to the packaging modules like android_filesystem.
 odm_dlkm_specific bool, Install to partition odm_dlkm when set to true.
 overrides list of string, List of module names that are prevented from being installed when this module gets installed.
 owner string, vendor who owns this module
 product_specific bool, whether this module is specific to a software configuration of a product (e.g. country, network operator, etc). When set to true, it is installed into /product (or /system/product if product partition does not exist).
product_variables.debuggable
init_rc
  []string
required
  []string
host_required
  []string
target_required
  []string
product_variables.release_aidl_use_unfrozen
required
  []string
vintf_fragment_modules
  []string
product_variables.selinuxignoreneverallows
required
  []string
product_variables.unbundled_build
enabled Configurable[bool]
 Configurable[bool] proptools.Configurable[bool]
 profile configurable string
 proprietary bool, whether this is a proprietary vendor module, and should be installed into /vendor
 ramdisk bool, Whether this module is installed to ramdisk
 recovery bool, Whether this module is installed to recovery partition
 required configurable list of string, names of other modules to install if this module is installed
 soc_specific bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist).
 system_dlkm_specific bool, Install to partition system_dlkm when set to true.
 system_ext_specific bool, whether this module extends system. When set to true, it is installed into /system_ext (or /system/system_ext if system_ext partition does not exist).
 target interface
target.android
 compile_multilib string
 enabled bool
target.host
 compile_multilib string
 target_required list of string, names of other modules to install on target if this module is installed
 team string, The team (defined by the owner/vendor) who owns the property.
 use_generic_config bool, Set to true if this module must be generic and does not require product-specific information. To be included in the system image, this property must be set to true.
 vendor bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist). Use `soc_specific` instead for better meaning.
 vendor_dlkm_specific bool, Install to partition vendor_dlkm when set to true.
 vendor_ramdisk bool, Whether this module is installed to vendor ramdisk
 vintf_fragment_modules configurable list of string, vintf_fragment Modules required from this module.
 vintf_fragments configurable list of string, VINTF manifest fragments to be installed if this module is installed
 visibility list of string, Controls the visibility of this module to other modules. Allowable values are one or more of these formats:

 ["//visibility:public"]: Anyone can use this module.
 ["//visibility:private"]: Only rules in the module's package (not its subpackages) can use
     this module.
 ["//visibility:override"]: Discards any rules inherited from defaults or a creating module.
     Can only be used at the beginning of a list of visibility rules.
 ["//some/package:__pkg__", "//other/package:__pkg__"]: Only modules in some/package and
     other/package (defined in some/package/*.bp and other/package/*.bp) have access to
     this module. Note that sub-packages do not have access to the rule; for example,
     //some/package/foo:bar or //other/package/testing:bla wouldn't have access. __pkg__
     is a special module and must be used verbatim. It represents all of the modules in the
     package.
 ["//project:__subpackages__", "//other:__subpackages__"]: Only modules in packages project
     or other or in one of their sub-packages have access to this module. For example,
     //project:rule, //project/library:lib or //other/testing/internal:munge are allowed
     to depend on this rule (but not //independent:evil)
 ["//project"]: This is shorthand for ["//project:__pkg__"]
 [":__subpackages__"]: This is shorthand for ["//project:__subpackages__"] where
     //project is the module's package. e.g. using [":__subpackages__"] in
     packages/apps/Settings/Android.bp is equivalent to
     //packages/apps/Settings:__subpackages__.
 ["//visibility:legacy_public"]: The default visibility, behaves as //visibility:public
     for now. It is an error if it is used in a module.

If a module does not specify the `visibility` property then it uses the `default_visibility` property of the `package` module in the module's package. If the `default_visibility` property is not set for the module's package then it will use the `default_visibility` of its closest ancestor package for which a `default_visibility` property is specified. If no `default_visibility` property can be found then the module uses the global default of `//visibility:legacy_public`. The `visibility` property has no effect on a defaults module although it does apply to any non-defaults module that uses it. To set the visibility of a defaults module, use the `defaults_visibility` property on the defaults module; not to be confused with the `default_visibility` property on the package module. See https://android.googlesource.com/platform/build/soong/+/main/README.md#visibility for more details.

kernel_headers

kernel_headers retrieves the list of kernel headers directories from TARGET_BOARD_KERNEL_HEADERS and TARGET_PRODUCT_KERNEL_HEADERS variables in a makefile for compilation. See https://android.googlesource.com/platform/build/+/main/core/config.mk for more details on them.
 name string, The name of the module. Must be unique across all modules.
 srcs configurable list of string, list of source files used to compile the C/C++ module. May be .c, .cpp, or .S files. srcs may reference the outputs of other modules that produce source files like genrule or filegroup using the syntax ":module".
 exclude_srcs configurable list of string, list of source files that should not be used to build the C/C++ module. This is most useful in the arch/multilib variants to remove non-common files
 defaults list of string
 host_supported bool, If set to true, build a variant of the module for the host. Defaults to false.
 device_supported bool, If set to true, build a variant of the module for the device. Defaults to true.
 afdo bool, Afdo allows developers self-service enroll for automatic feedback-directed optimization using profile data.
aidl
 libs list of string, List of aidl_library modules
 include_dirs list of string, list of directories that will be added to the aidl include paths.
 local_include_dirs list of string, list of directories relative to the Blueprints file that will be added to the aidl include paths.
 generate_traces bool, whether to generate traces (for systrace) for this interface
 flags list of string, list of flags that will be passed to the AIDL compiler
 export_aidl_headers bool, export headers generated from .aidl sources
 allow_undefined_symbols bool, allow the module to contain undefined symbols. By default, modules cannot contain undefined symbols that are not satisified by their immediate dependencies. Set this flag to true to remove --no-undefined from the linker flags. This flag should only be necessary for compiling low-level libraries like libc.
 apex_available list of string, Availability of this module in APEXes. Only the listed APEXes can contain this module. If the module has stubs then other APEXes and the platform may access it through them (subject to visibility). "//apex_available:anyapex" is a pseudo APEX name that matches to any APEX. "//apex_available:platform" refers to non-APEX partitions like "system.img". Prefix pattern (com.foo.*) can be used to match with any APEX name with the prefix(com.foo.). Default is ["//apex_available:platform"].
 arch interface
 asflags list of string, list of module-specific flags that will be used for .S compiles
 bootstrap bool, Allows this module to use non-APEX version of libraries. Useful for building binaries that are started before APEXes are activated.
 bpf_target bool, cc Build rules targeting BPF must set this to true. The correct fix is to ban targeting bpf in cc rules instead use bpf_rules. (b/323415017)
buildstubs bool
 bool bool
 c_std string, C standard version to use. Can be a specific version (such as "gnu11"), "experimental" (which will use draft versions like C1x when available), or the empty string (which will use the default).
 cflags configurable list of string, list of module-specific flags that will be used for C and C++ compiles.
 clang bool, Deprecated. true is the default, false is invalid.
 clang_asflags list of string, list of module-specific flags that will be used for .S compiles when compiling with clang
 clang_cflags list of string, list of module-specific flags that will be used for C and C++ compiles when compiling with clang
 clang_verify bool, Add "-Xclang -verify" to the cflags and appends "touch $out" to the clang command line.
 cmake_snapshot_supported bool, Allows this module to be included in CMake release snapshots to be built outside of Android build system and source tree.
 compile_multilib string, control whether this module compiles for 32-bit, 64-bit, or both. Possible values are "32" (compile for 32-bit only), "64" (compile for 64-bit only), "both" (compile for both architectures), or "first" (compile for 64-bit on a 64-bit platform, and 32-bit on a 32-bit platform).
 conlyflags list of string, list of module-specific flags that will be used for C compiles
 cpp_std string, C++ standard version to use. Can be a specific version (such as "gnu++11"), "experimental" (which will use draft versions like C++1z when available), or the empty string (which will use the default).
 cppflags configurable list of string, list of module-specific flags that will be used for C++ compiles
 debug_ramdisk bool, Whether this module is installed to debug ramdisk
 device_first_generated_headers configurable list of string, Same as generated_headers, but the dependencies will be added based on the first supported arch variant and the device os variant. This can be useful for creating a host tool that embeds a copy of a device tool, that it then extracts and pushes to a device at runtime.
 device_specific bool, whether this module is specific to a device, not only for SoC, but also for off-chip peripherals. When set to true, it is installed into /odm (or /vendor/odm if odm partition does not exist, or /system/vendor/odm if both odm and vendor partitions do not exist). This implies `soc_specific:true`.
dist Dist
configuration to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 targets list of string, Copy the output of this module to the $DIST_DIR when `dist` is specified on the command line and any of these targets are also on the command line, or otherwise built
 dest string, The name of the output artifact. This defaults to the basename of the output of the module.
 dir string, The directory within the dist directory to store the artifact. Defaults to the top level directory ("").
 suffix string, A suffix to add to the artifact file name (before any extension).
 append_artifact_with_product bool, If true, then the artifact file will be appended with _<product name>. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be foo_coral.apk. If false, there is no change to the artifact file name.
 prepend_artifact_with_product bool, If true, then the artifact file will be prepended with <product name>-. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be coral-foo.apk. If false, there is no change to the artifact file name.
 tag string, A string tag to select the OutputFiles associated with the tag. If no tag is specified then it will select the default dist paths provided by the module type. If a tag of "" is specified then it will return the default output files provided by the modules, i.e. the result of calling OutputFiles("").
 dists list of Dist, a list of configurations to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 double_loadable bool, whether this module is capable of being loaded with other instance (possibly an older version) of the same module in the same process. Currently, a shared library that is a member of VNDK (vndk: {enabled: true}) can be double loaded in a vendor process if the library is also a (direct and indirect) dependency of an LLNDK library. Such libraries must be explicitly marked as `double_loadable: true` by the owner, or the dependency from the LLNDK lib should be cut if the lib is not designed to be double loaded.
 dynamic_list string, local file name to pass to the linker as --dynamic-list. Not supported on darwin, and will fail to build if provided to the darwin variant of a module.
 enabled configurable bool, emit build rules for this module Disabling a module should only be done for those modules that cannot be built in the current environment. Modules that can build in the current environment but are not usually required (e.g. superceded by a prebuilt) should not be disabled as that will prevent them from being built by the checkbuild target and so prevent early detection of changes that have broken those modules.
 exclude_generated_sources list of string, list of generated sources that should not be used to build the C/C++ module. This is most useful in the arch/multilib variants to remove non-common files
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with this module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build this module
 exclude_static_libs list of string, list of static libs that should not be used to build this module
 export_cflags list of string, list of plain cc flags to be used for any module that links against this module.
 export_generated_headers list of string, list of generated headers to re-export include directories from. Entries must be present in generated_headers.
 export_header_lib_headers configurable list of string, list of header libraries to re-export include directories from. Entries must be present in header_libs.
 export_include_dirs configurable list of string, list of directories relative to the Blueprints file that will be added to the include path (using -I) for this module and any module that links against this module. Directories listed in export_include_dirs do not need to be listed in local_include_dirs.
 export_shared_lib_headers list of string, list of shared libraries to re-export include directories from. Entries must be present in shared_libs.
 export_static_lib_headers list of string, list of static libraries to re-export include directories from. Entries must be present in static_libs.
 export_system_include_dirs list of string, list of directories that will be added to the system include path using -isystem for this module and any module that links against this module.
 exported_symbols_list string, local file name to pass to the linker as -exported_symbols_list
 force_symbols_not_weak_list string, local file name to pass to the linker as -force_symbols_not_weak_list
 force_symbols_weak_list string, local file name to pass to the linker as -force_symbols_weak_list
 generated_headers configurable list of string, list of generated headers to add to the include path. These are the names of genrule modules.
 generated_sources list of string, list of generated sources to compile. These are the names of gensrcs or genrule modules.
 gnu_extensions bool, if set to false, use -std=c++* instead of -std=gnu++*
 group_static_libs bool, deprecated and ignored because lld makes it unnecessary. See b/189475744.
header_abi_checker headerAbiCheckerProperties
Properties for ABI compatibility checker.
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 header_libs configurable list of string, list of modules that should only provide headers for this module.
 host_cross_supported bool, If set to true, build a variant of the module for the host cross. Defaults to true.
 host_ldlibs list of string, -l arguments to pass to linker for host-provided shared libraries
 host_required list of string, names of other modules to install on host if this module is installed
 ignore_max_page_size bool, ignore max page size. By default, max page size must be the max page size set for the target.
 include_build_directory bool, Add the directory containing the Android.bp file to the list of include directories. Defaults to true.
 include_dirs configurable list of string, list of directories relative to the root of the source tree that will be added to the include path using -I. If possible, don't use this. If adding paths from the current directory use local_include_dirs, if adding paths from other modules use export_include_dirs in that module.
 init_rc configurable list of string, init.rc files to be installed if this module is installed
 inject_bssl_hash bool, Inject boringssl hash into the shared library. This is only intended for use by external/boringssl.
 install_in_root bool, Install output directly in {partition}/, not in any subdir. This is only intended for use by init_first_stage.
 install_in_xbin bool, Install output directly in {partition}/xbin
 installable bool
 instruction_set string, the instruction set architecture to use to compile the C/C++ module.
 ldflags list of string, list of module-specific flags that will be used for all link steps
 lex LexProperties
 licenses list of string, Describes the licenses applicable to this module. Must reference license modules.
 linker_scripts list of string, local files to pass to the linker as --script. Not supported on darwin or windows, and will fail to build if provided to the darwin or windows variant of a module.
llndk llndkLibraryProperties
If this is an LLNDK library, properties to describe the LLNDK stubs. Will be copied from the module pointed to by llndk_stubs if it is set.
 symbol_file string, Relative path to the symbol map. An example file can be seen here: TODO(danalbert): Make an example.
 export_headers_as_system bool, Whether to export any headers as -isystem instead of -I. Mainly for use by bionic/libc.
 unversioned bool, Whether the system library uses symbol versions.
 export_llndk_headers list of string, list of llndk headers to re-export include directories from.
 override_export_include_dirs list of string, list of directories relative to the Blueprints file that willbe added to the include path (using -I) for any module that links against the LLNDK variant of this module, replacing any that were listed outside the llndk clause.
 private bool, whether this module can be directly depended upon by libs that are installed to /vendor and /product. When set to true, this module can only be depended on by VNDK libraries, not vendor nor product libraries. This effectively hides this module from non-system modules. Default value is false.
 llndk_headers bool, if true, make this module available to provide headers to other modules that set llndk.symbol_file.
 moved_to_apex bool, moved_to_apex marks this module has having been distributed through an apex module.
 local_include_dirs configurable list of string, list of directories relative to the Blueprints file that will be added to the include path using -I
 logtags list of string, *.logtags files, to combine together in order to generate the /system/etc/event-log-tags file
lto
Lto must violate capitalization style for acronyms so that it can be referred to in blueprint files as "lto"
 never bool
 thin bool
 lto_O0 bool, Use --lto-O0 flag.
 min_sdk_version string, Minimum OS API level supported by this C or C++ module. This property becomes the value of the __ANDROID_API__ macro. When the C or C++ module is included in an APEX or an APK, this property is also used to ensure that the min_sdk_version of the containing module is not older (i.e. less) than this module's min_sdk_version. When not set, this property defaults to the value of sdk_version. When this is set to "apex_inherit", this tracks min_sdk_version of the containing APEX. When the module is not built for an APEX, "apex_inherit" defaults to sdk_version.
 multilib interface
 native_bridge_supported bool, Whether this module is built for non-native architectures (also known as native bridge binary)
 native_coverage bool
 no_crt_pad_segment bool, don't link in crt_pad_segment. This flag is currently only used internal to soong for testing and for vndk prebuilt shared libraries.
 no_full_install bool, When set to true, this module is not installed to the full install path (ex: under out/target/product/<name>/<partition>). It can be installed only to the packaging modules like android_filesystem.
 no_libcrt bool, don't link in libclang_rt.builtins-*.a
 nocrt bool, don't link in crt_begin and crt_end. This flag should only be necessary for compiling crt or libc.
 odm_available bool, This is the same as the "vendor_available" except that the install path of the vendor variant is /odm or /vendor/odm. By replacing "vendor_available: true" with "odm_available: true", the module will install its vendor variant to the /odm partition or /vendor/odm. As the modules with "odm_available: true" still create the vendor variants, they can link to the other vendor modules as the vendor_available modules do. Also, the vendor modules can link to odm_available modules. It may not be used for VNDK modules.
 odm_dlkm_specific bool, Install to partition odm_dlkm when set to true.
 openmp bool, Build and link with OpenMP
 optimize_for_size bool, Aggresively trade performance for smaller binary size. This should only be used for on-device binaries that are rarely executed and not performance critical.
orderfile
 instrumentation bool
 order_file_path string
 load_order_file bool
 cflags list of string, Additional compiler flags to use when building this module for orderfile profiling.
 overrides list of string, List of module names that are prevented from being installed when this module gets installed.
 owner string, vendor who owns this module
 pack_relocations bool, Generate compact dynamic relocation table, default true.
 product_available bool, whether this module should be allowed to be directly depended by other modules with `product_specific: true` or `product_available: true`. If set to true, an additional product variant will be built separately that is limited to the set of libraries and headers that are exposed to /product modules. The product variant may be used with a different (newer) /system, so it shouldn't have any unversioned runtime dependencies, or make assumptions about the system that may not be true in the future. If set to false, this module becomes inaccessible from /product modules. Different from the 'vendor_available' property, the modules with vndk: {enabled: true} don't have to define 'product_available'. The VNDK library without 'product_available' may not be depended on by any other modules that has product variants including the product available VNDKs. Nothing happens if BOARD_VNDK_VERSION isn't set in the BoardConfig.mk and PRODUCT_PRODUCT_VNDK_VERSION isn't set.
 product_specific bool, whether this module is specific to a software configuration of a product (e.g. country, network operator, etc). When set to true, it is installed into /product (or /system/product if product partition does not exist).
product_variables.arc
cflags
  []string
exclude_srcs
  []string
header_libs
  []string
include_dirs
  []string
shared_libs
  []string
static_libs
  []string
srcs
  []string
whole_static_libs
  []string
product_variables.binder32bit
cflags
  []string
product_variables.build_from_text_stub
static_libs
  []string
exclude_static_libs
  []string
product_variables.debuggable
cflags
  []string
cppflags
  []string
init_rc
  []string
required
  []string
host_required
  []string
target_required
  []string
strip.all
  *bool
strip.keep_symbols
  *bool
strip.keep_symbols_and_debug_frame
  *bool
static_libs
  []string
exclude_static_libs
  []string
whole_static_libs
  []string
shared_libs
  []string
srcs
  []string
exclude_srcs
  []string
product_variables.enforce_vintf_manifest
cflags
  []string
product_variables.eng
cflags
  []string
cppflags
  []string
lto.never
  *bool
sanitize.address
  *bool
product_variables.malloc_low_memory
cflags
  []string
shared_libs
  []string
whole_static_libs
  []string
static_libs
  []string
exclude_static_libs
  []string
srcs
  []string
header_libs
  []string
product_variables.malloc_pattern_fill_contents
cflags
  []string
product_variables.malloc_zero_contents
cflags
  []string
product_variables.native_coverage
srcs
  []string
exclude_srcs
  []string
product_variables.override_rs_driver
cflags
  []string
product_variables.platform_sdk_version
asflags
  []string
cflags
  []string
product_variables.release_aidl_use_unfrozen
cflags
  []string
required
  []string
vintf_fragment_modules
  []string
product_variables.safestack
cflags
  []string
product_variables.selinuxignoreneverallows
required
  []string
product_variables.shipping_api_level
cflags
  []string
product_variables.treble_linker_namespaces
cflags
  []string
product_variables.uml
cppflags
  []string
product_variables.unbundled_build
enabled Configurable[bool]
 Configurable[bool] proptools.Configurable[bool]
 proprietary bool, whether this is a proprietary vendor module, and should be installed into /vendor
proto
 type string, Proto generator type. C++: full or lite. Java: micro, nano, stream, or lite.
 plugin string, Proto plugin to use as the generator. Must be a cc_binary_host module.
 include_dirs list of string, list of directories that will be added to the protoc include paths.
 local_include_dirs list of string, list of directories relative to the bp file that will be added to the protoc include paths.
 canonical_path_from_root bool, whether to identify the proto files from the root of the source tree (the original method in Android, useful for android-specific protos), or relative from where they were specified (useful for external/third party protos). This defaults to true today, but is expected to default to false in the future.
 export_proto_headers bool, export headers generated from .proto sources
 static bool, Link statically against the protobuf runtime
 ramdisk bool, Whether this module is installed to ramdisk
 ramdisk_available bool, Make this module available when building for ramdisk. On device without a dedicated recovery partition, the module is only available after switching root into /first_stage_ramdisk. To expose the module before switching root, install the recovery variant instead.
 recovery bool, Whether this module is installed to recovery partition
 recovery_available bool, Make this module available when building for recovery
 relative_install_path string, install to a subdirectory of the default install path for the module
renderscript
 include_dirs list of string, list of directories that will be added to the llvm-rs-cc include paths
 flags list of string, list of flags that will be passed to llvm-rs-cc
 target_api string, Renderscript API level to target
 required configurable list of string, names of other modules to install if this module is installed
 rtti bool, pass -frtti instead of -fno-rtti
 runtime_libs list of string, list of modules that should be installed with this module. This is similar to 'required' but '.vendor' suffix will be appended to the module names if the shared libraries have vendor variants and this module uses VNDK.
sanitize SanitizeUserProps
 never bool, Prevent use of any sanitizers on this module
 address bool, ASan (Address sanitizer), incompatible with static binaries. Always runs in a diagnostic mode. Use of address sanitizer disables cfi sanitizer. Hwaddress sanitizer takes precedence over this sanitizer.
 thread bool, TSan (Thread sanitizer), incompatible with static binaries and 32 bit architectures. Always runs in a diagnostic mode. Use of thread sanitizer disables cfi and scudo sanitizers. Hwaddress sanitizer takes precedence over this sanitizer.
 hwaddress bool, HWASan (Hardware Address sanitizer). Use of hwasan sanitizer disables cfi, address, thread, and scudo sanitizers.
 all_undefined bool, Undefined behavior sanitizer
 undefined bool, Subset of undefined behavior sanitizer
 misc_undefined list of string, List of specific undefined behavior sanitizers to enable
 fuzzer bool, Fuzzer, incompatible with static binaries.
 safestack bool, safe-stack sanitizer, incompatible with 32-bit architectures.
 cfi bool, cfi sanitizer, incompatible with asan, hwasan, fuzzer, or Darwin
 integer_overflow bool, signed/unsigned integer overflow sanitizer, incompatible with Darwin.
 scudo bool, scudo sanitizer, incompatible with asan, hwasan, tsan This should not be used in Android 11+ : https://source.android.com/devices/tech/debug/scudo deprecated
 scs bool, shadow-call-stack sanitizer, only available on arm64/riscv64.
 memtag_heap bool, Memory-tagging, only available on arm64 if diag.memtag unset or false, enables async memory tagging
 memtag_stack bool, Memory-tagging stack instrumentation, only available on arm64 Adds instrumentation to detect stack buffer overflows and use-after-scope using MTE.
 memtag_globals bool, Memory-tagging globals instrumentation, only available on arm64 Adds instrumentation to detect global buffer overflows using MTE.
 writeonly bool, A modifier for ASAN and HWASAN for write only instrumentation
diag
Sanitizers to run in the diagnostic mode (as opposed to the release mode). Replaces abort() on error with a human-readable error message. Address and Thread sanitizers always run in diagnostic mode.
 undefined bool, Undefined behavior sanitizer, diagnostic mode
 cfi bool, cfi sanitizer, diagnostic mode, incompatible with asan, hwasan, fuzzer, or Darwin
 integer_overflow bool, signed/unsigned integer overflow sanitizer, diagnostic mode, incompatible with Darwin.
 memtag_heap bool, Memory-tagging, only available on arm64 requires sanitizer.memtag: true if set, enables sync memory tagging
 misc_undefined list of string, List of specific undefined behavior sanitizers to enable in diagnostic mode
 no_recover list of string, List of sanitizers to pass to -fno-sanitize-recover results in only the first detected error for these sanitizers being reported and program then exits with a non-zero exit code.
config
Sanitizers to run with flag configuration specified
 cfi_assembly_support bool, Enables CFI support flags for assembly-heavy libraries
 recover list of string, List of sanitizers to pass to -fsanitize-recover allows execution to continue for these sanitizers to detect multiple errors rather than only the first one
 blocklist string, value to pass to -fsanitize-ignorelist
 sdk_variant_only bool, If true, always create an sdk variant and don't create a platform variant.
 sdk_version string, The API level that this module is built against. The APIs of this API level will be visible at build time, but use of any APIs newer than min_sdk_version will render the module unloadable on older devices. In the future it will be possible to weakly-link new APIs, making the behavior match Java: such modules will load on older devices, but calling new APIs on devices that do not support them will result in a crash. This property has the same behavior as sdk_version does for Java modules. For those familiar with Android Gradle, the property behaves similarly to how compileSdkVersion does for Java code. In addition, setting this property causes two variants to be built, one for the platform and one for apps.
 shared_libs configurable list of string, list of modules that should be dynamically linked into this module.
 soc_specific bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist).
 static_libs configurable list of string, list of modules that should be statically linked into this module.
 static_ndk_lib bool
 stem string, set the name of the output
 stl string, Select the STL library to use. Possible values are "libc++", "libc++_static", "libstdc++", or "none". Leave blank to select the default.
strip
 none bool, Device modules default to stripping enabled leaving mini debuginfo. Host modules default to stripping disabled, but can be enabled by setting any other strip boolean property.
 all bool, all forces stripping everything, including the mini debug info.
 keep_symbols bool, keep_symbols enables stripping but keeps all symbols.
 keep_symbols_list list of string, keep_symbols_list specifies a list of symbols to keep if keep_symbols is enabled. If it is unset then all symbols are kept.
 keep_symbols_and_debug_frame bool, keep_symbols_and_debug_frame enables stripping but keeps all symbols and debug frames.
stubs StubsProperties
Generate stubs to make this library accessible to APEXes.
 symbol_file string, Relative path to the symbol map. The symbol map provides the list of symbols that are exported for stubs variant of this library.
 versions list of string, List versions to generate stubs libs for. The version name "current" is always implicitly added.
 implementation_installable bool, Whether to not require the implementation of the library to be installed if a client of the stubs is installed. Defaults to true; set to false if the implementation is made available by some other means, e.g. in a Microdroid virtual machine.
 suffix string, set suffix of the name of the output
 system_dlkm_specific bool, Install to partition system_dlkm when set to true.
 system_ext_specific bool, whether this module extends system. When set to true, it is installed into /system_ext (or /system/system_ext if system_ext partition does not exist).
 system_shared_libs list of string, list of system libraries that will be dynamically linked to shared library and executable modules. If unset, generally defaults to libc, libm, and libdl. Set to [] to prevent linking against the defaults.
 target interface
target.android
 compile_multilib string
 enabled bool
target.apex
 exclude_shared_libs list of string, list of shared libs that should not be used to build the apex variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the apex variant of the C/C++ module.
target.host
 compile_multilib string
target.non_apex
 exclude_shared_libs list of string, list of shared libs that should not be used to build the non-apex variant of the C/C++ module.
target.platform
 shared_libs list of string, list of shared libs that should be use to build the platform variant of a module that sets sdk_version. This should rarely be necessary, in most cases the same libraries are available for the SDK and platform variants.
 header_libs list of string, list of ehader libs that only should be used to build platform variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the platform variant of the C/C++ module.
 required list of string, List of modules required by the core variant.
 exclude_required list of string, List of modules not required by the core variant.
header_abi_checker headerAbiCheckerProperties
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 cflags list of string, List of additional cflags that should be used to build the platform variant of the C/C++ module.
target.product
 suffix string, set suffix of the name of the output
header_abi_checker headerAbiCheckerProperties
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 no_stubs bool, Disable stubs for vendor/product variants This is a workaround to keep `stubs` only for "core" variant (not product/vendor). It would be nice if we could put `stubs` into a `target: { core: {} }` block but it's not supported in soong yet. This could be removed/simplified once we have a better syntax.
 srcs list of string, list of source files that should only be used in vendor or product variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build vendor or product variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build vendor or product variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build vendor or product variant of the C/C++ module.
 shared_libs list of string, list of shared libs that only should be used to build vendor or product variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build vendor or product variant of the C/C++ module.
 header_libs list of string, list of header libs that only should be used to build vendor or product variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor or product variant of the C/C++ module.
 version_script string, version script for vendor or product variant
 override_export_include_dirs list of string, list of exported include directories, like export_include_dirs, that will be applied to vendor or product variant of this library. This will overwrite any other declarations.
target.ramdisk
 static_libs list of string, list of static libs that only should be used to build the ramdisk variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the ramdisk variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the ramdisk variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the ramdisk variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build the ramdisk variants of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the ramdisk variants of the C/C++ module.
target.recovery
 shared_libs list of string, list of shared libs that only should be used to build the recovery variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build the recovery variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the recovery variant of the C/C++ module.
 srcs list of string, list of source files that should only be used in the recovery variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build the recovery variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the recovery variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build the recovery variant of the C/C++ module.
 required list of string, List of modules required by the recovery variant.
 exclude_required list of string, List of modules not required by the recovery variant.
target.vendor
 suffix string, set suffix of the name of the output
header_abi_checker headerAbiCheckerProperties
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 no_stubs bool, Disable stubs for vendor/product variants This is a workaround to keep `stubs` only for "core" variant (not product/vendor). It would be nice if we could put `stubs` into a `target: { core: {} }` block but it's not supported in soong yet. This could be removed/simplified once we have a better syntax.
 shared_libs list of string, list of shared libs that only should be used to build vendor or product variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build vendor or product variant of the C/C++ module.
 header_libs list of string, list of header libs that only should be used to build vendor or product variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor or product variant of the C/C++ module.
 version_script string, version script for vendor or product variant
 override_export_include_dirs list of string, list of exported include directories, like export_include_dirs, that will be applied to vendor or product variant of this library. This will overwrite any other declarations.
 srcs list of string, list of source files that should only be used in vendor or product variant of the C/C++ module.
 exclude_srcs list of string, list of source files that should not be used to build vendor or product variant of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build vendor or product variant of the C/C++ module.
 exclude_generated_sources list of string, list of generated sources that should not be used to build vendor or product variant of the C/C++ module.
target.vendor_ramdisk
 exclude_srcs list of string, list of source files that should not be used to build the ramdisk variants of the C/C++ module.
 cflags list of string, List of additional cflags that should be used to build the ramdisk variants of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the vendor ramdisk variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the vendor ramdisk variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor ramdisk variant of the C/C++ module.
 target_required list of string, names of other modules to install on target if this module is installed
 team string, The team (defined by the owner/vendor) who owns the property.
 test_only bool, Indicates that the module and its source code are only used in tests, not production code. Used by coverage reports and potentially other tools.
 tidy bool, whether to run clang-tidy over C-like sources.
 tidy_checks list of string, Extra checks to enable or disable in clang-tidy
 tidy_checks_as_errors list of string, Checks that should be treated as errors.
 tidy_disabled_srcs list of string, list of source files that should not be compiled with clang-tidy.
 tidy_flags list of string, Extra flags to pass to clang-tidy
 tidy_timeout_srcs list of string, list of source files that should not be compiled by clang-tidy when TIDY_TIMEOUT is set.
 unexported_symbols_list string, local file name to pass to the linker as -unexported_symbols_list
 unique_host_soname bool, rename host libraries to prevent overlap with system installed libraries
 use_generic_config bool, Set to true if this module must be generic and does not require product-specific information. To be included in the system image, this property must be set to true.
 use_version_lib bool, make android::build:GetBuildNumber() available containing the build ID.
 vendor bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist). Use `soc_specific` instead for better meaning.
 vendor_available bool, whether this module should be allowed to be directly depended by other modules with `vendor: true`, `proprietary: true`, or `vendor_available:true`. If set to true, two variants will be built separately, one like normal, and the other limited to the set of libraries and headers that are exposed to /vendor modules. The vendor variant may be used with a different (newer) /system, so it shouldn't have any unversioned runtime dependencies, or make assumptions about the system that may not be true in the future. If set to false, this module becomes inaccessible from /vendor modules. The modules with vndk: {enabled: true} must define 'vendor_available' to 'true'. Nothing happens if BOARD_VNDK_VERSION isn't set in the BoardConfig.mk
 vendor_dlkm_specific bool, Install to partition vendor_dlkm when set to true.
vendor_public_library vendorPublicLibraryProperties
If this is a vendor public library, properties to describe the vendor public library stubs.
 symbol_file string, Relative path to the symbol map.
 unversioned bool, Whether the system library uses symbol versions.
 export_public_headers list of string, list of header libs to re-export include directories from.
 override_export_include_dirs list of string, list of directories relative to the Blueprints file that willbe added to the include path (using -I) for any module that links against the LLNDK variant of this module, replacing any that were listed outside the llndk clause.
 vendor_ramdisk bool, Whether this module is installed to vendor ramdisk
 vendor_ramdisk_available bool, Make this module available when building for vendor ramdisk. On device without a dedicated recovery partition, the module is only available after switching root into /first_stage_ramdisk. To expose the module before switching root, install the recovery variant instead.
 version_script string, local file name to pass to the linker as --version-script. Not supported on darwin, and will fail to build if provided to the darwin variant of a module.
 vintf_fragment_modules configurable list of string, vintf_fragment Modules required from this module.
 vintf_fragments configurable list of string, VINTF manifest fragments to be installed if this module is installed
 visibility list of string, Controls the visibility of this module to other modules. Allowable values are one or more of these formats:

 ["//visibility:public"]: Anyone can use this module.
 ["//visibility:private"]: Only rules in the module's package (not its subpackages) can use
     this module.
 ["//visibility:override"]: Discards any rules inherited from defaults or a creating module.
     Can only be used at the beginning of a list of visibility rules.
 ["//some/package:__pkg__", "//other/package:__pkg__"]: Only modules in some/package and
     other/package (defined in some/package/*.bp and other/package/*.bp) have access to
     this module. Note that sub-packages do not have access to the rule; for example,
     //some/package/foo:bar or //other/package/testing:bla wouldn't have access. __pkg__
     is a special module and must be used verbatim. It represents all of the modules in the
     package.
 ["//project:__subpackages__", "//other:__subpackages__"]: Only modules in packages project
     or other or in one of their sub-packages have access to this module. For example,
     //project:rule, //project/library:lib or //other/testing/internal:munge are allowed
     to depend on this rule (but not //independent:evil)
 ["//project"]: This is shorthand for ["//project:__pkg__"]
 [":__subpackages__"]: This is shorthand for ["//project:__subpackages__"] where
     //project is the module's package. e.g. using [":__subpackages__"] in
     packages/apps/Settings/Android.bp is equivalent to
     //packages/apps/Settings:__subpackages__.
 ["//visibility:legacy_public"]: The default visibility, behaves as //visibility:public
     for now. It is an error if it is used in a module.

If a module does not specify the `visibility` property then it uses the `default_visibility` property of the `package` module in the module's package. If the `default_visibility` property is not set for the module's package then it will use the `default_visibility` of its closest ancestor package for which a `default_visibility` property is specified. If no `default_visibility` property can be found then the module uses the global default of `//visibility:legacy_public`. The `visibility` property has no effect on a defaults module although it does apply to any non-defaults module that uses it. To set the visibility of a defaults module, use the `defaults_visibility` property on the defaults module; not to be confused with the `default_visibility` property on the package module. See https://android.googlesource.com/platform/build/soong/+/main/README.md#visibility for more details.
 whole_program_vtables bool, Use -fwhole-program-vtables cflag.
 whole_static_libs configurable list of string, list of modules whose object files should be linked into this module in their entirety. For static library modules, all of the .o files from the intermediate directory of the dependency will be linked into this modules .a file. For a shared library, the dependency's .a file will be linked into this module using -Wl,--whole-archive.
 yacc YaccProperties

llndk_libraries_txt

llndk_libraries_txt is a singleton module whose content is a list of LLNDK libraries generated by Soong but can be referenced by other modules. For example, apex_vndk can depend on these files as prebuilt. Make uses LLNDK_LIBRARIES to determine which libraries to install. HWASAN is only part of the LL-NDK in builds in which libc depends on HWASAN. Therefore, by removing the library here, we cause it to only be installed if libc depends on it.
 name string, The name of the module. Must be unique across all modules. Default: llndk.libraries.txt
 arch interface
 compile_multilib string, control whether this module compiles for 32-bit, 64-bit, or both. Possible values are "32" (compile for 32-bit only), "64" (compile for 64-bit only), "both" (compile for both architectures), or "first" (compile for 64-bit on a 64-bit platform, and 32-bit on a 32-bit platform).
 debug_ramdisk bool, Whether this module is installed to debug ramdisk
 device_specific bool, whether this module is specific to a device, not only for SoC, but also for off-chip peripherals. When set to true, it is installed into /odm (or /vendor/odm if odm partition does not exist, or /system/vendor/odm if both odm and vendor partitions do not exist). This implies `soc_specific:true`.
dist Dist
configuration to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 targets list of string, Copy the output of this module to the $DIST_DIR when `dist` is specified on the command line and any of these targets are also on the command line, or otherwise built
 dest string, The name of the output artifact. This defaults to the basename of the output of the module.
 dir string, The directory within the dist directory to store the artifact. Defaults to the top level directory ("").
 suffix string, A suffix to add to the artifact file name (before any extension).
 append_artifact_with_product bool, If true, then the artifact file will be appended with _<product name>. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be foo_coral.apk. If false, there is no change to the artifact file name.
 prepend_artifact_with_product bool, If true, then the artifact file will be prepended with <product name>-. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be coral-foo.apk. If false, there is no change to the artifact file name.
 tag string, A string tag to select the OutputFiles associated with the tag. If no tag is specified then it will select the default dist paths provided by the module type. If a tag of "" is specified then it will return the default output files provided by the modules, i.e. the result of calling OutputFiles("").
 dists list of Dist, a list of configurations to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 enabled configurable bool, emit build rules for this module Disabling a module should only be done for those modules that cannot be built in the current environment. Modules that can build in the current environment but are not usually required (e.g. superceded by a prebuilt) should not be disabled as that will prevent them from being built by the checkbuild target and so prevent early detection of changes that have broken those modules.
 host_required list of string, names of other modules to install on host if this module is installed
 init_rc configurable list of string, init.rc files to be installed if this module is installed
 licenses list of string, Describes the licenses applicable to this module. Must reference license modules.
 multilib interface
 native_bridge_supported bool, Whether this module is built for non-native architectures (also known as native bridge binary)
 no_full_install bool, When set to true, this module is not installed to the full install path (ex: under out/target/product/<name>/<partition>). It can be installed only to the packaging modules like android_filesystem.
 odm_dlkm_specific bool, Install to partition odm_dlkm when set to true.
 overrides list of string, List of module names that are prevented from being installed when this module gets installed.
 owner string, vendor who owns this module
 product_specific bool, whether this module is specific to a software configuration of a product (e.g. country, network operator, etc). When set to true, it is installed into /product (or /system/product if product partition does not exist).
product_variables.debuggable
init_rc
  []string
required
  []string
host_required
  []string
target_required
  []string
product_variables.release_aidl_use_unfrozen
required
  []string
vintf_fragment_modules
  []string
product_variables.selinuxignoreneverallows
required
  []string
product_variables.unbundled_build
enabled Configurable[bool]
 Configurable[bool] proptools.Configurable[bool]
 proprietary bool, whether this is a proprietary vendor module, and should be installed into /vendor
 ramdisk bool, Whether this module is installed to ramdisk
 recovery bool, Whether this module is installed to recovery partition
 required configurable list of string, names of other modules to install if this module is installed
 soc_specific bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist).
 system_dlkm_specific bool, Install to partition system_dlkm when set to true.
 system_ext_specific bool, whether this module extends system. When set to true, it is installed into /system_ext (or /system/system_ext if system_ext partition does not exist).
 target interface
target.android
 compile_multilib string
 enabled bool
target.host
 compile_multilib string
 target_required list of string, names of other modules to install on target if this module is installed
 team string, The team (defined by the owner/vendor) who owns the property.
 use_generic_config bool, Set to true if this module must be generic and does not require product-specific information. To be included in the system image, this property must be set to true.
 vendor bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist). Use `soc_specific` instead for better meaning.
 vendor_dlkm_specific bool, Install to partition vendor_dlkm when set to true.
 vendor_ramdisk bool, Whether this module is installed to vendor ramdisk
 vintf_fragment_modules configurable list of string, vintf_fragment Modules required from this module.
 vintf_fragments configurable list of string, VINTF manifest fragments to be installed if this module is installed
 visibility list of string, Controls the visibility of this module to other modules. Allowable values are one or more of these formats:

 ["//visibility:public"]: Anyone can use this module.
 ["//visibility:private"]: Only rules in the module's package (not its subpackages) can use
     this module.
 ["//visibility:override"]: Discards any rules inherited from defaults or a creating module.
     Can only be used at the beginning of a list of visibility rules.
 ["//some/package:__pkg__", "//other/package:__pkg__"]: Only modules in some/package and
     other/package (defined in some/package/*.bp and other/package/*.bp) have access to
     this module. Note that sub-packages do not have access to the rule; for example,
     //some/package/foo:bar or //other/package/testing:bla wouldn't have access. __pkg__
     is a special module and must be used verbatim. It represents all of the modules in the
     package.
 ["//project:__subpackages__", "//other:__subpackages__"]: Only modules in packages project
     or other or in one of their sub-packages have access to this module. For example,
     //project:rule, //project/library:lib or //other/testing/internal:munge are allowed
     to depend on this rule (but not //independent:evil)
 ["//project"]: This is shorthand for ["//project:__pkg__"]
 [":__subpackages__"]: This is shorthand for ["//project:__subpackages__"] where
     //project is the module's package. e.g. using [":__subpackages__"] in
     packages/apps/Settings/Android.bp is equivalent to
     //packages/apps/Settings:__subpackages__.
 ["//visibility:legacy_public"]: The default visibility, behaves as //visibility:public
     for now. It is an error if it is used in a module.

If a module does not specify the `visibility` property then it uses the `default_visibility` property of the `package` module in the module's package. If the `default_visibility` property is not set for the module's package then it will use the `default_visibility` of its closest ancestor package for which a `default_visibility` property is specified. If no `default_visibility` property can be found then the module uses the global default of `//visibility:legacy_public`. The `visibility` property has no effect on a defaults module although it does apply to any non-defaults module that uses it. To set the visibility of a defaults module, use the `defaults_visibility` property on the defaults module; not to be confused with the `default_visibility` property on the package module. See https://android.googlesource.com/platform/build/soong/+/main/README.md#visibility for more details.

ndk_headers

ndk_headers installs the sets of ndk headers defined in the srcs property to the sysroot base + "usr/include" + to directory + directory component. ndk_headers requires the license file to be specified. Example:

	Given:
	sysroot base = "ndk/sysroot"
	from = "include/foo"
	to = "bar"
	header = "include/foo/woodly/doodly.h"
	output path = "ndk/sysroot/usr/include/bar/woodly/doodly.h"

 name string, The name of the module. Must be unique across all modules.
 srcs list of string, List of headers to install. Glob compatible. Common case is "include/**/*.h".
 exclude_srcs list of string, Source paths that should be excluded from the srcs glob.
 compile_multilib string, control whether this module compiles for 32-bit, 64-bit, or both. Possible values are "32" (compile for 32-bit only), "64" (compile for 64-bit only), "both" (compile for both architectures), or "first" (compile for 64-bit on a 64-bit platform, and 32-bit on a 32-bit platform).
 debug_ramdisk bool, Whether this module is installed to debug ramdisk
 device_specific bool, whether this module is specific to a device, not only for SoC, but also for off-chip peripherals. When set to true, it is installed into /odm (or /vendor/odm if odm partition does not exist, or /system/vendor/odm if both odm and vendor partitions do not exist). This implies `soc_specific:true`.
dist Dist
configuration to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 targets list of string, Copy the output of this module to the $DIST_DIR when `dist` is specified on the command line and any of these targets are also on the command line, or otherwise built
 dest string, The name of the output artifact. This defaults to the basename of the output of the module.
 dir string, The directory within the dist directory to store the artifact. Defaults to the top level directory ("").
 suffix string, A suffix to add to the artifact file name (before any extension).
 append_artifact_with_product bool, If true, then the artifact file will be appended with _<product name>. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be foo_coral.apk. If false, there is no change to the artifact file name.
 prepend_artifact_with_product bool, If true, then the artifact file will be prepended with <product name>-. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be coral-foo.apk. If false, there is no change to the artifact file name.
 tag string, A string tag to select the OutputFiles associated with the tag. If no tag is specified then it will select the default dist paths provided by the module type. If a tag of "" is specified then it will return the default output files provided by the modules, i.e. the result of calling OutputFiles("").
 dists list of Dist, a list of configurations to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 enabled configurable bool, emit build rules for this module Disabling a module should only be done for those modules that cannot be built in the current environment. Modules that can build in the current environment but are not usually required (e.g. superceded by a prebuilt) should not be disabled as that will prevent them from being built by the checkbuild target and so prevent early detection of changes that have broken those modules.
 from string, Base directory of the headers being installed. As an example: ndk_headers {

    name: "foo",
    from: "include",
    to: "",
    srcs: ["include/foo/bar/baz.h"],
} Will install $SYSROOT/usr/include/foo/bar/baz.h. If `from` were instead "include/foo", it would have installed $SYSROOT/usr/include/bar/baz.h.
 host_required list of string, names of other modules to install on host if this module is installed
 init_rc configurable list of string, init.rc files to be installed if this module is installed
 license string, Path to the NOTICE file associated with the headers.
 licenses list of string, Describes the licenses applicable to this module. Must reference license modules.
 native_bridge_supported bool, Whether this module is built for non-native architectures (also known as native bridge binary)
 no_full_install bool, When set to true, this module is not installed to the full install path (ex: under out/target/product/<name>/<partition>). It can be installed only to the packaging modules like android_filesystem.
 odm_dlkm_specific bool, Install to partition odm_dlkm when set to true.
 overrides list of string, List of module names that are prevented from being installed when this module gets installed.
 owner string, vendor who owns this module
 product_specific bool, whether this module is specific to a software configuration of a product (e.g. country, network operator, etc). When set to true, it is installed into /product (or /system/product if product partition does not exist).
product_variables.arc
exclude_srcs
  []string
srcs
  []string
product_variables.debuggable
init_rc
  []string
required
  []string
host_required
  []string
target_required
  []string
srcs
  []string
exclude_srcs
  []string
product_variables.malloc_low_memory
srcs
  []string
product_variables.native_coverage
srcs
  []string
exclude_srcs
  []string
product_variables.release_aidl_use_unfrozen
required
  []string
vintf_fragment_modules
  []string
product_variables.selinuxignoreneverallows
required
  []string
product_variables.unbundled_build
enabled Configurable[bool]
 Configurable[bool] proptools.Configurable[bool]
 proprietary bool, whether this is a proprietary vendor module, and should be installed into /vendor
 ramdisk bool, Whether this module is installed to ramdisk
 recovery bool, Whether this module is installed to recovery partition
 required configurable list of string, names of other modules to install if this module is installed
 skip_verification bool, Set to true if the headers installed by this module should skip verification. This step ensures that each header is self-contained (can be #included alone) and is valid C. This should not be disabled except in rare cases. Outside bionic and external, if you're using this option you've probably made a mistake.
 soc_specific bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist).
 system_dlkm_specific bool, Install to partition system_dlkm when set to true.
 system_ext_specific bool, whether this module extends system. When set to true, it is installed into /system_ext (or /system/system_ext if system_ext partition does not exist).
target.android
 compile_multilib string
 enabled bool
target.host
 compile_multilib string
 target_required list of string, names of other modules to install on target if this module is installed
 team string, The team (defined by the owner/vendor) who owns the property.
 to string, Install path within the sysroot. This is relative to usr/include.
 use_generic_config bool, Set to true if this module must be generic and does not require product-specific information. To be included in the system image, this property must be set to true.
 vendor bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist). Use `soc_specific` instead for better meaning.
 vendor_dlkm_specific bool, Install to partition vendor_dlkm when set to true.
 vendor_ramdisk bool, Whether this module is installed to vendor ramdisk
 vintf_fragment_modules configurable list of string, vintf_fragment Modules required from this module.
 vintf_fragments configurable list of string, VINTF manifest fragments to be installed if this module is installed
 visibility list of string, Controls the visibility of this module to other modules. Allowable values are one or more of these formats:

 ["//visibility:public"]: Anyone can use this module.
 ["//visibility:private"]: Only rules in the module's package (not its subpackages) can use
     this module.
 ["//visibility:override"]: Discards any rules inherited from defaults or a creating module.
     Can only be used at the beginning of a list of visibility rules.
 ["//some/package:__pkg__", "//other/package:__pkg__"]: Only modules in some/package and
     other/package (defined in some/package/*.bp and other/package/*.bp) have access to
     this module. Note that sub-packages do not have access to the rule; for example,
     //some/package/foo:bar or //other/package/testing:bla wouldn't have access. __pkg__
     is a special module and must be used verbatim. It represents all of the modules in the
     package.
 ["//project:__subpackages__", "//other:__subpackages__"]: Only modules in packages project
     or other or in one of their sub-packages have access to this module. For example,
     //project:rule, //project/library:lib or //other/testing/internal:munge are allowed
     to depend on this rule (but not //independent:evil)
 ["//project"]: This is shorthand for ["//project:__pkg__"]
 [":__subpackages__"]: This is shorthand for ["//project:__subpackages__"] where
     //project is the module's package. e.g. using [":__subpackages__"] in
     packages/apps/Settings/Android.bp is equivalent to
     //packages/apps/Settings:__subpackages__.
 ["//visibility:legacy_public"]: The default visibility, behaves as //visibility:public
     for now. It is an error if it is used in a module.

If a module does not specify the `visibility` property then it uses the `default_visibility` property of the `package` module in the module's package. If the `default_visibility` property is not set for the module's package then it will use the `default_visibility` of its closest ancestor package for which a `default_visibility` property is specified. If no `default_visibility` property can be found then the module uses the global default of `//visibility:legacy_public`. The `visibility` property has no effect on a defaults module although it does apply to any non-defaults module that uses it. To set the visibility of a defaults module, use the `defaults_visibility` property on the defaults module; not to be confused with the `default_visibility` property on the package module. See https://android.googlesource.com/platform/build/soong/+/main/README.md#visibility for more details.

ndk_library

ndk_library creates a library that exposes a stub implementation of functions and variables for use at build time only.
 name string, The name of the module. Must be unique across all modules.
 arch interface
 compile_multilib string, control whether this module compiles for 32-bit, 64-bit, or both. Possible values are "32" (compile for 32-bit only), "64" (compile for 64-bit only), "both" (compile for both architectures), or "first" (compile for 64-bit on a 64-bit platform, and 32-bit on a 32-bit platform).
 debug_ramdisk bool, Whether this module is installed to debug ramdisk
 device_specific bool, whether this module is specific to a device, not only for SoC, but also for off-chip peripherals. When set to true, it is installed into /odm (or /vendor/odm if odm partition does not exist, or /system/vendor/odm if both odm and vendor partitions do not exist). This implies `soc_specific:true`.
dist Dist
configuration to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 targets list of string, Copy the output of this module to the $DIST_DIR when `dist` is specified on the command line and any of these targets are also on the command line, or otherwise built
 dest string, The name of the output artifact. This defaults to the basename of the output of the module.
 dir string, The directory within the dist directory to store the artifact. Defaults to the top level directory ("").
 suffix string, A suffix to add to the artifact file name (before any extension).
 append_artifact_with_product bool, If true, then the artifact file will be appended with _<product name>. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be foo_coral.apk. If false, there is no change to the artifact file name.
 prepend_artifact_with_product bool, If true, then the artifact file will be prepended with <product name>-. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be coral-foo.apk. If false, there is no change to the artifact file name.
 tag string, A string tag to select the OutputFiles associated with the tag. If no tag is specified then it will select the default dist paths provided by the module type. If a tag of "" is specified then it will return the default output files provided by the modules, i.e. the result of calling OutputFiles("").
 dists list of Dist, a list of configurations to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 enabled configurable bool, emit build rules for this module Disabling a module should only be done for those modules that cannot be built in the current environment. Modules that can build in the current environment but are not usually required (e.g. superceded by a prebuilt) should not be disabled as that will prevent them from being built by the checkbuild target and so prevent early detection of changes that have broken those modules.
 export_header_libs list of string, DO NOT USE THIS NDK libraries should not export their headers. Headers belonging to NDK libraries should be added to the NDK with an ndk_headers module.
 first_version string, The first API level a library was available. A library will be generated for every API level beginning with this one.
 host_required list of string, names of other modules to install on host if this module is installed
 init_rc configurable list of string, init.rc files to be installed if this module is installed
 licenses list of string, Describes the licenses applicable to this module. Must reference license modules.
 multilib interface
 native_bridge_supported bool, Whether this module is built for non-native architectures (also known as native bridge binary)
 no_full_install bool, When set to true, this module is not installed to the full install path (ex: under out/target/product/<name>/<partition>). It can be installed only to the packaging modules like android_filesystem.
 odm_dlkm_specific bool, Install to partition odm_dlkm when set to true.
 overrides list of string, List of module names that are prevented from being installed when this module gets installed.
 owner string, vendor who owns this module
 product_specific bool, whether this module is specific to a software configuration of a product (e.g. country, network operator, etc). When set to true, it is installed into /product (or /system/product if product partition does not exist).
product_variables.debuggable
init_rc
  []string
required
  []string
host_required
  []string
target_required
  []string
product_variables.release_aidl_use_unfrozen
required
  []string
vintf_fragment_modules
  []string
product_variables.selinuxignoreneverallows
required
  []string
product_variables.unbundled_build
enabled Configurable[bool]
 Configurable[bool] proptools.Configurable[bool]
 proprietary bool, whether this is a proprietary vendor module, and should be installed into /vendor
 ramdisk bool, Whether this module is installed to ramdisk
 recovery bool, Whether this module is installed to recovery partition
 required configurable list of string, names of other modules to install if this module is installed
 soc_specific bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist).
 symbol_file string, Relative path to the symbol map. An example file can be seen here: TODO(danalbert): Make an example.
 system_dlkm_specific bool, Install to partition system_dlkm when set to true.
 system_ext_specific bool, whether this module extends system. When set to true, it is installed into /system_ext (or /system/system_ext if system_ext partition does not exist).
 target interface
target.android
 compile_multilib string
 enabled bool
target.host
 compile_multilib string
 target_required list of string, names of other modules to install on target if this module is installed
 team string, The team (defined by the owner/vendor) who owns the property.
 unversioned_until string, The first API level that library should have the version script applied. This defaults to the value of first_version, and should almost never be used. This is only needed to work around platform bugs like https://github.com/android-ndk/ndk/issues/265.
 use_generic_config bool, Set to true if this module must be generic and does not require product-specific information. To be included in the system image, this property must be set to true.
 vendor bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist). Use `soc_specific` instead for better meaning.
 vendor_dlkm_specific bool, Install to partition vendor_dlkm when set to true.
 vendor_ramdisk bool, Whether this module is installed to vendor ramdisk
 vintf_fragment_modules configurable list of string, vintf_fragment Modules required from this module.
 vintf_fragments configurable list of string, VINTF manifest fragments to be installed if this module is installed
 visibility list of string, Controls the visibility of this module to other modules. Allowable values are one or more of these formats:

 ["//visibility:public"]: Anyone can use this module.
 ["//visibility:private"]: Only rules in the module's package (not its subpackages) can use
     this module.
 ["//visibility:override"]: Discards any rules inherited from defaults or a creating module.
     Can only be used at the beginning of a list of visibility rules.
 ["//some/package:__pkg__", "//other/package:__pkg__"]: Only modules in some/package and
     other/package (defined in some/package/*.bp and other/package/*.bp) have access to
     this module. Note that sub-packages do not have access to the rule; for example,
     //some/package/foo:bar or //other/package/testing:bla wouldn't have access. __pkg__
     is a special module and must be used verbatim. It represents all of the modules in the
     package.
 ["//project:__subpackages__", "//other:__subpackages__"]: Only modules in packages project
     or other or in one of their sub-packages have access to this module. For example,
     //project:rule, //project/library:lib or //other/testing/internal:munge are allowed
     to depend on this rule (but not //independent:evil)
 ["//project"]: This is shorthand for ["//project:__pkg__"]
 [":__subpackages__"]: This is shorthand for ["//project:__subpackages__"] where
     //project is the module's package. e.g. using [":__subpackages__"] in
     packages/apps/Settings/Android.bp is equivalent to
     //packages/apps/Settings:__subpackages__.
 ["//visibility:legacy_public"]: The default visibility, behaves as //visibility:public
     for now. It is an error if it is used in a module.

If a module does not specify the `visibility` property then it uses the `default_visibility` property of the `package` module in the module's package. If the `default_visibility` property is not set for the module's package then it will use the `default_visibility` of its closest ancestor package for which a `default_visibility` property is specified. If no `default_visibility` property can be found then the module uses the global default of `//visibility:legacy_public`. The `visibility` property has no effect on a defaults module although it does apply to any non-defaults module that uses it. To set the visibility of a defaults module, use the `defaults_visibility` property on the defaults module; not to be confused with the `default_visibility` property on the package module. See https://android.googlesource.com/platform/build/soong/+/main/README.md#visibility for more details.

ndk_translation_package

 name string, The name of the module. Must be unique across all modules.
 android_bp_gen_path string, Path to Android.bp generator
 arch interface
 compile_multilib string, control whether this module compiles for 32-bit, 64-bit, or both. Possible values are "32" (compile for 32-bit only), "64" (compile for 64-bit only), "both" (compile for both architectures), or "first" (compile for 64-bit on a 64-bit platform, and 32-bit on a 32-bit platform).
 debug_ramdisk bool, Whether this module is installed to debug ramdisk
 device_32_deps list of string, Non-native bridge variants with lib32 that should be packaged. (e.g. x86 on an x86_64 device)
 device_32_extra_allowed_deps list of string
 device_64_deps list of string, Non-native bridge variants with lib64 that should be packaged. (e.g. x86_64 on an x86_64 device)
 device_both_deps list of string, Non-native bridge variants that should be packaged. (e.g. x86 and x86_64 on an x86_64 device)
 device_both_extra_allowed_deps list of string, Non-native bridge variants that should _not_ be packaged, but used as inputs to generate Android.mk and product.mk
 device_first_deps list of string, Non-native bridge variants whose first variant should be packaged.
 device_first_to_32_deps list of string, Non-native bridge variants whose first variant should be packaged, but always into lib/, bin/ directories.
 device_specific bool, whether this module is specific to a device, not only for SoC, but also for off-chip peripherals. When set to true, it is installed into /odm (or /vendor/odm if odm partition does not exist, or /system/vendor/odm if both odm and vendor partitions do not exist). This implies `soc_specific:true`.
dist Dist
configuration to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 targets list of string, Copy the output of this module to the $DIST_DIR when `dist` is specified on the command line and any of these targets are also on the command line, or otherwise built
 dest string, The name of the output artifact. This defaults to the basename of the output of the module.
 dir string, The directory within the dist directory to store the artifact. Defaults to the top level directory ("").
 suffix string, A suffix to add to the artifact file name (before any extension).
 append_artifact_with_product bool, If true, then the artifact file will be appended with _<product name>. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be foo_coral.apk. If false, there is no change to the artifact file name.
 prepend_artifact_with_product bool, If true, then the artifact file will be prepended with <product name>-. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be coral-foo.apk. If false, there is no change to the artifact file name.
 tag string, A string tag to select the OutputFiles associated with the tag. If no tag is specified then it will select the default dist paths provided by the module type. If a tag of "" is specified then it will return the default output files provided by the modules, i.e. the result of calling OutputFiles("").
 dists list of Dist, a list of configurations to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 enabled configurable bool, emit build rules for this module Disabling a module should only be done for those modules that cannot be built in the current environment. Modules that can build in the current environment but are not usually required (e.g. superceded by a prebuilt) should not be disabled as that will prevent them from being built by the checkbuild target and so prevent early detection of changes that have broken those modules.
 generate_build_files bool, Whether generate build files for the ndk_translation_packages, default is true.
 host_required list of string, names of other modules to install on host if this module is installed
 init_rc configurable list of string, init.rc files to be installed if this module is installed
 licenses list of string, Describes the licenses applicable to this module. Must reference license modules.
 multilib interface
 native_bridge_deps configurable list of string, Dependencies with native bridge variants that should be packaged. (e.g. arm and arm64 on an x86_64 device)
 native_bridge_supported bool, Whether this module is built for non-native architectures (also known as native bridge binary)
 no_full_install bool, When set to true, this module is not installed to the full install path (ex: under out/target/product/<name>/<partition>). It can be installed only to the packaging modules like android_filesystem.
 odm_dlkm_specific bool, Install to partition odm_dlkm when set to true.
 overrides list of string, List of module names that are prevented from being installed when this module gets installed.
 owner string, vendor who owns this module
 product_mk_gen_path string, Path to product.mk generator
 product_specific bool, whether this module is specific to a software configuration of a product (e.g. country, network operator, etc). When set to true, it is installed into /product (or /system/product if product partition does not exist).
product_variables.debuggable
init_rc
  []string
required
  []string
host_required
  []string
target_required
  []string
product_variables.release_aidl_use_unfrozen
required
  []string
vintf_fragment_modules
  []string
product_variables.selinuxignoreneverallows
required
  []string
product_variables.unbundled_build
enabled Configurable[bool]
 Configurable[bool] proptools.Configurable[bool]
 proprietary bool, whether this is a proprietary vendor module, and should be installed into /vendor
 ramdisk bool, Whether this module is installed to ramdisk
 recovery bool, Whether this module is installed to recovery partition
 required configurable list of string, names of other modules to install if this module is installed
 soc_specific bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist).
 system_dlkm_specific bool, Install to partition system_dlkm when set to true.
 system_ext_specific bool, whether this module extends system. When set to true, it is installed into /system_ext (or /system/system_ext if system_ext partition does not exist).
 target interface
target.android
 compile_multilib string
 enabled bool
target.host
 compile_multilib string
 target_required list of string, names of other modules to install on target if this module is installed
 team string, The team (defined by the owner/vendor) who owns the property.
 use_generic_config bool, Set to true if this module must be generic and does not require product-specific information. To be included in the system image, this property must be set to true.
 vendor bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist). Use `soc_specific` instead for better meaning.
 vendor_dlkm_specific bool, Install to partition vendor_dlkm when set to true.
 vendor_ramdisk bool, Whether this module is installed to vendor ramdisk
 version string, Version to use in generating the new sysprops
 vintf_fragment_modules configurable list of string, vintf_fragment Modules required from this module.
 vintf_fragments configurable list of string, VINTF manifest fragments to be installed if this module is installed
 visibility list of string, Controls the visibility of this module to other modules. Allowable values are one or more of these formats:

 ["//visibility:public"]: Anyone can use this module.
 ["//visibility:private"]: Only rules in the module's package (not its subpackages) can use
     this module.
 ["//visibility:override"]: Discards any rules inherited from defaults or a creating module.
     Can only be used at the beginning of a list of visibility rules.
 ["//some/package:__pkg__", "//other/package:__pkg__"]: Only modules in some/package and
     other/package (defined in some/package/*.bp and other/package/*.bp) have access to
     this module. Note that sub-packages do not have access to the rule; for example,
     //some/package/foo:bar or //other/package/testing:bla wouldn't have access. __pkg__
     is a special module and must be used verbatim. It represents all of the modules in the
     package.
 ["//project:__subpackages__", "//other:__subpackages__"]: Only modules in packages project
     or other or in one of their sub-packages have access to this module. For example,
     //project:rule, //project/library:lib or //other/testing/internal:munge are allowed
     to depend on this rule (but not //independent:evil)
 ["//project"]: This is shorthand for ["//project:__pkg__"]
 [":__subpackages__"]: This is shorthand for ["//project:__subpackages__"] where
     //project is the module's package. e.g. using [":__subpackages__"] in
     packages/apps/Settings/Android.bp is equivalent to
     //packages/apps/Settings:__subpackages__.
 ["//visibility:legacy_public"]: The default visibility, behaves as //visibility:public
     for now. It is an error if it is used in a module.

If a module does not specify the `visibility` property then it uses the `default_visibility` property of the `package` module in the module's package. If the `default_visibility` property is not set for the module's package then it will use the `default_visibility` of its closest ancestor package for which a `default_visibility` property is specified. If no `default_visibility` property can be found then the module uses the global default of `//visibility:legacy_public`. The `visibility` property has no effect on a defaults module although it does apply to any non-defaults module that uses it. To set the visibility of a defaults module, use the `defaults_visibility` property on the defaults module; not to be confused with the `default_visibility` property on the package module. See https://android.googlesource.com/platform/build/soong/+/main/README.md#visibility for more details.

preprocessed_ndk_headers

preprocessed_ndk_headers preprocesses all the ndk headers listed in the srcs property by executing the command defined in the preprocessor property.
 name string, The name of the module. Must be unique across all modules.
 srcs list of string, Source path to the files to be preprocessed.
 exclude_srcs list of string, Source paths that should be excluded from the srcs glob.
 compile_multilib string, control whether this module compiles for 32-bit, 64-bit, or both. Possible values are "32" (compile for 32-bit only), "64" (compile for 64-bit only), "both" (compile for both architectures), or "first" (compile for 64-bit on a 64-bit platform, and 32-bit on a 32-bit platform).
 debug_ramdisk bool, Whether this module is installed to debug ramdisk
 device_specific bool, whether this module is specific to a device, not only for SoC, but also for off-chip peripherals. When set to true, it is installed into /odm (or /vendor/odm if odm partition does not exist, or /system/vendor/odm if both odm and vendor partitions do not exist). This implies `soc_specific:true`.
dist Dist
configuration to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 targets list of string, Copy the output of this module to the $DIST_DIR when `dist` is specified on the command line and any of these targets are also on the command line, or otherwise built
 dest string, The name of the output artifact. This defaults to the basename of the output of the module.
 dir string, The directory within the dist directory to store the artifact. Defaults to the top level directory ("").
 suffix string, A suffix to add to the artifact file name (before any extension).
 append_artifact_with_product bool, If true, then the artifact file will be appended with _<product name>. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be foo_coral.apk. If false, there is no change to the artifact file name.
 prepend_artifact_with_product bool, If true, then the artifact file will be prepended with <product name>-. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be coral-foo.apk. If false, there is no change to the artifact file name.
 tag string, A string tag to select the OutputFiles associated with the tag. If no tag is specified then it will select the default dist paths provided by the module type. If a tag of "" is specified then it will return the default output files provided by the modules, i.e. the result of calling OutputFiles("").
 dists list of Dist, a list of configurations to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 enabled configurable bool, emit build rules for this module Disabling a module should only be done for those modules that cannot be built in the current environment. Modules that can build in the current environment but are not usually required (e.g. superceded by a prebuilt) should not be disabled as that will prevent them from being built by the checkbuild target and so prevent early detection of changes that have broken those modules.
 host_required list of string, names of other modules to install on host if this module is installed
 init_rc configurable list of string, init.rc files to be installed if this module is installed
 license string, Path to the NOTICE file associated with the headers.
 licenses list of string, Describes the licenses applicable to this module. Must reference license modules.
 native_bridge_supported bool, Whether this module is built for non-native architectures (also known as native bridge binary)
 no_full_install bool, When set to true, this module is not installed to the full install path (ex: under out/target/product/<name>/<partition>). It can be installed only to the packaging modules like android_filesystem.
 odm_dlkm_specific bool, Install to partition odm_dlkm when set to true.
 overrides list of string, List of module names that are prevented from being installed when this module gets installed.
 owner string, vendor who owns this module
 preprocessor string, The preprocessor to run. Must be a program inside the source directory with no dependencies.
 product_specific bool, whether this module is specific to a software configuration of a product (e.g. country, network operator, etc). When set to true, it is installed into /product (or /system/product if product partition does not exist).
product_variables.arc
exclude_srcs
  []string
srcs
  []string
product_variables.debuggable
init_rc
  []string
required
  []string
host_required
  []string
target_required
  []string
srcs
  []string
exclude_srcs
  []string
product_variables.malloc_low_memory
srcs
  []string
product_variables.native_coverage
srcs
  []string
exclude_srcs
  []string
product_variables.release_aidl_use_unfrozen
required
  []string
vintf_fragment_modules
  []string
product_variables.selinuxignoreneverallows
required
  []string
product_variables.unbundled_build
enabled Configurable[bool]
 Configurable[bool] proptools.Configurable[bool]
 proprietary bool, whether this is a proprietary vendor module, and should be installed into /vendor
 ramdisk bool, Whether this module is installed to ramdisk
 recovery bool, Whether this module is installed to recovery partition
 required configurable list of string, names of other modules to install if this module is installed
 skip_verification bool, Set to true if the headers installed by this module should skip verification. This step ensures that each header is self-contained (can be #included alone) and is valid C. This should not be disabled except in rare cases. Outside bionic and external, if you're using this option you've probably made a mistake.
 soc_specific bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist).
 system_dlkm_specific bool, Install to partition system_dlkm when set to true.
 system_ext_specific bool, whether this module extends system. When set to true, it is installed into /system_ext (or /system/system_ext if system_ext partition does not exist).
target.android
 compile_multilib string
 enabled bool
target.host
 compile_multilib string
 target_required list of string, names of other modules to install on target if this module is installed
 team string, The team (defined by the owner/vendor) who owns the property.
 to string, Install path within the sysroot. This is relative to usr/include.
 use_generic_config bool, Set to true if this module must be generic and does not require product-specific information. To be included in the system image, this property must be set to true.
 vendor bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist). Use `soc_specific` instead for better meaning.
 vendor_dlkm_specific bool, Install to partition vendor_dlkm when set to true.
 vendor_ramdisk bool, Whether this module is installed to vendor ramdisk
 vintf_fragment_modules configurable list of string, vintf_fragment Modules required from this module.
 vintf_fragments configurable list of string, VINTF manifest fragments to be installed if this module is installed
 visibility list of string, Controls the visibility of this module to other modules. Allowable values are one or more of these formats:

 ["//visibility:public"]: Anyone can use this module.
 ["//visibility:private"]: Only rules in the module's package (not its subpackages) can use
     this module.
 ["//visibility:override"]: Discards any rules inherited from defaults or a creating module.
     Can only be used at the beginning of a list of visibility rules.
 ["//some/package:__pkg__", "//other/package:__pkg__"]: Only modules in some/package and
     other/package (defined in some/package/*.bp and other/package/*.bp) have access to
     this module. Note that sub-packages do not have access to the rule; for example,
     //some/package/foo:bar or //other/package/testing:bla wouldn't have access. __pkg__
     is a special module and must be used verbatim. It represents all of the modules in the
     package.
 ["//project:__subpackages__", "//other:__subpackages__"]: Only modules in packages project
     or other or in one of their sub-packages have access to this module. For example,
     //project:rule, //project/library:lib or //other/testing/internal:munge are allowed
     to depend on this rule (but not //independent:evil)
 ["//project"]: This is shorthand for ["//project:__pkg__"]
 [":__subpackages__"]: This is shorthand for ["//project:__subpackages__"] where
     //project is the module's package. e.g. using [":__subpackages__"] in
     packages/apps/Settings/Android.bp is equivalent to
     //packages/apps/Settings:__subpackages__.
 ["//visibility:legacy_public"]: The default visibility, behaves as //visibility:public
     for now. It is an error if it is used in a module.

If a module does not specify the `visibility` property then it uses the `default_visibility` property of the `package` module in the module's package. If the `default_visibility` property is not set for the module's package then it will use the `default_visibility` of its closest ancestor package for which a `default_visibility` property is specified. If no `default_visibility` property can be found then the module uses the global default of `//visibility:legacy_public`. The `visibility` property has no effect on a defaults module although it does apply to any non-defaults module that uses it. To set the visibility of a defaults module, use the `defaults_visibility` property on the defaults module; not to be confused with the `default_visibility` property on the package module. See https://android.googlesource.com/platform/build/soong/+/main/README.md#visibility for more details.

sanitizer_libraries_txt

 name string, The name of the module. Must be unique across all modules.
 arch interface
 compile_multilib string, control whether this module compiles for 32-bit, 64-bit, or both. Possible values are "32" (compile for 32-bit only), "64" (compile for 64-bit only), "both" (compile for both architectures), or "first" (compile for 64-bit on a 64-bit platform, and 32-bit on a 32-bit platform).
 debug_ramdisk bool, Whether this module is installed to debug ramdisk
 device_specific bool, whether this module is specific to a device, not only for SoC, but also for off-chip peripherals. When set to true, it is installed into /odm (or /vendor/odm if odm partition does not exist, or /system/vendor/odm if both odm and vendor partitions do not exist). This implies `soc_specific:true`.
dist Dist
configuration to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 targets list of string, Copy the output of this module to the $DIST_DIR when `dist` is specified on the command line and any of these targets are also on the command line, or otherwise built
 dest string, The name of the output artifact. This defaults to the basename of the output of the module.
 dir string, The directory within the dist directory to store the artifact. Defaults to the top level directory ("").
 suffix string, A suffix to add to the artifact file name (before any extension).
 append_artifact_with_product bool, If true, then the artifact file will be appended with _<product name>. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be foo_coral.apk. If false, there is no change to the artifact file name.
 prepend_artifact_with_product bool, If true, then the artifact file will be prepended with <product name>-. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be coral-foo.apk. If false, there is no change to the artifact file name.
 tag string, A string tag to select the OutputFiles associated with the tag. If no tag is specified then it will select the default dist paths provided by the module type. If a tag of "" is specified then it will return the default output files provided by the modules, i.e. the result of calling OutputFiles("").
 dists list of Dist, a list of configurations to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 enabled configurable bool, emit build rules for this module Disabling a module should only be done for those modules that cannot be built in the current environment. Modules that can build in the current environment but are not usually required (e.g. superceded by a prebuilt) should not be disabled as that will prevent them from being built by the checkbuild target and so prevent early detection of changes that have broken those modules.
 host_required list of string, names of other modules to install on host if this module is installed
 init_rc configurable list of string, init.rc files to be installed if this module is installed
 licenses list of string, Describes the licenses applicable to this module. Must reference license modules.
 multilib interface
 native_bridge_supported bool, Whether this module is built for non-native architectures (also known as native bridge binary)
 no_full_install bool, When set to true, this module is not installed to the full install path (ex: under out/target/product/<name>/<partition>). It can be installed only to the packaging modules like android_filesystem.
 odm_dlkm_specific bool, Install to partition odm_dlkm when set to true.
 overrides list of string, List of module names that are prevented from being installed when this module gets installed.
 owner string, vendor who owns this module
 product_specific bool, whether this module is specific to a software configuration of a product (e.g. country, network operator, etc). When set to true, it is installed into /product (or /system/product if product partition does not exist).
product_variables.debuggable
init_rc
  []string
required
  []string
host_required
  []string
target_required
  []string
product_variables.release_aidl_use_unfrozen
required
  []string
vintf_fragment_modules
  []string
product_variables.selinuxignoreneverallows
required
  []string
product_variables.unbundled_build
enabled Configurable[bool]
 Configurable[bool] proptools.Configurable[bool]
 proprietary bool, whether this is a proprietary vendor module, and should be installed into /vendor
 ramdisk bool, Whether this module is installed to ramdisk
 recovery bool, Whether this module is installed to recovery partition
 required configurable list of string, names of other modules to install if this module is installed
 soc_specific bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist).
 system_dlkm_specific bool, Install to partition system_dlkm when set to true.
 system_ext_specific bool, whether this module extends system. When set to true, it is installed into /system_ext (or /system/system_ext if system_ext partition does not exist).
 target interface
target.android
 compile_multilib string
 enabled bool
target.host
 compile_multilib string
 target_required list of string, names of other modules to install on target if this module is installed
 team string, The team (defined by the owner/vendor) who owns the property.
 use_generic_config bool, Set to true if this module must be generic and does not require product-specific information. To be included in the system image, this property must be set to true.
 vendor bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist). Use `soc_specific` instead for better meaning.
 vendor_dlkm_specific bool, Install to partition vendor_dlkm when set to true.
 vendor_ramdisk bool, Whether this module is installed to vendor ramdisk
 vintf_fragment_modules configurable list of string, vintf_fragment Modules required from this module.
 vintf_fragments configurable list of string, VINTF manifest fragments to be installed if this module is installed
 visibility list of string, Controls the visibility of this module to other modules. Allowable values are one or more of these formats:

 ["//visibility:public"]: Anyone can use this module.
 ["//visibility:private"]: Only rules in the module's package (not its subpackages) can use
     this module.
 ["//visibility:override"]: Discards any rules inherited from defaults or a creating module.
     Can only be used at the beginning of a list of visibility rules.
 ["//some/package:__pkg__", "//other/package:__pkg__"]: Only modules in some/package and
     other/package (defined in some/package/*.bp and other/package/*.bp) have access to
     this module. Note that sub-packages do not have access to the rule; for example,
     //some/package/foo:bar or //other/package/testing:bla wouldn't have access. __pkg__
     is a special module and must be used verbatim. It represents all of the modules in the
     package.
 ["//project:__subpackages__", "//other:__subpackages__"]: Only modules in packages project
     or other or in one of their sub-packages have access to this module. For example,
     //project:rule, //project/library:lib or //other/testing/internal:munge are allowed
     to depend on this rule (but not //independent:evil)
 ["//project"]: This is shorthand for ["//project:__pkg__"]
 [":__subpackages__"]: This is shorthand for ["//project:__subpackages__"] where
     //project is the module's package. e.g. using [":__subpackages__"] in
     packages/apps/Settings/Android.bp is equivalent to
     //packages/apps/Settings:__subpackages__.
 ["//visibility:legacy_public"]: The default visibility, behaves as //visibility:public
     for now. It is an error if it is used in a module.

If a module does not specify the `visibility` property then it uses the `default_visibility` property of the `package` module in the module's package. If the `default_visibility` property is not set for the module's package then it will use the `default_visibility` of its closest ancestor package for which a `default_visibility` property is specified. If no `default_visibility` property can be found then the module uses the global default of `//visibility:legacy_public`. The `visibility` property has no effect on a defaults module although it does apply to any non-defaults module that uses it. To set the visibility of a defaults module, use the `defaults_visibility` property on the defaults module; not to be confused with the `default_visibility` property on the package module. See https://android.googlesource.com/platform/build/soong/+/main/README.md#visibility for more details.

vndk_prebuilt_shared

vndk_prebuilt_shared installs Vendor Native Development kit (VNDK) snapshot shared libraries for system build. Example:

	vndk_prebuilt_shared {
	    name: "libfoo",
	    version: "27",
	    target_arch: "arm64",
	    vendor_available: true,
	    product_available: true,
	    vndk: {
	        enabled: true,
	    },
	    export_include_dirs: ["include/external/libfoo/vndk_include"],
	    arch: {
	        arm64: {
	            srcs: ["arm/lib64/libfoo.so"],
	        },
	        arm: {
	            srcs: ["arm/lib/libfoo.so"],
	        },
	    },
	}

 name string, The name of the module. Must be unique across all modules.
 srcs list of string, Prebuilt files for each arch.
 defaults list of string
 afdo bool, Afdo allows developers self-service enroll for automatic feedback-directed optimization using profile data.
aidl
 export_aidl_headers bool, export headers generated from .aidl sources
 allow_undefined_symbols bool, allow the module to contain undefined symbols. By default, modules cannot contain undefined symbols that are not satisified by their immediate dependencies. Set this flag to true to remove --no-undefined from the linker flags. This flag should only be necessary for compiling low-level libraries like libc.
 apex_available list of string, Availability of this module in APEXes. Only the listed APEXes can contain this module. If the module has stubs then other APEXes and the platform may access it through them (subject to visibility). "//apex_available:anyapex" is a pseudo APEX name that matches to any APEX. "//apex_available:platform" refers to non-APEX partitions like "system.img". Prefix pattern (com.foo.*) can be used to match with any APEX name with the prefix(com.foo.). Default is ["//apex_available:platform"].
 arch interface
 binder32bit bool, If the prebuilt snapshot lib is built with 32 bit binder, this must be set to true. The lib with 64 bit binder does not need to set this property.
 bootstrap bool, Allows this module to use non-APEX version of libraries. Useful for building binaries that are started before APEXes are activated.
buildstubs bool
 bool bool
 check_elf_files bool, Check the prebuilt ELF files (e.g. DT_SONAME, DT_NEEDED, resolution of undefined symbols, etc). Default: false
 clang bool, Deprecated. true is the default, false is invalid.
 cmake_snapshot_supported bool, Allows this module to be included in CMake release snapshots to be built outside of Android build system and source tree.
 compile_multilib string, control whether this module compiles for 32-bit, 64-bit, or both. Possible values are "32" (compile for 32-bit only), "64" (compile for 64-bit only), "both" (compile for both architectures), or "first" (compile for 64-bit on a 64-bit platform, and 32-bit on a 32-bit platform).
 debug_ramdisk bool, Whether this module is installed to debug ramdisk
 device_specific bool, whether this module is specific to a device, not only for SoC, but also for off-chip peripherals. When set to true, it is installed into /odm (or /vendor/odm if odm partition does not exist, or /system/vendor/odm if both odm and vendor partitions do not exist). This implies `soc_specific:true`.
dist Dist
configuration to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 targets list of string, Copy the output of this module to the $DIST_DIR when `dist` is specified on the command line and any of these targets are also on the command line, or otherwise built
 dest string, The name of the output artifact. This defaults to the basename of the output of the module.
 dir string, The directory within the dist directory to store the artifact. Defaults to the top level directory ("").
 suffix string, A suffix to add to the artifact file name (before any extension).
 append_artifact_with_product bool, If true, then the artifact file will be appended with _<product name>. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be foo_coral.apk. If false, there is no change to the artifact file name.
 prepend_artifact_with_product bool, If true, then the artifact file will be prepended with <product name>-. For example, if the product is coral and the module is an android_app module of name foo, then the artifact would be coral-foo.apk. If false, there is no change to the artifact file name.
 tag string, A string tag to select the OutputFiles associated with the tag. If no tag is specified then it will select the default dist paths provided by the module type. If a tag of "" is specified then it will return the default output files provided by the modules, i.e. the result of calling OutputFiles("").
 dists list of Dist, a list of configurations to distribute output files from this module to the distribution directory (default: $OUT/dist, configurable with $DIST_DIR)
 double_loadable bool, whether this module is capable of being loaded with other instance (possibly an older version) of the same module in the same process. Currently, a shared library that is a member of VNDK (vndk: {enabled: true}) can be double loaded in a vendor process if the library is also a (direct and indirect) dependency of an LLNDK library. Such libraries must be explicitly marked as `double_loadable: true` by the owner, or the dependency from the LLNDK lib should be cut if the lib is not designed to be double loaded.
 dynamic_list string, local file name to pass to the linker as --dynamic-list. Not supported on darwin, and will fail to build if provided to the darwin variant of a module.
 enabled configurable bool, emit build rules for this module Disabling a module should only be done for those modules that cannot be built in the current environment. Modules that can build in the current environment but are not usually required (e.g. superceded by a prebuilt) should not be disabled as that will prevent them from being built by the checkbuild target and so prevent early detection of changes that have broken those modules.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with this module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build this module
 exclude_static_libs list of string, list of static libs that should not be used to build this module
 export_cflags list of string, list of plain cc flags to be used for any module that links against this module.
 export_flags list of string, list of flags that will be used for any module that links against this module.
 export_generated_headers list of string, list of generated headers to re-export include directories from. Entries must be present in generated_headers.
 export_header_lib_headers configurable list of string, list of header libraries to re-export include directories from. Entries must be present in header_libs.
 export_include_dirs configurable list of string, list of directories relative to the Blueprints file that will be added to the include path (using -I) for this module and any module that links against this module. Directories listed in export_include_dirs do not need to be listed in local_include_dirs.
 export_shared_lib_headers list of string, list of shared libraries to re-export include directories from. Entries must be present in shared_libs.
 export_static_lib_headers list of string, list of static libraries to re-export include directories from. Entries must be present in static_libs.
 export_system_include_dirs list of string, list of directories that will be added to the system include path using -isystem for this module and any module that links against this module.
 exported_symbols_list string, local file name to pass to the linker as -exported_symbols_list
 force_symbols_not_weak_list string, local file name to pass to the linker as -force_symbols_not_weak_list
 force_symbols_weak_list string, local file name to pass to the linker as -force_symbols_weak_list
 group_static_libs bool, deprecated and ignored because lld makes it unnecessary. See b/189475744.
header_abi_checker headerAbiCheckerProperties
Properties for ABI compatibility checker.
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 header_libs configurable list of string, list of modules that should only provide headers for this module.
 host_ldlibs list of string, -l arguments to pass to linker for host-provided shared libraries
 host_required list of string, names of other modules to install on host if this module is installed
 ignore_max_page_size bool, ignore max page size. By default, max page size must be the max page size set for the target.
 init_rc configurable list of string, init.rc files to be installed if this module is installed
 inject_bssl_hash bool, Inject boringssl hash into the shared library. This is only intended for use by external/boringssl.
 install_in_root bool, Install output directly in {partition}/, not in any subdir. This is only intended for use by init_first_stage.
 install_in_xbin bool, Install output directly in {partition}/xbin
 installable bool
 ldflags list of string, list of module-specific flags that will be used for all link steps
 licenses list of string, Describes the licenses applicable to this module. Must reference license modules.
 linker_scripts list of string, local files to pass to the linker as --script. Not supported on darwin or windows, and will fail to build if provided to the darwin or windows variant of a module.
llndk llndkLibraryProperties
If this is an LLNDK library, properties to describe the LLNDK stubs. Will be copied from the module pointed to by llndk_stubs if it is set.
 symbol_file string, Relative path to the symbol map. An example file can be seen here: TODO(danalbert): Make an example.
 export_headers_as_system bool, Whether to export any headers as -isystem instead of -I. Mainly for use by bionic/libc.
 unversioned bool, Whether the system library uses symbol versions.
 export_llndk_headers list of string, list of llndk headers to re-export include directories from.
 override_export_include_dirs list of string, list of directories relative to the Blueprints file that willbe added to the include path (using -I) for any module that links against the LLNDK variant of this module, replacing any that were listed outside the llndk clause.
 private bool, whether this module can be directly depended upon by libs that are installed to /vendor and /product. When set to true, this module can only be depended on by VNDK libraries, not vendor nor product libraries. This effectively hides this module from non-system modules. Default value is false.
 llndk_headers bool, if true, make this module available to provide headers to other modules that set llndk.symbol_file.
 moved_to_apex bool, moved_to_apex marks this module has having been distributed through an apex module.
 logtags list of string, *.logtags files, to combine together in order to generate the /system/etc/event-log-tags file
lto
Lto must violate capitalization style for acronyms so that it can be referred to in blueprint files as "lto"
 never bool
 thin bool
 lto_O0 bool, Use --lto-O0 flag.
 min_sdk_version string, Minimum OS API level supported by this C or C++ module. This property becomes the value of the __ANDROID_API__ macro. When the C or C++ module is included in an APEX or an APK, this property is also used to ensure that the min_sdk_version of the containing module is not older (i.e. less) than this module's min_sdk_version. When not set, this property defaults to the value of sdk_version. When this is set to "apex_inherit", this tracks min_sdk_version of the containing APEX. When the module is not built for an APEX, "apex_inherit" defaults to sdk_version.
 multilib interface
 native_bridge_supported bool, Whether this module is built for non-native architectures (also known as native bridge binary)
 native_coverage bool
 no_crt_pad_segment bool, don't link in crt_pad_segment. This flag is currently only used internal to soong for testing and for vndk prebuilt shared libraries. Default: true
 no_full_install bool, When set to true, this module is not installed to the full install path (ex: under out/target/product/<name>/<partition>). It can be installed only to the packaging modules like android_filesystem.
 no_libcrt bool, don't link in libclang_rt.builtins-*.a Default: true
 nocrt bool, don't link in crt_begin and crt_end. This flag should only be necessary for compiling crt or libc. Default: true
 odm_available bool, This is the same as the "vendor_available" except that the install path of the vendor variant is /odm or /vendor/odm. By replacing "vendor_available: true" with "odm_available: true", the module will install its vendor variant to the /odm partition or /vendor/odm. As the modules with "odm_available: true" still create the vendor variants, they can link to the other vendor modules as the vendor_available modules do. Also, the vendor modules can link to odm_available modules. It may not be used for VNDK modules.
 odm_dlkm_specific bool, Install to partition odm_dlkm when set to true.
 optimize_for_size bool, Aggresively trade performance for smaller binary size. This should only be used for on-device binaries that are rarely executed and not performance critical.
orderfile
 instrumentation bool
 order_file_path string
 load_order_file bool
 cflags list of string, Additional compiler flags to use when building this module for orderfile profiling.
 overrides list of string, Names of modules to be overridden. Listed modules can only be other shared libraries (in Make or Soong). This does not completely prevent installation of the overridden libraries, but if both binaries would be installed by default (in PRODUCT_PACKAGES) the other library will be removed from PRODUCT_PACKAGES.
 owner string, vendor who owns this module
 pack_relocations bool, Generate compact dynamic relocation table, default true.
 product_available bool, whether this module should be allowed to be directly depended by other modules with `product_specific: true` or `product_available: true`. If set to true, an additional product variant will be built separately that is limited to the set of libraries and headers that are exposed to /product modules. The product variant may be used with a different (newer) /system, so it shouldn't have any unversioned runtime dependencies, or make assumptions about the system that may not be true in the future. If set to false, this module becomes inaccessible from /product modules. Different from the 'vendor_available' property, the modules with vndk: {enabled: true} don't have to define 'product_available'. The VNDK library without 'product_available' may not be depended on by any other modules that has product variants including the product available VNDKs. Nothing happens if BOARD_VNDK_VERSION isn't set in the BoardConfig.mk and PRODUCT_PRODUCT_VNDK_VERSION isn't set.
 product_specific bool, whether this module is specific to a software configuration of a product (e.g. country, network operator, etc). When set to true, it is installed into /product (or /system/product if product partition does not exist).
product_variables.arc
header_libs
  []string
shared_libs
  []string
static_libs
  []string
srcs
  []string
whole_static_libs
  []string
product_variables.build_from_text_stub
static_libs
  []string
exclude_static_libs
  []string
product_variables.debuggable
init_rc
  []string
required
  []string
host_required
  []string
target_required
  []string
strip.all
  *bool
strip.keep_symbols
  *bool
strip.keep_symbols_and_debug_frame
  *bool
static_libs
  []string
exclude_static_libs
  []string
whole_static_libs
  []string
shared_libs
  []string
srcs
  []string
product_variables.eng
lto.never
  *bool
product_variables.malloc_low_memory
shared_libs
  []string
whole_static_libs
  []string
static_libs
  []string
exclude_static_libs
  []string
srcs
  []string
header_libs
  []string
product_variables.native_coverage
srcs
  []string
product_variables.release_aidl_use_unfrozen
required
  []string
vintf_fragment_modules
  []string
product_variables.selinuxignoreneverallows
required
  []string
product_variables.unbundled_build
enabled Configurable[bool]
 Configurable[bool] proptools.Configurable[bool]
 proprietary bool, whether this is a proprietary vendor module, and should be installed into /vendor
proto
 export_proto_headers bool, export headers generated from .proto sources
 ramdisk bool, Whether this module is installed to ramdisk
 ramdisk_available bool, Make this module available when building for ramdisk. On device without a dedicated recovery partition, the module is only available after switching root into /first_stage_ramdisk. To expose the module before switching root, install the recovery variant instead.
 recovery bool, Whether this module is installed to recovery partition
 recovery_available bool, Make this module available when building for recovery
 relative_install_path string, install to a subdirectory of the default install path for the module
 required configurable list of string, names of other modules to install if this module is installed
 runtime_libs list of string, list of modules that should be installed with this module. This is similar to 'required' but '.vendor' suffix will be appended to the module names if the shared libraries have vendor variants and this module uses VNDK.
 sdk_variant_only bool, If true, always create an sdk variant and don't create a platform variant.
 sdk_version string, The API level that this module is built against. The APIs of this API level will be visible at build time, but use of any APIs newer than min_sdk_version will render the module unloadable on older devices. In the future it will be possible to weakly-link new APIs, making the behavior match Java: such modules will load on older devices, but calling new APIs on devices that do not support them will result in a crash. This property has the same behavior as sdk_version does for Java modules. For those familiar with Android Gradle, the property behaves similarly to how compileSdkVersion does for Java code. In addition, setting this property causes two variants to be built, one for the platform and one for apps.
shared StaticOrSharedProperties
 srcs configurable list of string
 tidy_disabled_srcs list of string
 tidy_timeout_srcs list of string
sanitized Sanitized
none
 srcs list of string
address
 srcs list of string
hwaddress
 srcs list of string
 cflags configurable list of string
 enabled bool
 whole_static_libs configurable list of string
 static_libs configurable list of string
 shared_libs configurable list of string
 system_shared_libs list of string
 export_shared_lib_headers list of string
 export_static_lib_headers list of string
 apex_available list of string
 installable bool
 shared_libs configurable list of string, list of modules that should be dynamically linked into this module.
 soc_specific bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist).
 static_libs configurable list of string, list of modules that should be statically linked into this module.
 static_ndk_lib bool
 stem string, set the name of the output
strip
 none bool, Device modules default to stripping enabled leaving mini debuginfo. Host modules default to stripping disabled, but can be enabled by setting any other strip boolean property. Default: true
 all bool, all forces stripping everything, including the mini debug info.
 keep_symbols bool, keep_symbols enables stripping but keeps all symbols.
 keep_symbols_list list of string, keep_symbols_list specifies a list of symbols to keep if keep_symbols is enabled. If it is unset then all symbols are kept.
 keep_symbols_and_debug_frame bool, keep_symbols_and_debug_frame enables stripping but keeps all symbols and debug frames.
stubs StubsProperties
Generate stubs to make this library accessible to APEXes.
 symbol_file string, Relative path to the symbol map. The symbol map provides the list of symbols that are exported for stubs variant of this library.
 versions list of string, List versions to generate stubs libs for. The version name "current" is always implicitly added.
 implementation_installable bool, Whether to not require the implementation of the library to be installed if a client of the stubs is installed. Defaults to true; set to false if the implementation is made available by some other means, e.g. in a Microdroid virtual machine.
 suffix string, set suffix of the name of the output
 system_dlkm_specific bool, Install to partition system_dlkm when set to true.
 system_ext_specific bool, whether this module extends system. When set to true, it is installed into /system_ext (or /system/system_ext if system_ext partition does not exist).
 system_shared_libs list of string, list of system libraries that will be dynamically linked to shared library and executable modules. If unset, generally defaults to libc, libm, and libdl. Set to [] to prevent linking against the defaults. Default: []
 target interface
target.android
 compile_multilib string
 enabled bool
target.apex
 exclude_shared_libs list of string, list of shared libs that should not be used to build the apex variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the apex variant of the C/C++ module.
target.host
 compile_multilib string
target.non_apex
 exclude_shared_libs list of string, list of shared libs that should not be used to build the non-apex variant of the C/C++ module.
target.platform
 required list of string, List of modules required by the core variant.
 exclude_required list of string, List of modules not required by the core variant.
header_abi_checker headerAbiCheckerProperties
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 shared_libs list of string, list of shared libs that should be use to build the platform variant of a module that sets sdk_version. This should rarely be necessary, in most cases the same libraries are available for the SDK and platform variants.
 header_libs list of string, list of ehader libs that only should be used to build platform variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the platform variant of the C/C++ module.
target.product
 shared_libs list of string, list of shared libs that only should be used to build vendor or product variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build vendor or product variant of the C/C++ module.
 header_libs list of string, list of header libs that only should be used to build vendor or product variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor or product variant of the C/C++ module.
 version_script string, version script for vendor or product variant
 override_export_include_dirs list of string, list of exported include directories, like export_include_dirs, that will be applied to vendor or product variant of this library. This will overwrite any other declarations.
 suffix string, set suffix of the name of the output
header_abi_checker headerAbiCheckerProperties
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 no_stubs bool, Disable stubs for vendor/product variants This is a workaround to keep `stubs` only for "core" variant (not product/vendor). It would be nice if we could put `stubs` into a `target: { core: {} }` block but it's not supported in soong yet. This could be removed/simplified once we have a better syntax.
target.ramdisk
 static_libs list of string, list of static libs that only should be used to build the ramdisk variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the ramdisk variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the ramdisk variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the ramdisk variant of the C/C++ module.
target.recovery
 required list of string, List of modules required by the recovery variant.
 exclude_required list of string, List of modules not required by the recovery variant.
 shared_libs list of string, list of shared libs that only should be used to build the recovery variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build the recovery variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build the recovery variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the recovery variant of the C/C++ module.
target.vendor
 suffix string, set suffix of the name of the output
header_abi_checker headerAbiCheckerProperties
 enabled bool, Enable ABI checks (even if this is not an LLNDK/VNDK lib)
 symbol_file string, Path to a symbol file that specifies the symbols to be included in the generated ABI dump file
 exclude_symbol_versions list of string, Symbol versions that should be ignored from the symbol file
 exclude_symbol_tags list of string, Symbol tags that should be ignored from the symbol file
 check_all_apis bool, Run checks on all APIs (in addition to the ones referred by one of exported ELF symbols.)
 diff_flags list of string, Extra flags passed to header-abi-diff
 ref_dump_dirs list of string, Opt-in reference dump directories
 no_stubs bool, Disable stubs for vendor/product variants This is a workaround to keep `stubs` only for "core" variant (not product/vendor). It would be nice if we could put `stubs` into a `target: { core: {} }` block but it's not supported in soong yet. This could be removed/simplified once we have a better syntax.
 override_export_include_dirs list of string, list of exported include directories, like export_include_dirs, that will be applied to vendor or product variant of this library. This will overwrite any other declarations.
 shared_libs list of string, list of shared libs that only should be used to build vendor or product variant of the C/C++ module.
 static_libs list of string, list of static libs that only should be used to build vendor or product variant of the C/C++ module.
 header_libs list of string, list of header libs that only should be used to build vendor or product variant of the C/C++ module.
 exclude_shared_libs list of string, list of shared libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_header_libs list of string, list of header libs that should not be used to build vendor or product variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor or product variant of the C/C++ module.
 version_script string, version script for vendor or product variant
target.vendor_ramdisk
 exclude_shared_libs list of string, list of shared libs that should not be used to build the vendor ramdisk variant of the C/C++ module.
 exclude_static_libs list of string, list of static libs that should not be used to build the vendor ramdisk variant of the C/C++ module.
 exclude_runtime_libs list of string, list of runtime libs that should not be installed along with the vendor ramdisk variant of the C/C++ module.
 target_arch string, Target arch name of the snapshot (e.g. 'arm64' for variant 'aosp_arm64')
 target_required list of string, names of other modules to install on target if this module is installed
 team string, The team (defined by the owner/vendor) who owns the property.
 test_only bool, Indicates that the module and its source code are only used in tests, not production code. Used by coverage reports and potentially other tools.
 tidy bool, whether to run clang-tidy over C-like sources.
 tidy_checks list of string, Extra checks to enable or disable in clang-tidy
 tidy_checks_as_errors list of string, Checks that should be treated as errors.
 tidy_flags list of string, Extra flags to pass to clang-tidy
 unexported_symbols_list string, local file name to pass to the linker as -unexported_symbols_list
 unique_host_soname bool, rename host libraries to prevent overlap with system installed libraries
 use_generic_config bool, Set to true if this module must be generic and does not require product-specific information. To be included in the system image, this property must be set to true.
 use_version_lib bool, make android::build:GetBuildNumber() available containing the build ID.
 vendor bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist). Use `soc_specific` instead for better meaning.
 vendor_available bool, whether this module should be allowed to be directly depended by other modules with `vendor: true`, `proprietary: true`, or `vendor_available:true`. If set to true, two variants will be built separately, one like normal, and the other limited to the set of libraries and headers that are exposed to /vendor modules. The vendor variant may be used with a different (newer) /system, so it shouldn't have any unversioned runtime dependencies, or make assumptions about the system that may not be true in the future. If set to false, this module becomes inaccessible from /vendor modules. The modules with vndk: {enabled: true} must define 'vendor_available' to 'true'. Nothing happens if BOARD_VNDK_VERSION isn't set in the BoardConfig.mk
 vendor_dlkm_specific bool, Install to partition vendor_dlkm when set to true.
vendor_public_library vendorPublicLibraryProperties
If this is a vendor public library, properties to describe the vendor public library stubs.
 symbol_file string, Relative path to the symbol map.
 unversioned bool, Whether the system library uses symbol versions.
 export_public_headers list of string, list of header libs to re-export include directories from.
 override_export_include_dirs list of string, list of directories relative to the Blueprints file that willbe added to the include path (using -I) for any module that links against the LLNDK variant of this module, replacing any that were listed outside the llndk clause.
 vendor_ramdisk bool, Whether this module is installed to vendor ramdisk
 vendor_ramdisk_available bool, Make this module available when building for vendor ramdisk. On device without a dedicated recovery partition, the module is only available after switching root into /first_stage_ramdisk. To expose the module before switching root, install the recovery variant instead.
 version string, VNDK snapshot version.
 version_script string, local file name to pass to the linker as --version-script. Not supported on darwin, and will fail to build if provided to the darwin variant of a module.
 vintf_fragment_modules configurable list of string, vintf_fragment Modules required from this module.
 vintf_fragments configurable list of string, VINTF manifest fragments to be installed if this module is installed
 visibility list of string, Controls the visibility of this module to other modules. Allowable values are one or more of these formats:

 ["//visibility:public"]: Anyone can use this module.
 ["//visibility:private"]: Only rules in the module's package (not its subpackages) can use
     this module.
 ["//visibility:override"]: Discards any rules inherited from defaults or a creating module.
     Can only be used at the beginning of a list of visibility rules.
 ["//some/package:__pkg__", "//other/package:__pkg__"]: Only modules in some/package and
     other/package (defined in some/package/*.bp and other/package/*.bp) have access to
     this module. Note that sub-packages do not have access to the rule; for example,
     //some/package/foo:bar or //other/package/testing:bla wouldn't have access. __pkg__
     is a special module and must be used verbatim. It represents all of the modules in the
     package.
 ["//project:__subpackages__", "//other:__subpackages__"]: Only modules in packages project
     or other or in one of their sub-packages have access to this module. For example,
     //project:rule, //project/library:lib or //other/testing/internal:munge are allowed
     to depend on this rule (but not //independent:evil)
 ["//project"]: This is shorthand for ["//project:__pkg__"]
 [":__subpackages__"]: This is shorthand for ["//project:__subpackages__"] where
     //project is the module's package. e.g. using [":__subpackages__"] in
     packages/apps/Settings/Android.bp is equivalent to
     //packages/apps/Settings:__subpackages__.
 ["//visibility:legacy_public"]: The default visibility, behaves as //visibility:public
     for now. It is an error if it is used in a module.

If a module does not specify the `visibility` property then it uses the `default_visibility` property of the `package` module in the module's package. If the `default_visibility` property is not set for the module's package then it will use the `default_visibility` of its closest ancestor package for which a `default_visibility` property is specified. If no `default_visibility` property can be found then the module uses the global default of `//visibility:legacy_public`. The `visibility` property has no effect on a defaults module although it does apply to any non-defaults module that uses it. To set the visibility of a defaults module, use the `defaults_visibility` property on the defaults module; not to be confused with the `default_visibility` property on the package module. See https://android.googlesource.com/platform/build/soong/+/main/README.md#visibility for more details.
vndk
 enabled bool, declared as a VNDK or VNDK-SP module. The vendor variant will be installed in /system instead of /vendor partition. `vendor_available` and `product_available` must be explicitly set to either true or false together with `vndk: {enabled: true}`.
 support_system_process bool, declared as a VNDK-SP module, which is a subset of VNDK. `vndk: { enabled: true }` must set together. All these modules are allowed to link to VNDK-SP or LL-NDK modules only. Other dependency will cause link-type errors. If `support_system_process` is not set or set to false, the module is VNDK-core and can link to other VNDK-core, VNDK-SP or LL-NDK modules only.
 private bool, declared as a VNDK-private module. This module still creates the vendor and product variants refering to the `vendor_available: true` and `product_available: true` properties. However, it is only available to the other VNDK modules but not to the non-VNDK vendor or product modules.
 extends string, Extending another module
 whole_program_vtables bool, Use -fwhole-program-vtables cflag.
 whole_static_libs configurable list of string, list of modules whose object files should be linked into this module in their entirety. For static library modules, all of the .o files from the intermediate directory of the dependency will be linked into this modules .a file. For a shared library, the dependency's .a file will be linked into this module using -Wl,--whole-archive.