Skip to content
This repository has been archived by the owner on May 27, 2022. It is now read-only.

Commit

Permalink
AnyKernel: Modify for U8800; removed unneeded binaries and modules; a…
Browse files Browse the repository at this point in the history
…dded older mkbootimg and unpackbootimg binaries; added newer update-binary;
  • Loading branch information
Blefish committed Feb 3, 2012
1 parent c2ebc90 commit 3e345a8
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 13 deletions.
Binary file modified META-INF/com/google/android/update-binary
100755 → 100644
Binary file not shown.
12 changes: 1 addition & 11 deletions META-INF/com/google/android/updater-script
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
ui_print("AnyKernel Updater by Koush.");
ui_print("Extracting System Files...");
set_progress(1.000000);
mount("MTD", "system", "/system");
package_extract_dir("system", "/system");
unmount("/system");
assert(getprop("ro.product.device") == "u8800" || getprop("ro.build.product") == "u8800");
ui_print("Extracting Kernel files...");
package_extract_dir("kernel", "/tmp");
ui_print("Installing kernel...");
set_perm(0, 0, 0777, "/tmp/dump_image");
set_perm(0, 0, 0777, "/tmp/mkbootimg.sh");
set_perm(0, 0, 0777, "/tmp/mkbootimg");
set_perm(0, 0, 0777, "/tmp/unpackbootimg");
run_program("/tmp/dump_image", "boot", "/tmp/boot.img");
run_program("/tmp/unpackbootimg", "/tmp/boot.img", "/tmp/");
run_program("/tmp/mkbootimg.sh");
write_raw_image("/tmp/newboot.img", "boot");
ui_print("Done!");
Binary file removed kernel/dump_image
Binary file not shown.
Binary file modified kernel/mkbootimg
Binary file not shown.
8 changes: 6 additions & 2 deletions kernel/mkbootimg.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#!/sbin/sh
echo \#!/sbin/sh > /tmp/createnewboot.sh
echo /tmp/mkbootimg --kernel /tmp/zImage --ramdisk /tmp/boot.img-ramdisk.gz --cmdline \"$(cat /tmp/boot.img-cmdline)\" --base $(cat /tmp/boot.img-base) --output /tmp/newboot.img >> /tmp/createnewboot.sh
mkdir /boot
mount /dev/block/mmcblk0p1 /boot
/tmp/unpackbootimg -i /boot/image/boot.img -o /tmp/
echo /tmp/mkbootimg --kernel /tmp/zImage --ramdisk /tmp/boot.img-ramdisk.gz --cmdline \"$(cat /tmp/boot.img-cmdline)\" --base $(cat /tmp/boot.img-base) --pagesize $(printf "%d" 0x`cat /tmp/boot.img-pagesize`) --output /tmp/newboot.img >> /tmp/createnewboot.sh
chmod 777 /tmp/createnewboot.sh
/tmp/createnewboot.sh
return $?
cp /tmp/newboot.img /boot/image/boot.img
umount /boot
Binary file modified kernel/unpackbootimg
Binary file not shown.
Binary file modified kernel/zImage
100644 → 100755
Binary file not shown.
Binary file removed system/lib/modules/tiwlan_drv.ko
Binary file not shown.

0 comments on commit 3e345a8

Please sign in to comment.