diff --git a/src/full/AndroidManifest.xml b/src/full/AndroidManifest.xml index 2e2f59434..089a603e0 100644 --- a/src/full/AndroidManifest.xml +++ b/src/full/AndroidManifest.xml @@ -3,8 +3,8 @@ package="com.topjohnwu.magisk"> + - - + + + + + + + - \ No newline at end of file + diff --git a/src/stub/java/com/topjohnwu/magisk/receivers/BootLauncher.java b/src/stub/java/com/topjohnwu/magisk/receivers/BootLauncher.java new file mode 100644 index 000000000..8f7060bea --- /dev/null +++ b/src/stub/java/com/topjohnwu/magisk/receivers/BootLauncher.java @@ -0,0 +1,16 @@ +package com.topjohnwu.magisk.receivers; + +import android.content.BroadcastReceiver; +import android.content.Context; +import android.content.Intent; + +import com.topjohnwu.magisk.NoUIActivity; + +public class BootLauncher extends BroadcastReceiver { + @Override + public void onReceive(Context context, Intent intent) { + Intent i = new Intent(context, NoUIActivity.class); + i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); + context.startActivity(i); + } +}