From 17e81819f7d180ca58a15659a85369879cc88f66 Mon Sep 17 00:00:00 2001 From: mid-kid Date: Fri, 3 Jun 2022 00:20:30 +0200 Subject: [PATCH] Add crDroid deblobbing script --- package_deblob.sh | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100755 package_deblob.sh diff --git a/package_deblob.sh b/package_deblob.sh new file mode 100755 index 0000000..9fe78bc --- /dev/null +++ b/package_deblob.sh @@ -0,0 +1,32 @@ +#!/bin/sh +set -e + +dir=deblob +version=1 + +rm -rf "$dir" +mkdir -p "$dir" + +cat > "$dir/module.prop" << EOF +id=deblob +name=Deblob crDroid +version=$version +versionCode=1 +author=me +description= +EOF + +# https://github.com/crdroidandroid/android_vendor_addons/tree/12.1/prebuilt/ +cat > "$dir/customize.sh" << EOF +REPLACE=" +/system/product/priv-app/DeviceIntelligenceNetworkPrebuilt +/system/product/priv-app/DevicePersonalizationPrebuiltPixel2021 +/system/product/priv-app/SettingsIntelligenceGooglePrebuilt +/system/product/priv-app/TurboPrebuilt +/system/app/FlipendoPrebuilt +" +EOF + +./package.sh "$dir" +mv "$dir/package.zip" deblob.zip +rm -rf "$dir"