Commit Graph
30 Commits
Author SHA1 Message Date
osm0sis dae85a0ed5 AK2: add support for sha256 hashed boot.img
- newer devices from Xiaomi use this, see latest commits here: https://github.com/osm0sis/mkbootimg
2017-04-25 08:59:09 -03:00
osm0sis 6fedeb5dc4 AK2: introduce cmdline patching function, misc cleanup
- use proper variable for ramdisk in mkbootfs support

patch_cmdline:
- if match not present, appends to the end of the current commandline
- if match is present, expands to full string (to allow for item=value entries), and optionally replaces with a second string, or just removes the entry, then cleans up doublespaces and trailing whitespace
2017-04-22 08:59:52 -03:00
osm0sis b89e3fd164 AK2: add boot partition sanity check
- only take the first word to allow workarounds for undefined partitions with dd skip=
2017-04-21 03:01:08 -03:00
osm0sis b31389512f AK2: misc cleanups
- hide unpackelf test stderr
- accept dtb and dt.img for dt
2017-04-10 20:03:33 -03:00
Chris Renshaw bc99ae1923 AK2: fix unpackelf fix
- underp the fallback logic
2017-03-01 00:07:04 -04:00
osm0sis 7c244c6dea tools: update to latest mkbootimg+unpackbootimg builds
Compiled from my own updated fork: https://github.com/osm0sis/mkbootimg

