From efed2f07ea3eda3bb11b26588b762cd8d494764f Mon Sep 17 00:00:00 2001 From: osm0sis Date: Mon, 27 Feb 2017 19:24:40 -0400 Subject: [PATCH] AK2: add Samsung SEAndroid footer support - Chainfire inlines support for this into SuperSU (unlike the similar LG Bump support which must be added via /data/custom_boot_image_patch.sh), so we must also. --- tools/ak2-core.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/ak2-core.sh b/tools/ak2-core.sh index 3476c74..0318519 100755 --- a/tools/ak2-core.sh +++ b/tools/ak2-core.sh @@ -145,6 +145,9 @@ write_boot() { ui_print " "; ui_print "User script execution failed. Aborting..."; exit 1; fi; fi; + if [ "$(strings /tmp/anykernel/boot.img | grep SEANDROIDENFORCE )" ]; then + printf 'SEANDROIDENFORCE' >> /tmp/anykernel/boot-new.img; + fi; if [ -f "$bin/flash_erase" -a -f "$bin/nandwrite" ]; then $bin/flash_erase $block 0 0; $bin/nandwrite -p $block /tmp/anykernel/boot-new.img;