Manually trigger broadcast tests if necessary

This commit is contained in:
topjohnwu
2019-10-22 16:04:20 -04:00
parent a18c552ddf
commit 71136d7347
5 changed files with 20 additions and 4 deletions
@@ -79,6 +79,8 @@ open class GeneralReceiver : BaseReceiver() {
NOTIFY -> SuLogger.handleNotify(context, intent)
TEST -> {
val mode = intent.getIntExtra("mode", 1 shl 1)
if (mode > Info.env.connectionMode)
Info.env.connectionMode = mode
Shell.su("magisk --connect-mode $mode").submit()
}
}