Commit Graph

43 Commits

Author SHA1 Message Date
topjohnwu c578cccfd5 Update to ONDK r27.4 2024-08-11 04:16:19 -07:00
topjohnwu 1701361a73 Update cargo dependencies 2024-08-03 01:49:14 -07:00
LoveSy 6d82515cfc No default features of pb-rs 2024-07-20 20:29:38 -07:00
topjohnwu f57839379a Update RustCrypto dependencies 2024-04-03 21:03:05 -07:00
LoveSy 36bd00a046 Add p521 to magiskboot 2024-04-03 21:03:05 -07:00
topjohnwu a1b6568226 Implement preinit related features in Rust 2024-03-28 14:11:03 -07:00
topjohnwu 1eddbfd72c Use const_format for const strings 2024-03-26 18:03:40 -07:00
LoveSy 62fc7868ac Use self implemented parse_mount_info 2024-02-27 17:03:22 -08:00
topjohnwu 1a70796339 Replace all parse_mount_info usage with Rust 2024-02-27 03:49:17 -08:00
topjohnwu 18c45ae289 Update cxx and Rust dependencies 2024-02-02 14:35:30 -08:00
LoveSy 9088b584f6 Use official argh 2023-10-25 15:14:16 -07:00
topjohnwu 36de62873a Fix error logging on the C++ side 2023-10-13 16:59:54 -07:00
topjohnwu a55d570213 Move more I/O operations into Rust 2023-09-27 02:28:43 -07:00
topjohnwu b28326198c Use crates for cpio code 2023-09-22 01:39:21 -07:00
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
LoveSy 8d81bd0e33 resetprop: replace nanopb with quick-protobuf for persist 2023-09-05 22:20:57 -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 5ee6daf126 Handle cpio commands properly 2023-07-03 21:57:28 -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 e58f98e844 Update cargo files 2023-06-12 02:40:50 -07:00
LoveSy b8cb9cd84d Refactor magiskboot cpio 2023-06-12 02:40:50 -07:00
topjohnwu 40f25f4d56 Introduce directory traversal 2023-06-09 02:00:37 -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 2bcf2e76f1 Generate cxx binding in build.rs 2023-05-19 15:16:54 -07:00
topjohnwu 7518092ad2 Implement logging purely in Rust 2023-05-09 18:54:38 -07:00
topjohnwu 21ddb26db8 Perform proto codegen in build script 2023-05-04 21:37:08 -07:00
LoveSy 7bf2e3875f Support extract boot image from payload.bin 2023-05-04 21:37:08 -07:00
topjohnwu b136aba1e2 Implement magiskinit logging in Rust 2023-05-02 16:49:43 -07:00
topjohnwu 1c5a435e1f Update cxx-rs 2023-05-01 14:53:07 -07:00
topjohnwu c6646efe68 Move all xwrap to Rust 2022-09-15 01:17:05 -07:00
topjohnwu 4c0f72f68f Move part of libbase to Rust 2022-08-08 22:53:37 -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