summaryrefslogtreecommitdiff
path: root/tools
AgeCommit message (Collapse)Author
2021-07-10Updated Install ScriptsHEADmasterrafa_99
2020-10-24Updated Scriptsrafa_99
2020-10-24Updated Scriptsrafa_99
2020-05-30AK3: allow hiding block display for zips with custom outputosm0sis
2020-05-24AK3: update for latest optional binariesosm0sis
- 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-04-23AK3: show final detected target slot/partitionosm0sis
2020-03-24tools: update magisk utils to v20.4(20400) betaosm0sis
2020-02-14AK3+Backend: fix truncated recovery.log with FlashAfterUpdateosm0sis
2020-02-03tools: update magisk utils to v20.4-ed58cf95(20304) canaryosm0sis
- fix lzop detection use-case of magiskboot decompress which was broken in the generic stream refactor
2020-01-31AK3+Backend: mount and output fixesosm0sis
- fix case where TWRP has /system_root mountpoint but ROM is non-SAR - fix regression in ui_print when final character is \
2020-01-27AK3+Backend: /postinstall and opposite slot awareness for FlashAfterUpdate ↵osm0sis
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-18AK3+Backend: introduce systemless kernel modules supportosm0sis
- 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-16AK3: add stderr hints for signing debuggingosm0sis
2020-01-16AK3: clean up and simplify Magisk patch logicosm0sis
- 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-15AK3: fix false positive Magisk detection after reset_akosm0sis
2020-01-13AK3: only attempt to dump .magisk config if patch foundosm0sis
2020-01-13AK3: auto kernel patch improvementsosm0sis
- 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-12AK3: only attempt fallback kernel decompression if format was identifiedosm0sis
2020-01-12AK3: fix AVBv1 signing on Android 10osm0sis
2020-01-12AK3: auto split Image.*-dtb to kernel/kernel_dtb + re-patch for Magiskosm0sis
2020-01-09tools: update magisk utils to v20.3(20300) stableosm0sis
2020-01-02tools: update magisk utils to v20.2(20200) stableosm0sis
2019-11-03tools: update magisk utils to v20.1(20100) stableosm0sis
2019-11-03tools: update to latest busybox (1.31.1)osm0sis
Compiled from my own updated fork: https://github.com/osm0sis/android-busybox-ndk
2019-08-06AK3: fix partition detection taking first match on older devicesosm0sis
- `test -e` could fail due to unexpanded *'s in $target
2019-08-04AK3+Backend: fix multi-line abort outputsosm0sis
2019-07-20AK3: reset_ak: don't remove $ramdisk unless has already been unpackedosm0sis
- 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-20AK3: add file/directory attributes functionsosm0sis
- 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-06-30tools: update magisk utils to v19.4-05658caf(19305) canaryosm0sis
2019-06-24tools: update magisk utils to v19.4-1058aeb0(19302) canaryosm0sis
2019-06-17AK3: better living through sedosm0sis
- clean up magiskboot compression type output parsing
2019-06-15AK3: fix support for forced uncompressed cpio ramdisk repacksosm0sis
- resolves https://github.com/osm0sis/AnyKernel3/commit/698682123053cab9e3277c9c9df783a97b3e8958 "IMPORTANT NOTE" 1
2019-06-15tools: update magiskboot to v19.4-ee407472(19301)osm0sis
- resolves https://github.com/osm0sis/AnyKernel3/commit/698682123053cab9e3277c9c9df783a97b3e8958 "IMPORTANT NOTE" 2, and allows 1 to be supported (via script change in subsequent commit)
2019-06-12AK3: fix signing derpChris Renshaw
Thanks @Zackptg5 Closes #40
2019-06-10AK3: allow ChromeOS auto-detect, clean up signing, fixesosm0sis
- since magiskboot has built-in detection for the ChromeOS image pre-header signature, allow it to be auto-detected and if futility and signing files are present re-sign automatically (thanks @Zackptg5 for the nudge) - simplify signing and error catching - fix typo breaking ramdisk_recovery partition detection - hide expected stderr for formats where some files may not exist (cmdline for ELF, etc.)
2019-06-07AK3: clean up "OG AK" mode stderr on images with no kernel/ramdisk presentosm0sis
2019-06-07AK3: be clear when unpack_ramdisk fails because there is no ramdiskosm0sis
- previously this was failing a bit too spectacularly for my liking since $comp would erroneously get set to "fopen: ramdisk.cpio failed with 2: No such file or directory" - on devices where there is no ramdisk.cpio unless rooted with Magisk this will indicate better to developers working on the device that they should be using "OG AK" mode to avoid trying to unpack a ramdisk which may or may not exist
2019-06-06AK3: also make mtd partition detection variables localosm0sis
2019-06-06AK3: cleanups and fixes to config/setup functionsosm0sis
- simplify rdtmp and $ramdisk creation and keep only in `unpack_ramdisk` - fix `reset_ak` and `setup_ak` behavior if run before $block is set - only save boot.img and boot-new.img in *-files subdirectories on multi-partition setups since otherwise the tmpfs (in recovery) and ext4 .img (when booted) size usage gets quickly out of hand - fix slot_select=inactive when used with block=auto or block=boot partition detection
2019-06-05tools: update magisk tools to v19.3(19300) stableosm0sis
2019-06-04AK3: support MTK /dev/bootimg and /dev/recovery partition matchingosm0sis
(note these probably require nanddump and nandwrite to access correctly)
2019-06-02AK3: resolve non-zero return code introduced by `cat <img> /dev/zero > <block>`osm0sis
- the expected "cat: write error: No space left on device" gives a non-zero return code so always return true - devices that flash dtbo abort since the return code would get passed back to the Backend and silently fail as the final command in anykernel.sh (via `write_boot`), so catch seperately with a proper error message for other image write methods
2019-06-02AK3: allow workaround for dtbo devices with cat /dev/zero issuesosm0sis
- some device recoveries (e.g. TWRP for wahoo) seem to have issues with the new `cat <image> /dev/zero > <block>` method of flashing, so allow setting customdd="bs=1048576" shell variable in anykernel.sh to work around this by reverting back to dd wipe+flash for dtbo as it does with boot
2019-06-01AK3: fix elftool repack cmdline handlingChris Renshaw
2019-05-31tools: rename ak2-core.sh to ak3-core.shosm0sis
2019-05-31Welcome to AK3: AnyKernel2 + Magisk = AnyKernel3!osm0sis
- abstract out execution directory as $home to fascilitate testing individual scripts (defaults to /tmp/anykernel) - general script clean ups for uniformity, readability, speed and simplicity - simplify consecutive `ui_print` commands where possible Backend only fixes: - use busybox umount and mount whenever possible to avoid linker warnings in stderr during system-as-root setup - use `busybox --install -s` for bin/* setup - consolidate setup to abort earlier if there are issues - add backwards compatible symlinks for those who might not have updated their anykernel.sh with ak3-core.sh (to be renamed in subsequent commit) Tools only fixes: - add magiskboot to replace separate support for AOSP and PXA-AOSP formats, with MTK headers, BLOB, DHTB, SEAndroid and Nook signing - add magiskpolicy to allow for easy sepolicy patching - remove xz and lz4 since magiskboot supports these AK3 Core only fixes: - use full `ui_print` function implementation like the backend - add `abort` function to simplify exit on errors - fix $patch directory being excluded from `reset_ak` - update $ramdisk_compression handling for magiskboot - magiskboot also resolves long-standing request for built-in Bump support (#18) - update Sony ELF and related support for initial repack as AOSP by using mkbootimg as plug-and-play optional add-in binary - update Sony ELF MTK header support using mkmtkhdr only when ELF is initially unpacked by unpackelf - add support for MTK RECOVERY ramdisk header type with Sony ELF - simplify U-Boot dumpimage/mkimage and Sony ELF unpackelf/mkbootimg split_img file handling - update patch_cmdline to handle both magiskboot as header prop file, and unpackelf or mboot as cmdline.txt - use `cp -fp` for `backup_file` and `restore_file` to hopefully better preserve attributes if used outside of the ramdisk - refactor setup into `setup_ak` to simplify `reset_ak` trigger to find slot and block again - add fallback to busybox for compression formats (i.e. lzop) which magiskboot cannot handle IMPORTANT NOTES: 1) forcing repack with uncompressed cpio ramdisk is not currently supported by magiskboot 2) forcing repack with lzop ramdisk when previously another format is not currently supported by magiskboot
2019-05-10AK2: underp opposite slot caseosm0sis
2019-05-09AK2: add support for multi-slot zipsosm0sis
- extend `reset_ak` with `reset_ak keep` which will keep files to be available to patch the other slot - add optional slot_select=inactive shell variable to force inactive slot during slot detection
2019-05-01AK2: add U-Boot RAMDisk uImage supportosm0sis
2019-04-18AK2: add $OS$ header Android image format supportosm0sis
- add built-in support for mboot for Intel OSIP devices (see: https://github.com/osm0sis/mboot)