Prevent accidental magiskinit execution

Close #1281
This commit is contained in:
topjohnwu 2019-04-01 17:14:18 -04:00
parent 71a91ac7a7
commit cc77a24502

View File

@ -678,6 +678,9 @@ int main(int argc, char *argv[]) {
return dump_manager(argv[3], 0644);
}
if (getpid() != 1)
return 1;
MagiskInit init(argv);
// Run the main routine