Reboot to recovery when running as recovery

This commit is contained in:
topjohnwu
2019-03-30 06:49:29 -04:00
parent 7a133eaf03
commit df4161ffcc
5 changed files with 17 additions and 11 deletions

View File

@@ -1,8 +1,4 @@
/* daemon.h - Utility functions for daemon-client communication
*/
#ifndef _DAEMON_H_
#define _DAEMON_H_
#pragma once
#include <pthread.h>
#include <sys/un.h>
@@ -87,4 +83,5 @@ void magiskhide_handler(int client);
void su_daemon_handler(int client, struct ucred *credential);
#endif
extern int SDK_INT;
extern bool RECOVERY_MODE;

View File

@@ -26,8 +26,6 @@
// Legacy crap
#define LEGACYCORE MODULEROOT "/.core"
extern int SDK_INT;
constexpr const char *applet_names[] = { "magisk", "su", "resetprop", "magiskhide", nullptr };
// Multi-call entrypoints