64edf5bb97
Rather than hardcode the OEM ranges, parse and extract AID values from android_filesystem_config.h. An AID is defined to the tool as: * #define AID_<name> An OEM Range is defined to the the tool as: * AID_OEM_RESERVED_START * AID_OEM_RESERVED_END or * AID_OEM_RESERVED_N_START * AID_OEM_RESERVED_N_END Where N is a number. While parsing, perform sanity checks such as: 1. AIDs defined in the header cannot be within OEM range 2. OEM Ranges must be valid: * Cannot overlap one another. * Range START must be less than range END 3. Like the C preproccessor, multiple matching AID_<name> throws en error. The parser introduced here, prepares the tool to output android_ids consumable for bionic. Note that some AID_* friendly names were not consistent, thus a small fixup map had to be placed inside the tool. Test: tested parsing and dumping the data from android_filesystem_config.h file. Change-Id: Ifa4d1c9565d061b60542296fe33c8eba31649e62 Signed-off-by: William Roberts <william.c.roberts@intel.com> |
||
---|---|---|
.. | ||
acp | ||
apicheck | ||
atree | ||
droiddoc | ||
fs_config | ||
fs_get_stats | ||
ijar | ||
libhost | ||
makeparallel | ||
releasetools | ||
signapk | ||
signtos | ||
zipalign | ||
ziptime | ||
adbs | ||
Android.mk | ||
brillo-clang-format | ||
buildinfo.sh | ||
check_builds.sh | ||
check_link_type.py | ||
check_radio_versions.py | ||
compare_fileslist.py | ||
dump-package-stats | ||
event_log_tags.py | ||
fat16copy.py | ||
fileslist.py | ||
fileslist_util.py | ||
filter-product-graph.py | ||
findleaves.py | ||
fixlinebreaks.sh | ||
generate-notice-files.py | ||
java-event-log-tags.py | ||
java-layers.py | ||
kati_all_products.sh | ||
merge-event-log-tags.py | ||
mktarball.sh | ||
normalize_path.py | ||
parsedeps.py | ||
post_process_props.py | ||
print_module_licenses.sh | ||
product_debug.py | ||
soong_to_convert.py | ||
warn.py |