topjohnwu
f9bde347bc
Convert indentation to spaces
...
The tab war is lost
2020-12-30 22:11:24 -08:00
topjohnwu
1e2f776b83
Move logging.hpp
2020-06-17 01:17:28 -07:00
topjohnwu
2f824f59dc
Better logging system
...
Use C++ magic to strip out debug logs at compile time
2020-06-01 04:15:37 -07:00
topjohnwu
02dc1172be
Revert DTB patches to in-place binary patches
...
Since we no longer need to add new properties in the device tree, and
all the patches we do removes strings, we can just directly patch
the flat device tree in-place, ignoring basically all the higher level
DTB structure and format to accomplish 100% compatibility.
2020-05-05 01:03:09 -07:00
topjohnwu
ba7cb47383
Make version reporting consistent
2020-03-23 01:17:13 -07:00
topjohnwu
a0998009c1
Small native code reorganization
2020-03-09 01:50:30 -07:00
topjohnwu
78c64d39ec
Add split command to magiskboot
...
Allow splitting image.*-dtb files to kernel and dtb
2019-12-30 13:04:39 +08:00
John Wu
0f219e5ae6
Better argument parsing logic
2019-10-31 02:44:25 -04:00
osm0sis
353c3c7d81
magiskboot: add unpack -n to help with repack validity tests
...
- support unpack without decompression to allow easy testing of magiskboot's header, structure and hashing handling by comparing repack checksum versus origbootimg
- make -n first to match repack
2019-10-31 02:44:25 -04:00
topjohnwu
16b400964b
Update vars for 2SI
2019-09-22 06:45:23 -04:00
topjohnwu
a1ccd44013
Change MagiskBoot patch behavior
...
Use environment variables to toggle configurations for patching ramdisk
2019-09-21 05:55:23 -04:00
topjohnwu
4d91e50d6d
Update dtb patch to not use in-place modification
2019-09-21 05:30:04 -04:00
topjohnwu
120668c7bc
Revise dtb commands CLI
2019-09-20 03:53:58 -04:00
topjohnwu
e8d900c58e
Fix typo
2019-06-15 18:12:12 -07:00
topjohnwu
a6241ae912
Fix magiskboot unpack option parsing
2019-06-15 16:15:12 -07:00
osm0sis
ee407472cf
magiskboot: allow forcing no recompression on ramdisk.cpio
...
- when input image had a compressed ramdisk magiskboot had no way to force the repack with the uncompressed ramdisk.cpio since it does not formally recognize cpio as its own format, so add a switch to support forcing repacking to any possible ramdisk format regardless of input image
2019-06-10 21:57:39 -07:00
Ian Macdonald
8513946e09
'magiskboot hexpatch' will exit with status 1 when nothing patched.
2019-06-10 21:41:40 -07:00
osm0sis
b0d6de783e
Correct magiskboot help
2019-05-09 20:28:48 -07:00
topjohnwu
e784212283
Update tools docs
2019-03-28 04:54:06 -04:00
topjohnwu
b7e2e972c7
Support boot_img_hdr_v2
2019-03-13 16:51:22 -04:00
topjohnwu
1287372f5a
Support patching header in magiskboot
2019-03-07 21:32:01 -05:00
topjohnwu
7f08c06943
Remove unnecessary '--' from magiskboot actions
2019-03-07 18:07:23 -05:00
topjohnwu
0442d6d509
Only compress kernel and ramdisk if input not compressed
2019-03-07 07:24:20 -05:00
topjohnwu
c9fa8118d1
Some code adjustments
2019-02-24 23:09:34 -05:00
topjohnwu
e59c5c8780
Modernize compress and decompress
2019-02-20 20:49:26 -05:00
topjohnwu
d67b827338
Rewrite compression with OOP
2019-02-20 02:10:06 -05:00
topjohnwu
ed027ec3ee
Refactor build flags
2019-02-12 05:17:02 -05:00
topjohnwu
71ecbb3af3
Clean/refactor includes
2019-02-10 03:57:51 -05:00
topjohnwu
1fae89cbb6
Add new cpio command: "exists", to magiskboot
2018-12-05 20:27:48 -05:00
topjohnwu
83ae66daea
Change stock boot image SHA1 backup method
2018-11-15 00:33:20 -05:00
topjohnwu
2efc423cf8
Add missing flags and move debug logging logic to libutils
2018-10-28 04:25:31 -04:00
topjohnwu
4ecbf8c12c
Remove recovery_dtbo when cleanup
2018-10-24 22:23:14 -04:00
topjohnwu
fc8a3c5fb4
Migrate MagiskBoot to C++
2018-10-24 22:23:14 -04:00