Commit Graph

  • 62392072b2 tools: update to latest builds, including busybox (1.30.1), lz4 (1.9.0) Compiled from my own updated forks: https://github.com/osm0sis/mkbootimg https://github.com/osm0sis/android-busybox-ndk osm0sis 2019-04-18 09:35:40 -03:00
  • ac441a6eaa AK2: fix customdd detection logic osm0sis 2019-04-06 21:46:23 -03:00
  • a40fe9c65b AK2: add backwards compat for crazy devices hacking their mmcblk0 see comments here: https://github.com/osm0sis/AnyKernel2/pull/38#issuecomment-479577751 osm0sis 2019-04-05 21:21:46 -03:00
  • 3998baa529 AK2: optimize write operations Park Ju Hyung 2019-04-03 15:31:43 +09:00
  • 3ea64d006a AK2: workaround for U-Boot dumpimage failing on untrimmed uImage dumps https://lists.denx.de/pipermail/u-boot/2019-January/355670.html osm0sis 2019-03-21 17:08:04 -03:00
  • c109065a3d AK2: fix ramdisk repack and mtk signing when uncompressed cpio osm0sis 2019-02-08 23:19:21 -04:00
  • b7f18eadfd README: document cpio compression support osm0sis 2019-02-07 13:02:59 -04:00
  • 82e7c0345b AK2: add support for uncompressed cpio ramdisks ramdisk_compression=cpio or =none to force osm0sis 2019-02-07 13:00:42 -04:00
  • a1f20c0d53 Backend: support all half-sensible ROM version formats 9 9.0 9.0.0 osm0sis 2019-01-02 17:08:22 -04:00
  • 34d8a65fbe Backend: workaround bad ROM versioning practices in supported check - some ROMs have taken it upon themselves to go against AOSP, i.e. where starting with Pie AOSP now versions it as only 9, some ROMs are still making it 9.0 - introduce integer 2 float function that will add a decimal place to all for comparisons - this should support the majority of ROMs, but anything crazy like 9.0.0, or crazier like 09.0.0 should be frowned upon by the community and the ROM devs should be made to get it together and follow AOSP osm0sis 2018-12-20 13:46:52 -04:00
  • 9d49de1caf Backend: clean up mounting - only mount system when not already mounted (avoids harmless stderr during booted flashes) - optimize module targeting and mount logic further osm0sis 2018-12-16 23:17:16 -04:00
  • 2ec3b8cf72 README: touchups to supported.versions documentation (Android 8.1 was 8.1.0 in build.prop ;) ) osm0sis 2018-12-16 19:14:03 -04:00
  • 414a9dcea0 Revert "anykernel: fix ramdisk/sbin permissions" osm0sis 2018-12-16 18:37:29 -04:00
  • 614be6510b README: document supported.versions osm0sis 2018-12-16 18:37:15 -04:00
  • ddf0e59256 anykernel: add supported.versions osm0sis 2018-12-16 18:36:54 -04:00
  • a31d03f2ce Backend: introduce Android version check - checks the supported.versions prop in anykernel.sh and matches against it to prevent users flashing incorrect kernels for ROM versions - supported.versions can be a list, e.g. "7.1.2, 8.0, 8.1" or a range, e.g. "8.1 - 9" of versions in the correct formatting for that Android version in ro.build.version.release in /system/build.prop osm0sis 2018-12-16 18:31:53 -04:00
  • 9e24ea91f1 README: add replace_string scope + note re: extra device.name# entries osm0sis 2018-12-16 14:23:33 -04:00
  • d9acb3384d AK2: allow replace_string to optionally global scope replace osm0sis 2018-12-16 14:03:47 -04:00
  • 1d58385b26 AK2+Backend: fix file_getprop truncating if prop value contained = See comments: https://github.com/osm0sis/AnyKernel2/pull/35#issuecomment-447648900 osm0sis 2018-12-16 13:51:57 -04:00
  • 56b4244d53 Backend: cleanups osm0sis 2018-12-15 00:36:26 -04:00
  • 77fe6bffeb Backend: more robust getprop checks and replacements - getprop failures are not only a system-as-root device issue, as it now also happens on OnePlus 5T in recovery when ROM is Pie Open Beta - this appears to come down to a libc mismatch between recovery and ROM resulting in direct property checks failing but getprop without arguments printing all properties working - revert most of https://github.com/osm0sis/AnyKernel2/commit/b1524da099efa716616a8eb3357876bca6a73540 since this should remain resolved with the new implementation - keep the old check and file_getprop fallback for devices without getprop entirely - add new getprop fallback that parses the full getprop output osm0sis 2018-12-14 16:29:53 -04:00
  • dda2ee9bbf README: document device.name<num> limit removal osm0sis 2018-12-14 15:46:22 -04:00
  • da8c2d1e6c Backend: allow infinite device.name<num>= device check properties (#34) osm0sis 2018-12-14 15:40:25 -04:00
  • fd881bd8d7 Backend: only attempt module bind remount if already mounted - blindly attempting to remount broke module placement on some ROMs (e.g. Pocophone MIUI stock) osm0sis 2018-12-11 13:34:37 -04:00
  • 6d5332e054 Backend: attempt remounting module location as well - some custom ROMs on some devices (e.g. Lineage on Pocophone) bind mount modules in /system over modules on /vendor, so remount rw at the bind target to ensure the bind source is also remounted and replaced - toybox mount doesn't accept the /. prefixed paths from find so ensure we use busybox for mounts osm0sis 2018-12-11 02:15:53 -04:00
  • e1ae4412f5 AK2: add AOSP boot_img_hdr_v1 support osm0sis 2018-10-28 19:30:59 -03:00
  • 301ed77319 tools: update to latest builds, including busybox (1.29.3), lz4 (1.8.3) osm0sis 2018-10-28 19:28:03 -03:00
  • 9d7f85807f AK2: fix stupid copy pasta error thanks eng.stk for catching it osm0sis 2018-10-01 13:18:43 -03:00
  • 3ab879b71a AK2: add Android Pie /dev/block/by-name location to partition search list osm0sis 2018-09-30 14:44:00 -03:00
  • 361712b5e2 tools: update to latest builds, including busybox (1.29.2) osm0sis 2018-09-08 15:50:34 -03:00
  • 51662f9a1d README: Document flash_dtbo Nathan Chancellor 2018-08-02 13:57:02 -07:00
  • 5ce0e9f2d4 AK2: Move flash_dtbo into write_boot Nathan Chancellor 2018-08-02 13:51:44 -07:00
  • d067d39b83 AK2: Expose dtbo flashing Nathan Chancellor 2018-08-01 17:35:34 -07:00
  • e92d8f96c6 AK2: Allow reading multiple lines from version file DarkLord1731 2018-07-29 00:15:18 +05:30
  • 30cca512d9 tools: bring back busybox 1.29.1 built with the broken gzip rolled back https://bugs.busybox.net/show_bug.cgi?id=11171 osm0sis 2018-07-24 13:19:55 -03:00
  • 8aa7b787e1 tools: revert to busybox 1.28.4 until an issue with 1.29.1 gzip can be resolved - gzip in busybox 1.29.1 doesn't seem to use compression anymore, with -1 and -9 both coming out to the same size, generally dramatically larger than previously resulting in boot-new.img exceeding the partition size on some devices so then failing the check. osm0sis 2018-07-23 23:03:44 -03:00
  • a53e3f765c tools: update to latest builds, including busybox (1.29.1), lz4 (1.8.2) and xz (5.2.4) Compiled from my own updated forks: https://github.com/osm0sis/mkbootimg https://github.com/osm0sis/android-busybox-ndk osm0sis 2018-07-23 10:39:04 -03:00
  • b1524da099 Backend: move system_root mounting to after device check - adapted from https://github.com/nathanchance/AnyKernel2/commit/3dfba3dcabff3cf1f859276e1851ae35891d8801 - works around odd behaviors in TWRP on system-as-root devices, but retains working fallback using /system/system/build.prop if getprop also fails - simplify unmount_all stderr redirection osm0sis 2018-07-19 21:22:30 -03:00
  • 0b8b09f29e AK2: fix repacked ramdisk check now that compext is local to repack_ramdisk Thanks eng.stk for reporting and testing the fix osm0sis 2018-07-16 23:16:26 -03:00
  • 01bf828e78 backend: Break out of device check loop if a match is found Nathan Chancellor 2018-07-16 16:42:02 -07:00
  • dd914e3385 backend: Break out of device check loop if a blank value is found Nathan Chancellor 2018-07-16 15:56:57 -07:00
  • cea9c5a247 backend: Cache build.prop values in device check block Nathan Chancellor 2018-07-16 15:54:46 -07:00
  • 303e50e371 Example: fix more things confusing to new adopters DO NOT MERGE if you have already updated your ramdisk/anykernel.sh properly for your device osm0sis 2018-07-16 14:27:08 -03:00
  • 6714cd3250 README: document patch_ueventd osm0sis 2018-07-16 14:01:23 -03:00
  • 955f3ce488 AK2: add patch_ueventd - introduce function to modify or add entries to ueventd.rc using its spaced columns format, matched using the device node osm0sis 2018-07-16 13:56:07 -03:00
  • 1811b87a19 AK2: fix slot detection broken by block auto detection osm0sis 2018-07-16 13:54:49 -03:00
  • 915cdaff1b AK2: fix replace_section and remove_section functions - was broken with search strings containing paths (a limitation with busybox sed) - now matches blank lines and lines containing only white space for next-empty-line matching - include end-of-file as the final possible end-point for next-empty-line matching osm0sis 2018-07-14 16:21:14 -03:00
  • 8ed75ed99c README: touch up new block= documentation to show full paths are still supported osm0sis 2018-07-14 16:20:14 -03:00
  • 56373a6a1c AK2: use local variables for ramdisk editing functions osm0sis 2018-07-13 01:37:04 -03:00
  • 5fbae260c0 Revert "Support more locations for dtbo img (#24)" osm0sis 2018-07-13 01:29:33 -03:00
  • c545e6779e anykernel: fix ramdisk/sbin permissions - while stock uses 750, Magisk and SuperSU both use 755 for sbin and contained binaries, so we had better do so as well osm0sis 2018-07-13 01:27:54 -03:00
  • 23a088f4c8 README: document block=auto, fix zip exclusions osm0sis 2018-07-13 01:27:20 -03:00
  • 75986e14d1 AK2: add auto detection of named block (e.g. boot, recovery) partitions (#19, #26) - search using a list of known ramdisk/kernel or recovery by-name partition names - block=auto is equivalent to block=boot - for use with broad, device non-specific AK2-based mod zips osm0sis 2018-07-13 01:20:04 -03:00
  • 2a34450ba9 AK2+Backend: move system_root setup and tear down to backend - abstract out unmounting and expand to support undoing system_root - also preserve and restore LD_PRELOAD osm0sis 2018-06-27 18:27:34 -03:00
  • 25d93de829 anykernel: fix special characters in prop values breaking shell execution osm0sis 2018-05-30 00:01:57 -03:00
  • caf289b584 Backend: misc fixes - remove "kernel" from "Installing" wording since AK2 is also used on recoveries, and multi-partition Treble devices and this could be misleading - fix getprop build.prop fallback on /system/system devices osm0sis 2018-05-29 23:57:29 -03:00
  • f2ee53b843 AK2: fix AVBv1 auto signing Chris Renshaw 2018-05-22 01:08:01 -03:00
  • b648bd74d6 Merge pull request #27 from googlebleh/googlebleh Chris Renshaw 2018-05-19 12:46:18 -03:00
  • 4615e08f11 README: fix command to match filename in repo Colin Wee 2018-05-18 18:03:00 -04:00
  • bafe4bd586 Support more locations for dtbo img (#24) Zackptg5 2018-05-03 05:15:06 -04:00
  • 14826f628f AK2: fix elftool repack of ELF without cmdline osm0sis 2018-03-24 11:31:39 -03:00
  • a4cc13af28 tools: update to latest lz4 (1.8.1.2) ARM binary; see AIK-mobile v3.2 for other architectures and optional binaries: https://forum.xda-developers.com/showthread.php?t=2073775 osm0sis 2018-03-23 13:42:54 -03:00
  • 6e14f5cfe9 Backend: fix modules support regression for /vendor thanks @nathanchance for the quick heads-up osm0sis 2018-03-23 13:29:20 -03:00
  • e686f1f76c README: document multi-partition setup and auto slot detection osm0sis 2018-03-23 12:31:00 -03:00
  • 19a49f1f34 AK2: allow is_slot_device=auto (#21) - for use with broad, device non-specific AK2-based mod zips osm0sis 2018-03-23 12:19:08 -03:00
  • 79b4c2c593 Backend: fix modules support regression on /system/system devices osm0sis 2018-03-23 11:51:48 -03:00
  • 966cea0d57 AK2: more multi-partition support improvements - check for and remove patch for multi-partition/reset_ak (so removal of ramdisk/ and patch/ with the addition of $(basename block)-files is now the full trigger) - wipe $(basename block)-files/ramdisk to ensure proper copied output, as the original contents are retained in the copied rdtmp - for ramdisk-only changes that don't require added files or patch snippets, create the $(basename block)-files subfolder for proper output backup with reset_ak osm0sis 2018-03-23 11:16:34 -03:00
  • d7c56e9c06 AK2: improve/expand multi-partition use cases - if no ramdisk is found in the zip, check for and copy files in from "$(basename $block)-files", e.g. boot-files + recovery-files subfolders, each which can contain their own zImage, and ramdisk and patch subfolders, etc. - as part of the reset_ak command, copy the output files back to the corresponding *-files subfolder for use in debugging * when ak2-core.sh gets run again by reset_ak after changing block= in anykernel.sh the above process begins again osm0sis 2018-03-22 18:31:27 -03:00
  • 1176e19406 AK2: only AVB sign if dumped original dumped image is signed (#20) - avoids issues for broad AK2-based mod zips on devices where AVB 1.0 signed images cause issues, while maintaining signing on AVB 1.0 devices osm0sis 2018-03-22 14:14:23 -03:00
  • a4332bda2a README: document restore_file, add mkbootfs warning, fixes osm0sis 2018-03-22 13:51:43 -03:00
  • 4a7014d5aa AK2: add restore_file for use with ramdisk-only in a restore zip (#19) thanks @Zackptg5 osm0sis 2018-03-22 13:42:57 -03:00
  • 722da17775 Backend: Add mkdir for modules (#23) Zackptg5 2018-03-20 21:18:51 -04:00
  • 3baf2a564a README: update now that elftool is available in AIK-mobile osm0sis 2018-03-20 00:11:23 -03:00
  • ab830140ca README: add support thread osm0sis 2018-03-17 13:41:27 -03:00
  • 0acab592bb README: update for file_getprop osm0sis 2018-03-07 15:17:12 -04:00
  • 865564032d AK2: add file_getprop - was only available in the update-binary, so allow in anykernel.sh as well, for use with checking /system/build.prop, /default.prop, $ramdisk/default.prop, etc. osm0sis 2018-03-07 15:15:41 -04:00
  • 07cc7c31ce AK2: fix section functions with "" for next-blank-line end search osm0sis 2018-03-07 14:24:39 -04:00
  • 55ab97f6ec AK2: improve section functions, improve size check - clean up false error output where sections are already removed on repeat flashes - move size check to just before flash since we must compare against the fully repacked, signed boot-new.img osm0sis 2018-03-07 10:52:14 -04:00
  • c81b3d5658 AK2: add Nook HD+ and Nook Tablet signing loader support osm0sis 2018-03-05 17:09:51 -04:00
  • 1e3d48355e README: update for banner and version file support osm0sis 2018-02-28 09:14:35 -04:00
  • 14e73ecbec AK2: fix cpio extraction with busybox 1.28+ Chris Renshaw 2018-02-27 00:47:57 -04:00
  • 12289267c5 Backend: touch up install whitespace now that we have banner/version display osm0sis 2018-02-26 13:03:50 -04:00
  • efa4623689 Backend: add custom kernel version display support - place version text in a file named "version" in the root of the zip and it will display after the kernel.string when flashing - useful in conjunction with build scripts, i.e. a generated version file not actually part of the kernel AK2 repo osm0sis 2018-02-26 12:22:58 -04:00
  • b0a2cae9cd Backend: add custom kernel banner support - place text or line-art in a file named "banner" in the root of the zip and it will display ahead of the kernel.string when flashing osm0sis 2018-02-26 11:18:35 -04:00
  • 7391ede9b9 tools: update to latest busybox (1.28.1) osm0sis 2018-02-25 13:56:31 -04:00
  • 7b09dd8b66 Backend: fix vendor unmounting osm0sis 2018-02-25 13:51:07 -04:00
  • e32f6915ef AK2: fix insert_line wc/ash bad number error when missing file osm0sis 2018-02-25 13:49:51 -04:00
  • 893aef6df2 Merge pull request #16 from Tomoms/master Chris Renshaw 2018-01-25 18:31:41 -04:00
  • e12304ece6 ak2-core.sh: fix repacking of Sony ELF kernels Tommaso Fonda 2018-01-25 20:01:40 +01:00
  • 153567dcaf README: document new patch_cmdline usage osm0sis 2018-01-19 03:00:29 -04:00
  • 2b7501710d AK2: clarify new patch_cmdline usage osm0sis 2018-01-19 03:00:04 -04:00
  • 83df1e3df1 Backend: only replace getprop if needed (and do so more robustly) osm0sis 2018-01-19 01:58:49 -04:00
  • 4308266480 Merge pull request #15 from nathanchance/insert-line-offset Chris Renshaw 2018-01-18 02:01:41 -04:00
  • 96bc564d58 AK2: Fix insert_line line validation Nathan Chancellor 2018-01-17 10:08:50 -07:00
  • d4f81e628e AK2: add reset_ak(), fix patch_cmdline(), improve AVBv1 signing - introduce reset_ak function to reset the /tmp/anykernel directory to allow for multi-partition mods; use after changing the AK2 shell (block, etc.) variables again - make patch_cmdline more intuitive; match the string, and if it doesn't exist add the replacement string, and if so replace with it - allow AVBv1 signing of recovery by adding simple partition type detection based on name - restore LD_LIBRARY_PATH after AVBv1 signing to be friendly to recovery when flashed in between other zips osm0sis 2018-01-15 02:41:23 -04:00
  • 79f1c391ea AK2: allow U-Boot uImage without ramdisk osm0sis 2018-01-13 17:47:37 -04:00
  • c3ca17f3cf README: update for elftool osm0sis 2018-01-13 17:26:26 -04:00
  • fb44ff18e1 AK2: add support for repacking as Sony ELF - add built-in support for elftool for older Sony devices which don't support AOSP boot.img repacks (see: #3, https://forum.xda-developers.com/xperia-j-e/development/arm-elftool-pack-unpack-boot-image-sony-t2146022) osm0sis 2018-01-13 17:15:51 -04:00
  • 4e31cbd461 Merge pull request #14 from nathanchance/module-contexts Chris Renshaw 2018-01-08 12:36:12 -04:00
  • b0b754c094 Backend: Only apply contexts to new modules Nathan Chancellor 2018-01-06 17:58:25 -07:00