Commit Graph

20 Commits

Author SHA1 Message Date
LoveSy 8d7c7c3dfb Refactor dtb in rust 2023-09-19 00:41:42 -07:00
topjohnwu dda8cc85c9 Use bytemuck 2023-09-14 13:10:09 -07:00
topjohnwu 1d7cff7703 Update Cargo dependencies 2023-09-06 13:57:43 -07:00
topjohnwu 275208e81b Update Rust dependencies 2023-08-17 21:24:29 -07:00
topjohnwu af65d07456 Support AVB1.0 signing and verification in magiskboot 2023-07-17 18:57:50 -07:00
LoveSy 0a07018fec No need to use submodule for argh 2023-07-06 15:28:39 -07:00
topjohnwu d778b0b0a7 Custom help message when using argh
Help messages generated from argh is nearly useless and very hard to
customize. Fork argh and disable all code for generating help messages.

Use a closure to print the help message when handling EarlyExit.
2023-07-05 17:05:39 -07:00
topjohnwu ee943afbc9 Cleanup SHA hash implementation 2023-06-30 15:50:52 -07:00
LoveSy 1f7c3e9f14 Use rust to calculate sha 2023-06-30 14:06:02 -07:00
topjohnwu 4ee4cbada6 Standardize logging and error handling
- Introduce new types: LoggedResult and LoggedError
- Introduce new extension methods to log and add additional msgs
- Never exit when logging error messages in Rust (all errors should be
  handled by using Result and Rust's error propagation)
- Remove all usages of anyhow as it doesn't fit Magisk's use cases
2023-06-29 17:14:53 -07:00
LoveSy 24b1c607f3 Replace clap with argh 2023-06-22 02:36:31 -07:00
topjohnwu a6b1149b9f Minor cleanup 2023-06-20 14:36:07 -07:00
LoveSy 51e985ae7f Use quick-protobuf 2023-06-20 14:36:07 -07:00
topjohnwu d3e1c496ca Upgrade ONDK to r25.6 2023-06-15 01:26:54 -07:00
topjohnwu e58f98e844 Update cargo files 2023-06-12 02:40:50 -07:00
topjohnwu d77a368176 Move dependency version into workspace 2023-05-28 17:30:33 -07:00
topjohnwu 659b9c6fee Support extracting any partition from payload.bin 2023-05-26 13:36:47 -07:00
topjohnwu 18d0cedbe2 Parse rule files with Rust 2023-05-24 19:11:56 -07:00
topjohnwu b496923cbb Update Cargo.toml 2022-07-24 06:14:49 -07:00
topjohnwu b9e89a1a2d Restructure the native module
Consolidate all code into the src folder
2022-07-23 13:51:56 -07:00