Skip to content

Commit

Permalink
update install scripts for mima
Browse files Browse the repository at this point in the history
  • Loading branch information
nift4 committed Jul 29, 2024
1 parent 1732d7e commit 36afa4b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
14 changes: 13 additions & 1 deletion add_os/mimameid/add_ubuntutouch_systemimage_haliumboot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ TK="/data/data/org.andbootmgr.app/assets/Toolkit"
PATH="$TK:$PATH"
cd "$TK" || exit 24

sed -i "s#replaceme#systempart=/dev/mmcblk1p$3 datapart=/dev/mmcblk1p$4#g" /data/abm/bootset/db/entries/"$1".conf
sed -i "s#replaceme#systempart=/dev/mmcblk1p$4 datapart=/dev/mmcblk1p$5#g" /data/abm/bootset/db/entries/"$1".conf

# Add logo
echo "logo $1/logo.bin" >> /data/abm/bootset/db/entries/"$1".conf
cp "$3" "/data/abm/bootset/$1/logo.bin"

# Create working dir
mkdir -p /data/abm/tmp/boot
Expand All @@ -15,6 +19,14 @@ cp "$2" /data/abm/tmp/boot/boot.img
# Unpack boot
unpackbootimg -i /data/abm/tmp/boot/boot.img -o /data/abm/tmp/boot/

# Format partition
DATAPART=$5
dataformat() {
true | mkfs.ext4 "/dev/block/mmcblk1p$DATAPART"
}

$FORMATDATA && dataformat

# Copy kernel
cp /data/abm/tmp/boot/boot.img-zImage "/data/abm/bootset/$1/zImage"

Expand Down
9 changes: 9 additions & 0 deletions install/mimameid.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/system/bin/sh

TK="/data/data/org.andbootmgr.app/assets/Toolkit"
PATH="$TK:$PATH"
cd "$TK" || exit 24

mkdir -p "/data/abm/bootset/$1"
echo "logo $1/logo.bin" >> /data/abm/bootset/db/entries/"$1".conf
echo "B9gBFQAAAAD+/v7uAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAA///8AAAAAAAAAAAAAAAD////AAAAAAAAAAAAAAAP////wAAAAAAAAAAAAAA/////8AAAAAAAAAAAAAB/////+AAAAAAAAAAAAAD//////AAAAAAAAAAAAAH//////gAAAAAAAAAAAAP//////wAAAAAAAAAAAAf//////4AAAAAAAAAAAA///////8AAAAAAAAAAAB///////+AAAAAAAAAAAD////////AAAAAAAAAAAD////////AAAAAAAAAAAH////////gAAAAAAAAAAH////////gAAAAAAAAAAP////////wAAAAAAAAAAP////////wAAAAAAAAAAf////////4AAAAAAAAAAf//g/////4AAAAAAAAAAf/8Af////4AAAAAAAAAA//4eP////8AAAAAAAAAA//x/P////8AAAAAAAAAA//H/P////8AAAAAAAAAA/+P/P////8AAAAAAAAAA/+f/P////8AAAAAAAAAA/+//P/f//8AAAAAAAAAA////P+P//8AAAAAAAAAA////P+D//8AAAAAAAAAA////P8wP/8AAAAAAAAAA////P88P/8AAAAAAAAAA////P5///8AAAAAAAAAA////f5///8AAAAAAAAAA///+fz///8AAAAAAAAAA///+Pz///8AAAAAAAAAA////Pn///8AAAAAAAAAA////HP///8AAAAAAAAAAf///gf///4AAAAAAAAAAf///x////4AAAAAAAAAAf////////4AAAAAAAAAAP////////wAAAAAAAAAAP////////wAAAAAAAAAAH////////gAAAAAAAAAAH////////gAAAAAAAAAAD////////AAAAAAAAAAAD////////AAAAAAAAAAAB///////+AAAAAAAAAAAA///////8AAAAAAAAAAAAf//////4AAAAAAAAAAAAP//////wAAAAAAAAAAAAH//////gAAAAAAAAAAAAD//////AAAAAAAAAAAAAB/////+AAAAAAAAAAAAAA/////8AAAAAAAAAAAAAAP////wAAAAAAAAAAAAAAD////AAAAAAAAAAAAAAAA///8AAAAAAAAAAAAAAAAH//gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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