I built an Xposed module since a few years, and users are now reporting a weird issue in which the app itself no longer starts when its integrated module is enabled.
When module is enabled, the Xposed logs shows many lines like this:
art/runtime/stack.cc:205] Check failed: success Failed to read the this object in void ccc71.at.xposed.at_xposed_enabled.handleLoadPackage(de.robv.android.xposed.callbacks.XC_LoadPackage$LoadPackageParam)
Not sure what it means or if it relates to the app no longer starting, but it's odd enough as the method in question is quite simple:
@Override
public void handleLoadPackage(LoadPackageParam lpparam) throws Throwable
{
String self = at_xposed_helpers.getPackageName();
if (lpparam.packageName.equals(self))
{
findAndHookMethod("ccc71.at.xposed.at_xposed_helpers", lpparam.classLoader, "isXposedEnabled", new XC_MethodHook()
{
@Override
protected void beforeHookedMethod(MethodHookParam param) throws Throwable
{
param.setResult(at_xposed_helpers.VERSION);
}
});
}
}
static String getPackageName()
{
return BuildConfig.XPOSED_PACKAGE;
}
Can anybody help me understand how an Xposed module being enabled would prevent the hosting app from starting? There's nothing in logcat, no ANR nor any tombstones when this happens. Just those lines in the log attached.
xposed_error_20171206_062700.log