Skip to content

Commit cc040a6

Browse files
author
IsHacker
authored
Fixed stupid error with CmdReceiver detection
1 parent 452abe8 commit cc040a6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app/src/main/java/com/ishacker/exploit/sub_module/MainActivity.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,14 +151,15 @@ private fun checkPatch() {
151151
)
152152
cmdIntent.flags = Intent.FLAG_RECEIVER_FOREGROUND
153153
cmdIntent.flags = Intent.FLAG_INCLUDE_STOPPED_PACKAGES
154+
cmdIntent.putExtra("App", 1)
154155
sendOrderedBroadcast(cmdIntent, null, object : BroadcastReceiver() {
155156
override fun onReceive(context: Context?, intent: Intent?) {
156157
val result = getResultCode()
157158
val resultData = getResultData()
158159
if (result == -1 && resultData == "ReceiverFound") {
159160
Log.d("CmdExecutor", "BroadcastReceiver exists: CmdReceiver")
160161
} else {
161-
// Not working :(
162+
showDialogNotFound()
162163
}
163164
}
164165
}, null, Activity.RESULT_CANCELED, null, null)

0 commit comments

Comments
 (0)