Commit Graph
38 Commits
Author SHA1 Message Date
osm0sis f0bc44a8db Backend: use included busybox to create install environment symlinks
- fixes flashing slowdown in TWRP 3.0.0: TWRP3 (currently) appears to have a bugged busybox/ln command which takes an excessive amount of time, no reason not to use our own instead
2016-02-23 17:00:19 -04:00
osm0sis cbcbc49e13 Backend: Add check for whether busybox symlink setup succeeded, fixes
- fail on recoveries where symlinking our busybox environment doesn't work (CM Recovery on some devices)
- use the included busybox for awk since toybox is lacking (CM Recovery)
2016-02-16 16:42:18 -04:00
osm0sis d05847d1ec tools: update to latest builds, including latest busybox patches
Compiled from my own updated forks:
https://github.com/osm0sis/mkbootimg
https://github.com/osm0sis/android-busybox-ndk
2016-02-05 17:13:46 -04:00
osm0sis 408d06aff0 Backend+AK2: misc fixes
- 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-24 13:32:13 -04:00
osm0sis a3cacd662e AK2: fix patch_fstab for block, mount & flags
- shell replacement was too weak and caused mangled output
2016-01-24 13:32:11 -04:00
osm0sis c79016cd39 Backend: workaround toybox inclusion in Cyanogen Recovery
- add busybox to the zip to provide a uniform expected environment
- set up busybox symlinks in /tmp and execute anykernel.sh from a shell created with these at the front of the path, overriding the recovery applets
2016-01-24 13:31:55 -04:00
osm0sis 65520217ef AK2: add remove_section, update documentation with note regarding escapes 2016-01-14 15:51:59 -04:00
osm0sis 8c64041208 AnyKernel2: fix patch_fstab, add replace_section
- 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
2016-01-10 04:15:24 -04:00
osm0sis bd4ba60cc5 AnyKernel2: custom user script support, fixes
- 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-12-23 13:19:32 -04:00
osm0sis af7a85316b Backend fixes: unzip error catching, only mount system rw if necessary
- initial unzip verification to catch it early on broken recoveries/zips
- display the matching name during the devicecheck while installing
- mount /system ro for the off-chance getprop relies on build.prop (older recoveries), and only remount rw if init.d or modules need to be setup/installed to fix/workaround TWRP's "mount only as ro" feature being finicky and allow /system to remain untouched on devices supporting systemless root.
- add signing documentation to README
2015-12-04 10:16:13 -04:00
osm0sis 5112f2e4ae 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)
2015-11-17 11:05:58 -04:00
osm0sis e16e544f62 example: correct formatting 2015-11-17 11:04:44 -04:00
Chris Renshaw 5d78db5bbb Merge pull request #2 from Myself5/master
Fix flashing of zips inside directories with spaces in their names
2015-07-29 09:33:35 -03:00
Christian Oder 10da80703d Fix flashing of zips inside directories with spaces in their names
It seems like the " in Line 6 are not enough, unzip still refused to unpack files inside a directory with a space in it's name.
The new " fix that and now allow us to flash zips inside folders with spaces in their names.
2015-07-28 22:45:49 +02:00
osm0sis 611804253b AnyKernel 2.0: shell update-binary, new features
- 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
2015-01-07 15:23:10 -04:00
osm0sis bcfd2e0ff2 AnyKernel 2.0: more new features
- 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-10-14 16:37:48 -03:00
osm0sis 7ffb3bb1aa anykernel.sh: add basic exit statuses
- 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-27 02:24:58 -03:00
osm0sis b7a0960e1d AnyKernel 2.0: add new features
- 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-08-27 02:22:53 -03:00
osm0sis dc43d6cde5 mkbootimg+unpackbootimg: new optimized and stripped static compiles
Compiled from my own updated fork: https://github.com/osm0sis/mkbootimg
2014-07-04 08:16:29 -03:00
osm0sis 1d9aa42aea unpackbootimg: updated compile 2014-06-14 03:40:06 -03:00
osm0sis 331da1f79e mkbootimg+unpackbootimg: update to latest builds with board support
Compiled from my own updated fork: https://github.com/osm0sis/mkbootimg
2014-06-09 02:29:46 -03:00
osm0sis 18a10def08 tools: use static compiles to fix seg faults on some devices 2014-05-20 02:26:39 -03:00
osm0sis 7e80ad9fa2 updater-script: TWRP fixes
- fix output and line spacing on TWRP
- fix broken unpack/repack on TWRP due to binaries in /tmp not being
allowed to execute unless /system was mounted (weird)
2014-05-15 20:07:00 -03:00
osm0sis 1f39fe6083 mkbootimg+unpackbootimg: update to latest builds with support for all available offsets, second and dtb.
Compiled from my own updated fork: https://github.com/osm0sis/mkbootimg
2014-03-25 20:00:18 -03:00
osm0sis 8479d86085 anykernel.sh: move included file permissions to editable area 2014-03-01 16:01:59 -04:00
osm0sis ad031d587e AnyKernel 2.0: allow for ramdisk modifications 2014-02-28 21:50:22 -04:00
osm0sis 8ea8b14eb7 initial commit: clean up repo, prep for changes 2014-02-28 21:40:19 -04:00
Koushik Dutta c2ebc90397 Merge pull request #2 from n-i-x/master
Fix updater-script to work with bundled binaries
2011-07-19 09:25:36 -07:00
n-i-x 99dd30cb81 Send the correct arguments for the bundled version of unpackbootimg 2011-07-15 15:21:02 -07:00
Koushik Dutta 8bbe6b3589 Edited META-INF/com/google/android/updater-script via GitHub 2011-05-01 22:54:00 -07:00
Koushik Dutta a09a6f16d9 Changes to work on MMC and BML devices. 2010-12-21 09:46:05 -08:00
Koushik Dutta b0e8859ad8 generic update-binary 2010-05-01 21:11:18 -07:00
Koushik Dutta 244d1deec5 generic arm executables so this works on dream/sapphire 2010-05-01 19:48:10 -07:00
Koushik Dutta 8fef580ac7 fix more bugssss 2010-04-20 00:05:56 -07:00
Koushik Dutta 84231181e8 bug fixes 2010-04-19 23:43:39 -07:00
Koushik Dutta 2f5b3be9e1 Use the outputted cmdline and base files, so specifying it is not necessary. 2010-04-16 14:27:06 -07:00
Koushik Dutta 4b06a408c5 bug fixes for unpackbootimg 2010-04-16 14:09:36 -07:00
Koushik K. Dutta 891a9bc01a initial commit 2010-04-12 11:18:07 -07:00