Commit Graph
114 Commits
Author SHA1 Message Date
osm0sis c867216f91 tools: update to latest builds, including busybox (1.27.2)
Compiled from my own updated forks:
https://github.com/osm0sis/mkbootimg
https://github.com/osm0sis/android-busybox-ndk

ARM binaries; see AIK-mobile v2.9 for other architectures and optional binaries:
https://forum.xda-developers.com/showthread.php?t=2073775
2017-09-10 23:26:12 -03:00
osm0sis d5c58cdadb README: optional binaries update 2017-09-10 23:14:17 -03:00
osm0sis d60281c8b2 AK2: add DHTB signed image support
- add built-in support for dhtbsign for Samsung/Spreadtrum board devices signature header (see: https://github.com/osm0sis/dhtbsign)
2017-09-10 23:05:47 -03:00
osm0sis 1787580bf9 AK2: rename pxa1088- AOSP variant tools to pxa- per upcoming AIK release 2017-09-10 22:55:53 -03:00
osm0sis ce29998bf9 AK2: silence possible expected mount stderr with AVB signing 2017-08-20 01:00:53 -03:00
osm0sis e6d3b4271e Backend: miscellaneous fixes
- fix busybox getting permissions on some devices where chmod does not accept -R to recurse
- use busybox for more possibly non-standard broken recovery shell commands
- silence some more generally expected/inconsequential stderr
2017-08-20 01:00:45 -03:00
Chris Renshaw db7cb4f306 Backend: fix module copying on devices with links
- symlinks under /system/lib/modules were getting broken, so follow them instead to replace the target file, avoiding issues with multiple versions of the same module and running out of free space (e.g. OnePlus devices link /system/lib/modules/wlan.ko to /system/lib/modules/qca_cld3/qca_cld3_wlan.ko)
- set contexts on copied modules (following symlinks) to system_file to avoid SELinux issues where unlabeled module files might not be allowed to load
2017-08-14 02:46:18 -03:00
osm0sis 79c2ab4f60 AK2: fix AVB signing 2017-07-14 13:16:12 -03:00
osm0sis b91ec4deda AK2: better fix for unknown hash type
- https://github.com/osm0sis/AnyKernel2/commit/45bfc5d602582c53433bd2398bdc5876a7e260c9 broke the error catching on unpackbootimg
- more easily worked around during repack, see linked commit for rationale for the assumption
2017-07-04 15:47:31 -03:00
osm0sis adc21ed2c3 AK2: allow next blank line (" ") for replace_section and remove_section
- sometimes it's difficult to anchor to specific end lines due to variations across ROMs, so allow the end line to be blank " "
- note this will also remove the trailing blank line so for replacements a trailing \n should be added to maintain spacing; this should be pretty intuitive since you are including the blank line as the end line search
2017-07-04 14:24:12 -03:00
osm0sis 45bfc5d602 AK2: assume sha1 if "unknown" hash type encountered
- some Samsung device images can be unpacked and repacked with the standard tools but the id sha1 is offset differently than in the standard header resulting in broken hash type detection
2017-06-26 21:00:23 -03:00
osm0sis 05cb01112d AK2: accept .pem certificates for AVB signing
- turns out BootSignature.jar accepts .pem as well as .der
- AOSP uses "verity" keys by default for boot signatures: https://github.com/android/platform_build/tree/master/target/product/security
2017-06-16 17:00:46 -03:00
osm0sis ec285b291a README: add BootSignature_Android.jar to optional binary list 2017-06-06 13:28:03 -03:00
osm0sis 697e286654 AK2: add Android Verified Boot (AVB) signature support
- add built-in support for BootSignature_Android.jar for AVB signature enforcing devices (see https://forum.xda-developers.com/android/software-hacking/signing-boot-images-android-verified-t3600606)
2017-06-06 13:24:47 -03:00
osm0sis 89ba5089d2 tools: update to latest unpackbootimg build
Compiled from my own updated fork:
https://github.com/osm0sis/mkbootimg

ARM binary; see AIK-mobile v2.8 for other architectures and optional binaries:
https://forum.xda-developers.com/showthread.php?t=2073775
2017-06-05 16:27:16 -03:00
osm0sis 282e05ec47 update README 2017-05-28 19:57:29 -03:00
osm0sis c4d0ed8f9c Backend: add developer option to create a debugging archive
- to make it easier to diagnose issues with patches, image creation or flashing, adding "-debugging" to the end of the AK2 zip filename will enable the creation of a tar.gz of the entire /tmp directory after the installation process (but before cleanup, of course), this includes recovery.log, boot.img, boot-new.img and any other remnants to allow more thorough, direct debugging at a later time
2017-05-28 18:44:46 -03:00
osm0sis 633e042fc6 AK2+Backend: tidy up remaining intentional stderr
- no need to see these when there is an expected error during normal use
2017-05-26 22:57:13 -03:00
osm0sis e8c2006d8a update README
- document added support for U-Boot uImage devices (e.g. LG Optimus 3D), and Marvell PXA1088 board devices (e.g. Samsung Galaxy Core Mini 4G, Samsung Galaxy Tab 4 7.0 & Samsung Galaxy Xcover 3)
2017-05-26 22:39:34 -03:00
osm0sis 2fcc7e6c21 Backend: don't check anykernel.sh before it's been extracted
- if it does not exist yet (i.e. hasn't been extracted) then assume cleanuponabort=1 since there wouldn't be anything to see on a failed extraction
- hide any missing file errors from file_getprop here now that we've taken care of that case
2017-05-26 22:30:54 -03:00
osm0sis c24b2a299d AK2: add uImage and PXA1088 boot.img variant support
- add built-in support for dumpimage/mkimage for DENX U-Boot uImage devices (see: http://git.denx.de/u-boot.git)
- add built-in support for pxa1088-unpackbootimg/pxa1088-mkbootimg for Marvell PXA1088 board devices' deviation from the AOSP standard (see: https://github.com/osm0sis/pxa1088-mkbootimg)
2017-05-26 22:05:53 -03:00
Chris Renshaw 7a0180cd01 README: properly document all the optional binaries, add some tips 2017-05-08 11:40:46 -03:00
osm0sis 73a94ce87f README update 2017-05-04 18:11:58 -03:00
osm0sis fd5bfaa381 AK2: introduce .prop files patching function
patch_prop:
- if matched name is not present, appends new prop entry to the end of the file
- if matched name is present, replaces the entry with the new value
2017-05-04 18:02:00 -03:00
osm0sis a4adf0111e tools: update to latest builds, including busybox (1.26.2)
Compiled from my own updated forks:
https://github.com/osm0sis/mkbootimg
https://github.com/osm0sis/android-busybox-ndk

ARM binaries; see AIK-mobile v2.7 for other architectures and optional binaries:
https://forum.xda-developers.com/showthread.php?t=2073775
2017-05-04 17:22:51 -03:00
osm0sis b72155d3a2 AK2: add SignBlob support
- add built-in support for blobpack for Asus SignBlob devices (see https://github.com/AndroidRoot/BlobTools)
2017-05-04 17:20:05 -03:00
osm0sis dae85a0ed5 AK2: add support for sha256 hashed boot.img
- newer devices from Xiaomi use this, see latest commits here: https://github.com/osm0sis/mkbootimg
2017-04-25 08:59:09 -03:00
osm0sis 0e23428ccf README update 2017-04-22 09:00:09 -03:00
osm0sis 6fedeb5dc4 AK2: introduce cmdline patching function, misc cleanup
- use proper variable for ramdisk in mkbootfs support

patch_cmdline:
- if match not present, appends to the end of the current commandline
- if match is present, expands to full string (to allow for item=value entries), and optionally replaces with a second string, or just removes the entry, then cleans up doublespaces and trailing whitespace
2017-04-22 08:59:52 -03:00
osm0sis b89e3fd164 AK2: add boot partition sanity check
- only take the first word to allow workarounds for undefined partitions with dd skip=
2017-04-21 03:01:08 -03:00
osm0sis b31389512f AK2: misc cleanups
- hide unpackelf test stderr
- accept dtb and dt.img for dt
2017-04-10 20:03:33 -03:00
osm0sis 39cdd433bd anykernel: isolate props
- not EDIFY for a while now! (put properties in a function so they aren't executed with the shell script)
2017-04-10 20:01:33 -03:00
osm0sis 9e3135e8d9 Backend: ensure we've got a POSIX accepting chown via our busybox
- per https://github.com/osm0sis/AnyKernel2/pull/10#issuecomment-283771783
2017-03-02 16:35:38 -04:00
Chris Renshaw 7c0f420bff Merge pull request #10 from axxx007xxxz/master
Update to be a bit more POSIX
2017-03-02 16:31:31 -04:00
axxx007xxxz aaef99b696 META-INF: update-binary: Remove deprecated chown command
"Some older scripts may still use ‘.’ in place of the ‘:’ separator. POSIX 1003.1-2001 does not require support for that, but for backward compatibility GNU chown supports ‘.’ so long as no ambiguity results. New scripts should avoid the use of ‘.’ because it is not portable, and because it has undesirable results if the entire owner‘.’group happens to identify a user whose name contains ‘.’."
Source: http://gnu.org/software/coreutils/manual/html_node/chown-invocation.html#chown-invocation.
2017-03-02 21:10:31 +01:00
Chris Renshaw bc99ae1923 AK2: fix unpackelf fix
- underp the fallback logic
2017-03-01 00:07:04 -04:00
osm0sis 7c244c6dea tools: update to latest mkbootimg+unpackbootimg builds
Compiled from my own updated fork: https://github.com/osm0sis/mkbootimg

ARM binaries; see AIK-mobile v2.6 for other architectures and optional binaries:
https://forum.xda-developers.com/showthread.php?t=2073775
2017-02-27 19:43:19 -04:00
osm0sis efed2f07ea AK2: add Samsung SEAndroid footer support
- Chainfire inlines support for this into SuperSU (unlike the similar LG Bump support which must be added via /data/custom_boot_image_patch.sh), so we must also.
2017-02-27 19:27:53 -04:00
osm0sis befe258b96 AK2: repair unpackelf support on repeat dirty flashes
- on Sony devices supporting standard boot.img on unloacked bootloaders first AK2 flash would convert from ELF to boot.img, but second flash would attempt to use unpackelf again and fail, so fallback to unpackbootimg
- requires updated unpackelf binary for Sony ELF devices (see: https://github.com/osm0sis/unpackelf)
2017-02-27 17:25:29 -04:00
osm0sis 092a3b3880 AK2: add more compression types and Image.fit (ChromeOS) to zImage checks 2017-02-27 16:39:13 -04:00
osm0sis c709fd50f5 AK2: add ChromeOS support
- add built-in support for futility for ChromeOS devices (see https://github.com/osm0sis/futility)
- small path cleanup since we generally need to be in /tmp/anykernel for post-repack anyway
2017-02-27 16:35:32 -04:00
osm0sis 36109b8e30 README+Example: remove do.init.d references 2017-02-27 16:12:53 -04:00
osm0sis b663e79a19 Backend: remove init.d directory creation
- fairly pointless and seemed to confuse new adopters, who thought it alone added init.d support to a ROM
2017-02-27 16:11:35 -04:00
axxx007xxxz f7992be0a3 Introduce cleanuponabort
This option allow to remove the working directory in case of abort; disabled by default.
2017-02-27 16:06:04 -04:00
axxx007xxxz 2129ee98e2 META-INF: update-binary: Clean up before starting the flashing process
In this way if there were files left from previous installations they get deleted.
2017-02-27 16:06:03 -04:00
axxx007xxxz 7aebdb2efd META-INF: update-binary: Make cleanup a function 2017-02-27 16:06:01 -04:00
axxx007xxxz bcf3dc5055 Switch to a null zImage
This makes the repo 3,2MB smaller. :p
2017-02-27 16:05:59 -04:00
osm0sis d924f79ac6 Example: clean out tuna ramdisk files
- these seem to confuse new adopters, so end up left in the ramdisks of various devices where they are not applicable

DO NOT MERGE if you have already updated your ramdisk properly for your device
2017-02-27 16:01:15 -04:00
osm0sis 7d9d56d453 AK2: make backup only backup when needing backup 2017-02-02 18:26:39 -04:00
osm0sis b6d48eed5e AK2: add MTD device support and dd wiping
- add built-in support for mtd-utils (nanddump, flash_erase, nandwrite) for MTD-based Android devices that do not work with dd
- wipe boot block with dd before write to be clean/safe (SuperSU zip also does this)

Known working mtd-utils ARM binaries can be found in my FlashIt v2.5 package:
https://forum.xda-developers.com/showthread.php?t=2239421
2017-02-02 15:52:09 -04:00