liiir1985 7f62dcda9f | ||
---|---|---|
.. | ||
Android.bp | ||
CleanSpec.mk | ||
README.md | ||
apex_manifest.current.json | ||
apex_manifest.v28.json | ||
apex_manifest.v29.json | ||
apex_manifest.v30.json | ||
apex_manifest.v31.json | ||
apex_manifest.v32.json | ||
com.android.vndk.current.pem | ||
com.android.vndk.current.pk8 | ||
com.android.vndk.current.pubkey | ||
com.android.vndk.current.x509.pem | ||
com.android.vndk.v28.pem | ||
com.android.vndk.v28.pk8 | ||
com.android.vndk.v28.pubkey | ||
com.android.vndk.v28.x509.pem | ||
com.android.vndk.v29.pem | ||
com.android.vndk.v29.pk8 | ||
com.android.vndk.v29.pubkey | ||
com.android.vndk.v29.x509.pem | ||
com.android.vndk.v30.pem | ||
com.android.vndk.v30.pk8 | ||
com.android.vndk.v30.pubkey | ||
com.android.vndk.v30.x509.pem | ||
com.android.vndk.v31.pem | ||
com.android.vndk.v31.pk8 | ||
com.android.vndk.v31.pubkey | ||
com.android.vndk.v31.x509.pem | ||
com.android.vndk.v32.pem | ||
com.android.vndk.v32.pk8 | ||
com.android.vndk.v32.pubkey | ||
com.android.vndk.v32.x509.pem |
README.md
Add a new VNDK APEX
In this document we add a new VNDK APEX for version 30. When you follow this doc with different versions, change "30" to what you're adding. (eg. 31)
- Add a new definition in
Android.bp
apex_vndk {
name: "com.android.vndk.v30",
manifest: "apex_manifest.v30.json",
key: "com.android.vndk.v30.key",
certificate: ":com.android.vndk.v30.certificate",
vndk_version: "30",
system_ext_specific: true,
file_contexts: ":com.android.vndk-file_contexts",
}
apex_key {
name: "com.android.vndk.v30.key",
public_key: "com.android.vndk.v30.pubkey",
private_key: "com.android.vndk.v30.pem",
}
android_app_certificate {
name: "com.android.vndk.v30.certificate",
certificate: "com.android.vndk.v30",
}
- Add
apex_manifest.v30.json
{
"name": "com.android.vndk.v30",
"version": 1
}
- Add keys/ceritificate
openssl genrsa -out com.android.vndk.v30.pem 4096
avbtool extract_public_key --key com.android.vndk.v30.pem --output com.android.vndk.v30.pubkey
openssl req -x509 -newkey rsa:4096 -nodes -days 999999 -keyout key.pem -out com.android.vndk.v30.x509.pem
# Enter following info via the interactive prompts
# Country Name: US
# State: California
# Locality Name: Mountain View
# Organization Name: Android
# Organization Unit Name: Android
# Common Name: com.android.vndk
# Email address: android@android.com
openssl pkcs8 -topk8 -inform PEM -outform DER -in key.pem -out com.android.vndk.v30.pk8 -nocrypt
rm key.pem
- Verify
m com.android.vndk.v30