This directory contains provisioning tool which helps in provisioning the secure element by using the APIs exposed by Provision library. This tool takes the input parameters from json file.
This tool can be built along with aosp build. It has dependency on libjc_common and libjc_provision.
A sample json file is located in this directory with name sample_json.txt for your reference. Also the required certificates and keys can be found in test_resources directory. Copy the certificates and the key into the emulator/device filesystem in their respective paths mentioned in the sample_json.txt.
Usage: provision_tool options Valid options are: -h, --help show the help message and exit. -a, --all jsonFile Executes all the provision commands. -k, --attest_key jsonFile Provision attestation key. -c, --cert_chain jsonFile Provision attestation certificate chain. -p, --cert_params jsonFile Provision attestation certificate parameters. -i, --attest_ids jsonFile Provision attestation IDs. -r, --shared_secret jsonFile Provision pre-shared secret. -b, --set_boot_params jsonFile Provision boot parameters. -s, --provision_stautus Prints the current provision status. -l, --lock_provision Locks the provision commands.