Commit Graph
231 Commits
Author SHA1 Message Date
engstkandosm0sis 2b7f6e8889 AK3: add full vendor_dlkm.img flash support
- Use similar dtbo.img logic
- Support new hdr v4 images without repacking
- Process before boot to safe bail
- No resize available, checks output size and bounces if larger
- Handle block state correctly to fix boot check warning

Co-authored-by: osm0sis <osm0sis@outlook.com>

Signed-off-by: engstk <eng.stk@sapo.pt>
2021-12-04 18:11:38 -04:00
engstk 146f9b27c5 AK3: add full vendor_boot.img flash support
- Use similar dtbo.img logic
- Support new hdr v4 images without repacking
- Process before boot to safe bail

Signed-off-by: engstk <eng.stk@sapo.pt>
2021-12-04 18:11:38 -04:00
osm0sis 446d3caeef tools: update to latest busybox (1.34.1)
Compiled from my own updated fork:
https://github.com/osm0sis/android-busybox-ndk
2021-10-03 14:48:15 -03:00
osm0sis 216eefce20 AK3: fix new .img backup in debugging tgz, multipartition output tweak 2021-07-21 01:49:27 -03:00
osm0sis 3cfdc71d10 AK3: fix systemless modules on single-partition setups 2021-06-09 00:21:21 -03:00
osm0sis 5035d6b7cb AK3+Backend: fix systemless modules on multi-partition setups 2021-06-08 17:00:03 -03:00
osm0sis 484ea072a8 AK3: hide expected potential simple vendor_boot support stderr 2021-06-08 16:54:47 -03:00
osm0sis beff4d4596 AK3: ensure dtbo does not get flashed twice in multi-partition setups 2021-06-08 16:24:20 -03:00
osm0sis 92f9828619 AK3: add vendor_ramdisk support to simple vendor_boot support
- use vendor_ramdisk and vendor_patch directories in zip root to specify changes for vendor_boot flash
2021-06-08 16:16:16 -03:00
osm0sis 83ff0c07a7 AK3: add support for simple vendor_boot dtb replacement
- boot_img_hdr_v3 now has dtb stored in a new partition called vendor_boot
- allow block=vendor_boot partition detection
- support current practice of Image* and dtb in zip root by automatically creating a multi-partition AK3 zip setup from these files (ramdisk directory is assumed to be for the boot partition)
- fix reset_ak current files cleanup
2021-06-08 01:14:03 -03:00
osm0sis 37782872f6 tools: update magisk utils to v23.0(23000) stable 2021-05-12 23:03:10 -03:00
osm0sis b55338ac61 tools: update magisk utils to v22.1(22100) stable 2021-05-09 14:52:11 -03:00
osm0sis 9bd0ed8b73 tools: update to latest busybox (1.33.1)
Compiled from my own updated fork:
https://github.com/osm0sis/android-busybox-ndk
2021-05-09 01:40:53 -03:00
osm0sis 4904913295 AK3: fix unpackbootimg/unpackelf suffixes, fix elf to bootimg repack
- unpackbootimg/unpackelf kernel+ramdisk suffixes were corrected to match their corresponding mkbootimg argument in my latest forked tools (AIK-mobile v3.8)
- fix repack from unpackelf to mkbootimg broken base value introduced with AK3 rewrite
2021-05-03 00:20:08 -03:00
osm0sis 31a3fff8fb tools: update to latest busybox (1.32.1)
Compiled from my own updated fork:
https://github.com/osm0sis/android-busybox-ndk
2021-03-31 19:25:03 -03:00
osm0sis a6b80592a6 tools: update magisk utils to v22.0(22000) stable 2021-02-23 22:16:03 -04:00
osm0sis 8df26b0389 AK3+Backend: cleanups, update *_line functions
- touch up a couple pesky minor things
- add global scope to replace_line and remove_line so they match replace_string, and can now work on all matches found in a file
2021-01-28 17:31:33 -04:00
osm0sis 630f926617 AK3: clean up old style tic 2021-01-20 15:02:52 -04:00
osm0sis 2098b0f030 tools: update magisk utils to v21.4(21400) stable 2021-01-18 15:25:41 -04:00
osm0sis 3d3e21af86 tools: update magisk utils to v21.2(21200) stable 2021-01-14 00:22:50 -04:00
osm0sis 4731595e88 AK3: unlock blocks before flash to handle post-incremental-OTA cases 2020-11-27 18:02:22 -04:00
osm0sis c137cbf93d AK3: allow hiding block display for zips with custom output 2020-05-30 11:35:41 -03:00
osm0sis 7f82f21de9 AK3: update for latest optional binaries
- fix naming BootSignature_Android.jar -> boot_signer-dexed.jar for my own builds (see https://issuetracker.google.com/issues/143810860)
- correct unpackbootimg/unpackelf suffixes which now correspond to their matching mkbootimg argument
2020-05-24 06:36:59 -03:00
osm0sis 2d5bba8584 AK3: show final detected target slot/partition 2020-04-23 20:13:40 -03:00
osm0sis d9c8bb7c70 tools: update magisk utils to v20.4(20400) beta 2020-03-24 04:37:57 -03:00
osm0sis 3f6d112472 AK3+Backend: fix truncated recovery.log with FlashAfterUpdate 2020-02-14 14:05:09 -04:00
osm0sis ccb19a8337 tools: update magisk utils to v20.4-ed58cf95(20304) canary
- fix lzop detection use-case of magiskboot decompress which was broken in the generic stream refactor
2020-02-03 13:30:13 -04:00
osm0sis e666adc66f AK3+Backend: mount and output fixes
- fix case where TWRP has /system_root mountpoint but ROM is non-SAR
- fix regression in ui_print when final character is \
2020-01-31 20:11:52 -04:00
osm0sis c35c7ce358 AK3+Backend: /postinstall and opposite slot awareness for FlashAfterUpdate addon.d-v2 support
- for A/B OTAs my FlashAfterUpdate addon.d script requires the zip to know about addon.d-v2 and act accordingly
- signify support with #FLASHAFTERUPDATEV2 tag in updater-script to pass whitelist check since the majority of zips will not work correctly
2020-01-27 16:25:21 -04:00
osm0sis b37d7e225f AK3+Backend: introduce systemless kernel modules support
- with do.systemless prop enabled in anykernel.sh, will push the contents of modules/ to create a simple "ak3-helper" Magisk module, where testing on devices thus far shows it loads early enough that even replacement kernel object .ko modules will get loaded
- the ak3-helper module info is populated from the kernel.string and parsed kernel version from the kernel being flashed, and if at boot time a different kernel is detected the module automatically removes itself before being loaded to avoid conflicts
- since logical partitions and ext4-dedup on Android 10 now prevent mounting /system or /vendor rw under any circumstances, this feature gives kernel developers back the freedom they had before all this to improve kernel .ko modules, .conf files, etc. with the added bonus of it cleaning up after itself
2020-01-18 07:21:46 -04:00
osm0sis 0a712cce0d AK3: add stderr hints for signing debugging 2020-01-16 01:20:48 -04:00
osm0sis 21ee68f5a8 AK3: clean up and simplify Magisk patch logic
- only repatch when there is an Image* (i.e. don't attempt on ramdisk-only mods)
- make sure new ramdisk is already copied before trying to detect Magisk patch state in case it changed
- clean up Magisk patch state and exported variables immediately
2020-01-16 01:00:32 -04:00
osm0sis 3f60a5e1e2 AK3: fix false positive Magisk detection after reset_ak 2020-01-15 11:04:36 -04:00
osm0sis d3d853ac82 AK3: only attempt to dump .magisk config if patch found 2020-01-13 01:17:19 -04:00
osm0sis 23dd83d8e4 AK3: auto kernel patch improvements
- also check patch status as part of repack_ramdisk() to avoid any issues if developer is forcing a compression format change
- get full Magisk patch status value and extract Magisk config to export correct environment variables for dtb patching
2020-01-13 01:03:22 -04:00
osm0sis bf9e9fd487 AK3: only attempt fallback kernel decompression if format was identified 2020-01-12 23:32:26 -04:00
osm0sis 4bae117013 AK3: fix AVBv1 signing on Android 10 2020-01-12 16:14:39 -04:00
osm0sis ef24a09b51 AK3: auto split Image.*-dtb to kernel/kernel_dtb + re-patch for Magisk 2020-01-12 15:30:42 -04:00
osm0sis d2e55da124 tools: update magisk utils to v20.3(20300) stable 2020-01-09 21:59:36 -04:00
osm0sis dd041bafe9 tools: update magisk utils to v20.2(20200) stable 2020-01-02 12:17:25 -04:00
osm0sis 9ece27131a tools: update magisk utils to v20.1(20100) stable 2019-11-03 03:22:30 -04:00
osm0sis 02f4d2d35e tools: update to latest busybox (1.31.1)
Compiled from my own updated fork:
https://github.com/osm0sis/android-busybox-ndk
2019-11-03 03:20:42 -04:00
osm0sis 0e3b7304e6 AK3: fix partition detection taking first match on older devices
- `test -e` could fail due to unexpanded *'s in $target
2019-08-06 18:53:08 -03:00
osm0sis f3f80014cc AK3+Backend: fix multi-line abort outputs 2019-08-04 01:16:54 -03:00
osm0sis 958b2c873a AK3: reset_ak: don't remove $ramdisk unless has already been unpacked
- running reset_ak before an unpack would remove any included ramdisk files from zip, so only remove if $split_img is detected suggesting an unpack has already occurred
2019-07-20 23:12:51 -03:00
osm0sis 84d9032606 AK3: add file/directory attributes functions
- from my "Complete Shell Script Flashable Zip Replacement" reference thread: https://forum.xda-developers.com/android/software-hacking/dev-complete-shell-script-flashable-zip-t2934449
2019-07-20 20:50:50 -03:00
osm0sis d3363b7dcb tools: update magisk utils to v19.4-05658caf(19305) canary 2019-06-30 23:56:41 -03:00
osm0sis 46614b2f84 tools: update magisk utils to v19.4-1058aeb0(19302) canary 2019-06-24 12:31:49 -03:00
osm0sis 4e403f12e5 AK3: better living through sed
- clean up magiskboot compression type output parsing
2019-06-17 23:01:04 -03:00
osm0sis 3685456911 AK3: fix support for forced uncompressed cpio ramdisk repacks
- resolves https://github.com/osm0sis/AnyKernel3/commit/698682123053cab9e3277c9c9df783a97b3e8958 "IMPORTANT NOTE" 1
2019-06-15 21:27:44 -03:00