mirror of
https://github.com/kvorschk/Magisk.git
synced 2026-12-05 23:14:03 -05:00
Enable avd hack for debug build
This commit is contained in:
@@ -3,11 +3,6 @@
|
||||
|
||||
using kv_pairs = std::vector<std::pair<std::string, std::string>>;
|
||||
|
||||
// For API 28 AVD, it uses legacy SAR setup that requires
|
||||
// special hacks in magiskinit to work properly. We do not
|
||||
// necessarily want this enabled in production builds.
|
||||
#define ENABLE_AVD_HACK 0
|
||||
|
||||
struct BootConfig {
|
||||
bool skip_initramfs;
|
||||
bool force_normal_boot;
|
||||
@@ -64,12 +59,9 @@ private:
|
||||
bool hijack_sepolicy();
|
||||
void setup_tmp(const char *path);
|
||||
protected:
|
||||
|
||||
#if ENABLE_AVD_HACK
|
||||
// When this boolean is set, this means we are currently
|
||||
// running magiskinit on legacy SAR AVD emulator
|
||||
bool avd_hack = false;
|
||||
#endif
|
||||
|
||||
void patch_rw_root();
|
||||
void patch_ro_root();
|
||||
|
||||
Reference in New Issue
Block a user