android_art icon indicating copy to clipboard operation
android_art copied to clipboard

Xposed not working on instrumented apps

Open ReyhanJB opened this issue 7 years ago • 2 comments

Hi,

I've installed Xposed on genymotion, where my virtual device is a Nexus 5x running API 23 (Marshmallow). My Xposed module dynamically analyzes the execution of another app, FooDroid for example.

My module works quite fine when I manually run it on the emulator. However, when I run the app using espresso or robotium tests, Xposed terminates with the following error: "Instrumentation detected, disabling framework for FooDroid". I tried to resolve the issue by downloading XposedBridge source code from here (https://github.com/rovo89/XposedBridge/tree/master), changing the file "XposedBridge.java" by commenting out the following lines:

192: disableHooks = true; 193: return;

Then I built the project, and changed XposedBridge.APK to XposedBridge.jar

Next, I downloaded Xposed for here (http://dl-xda.xposed.info/framework/sdk23/x86/), and replaced the XposedBridge.jar with my own version. However, when I installed the new framework and reboot the virtual device, it was trapped in a bootloop (log file attached).

log.txt

I was wondering if there is a stable XposedBridge.jar file which I can use. I really appreciate it.

Regards, Reyhan

ReyhanJB avatar Nov 17 '16 01:11 ReyhanJB

You have to use the "art" branch. Besides that, I don't know what the side-effects of removing this check are as it has existed for a very long time. Chances are everything will work fine, but it might also crash the app.

By the way, why did you open the issue here, not in the XposedBridge project?

rovo89 avatar Nov 17 '16 12:11 rovo89

Thanks for the reply. I probably had both of the projects opened and mistakenly posted here instead of the XposedBridge project. I move it there since I have some follow up questions.

ReyhanJB avatar Dec 08 '16 02:12 ReyhanJB