rovo89 / android_art

Android ART with modifications for the Xposed framework.
Other
369 stars 211 forks source link

Xposed not working on instrumented apps #55

Open ReyhanJB opened 7 years ago

ReyhanJB commented 7 years ago

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

rovo89 commented 7 years ago

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?

ReyhanJB commented 7 years ago

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.