APEXs can be signed with different keys

The name of the key used to sign an APEX is recorded in the vb metadata
structure. When verifying the APEX, the name is retrived to find the
corresponding public key from the /system/etc/security/apex directory.

Bug: 115721587
Test: m apex.test; m
/apex/com.android.example.apex@1 exists

Change-Id: I55a1695483515a8f4ac7d593d11675d9dd340b36
6 files changed
tree: 2c903761dc57f93951c4c957d9e9688facc65e3c
  1. apexd/
  2. apexer/
  3. testdata/
  4. Android.bp
  5. OWNERS
  6. PREUPLOAD.cfg