Use daemon state to determine late prop hiding

This commit is contained in:
topjohnwu
2020-05-18 05:21:47 -07:00
parent 501d3e6c32
commit c3e045e367
4 changed files with 9 additions and 9 deletions
+4 -4
View File
@@ -20,7 +20,7 @@ using namespace std;
int SDK_INT = -1;
bool RECOVERY_MODE = false;
string MAGISKTMP;
int daemon_state = STATE_UNKNOWN;
int DAEMON_STATE = STATE_UNKNOWN;
static struct stat self_st;
@@ -98,13 +98,13 @@ static void handle_request(int client) {
switch (req_code) {
// In case of init trigger launches, set the corresponding states
case POST_FS_DATA:
daemon_state = STATE_POST_FS_DATA;
DAEMON_STATE = STATE_POST_FS_DATA;
break;
case LATE_START:
daemon_state = STATE_LATE_START;
DAEMON_STATE = STATE_LATE_START;
break;
case BOOT_COMPLETE:
daemon_state = STATE_BOOT_COMPLETE;
DAEMON_STATE = STATE_BOOT_COMPLETE;
break;
// Simple requests to query daemon info