7f47e21362
AK2: add "OG AK" mode by making the unpack/repack procedure more granular - split dump_boot into split_boot + unpack_ramdisk and write_boot into repack_ramdisk + flash_boot - fully backwards compatible as dump_boot and write_boot still exist and call these new functions (i.e. no changes needed to anykernel.sh) - those that wish to do zImage-only AK2 packages can now use split_boot intead of dump_boot and and flash_boot instead of repack_ramdisk in their anykernel.sh - add failsafe check for failed boot-new.img creation to ensure abort before wiping target partition in edge cases
osm0sis2017-12-14 13:03:23 -04:00
13f2018ee3
tools: update to latest builds
osm0sis2017-12-14 11:45:44 -04:00
79df8fcf0b
AK2+Backend: misc fixes - hide some expected stderr for AK2 mods with no additional ramdisk files - fix U-Boot support by passing correct repacked ramdisk filename - fix multi-compression support during repack derp - fix cleanup on successful flash not working due to double match from cleanuponabort
osm0sis2017-12-03 08:50:51 -04:00
df1999911b
README: update for dtbo support
osm0sis2017-11-29 13:47:09 -04:00
3269b51d28
AK2: add dtbo and Pixel 2 slot prop support - dtbo may be added as dtbo or dtbo.img to the base of the zip - new Pixel 2 ro.boot.slot doesn't contain _ like Pixel ro.boot.slot_suffix does
osm0sis2017-11-29 13:34:51 -04:00
5da00cb54d
Example: remove AK2 attribute command confusing to new adopters
osm0sis2017-11-26 18:14:27 -04:00
45766e2afc
AK2: tidy up compression support a little more
osm0sis2017-11-22 19:31:34 -04:00
34631228b0
README: update documentation for ramdisk_compression variable
osm0sis2017-11-22 13:43:50 -04:00
02b9dd7d21
anykernel: add ramdisk_compression shell variable, see 0535fd7ca0osm0sis2017-11-22 13:32:06 -04:00
0535fd7ca0
AK2: allow forcing repack ramdisk compression format of choice - ramdisk_compression=auto; (or undefined) in anykernel.sh is the default, automatically repacking with the detected unpack format - changing auto to gz lzo lzma xz bz2 lz4-l (for lz4 legacy) or lz4 force the repack as that format
osm0sis2017-11-22 13:28:47 -04:00
e6b8326197
README: update documentation for multiple compression support
osm0sis2017-11-22 09:59:18 -04:00
1ffbf0d1af
AK2+tools: add support for alternate ramdisk compression formats - to this point only gzip was supported, so add support for bzip2, lzop, lzma, xz and lz4 by detecting file magic via plaintext od dump comparison - busybox contains all necessary formats except for lzma/xz compression (has decompression), and lz4 so add both of these binaries to the minimal default setup
osm0sis2017-11-22 09:55:52 -04:00
8decdd4624
AK2: Allow users to use either "" or " " for empty strings
Nathan Chancellor2017-10-15 17:32:43 -07:00
6bcf2668e4
AK2: improve cpio ramdisk unpacking - add workaround for malformed ramdisks without leading directory cpio entries - explicitly set ramdisk root directory to 755 (AOSP default) to avoid issues in some environments
osm0sis2017-10-14 13:42:51 -03:00
e7faefc0b9
anykernel: be clear ownership is also necessary to be set
osm0sis2017-10-14 13:36:23 -03:00
721c5db7c2
Example: clean ups and fixes for current functions - remove more things confusing to new adopters (AK2 does not root) - update patch_fstab examples for corrected syntax
osm0sis2017-10-14 13:34:00 -03:00
aa1377c9ab
AK2: fix patch_fstab substring replacement - the 'original string' ($5) was not being used, instead the entire part was always being replaced with the 'replacement string' ($6) - replace the target 'original string' of the entry part with 'replacement string' as expected/intended
osm0sis2017-09-22 01:35:51 -03:00
65019b0f49
Backend: fix -debugging functionality on abort, clean up abort
osm0sis2017-09-22 00:18:31 -03:00
8db96bb746
README: add rkcrc to optional binaries
osm0sis2017-09-11 12:13:37 -03:00
66b221ef99
AK2: add KRNL and NOOK signed image support - add built-in support for rkcrc for Rockchip board devices signed ramdisk image (see: https://github.com/rockchip-linux/rkflashtool) - add built-in detection and support for Barnes & Noble Nook 'Green Loader/Green Recovery' signature
osm0sis2017-09-11 12:10:14 -03:00
d60281c8b2
AK2: add DHTB signed image support - add built-in support for dhtbsign for Samsung/Spreadtrum board devices signature header (see: https://github.com/osm0sis/dhtbsign)
osm0sis2017-09-10 23:05:47 -03:00
1787580bf9
AK2: rename pxa1088- AOSP variant tools to pxa- per upcoming AIK release
osm0sis2017-09-10 22:55:53 -03:00
ce29998bf9
AK2: silence possible expected mount stderr with AVB signing
osm0sis2017-08-20 01:00:53 -03:00
e6d3b4271e
Backend: miscellaneous fixes - fix busybox getting permissions on some devices where chmod does not accept -R to recurse - use busybox for more possibly non-standard broken recovery shell commands - silence some more generally expected/inconsequential stderr
osm0sis2017-08-20 00:36:17 -03:00
db7cb4f306
Backend: fix module copying on devices with links
Chris Renshaw2017-08-14 02:46:18 -03:00
adc21ed2c3
AK2: allow next blank line (" ") for replace_section and remove_section - sometimes it's difficult to anchor to specific end lines due to variations across ROMs, so allow the end line to be blank " " - note this will also remove the trailing blank line so for replacements a trailing \n should be added to maintain spacing; this should be pretty intuitive since you are including the blank line as the end line search
osm0sis2017-07-04 14:24:12 -03:00
45bfc5d602
AK2: assume sha1 if "unknown" hash type encountered - some Samsung device images can be unpacked and repacked with the standard tools but the id sha1 is offset differently than in the standard header resulting in broken hash type detection
osm0sis2017-06-26 21:00:23 -03:00
c4d0ed8f9c
Backend: add developer option to create a debugging archive - to make it easier to diagnose issues with patches, image creation or flashing, adding "-debugging" to the end of the AK2 zip filename will enable the creation of a tar.gz of the entire /tmp directory after the installation process (but before cleanup, of course), this includes recovery.log, boot.img, boot-new.img and any other remnants to allow more thorough, direct debugging at a later time
osm0sis2017-05-28 18:44:46 -03:00
633e042fc6
AK2+Backend: tidy up remaining intentional stderr - no need to see these when there is an expected error during normal use
osm0sis2017-05-26 22:57:13 -03:00
e8c2006d8a
update README - document added support for U-Boot uImage devices (e.g. LG Optimus 3D), and Marvell PXA1088 board devices (e.g. Samsung Galaxy Core Mini 4G, Samsung Galaxy Tab 4 7.0 & Samsung Galaxy Xcover 3)
osm0sis2017-05-26 22:39:34 -03:00
2fcc7e6c21
Backend: don't check anykernel.sh before it's been extracted - if it does not exist yet (i.e. hasn't been extracted) then assume cleanuponabort=1 since there wouldn't be anything to see on a failed extraction - hide any missing file errors from file_getprop here now that we've taken care of that case
osm0sis2017-05-26 22:24:45 -03:00
c24b2a299d
AK2: add uImage and PXA1088 boot.img variant support - add built-in support for dumpimage/mkimage for DENX U-Boot uImage devices (see: http://git.denx.de/u-boot.git) - add built-in support for pxa1088-unpackbootimg/pxa1088-mkbootimg for Marvell PXA1088 board devices' deviation from the AOSP standard (see: https://github.com/osm0sis/pxa1088-mkbootimg)
osm0sis2017-05-26 22:05:53 -03:00
7a0180cd01
README: properly document all the optional binaries, add some tips
Chris Renshaw2017-05-08 11:08:29 -03:00
fd5bfaa381
AK2: introduce .prop files patching function patch_prop: - if matched name is not present, appends new prop entry to the end of the file - if matched name is present, replaces the entry with the new value
osm0sis2017-05-04 18:02:00 -03:00
6fedeb5dc4
AK2: introduce cmdline patching function, misc cleanup - use proper variable for ramdisk in mkbootfs support
osm0sis2017-04-22 08:59:52 -03:00
b89e3fd164
AK2: add boot partition sanity check - only take the first word to allow workarounds for undefined partitions with dd skip=
osm0sis2017-04-21 02:58:49 -03:00
b31389512f
AK2: misc cleanups - hide unpackelf test stderr - accept dtb and dt.img for dt
osm0sis2017-04-10 20:03:33 -03:00
39cdd433bd
anykernel: isolate props - not EDIFY for a while now! (put properties in a function so they aren't executed with the shell script)
osm0sis2017-04-10 20:01:33 -03:00
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.
osm0sis2017-02-27 19:24:40 -04:00
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)
osm0sis2017-02-27 17:23:08 -04:00
092a3b3880
AK2: add more compression types and Image.fit (ChromeOS) to zImage checks
osm0sis2017-02-27 16:39:13 -04:00
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
osm0sis2017-02-27 16:30:54 -04:00
b663e79a19
Backend: remove init.d directory creation - fairly pointless and seemed to confuse new adopters, who thought it alone added init.d support to a ROM
osm0sis2017-02-27 16:11:35 -04:00
d924f79ac6
Example: clean out tuna ramdisk files - these seem to confuse new adopters, so end up left in the ramdisks of various devices where they are not applicable
osm0sis2017-02-27 15:58:43 -04:00
7d9d56d453
AK2: make backup only backup when needing backup
osm0sis2017-02-02 18:26:39 -04:00
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)
osm0sis2017-02-02 15:35:10 -04:00
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)
osm0sis2017-02-02 14:50:38 -04:00
6fa951efa1
AK2: simplify zImage checks and expand to cover Image.gz, etc.
osm0sis2017-02-02 13:43:27 -04:00
a16879e4ca
Backend: support /system/system (Pixel layout) for do.initd+do.modules
osm0sis2017-01-16 15:12:53 -04:00
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
osm0sis2017-01-03 15:55:40 -04:00
8f5c3287a7
Backend: actually fix Nougat toybox mount a la 0ab42ee3ec - sigh.. option order also matters
osm0sis2016-12-12 15:58:19 -04:00
5bde2c094a
AK2: split functions into ak2-core to make syncing easier for devs going forward
osm0sis2016-11-30 23:10:37 -04:00
0ab42ee3ec
Backend: Fixes for mount on certain Nougat+ toybox implementations
osm0sis2016-11-30 21:24:07 -04:00
eeddea9c3b
AK2: add support for slot-based systems (ie. Pixel support!) - new shell variable "is_slot_device" to enable slot suffix detection ("block" shell variable remains the partition filepath minus the suffix)
osm0sis2016-11-25 08:34:22 -04:00
8534510bf8
AK2: add os_version/os_patch_level support (unpack/mk support already in latest binaries)
osm0sis2016-11-24 09:53:56 -04:00
641a1b5a09
AK2: make section functions less potentially destructive - still unable to do an actual tweak check due to grep being limited to single lines, but.. - have them check to at least ensure there's a match for end string that comes after begin string so the sed should function without any chance of removing more than intended
osm0sis2016-10-12 13:59:45 -03:00
6dac3cae51
Add Support to ZImage-dtb (dtb its already appended)
attack112016-09-29 16:27:02 -03:00
6d74e18cee
AK2: add support for configurations that require mkbootfs in tools
osm0sis2016-09-21 20:09:12 -03:00
3557b290f2
AK2: explicitly only take the first match in functions using line matching
osm0sis2016-08-16 02:22:34 -03:00
d0a43839fe
AK2: automatically escape forward slashes (/) for section functions - use simple replacement to automatically escape forward slashes (/) to make remove_section and replace_section perform like the other functions, since they are needed as part of a sed /pattern/,/pattern/d delete operation - update documentation
osm0sis2016-07-01 12:35:42 -03:00