Commit Graph

  • d0648af3a5 Merge pull request #13 from nathanchance/moar-modules Chris Renshaw 2018-01-02 09:05:36 -05:00
  • a0b6db2784 example: Update modules folder for new location handling Nathan Chancellor 2018-01-02 06:45:40 -07:00
  • 218b5774d2 README: Update documentation for modules Nathan Chancellor 2018-01-01 20:32:24 -07:00
  • 6b11373d4a update-binary: Change how we handle modules Nathan Chancellor 2018-01-01 20:32:24 -07:00
  • 81066ed3d7 README: document "OG AK" mode osm0sis 2017-12-14 13:19:08 -04:00
  • 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 osm0sis 2017-12-14 13:03:23 -04:00
  • 13f2018ee3 tools: update to latest builds osm0sis 2017-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 osm0sis 2017-12-03 08:50:51 -04:00
  • df1999911b README: update for dtbo support osm0sis 2017-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 osm0sis 2017-11-29 13:34:51 -04:00
  • 5da00cb54d Example: remove AK2 attribute command confusing to new adopters osm0sis 2017-11-26 18:14:27 -04:00
  • c578db07ff anykernel: underp ownership, thanks @attack11 osm0sis 2017-11-25 18:20:24 -04:00
  • 45766e2afc AK2: tidy up compression support a little more osm0sis 2017-11-22 19:31:34 -04:00
  • 34631228b0 README: update documentation for ramdisk_compression variable osm0sis 2017-11-22 13:43:50 -04:00
  • 02b9dd7d21 anykernel: add ramdisk_compression shell variable, see 0535fd7ca0 osm0sis 2017-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 osm0sis 2017-11-22 13:28:47 -04:00
  • e6b8326197 README: update documentation for multiple compression support osm0sis 2017-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 osm0sis 2017-11-22 09:55:52 -04:00
  • 8decdd4624 AK2: Allow users to use either "" or " " for empty strings Nathan Chancellor 2017-10-15 17:32:43 -07:00
  • d907653c78 AK2: Sanitize patch_fstab for proper commas Nathan Chancellor 2017-10-15 16:50:23 -07:00
  • cf764ee768 AK2: Improve patch_fstab Nathan Chancellor 2017-10-15 15:32:15 -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 osm0sis 2017-10-14 13:42:51 -03:00
  • e7faefc0b9 anykernel: be clear ownership is also necessary to be set osm0sis 2017-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 osm0sis 2017-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 osm0sis 2017-09-22 01:35:51 -03:00
  • 65019b0f49 Backend: fix -debugging functionality on abort, clean up abort osm0sis 2017-09-22 00:18:31 -03:00
  • 4863f79152 AK2: fix abort ui_prints from slot detection checks osm0sis 2017-09-22 00:16:10 -03:00
  • 8db96bb746 README: add rkcrc to optional binaries osm0sis 2017-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 osm0sis 2017-09-11 12:10:14 -03:00
  • c867216f91 tools: update to latest builds, including busybox (1.27.2) Compiled from my own updated forks: https://github.com/osm0sis/mkbootimg https://github.com/osm0sis/android-busybox-ndk osm0sis 2017-09-10 23:26:12 -03:00
  • d5c58cdadb README: optional binaries update osm0sis 2017-09-10 23:11:11 -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) osm0sis 2017-09-10 23:05:47 -03:00
  • 1787580bf9 AK2: rename pxa1088- AOSP variant tools to pxa- per upcoming AIK release osm0sis 2017-09-10 22:55:53 -03:00
  • ce29998bf9 AK2: silence possible expected mount stderr with AVB signing osm0sis 2017-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 osm0sis 2017-08-20 00:36:17 -03:00
  • db7cb4f306 Backend: fix module copying on devices with links Chris Renshaw 2017-08-14 02:46:18 -03:00
  • 79c2ab4f60 AK2: fix AVB signing osm0sis 2017-07-14 13:16:12 -03:00
  • b91ec4deda AK2: better fix for unknown hash type - https://github.com/osm0sis/AnyKernel2/commit/45bfc5d602582c53433bd2398bdc5876a7e260c9 broke the error catching on unpackbootimg - more easily worked around during repack, see linked commit for rationale for the assumption osm0sis 2017-07-04 15:47:31 -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 osm0sis 2017-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 osm0sis 2017-06-26 21:00:23 -03:00
  • 05cb01112d AK2: accept .pem certificates for AVB signing - turns out BootSignature.jar accepts .pem as well as .der - AOSP uses "verity" keys by default for boot signatures: https://github.com/android/platform_build/tree/master/target/product/security osm0sis 2017-06-16 17:00:46 -03:00
  • ec285b291a README: add BootSignature_Android.jar to optional binary list osm0sis 2017-06-06 13:28:03 -03:00
  • 697e286654 AK2: add Android Verified Boot (AVB) signature support - add built-in support for BootSignature_Android.jar for AVB signature enforcing devices (see https://forum.xda-developers.com/android/software-hacking/signing-boot-images-android-verified-t3600606) osm0sis 2017-06-06 13:22:25 -03:00
  • 89ba5089d2 tools: update to latest unpackbootimg build Compiled from my own updated fork: https://github.com/osm0sis/mkbootimg osm0sis 2017-06-05 16:27:16 -03:00
  • 282e05ec47 update README osm0sis 2017-05-28 19:57:29 -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 osm0sis 2017-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 osm0sis 2017-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) osm0sis 2017-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 osm0sis 2017-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) osm0sis 2017-05-26 22:05:53 -03:00
  • 7a0180cd01 README: properly document all the optional binaries, add some tips Chris Renshaw 2017-05-08 11:08:29 -03:00
  • 73a94ce87f README update osm0sis 2017-05-04 18:11:58 -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 osm0sis 2017-05-04 18:02:00 -03:00
  • a4adf0111e 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 osm0sis 2017-05-04 17:22:51 -03:00
  • b72155d3a2 AK2: add SignBlob support - add built-in support for blobpack for Asus SignBlob devices (see https://github.com/AndroidRoot/BlobTools) osm0sis 2017-05-04 17:20:05 -03:00
  • dae85a0ed5 AK2: add support for sha256 hashed boot.img - newer devices from Xiaomi use this, see latest commits here: https://github.com/osm0sis/mkbootimg osm0sis 2017-04-25 08:59:09 -03:00
  • 0e23428ccf README update osm0sis 2017-04-22 09:00:09 -03:00
  • 6fedeb5dc4 AK2: introduce cmdline patching function, misc cleanup - use proper variable for ramdisk in mkbootfs support osm0sis 2017-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= osm0sis 2017-04-21 02:58:49 -03:00
  • b31389512f AK2: misc cleanups - hide unpackelf test stderr - accept dtb and dt.img for dt osm0sis 2017-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) osm0sis 2017-04-10 20:01:33 -03:00
  • 9e3135e8d9 Backend: ensure we've got a POSIX accepting chown via our busybox - per https://github.com/osm0sis/AnyKernel2/pull/10#issuecomment-283771783 osm0sis 2017-03-02 16:35:38 -04:00
  • 7c0f420bff Merge pull request #10 from axxx007xxxz/master Chris Renshaw 2017-03-02 16:31:31 -04:00
  • aaef99b696 META-INF: update-binary: Remove deprecated chown command axxx007xxxz 2017-03-02 21:10:31 +01:00
  • bc99ae1923 AK2: fix unpackelf fix Chris Renshaw 2017-03-01 00:07:04 -04:00
  • 7c244c6dea tools: update to latest mkbootimg+unpackbootimg builds Compiled from my own updated fork: https://github.com/osm0sis/mkbootimg osm0sis 2017-02-27 19:43:19 -04: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. osm0sis 2017-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) osm0sis 2017-02-27 17:23:08 -04:00
  • 092a3b3880 AK2: add more compression types and Image.fit (ChromeOS) to zImage checks osm0sis 2017-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 osm0sis 2017-02-27 16:30:54 -04:00
  • 36109b8e30 README+Example: remove do.init.d references osm0sis 2017-02-27 16:12:29 -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 osm0sis 2017-02-27 16:11:35 -04:00
  • f7992be0a3 Introduce cleanuponabort axxx007xxxz 2017-02-17 22:26:44 +01:00
  • 2129ee98e2 META-INF: update-binary: Clean up before starting the flashing process axxx007xxxz 2017-02-17 22:18:39 +01:00
  • 7aebdb2efd META-INF: update-binary: Make cleanup a function axxx007xxxz 2017-02-17 22:17:27 +01:00
  • bcf3dc5055 Switch to a null zImage axxx007xxxz 2017-02-17 22:09:00 +01: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 osm0sis 2017-02-27 15:58:43 -04:00
  • 7d9d56d453 AK2: make backup only backup when needing backup osm0sis 2017-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) osm0sis 2017-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) osm0sis 2017-02-02 14:50:38 -04:00
  • 6fa951efa1 AK2: simplify zImage checks and expand to cover Image.gz, etc. osm0sis 2017-02-02 13:43:27 -04:00
  • 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 osm0sis 2017-02-02 13:35:23 -04:00
  • a16879e4ca Backend: support /system/system (Pixel layout) for do.initd+do.modules osm0sis 2017-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 osm0sis 2017-01-03 15:55:40 -04:00
  • 8f5c3287a7 Backend: actually fix Nougat toybox mount a la 0ab42ee3ec - sigh.. option order also matters osm0sis 2016-12-12 15:58:19 -04:00
  • 5bde2c094a AK2: split functions into ak2-core to make syncing easier for devs going forward osm0sis 2016-11-30 23:10:37 -04:00
  • 0ab42ee3ec Backend: Fixes for mount on certain Nougat+ toybox implementations osm0sis 2016-11-30 21:24:07 -04:00
  • c9d8dd2d52 README update Chris Renshaw 2016-11-27 03:12:06 -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) osm0sis 2016-11-25 08:34:22 -04:00
  • 8534510bf8 AK2: add os_version/os_patch_level support (unpack/mk support already in latest binaries) osm0sis 2016-11-24 09:53:56 -04:00
  • 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 osm0sis 2016-11-24 09:16:57 -04:00
  • b15f5b53ef README: a couple more markdown fixups osm0sis 2016-11-14 04:16:33 -04:00
  • 963d7d9d36 Merge pull request #7 from DroidThug/patch-1 Chris Renshaw 2016-11-04 14:01:19 -03:00
  • 26d385cfaa README: Make it pretty! Sai Vishal 2016-11-04 13:34:26 +00: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 osm0sis 2016-10-12 13:59:45 -03:00
  • 59c1c5d596 Merge pull request #5 from attack11/master Chris Renshaw 2016-10-04 11:16:44 +00:00
  • 6dac3cae51 Add Support to ZImage-dtb (dtb its already appended) attack11 2016-09-29 16:27:02 -03:00
  • 6d74e18cee AK2: add support for configurations that require mkbootfs in tools osm0sis 2016-09-21 20:09:12 -03:00
  • 3557b290f2 AK2: explicitly only take the first match in functions using line matching osm0sis 2016-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 osm0sis 2016-07-01 12:35:42 -03:00