You've already forked Magisk
mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-09-06 06:36:58 +00:00
Fix compile errors and cleanup
This commit is contained in:
@@ -18,15 +18,12 @@ int unpack(const char *image, bool skip_decomp = false, bool hdr = false);
|
||||
void repack(const char *src_img, const char *out_img, bool skip_comp = false);
|
||||
int split_image_dtb(const char *filename);
|
||||
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);
|
||||
void patch_verity(rust::Slice<uint8_t> data);
|
||||
bool patch_encryption(byte_data data);
|
||||
void patch_encryption(rust::Slice<uint8_t> data);
|
||||
size_t patch_verity(rust::Slice<uint8_t> data);
|
||||
size_t patch_encryption(rust::Slice<uint8_t> data);
|
||||
|
||||
inline bool check_env(const char *name) {
|
||||
static 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