ARM binaries; see AIK-mobile v2.6 for other architectures and optional binaries:
https://forum.xda-developers.com/showthread.php?t=2073775
2017-02-27 19:43:19 -04:00
osm0sis efed2f07ea 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.
2017-02-27 19:27:53 -04:00
osm0sis befe258b96 AK2: repair unpackelf support on repeat dirty flashes
- on Sony devices supporting standard boot.img on unloacked bootloaders first AK2 flash would convert from ELF to boot.img, but second flash would attempt to use unpackelf again and fail, so fallback to unpackbootimg
- requires updated unpackelf binary for Sony ELF devices (see: https://github.com/osm0sis/unpackelf)
2017-02-27 17:25:29 -04:00
osm0sis 092a3b3880 AK2: add more compression types and Image.fit (ChromeOS) to zImage checks 2017-02-27 16:39:13 -04:00
osm0sis c709fd50f5 AK2: add ChromeOS support
- add built-in support for futility for ChromeOS devices (see https://github.com/osm0sis/futility)
- small path cleanup since we generally need to be in /tmp/anykernel for post-repack anyway
2017-02-27 16:35:32 -04:00
osm0sis 7d9d56d453 AK2: make backup only backup when needing backup 2017-02-02 18:26:39 -04:00
osm0sis b6d48eed5e AK2: add MTD device support and dd wiping
- add built-in support for mtd-utils (nanddump, flash_erase, nandwrite) for MTD-based Android devices that do not work with dd
- wipe boot block with dd before write to be clean/safe (SuperSU zip also does this)

Known working mtd-utils ARM binaries can be found in my FlashIt v2.5 package:
https://forum.xda-developers.com/showthread.php?t=2239421
2017-02-02 15:52:09 -04:00
osm0sis a531fff38b AK2: add ELF support (repacks as boot.img for unlocked bootloaders)
- add built-in support for unpackelf for Sony ELF devices (see: https://github.com/osm0sis/unpackelf)
- kernel section is not gzipped on ELF devices with non-QCDT/non-ELF dtb, which needs compression and the dtb appended before it can be repacked (thanks @tobiaswaldvogel)
2017-02-02 15:01:59 -04:00
osm0sis 6fa951efa1 AK2: simplify zImage checks and expand to cover Image.gz, etc. 2017-02-02 14:03:12 -04:00
osm0sis 846f9d5f25 tools: update to latest builds, including busybox (1.26.2)
Compiled from my own updated forks:
https://github.com/osm0sis/mkbootimg
https://github.com/osm0sis/android-busybox-ndk

ARM binaries; see AIK-mobile v2.5 for other architectures and optional binaries:
https://forum.xda-developers.com/showthread.php?t=2073775
2017-02-02 13:37:47 -04:00
osm0sis c13647eb2e AK2: add MTK support, insert_line fix
- add built-in support for mkmtkhdr for mtk devices (see: https://github.com/osm0sis/mkmtkhdr)
- fix insert_line when inserting after the last line
2017-01-04 02:08:43 -04:00
osm0sis 5bde2c094a AK2: split functions into ak2-core to make syncing easier for devs going forward 2016-11-30 23:45:28 -04:00
osm0sis edf85e5599 tools: update to latest builds, including patched busybox (1.25.1)
Compiled from my own updated forks:
https://github.com/osm0sis/mkbootimg
https://github.com/osm0sis/android-busybox-ndk

Added upstream patches:
https://git.busybox.net/busybox/patch/?id=85100a7067a51c5e6720c0a738317cc2144ab219
https://git.busybox.net/busybox/patch/?id=69312e87b008363575a6d6603f54f94d8150e1cc
2016-11-24 09:24:28 -04:00
osm0sis fc41148d62 tools: update busybox to latest version and official patches (1.24.2) 2016-03-30 23:35:30 -03:00
osm0sis a5bb583af5 tools: update busybox to latest patched build to fix df, etc.
Compiled from my own updated fork:
https://github.com/osm0sis/android-busybox-ndk
2016-03-16 13:55:26 -03:00
osm0sis d05847d1ec tools: update to latest builds, including latest busybox patches
Compiled from my own updated forks:
https://github.com/osm0sis/mkbootimg
https://github.com/osm0sis/android-busybox-ndk
2016-02-05 17:13:46 -04:00
osm0sis c79016cd39 Backend: workaround toybox inclusion in Cyanogen Recovery
- add busybox to the zip to provide a uniform expected environment
- set up busybox symlinks in /tmp and execute anykernel.sh from a shell created with these at the front of the path, overriding the recovery applets
2016-01-24 13:31:55 -04:00
osm0sis 5112f2e4ae AnyKernel2: various fixes, new features
- fix insert_line to perform more as expected by adding a newline automatically
- add updated arm mkbootimg+unpackbootimg binaries from my AIK Build Farm, see my repos for changes
- rewrite backend to use proper exit codes from anykernel.sh now that it is shell
- fix ui_print and specific error messages by passing the outfd to anykernel.sh from the backend
- add error messages for unpacking and repacking ramdisk, and make resulting image size check into its own error message
- fix for cpio overwriting AK2 ramdisk files on some recoveries by using a tmp directory
- add further ramdisk unpack verification by checking that there are actually files in the ramdisk directory prior to moving the tmp files back
- add insert_file function to make multi-line additions easier
- add patch_fstab function to greatly simplify mount option/flag changes (thanks @Khaon for the idea)
2015-11-17 11:05:58 -04:00
osm0sis dc43d6cde5 mkbootimg+unpackbootimg: new optimized and stripped static compiles
Compiled from my own updated fork: https://github.com/osm0sis/mkbootimg
2014-07-04 08:16:29 -03:00
osm0sis 1d9aa42aea unpackbootimg: updated compile 2014-06-14 03:40:06 -03:00
osm0sis 331da1f79e mkbootimg+unpackbootimg: update to latest builds with board support
Compiled from my own updated fork: https://github.com/osm0sis/mkbootimg
2014-06-09 02:29:46 -03:00
osm0sis 18a10def08 tools: use static compiles to fix seg faults on some devices 2014-05-20 02:26:39 -03:00
osm0sis 1f39fe6083 mkbootimg+unpackbootimg: update to latest builds with support for all available offsets, second and dtb.
Compiled from my own updated fork: https://github.com/osm0sis/mkbootimg
2014-03-25 20:00:18 -03:00
osm0sis ad031d587e AnyKernel 2.0: allow for ramdisk modifications 2014-02-28 21:50:22 -04:00
osm0sis 8ea8b14eb7 initial commit: clean up repo, prep for changes 2014-02-28 21:40:19 -04:00