Commit Graph
439 Commits
Author SHA1 Message Date
engstk f81b0b2db6 tools: update magisk utils to v25.0(25000) beta
Signed-off-by: engstk <eng.stk@sapo.pt>
2022-06-07 20:21:32 -03:00
Chris Renshaw c8961dedb8 AK3: silence placeholder cleanup rmdir noise 2022-06-07 20:19:45 -03:00
Chris Renshaw 9758c926da README: update for lptools 2022-05-05 22:01:52 -03:00
Captain TripsandChris Renshaw 79cb6945ff AK3: add support for resizing logical partitions (#69)
- add flash_generic support for flashing to dynamic/logical partitions larger than stock using phhusson's lptools binary
- enable full automated support for flashing custom vendor_dlkm.img (note: must NOT be sparse format; factory images are sparse, but images generated from source are not)

Co-authored-by: Chris Renshaw <osm0sis@outlook.com>
2022-04-30 20:01:03 -03:00
osm0sis 4ebf8e538c Backend: add id to helper module.prop so 3rd party mgr apps are happy 2022-04-28 23:36:54 -03:00
osm0sis adb09dcc81 AK3: ensure no template files from beginner devs get to the ramdisk 2022-04-23 18:47:35 -03:00
osm0sis 97d2d7ffd5 AK3: also ensure $comp fallback is a working command for ramdisks 2022-04-10 22:30:19 -03:00
osm0sis c19c5be18c AK3: fix unpack/repack with magiskboot zimage kernel support
- exclude "zimage" as a compression type since magiskboot unpack, split and repack handle it automatically and there is no fallback
- ensure $comp is a working command for all busybox compression fallbacks
2022-04-03 09:19:15 -03:00
osm0sis 991bb673a7 tools: update magisk utils to v24.3(24300) stable 2022-03-10 19:17:40 -04:00
Chris Renshaw 743bb44ed1 AK3: add support for new upstream AOSP init_boot partition
https://android-review.googlesource.com/c/platform/build/+/1882268
2022-03-04 13:45:59 -04:00
Alexander Winkowski 076e748dc3 AK3: Fix patch_fstab function (#66)
Patching system partition entry won't work if system_ext partition is present. Fix this by adding [[:space:]] to the end of the pattern.
Note that grep -w can't be used in this case because there is still a possibility of erroneous matches from grep using / as a whole word delimiter, e.g., logical vendor partition (that is just "vendor") and "/vendor/dsp".
2022-03-04 03:59:38 -04:00
osm0sis 446ad5d85d tools: update magisk utils to v24.2(24200) beta 2022-03-02 09:00:45 -04:00
Alexander Winkowski 3e99a63e92 AK3: fix no_block_display behaviour with flash_generic (#65) 2022-02-01 13:14:43 -04:00
osm0sis af9b68cd4c tools: update magisk utils to v24.1(24100) stable 2022-01-28 22:50:58 -04:00
engstk 52f96e80d2 tools: update magisk utils to v24.0(24000) beta
Signed-off-by: engstk <eng.stk@sapo.pt>
2022-01-26 13:10:40 -04:00
engstk 6aec94e549 tools: update magisk utils to 5f4cd50c (23017) canary
Signed-off-by: engstk <eng.stk@sapo.pt>
2022-01-20 18:06:52 -04:00
Chris Renshaw 42e9c3a9a9 README: document patch_vbmeta_flag feature 2021-12-17 14:16:53 -04:00
engstk 11cb678fb3 tools: update magisk utils to 92546e8a(23016) canary
Signed-off-by: engstk <eng.stk@sapo.pt>
2021-12-15 20:33:34 -04:00
osm0sis 19cf85643b Example: change commented vendor_boot setup to patch_vbmeta_flag
DO NOT MERGE if you have already updated your ramdisk properly for your device
2021-12-15 20:31:48 -04:00
osm0sis d7d7aebf7a anykernel: change keep_vbmeta_flag -> patch_vbmeta_flag 2021-12-15 20:29:04 -04:00
osm0sis fb5fbb1516 AK3: update KEEPVBMETAFLAG -> PATCHVBMETAFLAG for Canary 23016+ 2021-12-15 20:20:27 -04:00
osm0sis 1edb7e9f39 Backend: fix devicecheck now that we can't abuse file_getprop with .* 2021-12-11 00:15:34 -04:00
osm0sis 12baa2739a AK3: better backwards compatibility for keep_vbmeta_flag (unset=auto) 2021-12-11 00:12:14 -04:00
osm0sis 78f08d471e Example: add commented keep_vbmeta_flag to vendor_boot setup 2021-12-10 23:32:14 -04:00
osm0sis f7490f764c anykernel: add keep_vbmeta_flag 2021-12-10 23:31:05 -04:00
osm0sis 6e7fcd6d28 AK3: add magiskboot KEEPVBMETAFLAG support
- some devices fail to boot when magiskboot changes the vbmeta flag is set in the AVBv2 signature from 00 to 03, this allows disabling that behavior
- set keep_vbmeta_flag=1 in anykernel.sh to force it to keep whatever's there, =auto will take it from the existing image if Magisk-patched (Canary 23016 or later), and =0 will allow the default magiskboot behavior
2021-12-10 23:30:24 -04:00
osm0sis 66f42c1951 AK3+Backend: grep cleanups
- fix duplicate kernel version (vertmp) entries from some kernels
- don't use head when grep -m1 will suffice
- fix some (bad) OEM prop files including entries twice, use last entry like live system
2021-12-10 17:34:54 -04:00
Chris Renshaw 08a76000ad AK3: unbreak anykernel scripts using flash_dtbo directly 2021-12-06 13:45:16 -04:00
Chris Renshaw 4950e80ca2 README: update remaining flash_dtbo references 2021-12-06 13:29:02 -04:00
Chris Renshaw 89c8c54f4a README: update for flash_generic and vendor_dlkm 2021-12-06 10:58:38 -04:00
osm0sis 297d6c3b99 AK3: add flash_generic to reduce code duplication 2021-12-06 10:04:54 -04:00
osm0sis a312a2bdc9 tools: update magisk utils to e097c097(23015+) CI
- adds partial hdr v4 support (cannot currently unpack vendor_boot v4 multi-ramdisk or bootconfig)
- use upstream CI build since it includes an AVBv2 signature padding fix, resolving all known regressions

Closes #61
2021-12-06 08:07:42 -04:00
Chris Renshaw ae28b9dc92 Increment AK_BASE_VERSION for latest changes 2021-12-05 03:15:25 -04:00
engstkandosm0sis 2b7f6e8889 AK3: add full vendor_dlkm.img flash support
- Use similar dtbo.img logic
- Support new hdr v4 images without repacking
- Process before boot to safe bail
- No resize available, checks output size and bounces if larger
- Handle block state correctly to fix boot check warning

Co-authored-by: osm0sis <osm0sis@outlook.com>

Signed-off-by: engstk <eng.stk@sapo.pt>
2021-12-04 18:11:38 -04:00
engstk 146f9b27c5 AK3: add full vendor_boot.img flash support
- Use similar dtbo.img logic
- Support new hdr v4 images without repacking
- Process before boot to safe bail

Signed-off-by: engstk <eng.stk@sapo.pt>
2021-12-04 18:11:38 -04:00
osm0sis d432fd5721 Backend: support Android 12 .capex (compressed apex) files 2021-11-18 15:58:06 -04:00
Chris Renshaw 20ad14111f Create FUNDING.yml 2021-10-31 16:33:57 -03:00
osm0sis d5572891d9 Backend: fix apex mounts on fastboot boot'd TWRP
- work around different /apex environment causing loop mounts to fail on TWRP only when it's initiated by `fastboot boot twrp.img`
2021-10-18 11:43:01 -03:00
osm0sis 049180b3cd Backend: update apex support
- support unmounting TWRP's mounted apex files to avoid conflicts
- hide less apex u/mount stderr to aid future debugging
2021-10-16 14:54:06 -03:00
Chris Renshaw 74be8b014f README: update thread links for XenForo xda 2021-10-06 16:00:47 -03:00
osm0sis 52aec65a1b Backend: use stderr for consistency with other debug output 2021-10-04 22:34:26 -03:00
osm0sis 42611f420b Backend: adjust AK_BASE_VERSION placement in output 2021-10-03 14:53:40 -03:00
osm0sis 446d3caeef tools: update to latest busybox (1.34.1)
Compiled from my own updated fork:
https://github.com/osm0sis/android-busybox-ndk
2021-10-03 14:48:15 -03:00
osm0sis b32e4ceb6e Backend: fix module installation if apex mounts fail 2021-10-02 00:36:20 -03:00
osm0sis fc43a2a1a9 Backend: print AK_BASE_VERSION to stdout in script output 2021-10-01 19:20:43 -03:00
osm0sis f88f90e3d2 Backend: underps and regression fixes
- fallback by-name system mount may still result in /system at /system_root so add back check
- add missing /persist mountpoint
2021-09-15 00:02:22 -03:00
osm0sis 84caeb46e5 Backend: more partition mount fixes
- attempt to mount other partitions whether determined as /system or /system_root
- /system_root by that point if mounted will actually be /system_root so no need for further checks
- add missing /system_ext entries to custom getprop and cleanup functions
2021-09-14 17:10:11 -03:00
osm0sis 4dfc45a6b2 Backend: check before mounts, fix persist mount on Virtual A/B 2021-09-11 00:05:52 -03:00
osm0sis d705b13c45 Backend: mount cleanups and add system_ext support 2021-09-10 00:21:03 -03:00
osm0sis 216eefce20 AK3: fix new .img backup in debugging tgz, multipartition output tweak 2021-07-21 01:49:27 -03:00