diff options
author | osm0sis <osm0sis@outlook.com> | 2015-11-17 11:05:58 -0400 |
---|---|---|
committer | osm0sis <osm0sis@outlook.com> | 2015-11-17 11:05:58 -0400 |
commit | 5112f2e4ae0943b7896a3bb89d4fa6300911314a (patch) | |
tree | dcb88afd805753fd60e0db70537b8aaebcdfeb7f /README | |
parent | e16e544f62618c184d66ebd9c95fecc53772a4cb (diff) |
AnyKernel2: various fixes, new features
- 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)
Diffstat (limited to 'README')
-rw-r--r-- | README | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -1,4 +1,4 @@ -AnyKernel 2.0 - Flashable Zip Template for Kernel Releases with Ramdisk Modifications +AnyKernel2 - Flashable Zip Template for Kernel Releases with Ramdisk Modifications by osm0sis @ xda-developers "AnyKernel is a template for an update.zip that can apply any kernel to any ROM, regardless of ramdisk." - Koush @@ -32,19 +32,23 @@ do.cleanup=0 will keep the zip from removing it's working directory in /tmp/anyk dump_boot backup_file <file> replace_string <file> <if search string> <original string> <replacement string> -insert_line <file> <if search string> <before/after> <line match string> <inserted line> +insert_line <file> <if search string> <before|after> <line match string> <inserted line> replace_line <file> <line replace string> <replacement line> remove_line <file> <line match string> prepend_file <file> <if search string> <patch file> +insert_file <file> <if search string> <before|after> <line match string> <patch file> append_file <file> <if search string> <patch file> replace_file <file> <permissions> <patch file> +patch_fstab <fstab file> <mount match name> <fs match type> <block|mount|fstype|options|flags> <if search string> <replacement string> write_boot "if search string" is the string it looks for to decide whether it needs to add the tweak or not, so generally something to indicate the tweak already exists. -Similarly, "line match string" and "line replace string" are the search strings that locate where the modification needs to be made for those commands. +Similarly, "line match string" and "line replace string" are the search strings that locate where the modification needs to be made for those commands, and "mount match name" and "fs match type" are both required to narrow the patch_fstab command down to the correct entry. -"before/after" requires you simply specify "before" or "after" for the placement of the inserted line, in relation to "line match string". +"before|after" requires you simply specify "before" or "after" for the placement of the inserted line, in relation to "line match string". + +"block|mount|fstype|options|flags" requires you specify which part (listed in order) of the fstab entry you want to check and alter. You may also use ui_print "<text>" to write messages back to the recovery during the modification process. |