summaryrefslogtreecommitdiff
path: root/anykernel.sh
AgeCommit message (Collapse)Author
2020-01-18anykernel: add do.systemlessosm0sis
2019-07-20Example: update to use set_perm_recursiveosm0sis
DO NOT MERGE if you have already updated your ramdisk properly for your device
2019-07-20anykernel: add supported.patchlevelsosm0sis
2019-06-12Example: remove more things confusing to new adoptersosm0sis
- remove zImage since people were still thinking they needed to rename their kernel build product to zImage to have it work, while actually all filenames are detected and supported automatically, whether it's called zImage, zImage-dtb, Image.gz, Image.gz-dtb, Image.lz4-dtb, whatever (https://github.com/osm0sis/AnyKernel3/blob/7ccf4d62cede0527b7d895a8255f18b9b56046cc/tools/ak3-core.sh#L228); in fact it's extra important it be named correctly now with AK3 using magiskboot so that any appended *-dtb is supported correctly and doesn't get appended multiple times in subsequent flashes - remove pointless patch file examples - add unified tuna variant name just because I feel like it since it's otherwise not a working example anymore DO NOT MERGE if you have already updated your ramdisk/anykernel.sh properly for your device
2019-06-01anykernel: Update for AK3osm0sis
2018-12-16Revert "anykernel: fix ramdisk/sbin permissions"osm0sis
This reverts commit c545e6779e87c180fd9824154f0580e937313aed. Magisk and SuperSU actually keep these as the proper 750 within the boot.img ramdisk itself, and so should we
2018-12-16anykernel: add supported.versionsosm0sis
2018-07-16Example: fix more things confusing to new adoptersosm0sis
DO NOT MERGE if you have already updated your ramdisk/anykernel.sh properly for your device
2018-07-13anykernel: fix ramdisk/sbin permissionsosm0sis
- while stock uses 750, Magisk and SuperSU both use 755 for sbin and contained binaries, so we had better do so as well
2018-05-30anykernel: fix special characters in prop values breaking shell executionosm0sis
2017-11-26Example: remove AK2 attribute command confusing to new adoptersosm0sis
DO NOT MERGE if you have already updated your ramdisk properly for your device
2017-11-26anykernel: underp ownership, thanks @attack11osm0sis
2017-11-22anykernel: add ramdisk_compression shell variable, see ↵osm0sis
0535fd7ca0c569826a23299ea3e38278392a1e9a
2017-10-14anykernel: be clear ownership is also necessary to be setosm0sis
2017-10-14Example: clean ups and fixes for current functionsosm0sis
- remove more things confusing to new adopters (AK2 does not root) - update patch_fstab examples for corrected syntax DO NOT MERGE if you have already updated your ramdisk properly for your device
2017-04-10anykernel: isolate propsosm0sis
- not EDIFY for a while now! (put properties in a function so they aren't executed with the shell script)
2017-02-27README+Example: remove do.init.d referencesosm0sis
2017-02-27Introduce cleanuponabortaxxx007xxxz
This option allow to remove the working directory in case of abort; disabled by default.
2016-11-30AK2: split functions into ak2-core to make syncing easier for devs going forwardosm0sis
2016-11-26AK2: add support for slot-based systems (ie. Pixel support!)osm0sis
- new shell variable "is_slot_device" to enable slot suffix detection ("block" shell variable remains the partition filepath minus the suffix) Notes: on slot-based systems now the boot.img contains only the recovery ramdisk, not rootfs, by default, but when rooted contains both, with rootfs in /boot. Since modifications to both recovery and (when rooted) boot ramdisks are now possible through AK2 no other behavior is changed so that the dev may modify what they wish, e.g. to add files to rooted boot ramdisk put them in AK2's ramdisk/ folder in a boot/ subfolder, and to make modifications to rooted boot files add "boot/" to the filenames used with the commands.
2016-11-24AK2: add os_version/os_patch_level supportosm0sis
(unpack/mk support already in latest binaries)
2016-10-12AK2: make section functions less potentially destructiveosm0sis
- 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
2016-09-29Add Support to ZImage-dtb (dtb its already appended)attack11
2016-09-21AK2: add support for configurations that require mkbootfs in toolsosm0sis
2016-08-16AK2: explicitly only take the first match in functions using line matchingosm0sis
2016-07-01AK2: automatically escape forward slashes (/) for section functionsosm0sis
- 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
2016-03-16AK2: simplify new contains(), adjust placement, and update documentationosm0sis
2016-03-09anykernel.sh: Add a simple substring matching functionD. Andrei Măceș
Based on the discussion here: http://stackoverflow.com/a/8811800.
2016-01-24Backend+AK2: misc fixesosm0sis
- fix fallback broken unzip detection now that we create a subdirectory prior - probably best to execute the bump/loki/whatever script using our included ash shell instead of the recovery sh.
2016-01-24AK2: fix patch_fstab for block, mount & flagsosm0sis
- shell replacement was too weak and caused mangled output
2016-01-14AK2: add remove_section, update documentation with note regarding escapesosm0sis
2016-01-10AnyKernel2: fix patch_fstab, add replace_sectionosm0sis
- correct typo that was breaking patch_fstab - add function to replace entire sections of files by selecting the first and last lines of the section using search strings and replacing it entirely with a new string
2015-12-23AnyKernel2: custom user script support, fixesosm0sis
- fix copy of any subdirectories under modules/ - adjust display of modules installation text to match the others - add support for custom user scripts (at /data/custom_boot_image_patch.sh - same as latest SuperSU zips) to automatically execute before reflashing the rebuilt boot image for bump, loki etc. modifications
2015-11-17AnyKernel2: various fixes, new featuresosm0sis
- fix insert_line to perform more as expected by adding a newline automatically - add updated arm mkbootimg+unpackbootimg binaries from my AIK Build Farm, see my repos for changes - rewrite backend to use proper exit codes from anykernel.sh now that it is shell - fix ui_print and specific error messages by passing the outfd to anykernel.sh from the backend - add error messages for unpacking and repacking ramdisk, and make resulting image size check into its own error message - fix for cpio overwriting AK2 ramdisk files on some recoveries by using a tmp directory - add further ramdisk unpack verification by checking that there are actually files in the ramdisk directory prior to moving the tmp files back - add insert_file function to make multi-line additions easier - add patch_fstab function to greatly simplify mount option/flag changes (thanks @Khaon for the idea)
2015-01-07AnyKernel 2.0: shell update-binary, new featuresosm0sis
- rewrite update-script as a shell script update-binary replacement, making the zip architecture independent (tools are still dependent) - add fall-back to included zImage to allow for ramdisk-only injections
2014-10-14AnyKernel 2.0: more new featuresosm0sis
- add support for up to 5 device.name properties for variants - add support for custom dtb swapping (falls back to included if none found in zip root) - fix ramdisk extraction when there is none in the zip (ie. nothing to be added)
2014-08-27anykernel.sh: add basic exit statusesosm0sis
- add exit codes to trigger the abort in the updater-script if something goes wrong - add ui_print function to write error message directly back to recovery - compare size of dumped image and new image and abort if the new image is oversized for the partition
2014-08-27AnyKernel 2.0: add new featuresosm0sis
- add new do.modules property - add new remove_line method - update insert_line with ability to change insertion point to before or after the matched line - rearrange properties into the order they are executed - fix minor cpio warnings (only visible when run manually) - clean up sed syntax formatting - README updates for new features and fix zip command to exclude README and any previous zip present.
2014-06-09mkbootimg+unpackbootimg: update to latest builds with board supportosm0sis
Compiled from my own updated fork: https://github.com/osm0sis/mkbootimg
2014-03-25mkbootimg+unpackbootimg: update to latest builds with support for all ↵osm0sis
available offsets, second and dtb. Compiled from my own updated fork: https://github.com/osm0sis/mkbootimg
2014-03-01anykernel.sh: move included file permissions to editable areaosm0sis
2014-02-28AnyKernel 2.0: allow for ramdisk modificationsosm0sis
2014-02-28initial commit: clean up repo, prep for changesosm0sis