Open migraine-sudo opened 3 months ago
Sorry about the late reply.
Unfortunately I don't have the same phone, but today I tested TinyInst on Linux again with two different phones (from Google and Samsung) and didn't encounter this issue.
From the error message it seems the target is unable to change memory permissions of executable memory (When instrumenting a module, TinyInst will mark all previously executable memory inside the module as non-executable. This is so TinyInst can catch attempts to execute code from the instrumented module and redirect execution to instrumented code region instead. The error occurs during mprotect in the context of the target program). I don't know if this is something related to selinux or some custom mitigation on Xiaomi phones.
I run it with root permissions on my Xiaomi phone, but I get this error. Selinux is also closed. The program is just a simple loop hello world. Is there any solution?