Add new build command avd_patch

This commit is contained in:
topjohnwu
2022-01-19 05:12:11 -08:00
parent f443cbaa2b
commit 20ef724fad
7 changed files with 158 additions and 31 deletions

View File

@@ -6,6 +6,7 @@ struct BootConfig {
bool skip_initramfs;
bool force_normal_boot;
bool rootwait;
bool emulator;
char slot[3];
char dt_dir[64];
char fstab_suffix[32];
@@ -66,6 +67,10 @@ protected:
mmap_data magisk_config;
std::string custom_rules_dir;
// When this boolean is set, this means we are currently
// running magiskinit on legacy SAR AVD emulator
bool avd_hack = false;
void mount_with_dt();
bool patch_sepolicy(const char *file);
void setup_tmp(const char *path);