Fixup OpenEUICC inclusion

Signed-off-by: Tad <tad@spotco.us>
This commit is contained in:
Tad 2023-08-21 17:56:38 -04:00
parent d6c3b6c8fa
commit 8b51c3cd0f
No known key found for this signature in database
GPG key ID: B286E9F57A07424B
6 changed files with 23 additions and 8 deletions

View file

@ -721,6 +721,24 @@ disableAPEX() {
}
export -f disableAPEX;
includeOE() {
cd "$DOS_BUILD_BASE/$1";
if [ -f device.mk ]; then
if grep -sq "euicc.xml" device.mk; then
echo -e "\nPRODUCT_PACKAGES += OpenEUICC" >> device.mk;
echo "Enabled OpenEUICC inclusion for $1";
fi;
fi;
if [ -f device-lineage.mk ]; then
if grep -sq "euicc.xml" device-lineage.mk; then
echo -e "\nPRODUCT_PACKAGES += OpenEUICC" >> device-lineage.mk;
echo "Enabled OpenEUICC inclusion for $1";
fi;
fi;
cd "$DOS_BUILD_BASE";
}
export -f includeOE;
enableStrongEncryption() {
cd "$DOS_BUILD_BASE/$1";
if [ -f BoardConfig.mk ]; then