keystore/downloadkeys.sh
#!/bin/bash
#
# Copyright © 2017-2023 Kynetics LLC
#
# This program and the accompanying materials are made
# available under the terms of the Eclipse Public License 2.0
# which is available at https://www.eclipse.org/legal/epl-2.0/
#
# SPDX-License-Identifier: EPL-2.0
#
#Script used to download aosp, nxp and rockchip platform keys.
BASE_PWD=$PWD
#Create & setup aosp directory
mkdir aosp && cd aosp
curl -O https://raw.githubusercontent.com/aosp-mirror/platform_build/android-11.0.0_r48/target/product/security/platform.x509.pem
curl -O https://raw.githubusercontent.com/aosp-mirror/platform_build/android-11.0.0_r48/target/product/security/platform.pk8
cd $BASE_PWD
#Create & setup nxp directory
mkdir nxp && cd nxp
curl -o platform.x509.pem "https://source.codeaurora.org/external/imx/android-imx/device/fsl/plain/common/security/platform.x509.pem?h=android-11.0.0_2.6.0"
curl -o platform.pk8 "https://source.codeaurora.org/external/imx/android-imx/device/fsl/plain/common/security/platform.pk8?h=android-11.0.0_2.6.0"
cd $BASE_PWD
#Create & setup rockchip directory
mkdir rockchip && cd rockchip
curl -O https://raw.githubusercontent.com/khadas/android_build/khadas-edge-nougat/target/product/security/platform.pk8
curl -O https://raw.githubusercontent.com/khadas/android_build/khadas-edge-nougat/target/product/security/platform.x509.pem
cd $BASE_PWD