You've already forked Magisk
mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-09-06 06:36:58 +00:00
Refactor magiskboot cpio
This commit is contained in:
@@ -21,7 +21,13 @@ int hexpatch(const char *file, std::string_view from, std::string_view to);
|
||||
int cpio_commands(int argc, char *argv[]);
|
||||
int dtb_commands(int argc, char *argv[]);
|
||||
|
||||
bool patch_verity(byte_data &data);
|
||||
bool patch_encryption(byte_data &data);
|
||||
bool patch_verity(byte_data data);
|
||||
void patch_verity(rust::Slice<uint8_t> data);
|
||||
bool patch_encryption(byte_data data);
|
||||
void patch_encryption(rust::Slice<uint8_t> data);
|
||||
|
||||
bool check_env(const char *name);
|
||||
inline bool check_env(const char *name) {
|
||||
using namespace std::string_view_literals;
|
||||
const char *val = getenv(name);
|
||||
return val != nullptr && val == "true"sv;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user