Skip to content

Commit

Permalink
Create flashable zip for boot.img
Browse files Browse the repository at this point in the history
  • Loading branch information
DozNaka committed Apr 27, 2022
1 parent 196540d commit 66e810c
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ Kawa/AIK-Linux/split_img/boot.img-kernel
Kawa/AIK-Linux/split_img/boot.img-dtb
Kawa/AIK-Linux/ramdisk-new.cpio.gz
Kawa/AIK-Linux/image-new.img
Kawa/boot.img
Kawa/Flashable/boot.img
Kawa/Flashable/KawaKernel-A217X.zip
Binary file not shown.
21 changes: 21 additions & 0 deletions Kawa/Flashable/META-INF/com/google/android/updater-script
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
show_progress(1, 15);
ui_print("------------------------");
ui_print("Flashing KawaKernel v1.3");
ui_print("------------------------");
ui_print(" ");
ui_print("- Maintainer: @DozNaka -");
ui_print(" ");
ui_print("------------------------");
ui_print(" ");
ui_print("- Device: SM-A217F/M -");
ui_print(" ");
ui_print("------------------------");
ui_print(" ");
ui_print("- Chip: exynos3830 -");
ui_print(" ");
ui_print("------------------------");
package_extract_file("boot.img", "/dev/block/platform/12100000.dwmmc0/by-name/boot");
show_progress(1, 15);
ui_print("Remember to reflash you ramdisk mods");
ui_print("e.g Magisk after installing this kernel!");
ui_print("Enjoy using KawaKenel :)");
11 changes: 9 additions & 2 deletions build_kernel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ rm -rf $DEFCONFIG_LOC/.tmp_defconfig
rm -rf $KAWA_LOC/boot.img
rm -rf $KAWA_LOC/AIK-Linux/split_img/boot.img-dtb
rm -rf $KAWA_LOC/AIK-Linux/split_img/boot.img-kernel
rm -rf $KAWA_LOC/Flashable/KawaKernel-A217X.zip

read -p "Clean source? [N] (Y/N): " clean_confirm
if [[ $clean_confirm == [yY] || $clean_confirm == [yY][eE][sS] ]]; then
Expand Down Expand Up @@ -59,5 +60,11 @@ cp -r $DTB_LOC/dtb.img $KAWA_LOC/AIK-Linux/split_img/boot.img-dtb
cp -r $DTB_LOC/../Image $KAWA_LOC/AIK-Linux/split_img/boot.img-kernel
# Build boot.img
$KAWA_LOC/AIK-Linux/repackimg.sh
cp -r $KAWA_LOC/AIK-Linux/image-new.img $KAWA_LOC/boot.img
echo 'Check Kawa folder for boot.img'
cp -r $KAWA_LOC/AIK-Linux/image-new.img $KAWA_LOC/Flashable/boot.img
echo 'Check Kawa/Flashable for boot.img'

# Create flashable zip
cd $KAWA_LOC/Flashable
zip -r KawaKernel-A217X.zip *
cd ../../
echo 'Check Kawa/Flashable for KawaKernel-A217X.zip'

0 comments on commit 66e810c

Please sign in to comment.