Closed BlueMax closed 3 years ago
The following patch could fix this issue.
Or you can try to deopt manager.
Or you could use YAHFA.
diff --git a/app/src/main/java/de/robv/android/xposed/installer/XposedApp.java b/app/src/main/java/de/robv/android/xposed/installer/XposedApp.java
index 99e37f43..79d5d84f 100644
--- a/app/src/main/java/de/robv/android/xposed/installer/XposedApp.java
+++ b/app/src/main/java/de/robv/android/xposed/installer/XposedApp.java
@@ -25,6 +25,7 @@ public class XposedApp extends Application {
// This method is hooked by XposedBridge to return the current version
public static Integer getActiveXposedVersion() {
+ Log.d(TAG, "EdXposed is not active");
return -1;
}
This didn't meant to fix the warning state. Please check the pinned issue.
LoveSy notifications@github.com 于 2020年12月14日周一 04:03写道:
The following patch could fix this issue.
Or you can try to deopt manager.
Or you could use YAHFA.
diff --git a/app/src/main/java/de/robv/android/xposed/installer/XposedApp.java b/app/src/main/java/de/robv/android/xposed/installer/XposedApp.java index 99e37f43..79d5d84f 100644--- a/app/src/main/java/de/robv/android/xposed/installer/XposedApp.java+++ b/app/src/main/java/de/robv/android/xposed/installer/XposedApp.java@@ -25,6 +25,7 @@ public class XposedApp extends Application {
// This method is hooked by XposedBridge to return the current version public static Integer getActiveXposedVersion() {+ Log.d(TAG, "EdXposed is not active"); return -1; }
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ElderDrivers/EdXposed/issues/728#issuecomment-744060559, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEGYNSOVOFFBLJEJFDYW2ITSUUMXTANCNFSM4UZX5H3Q .
- Installed but not activated (yellow warning) Make sure you installed latest Canary build of EdXposed and Manager, then go to Xposed Hide - find EdXposed Manager - select "Optimize with Speed mode", restart Manager app.
Not sure if there's a canary build of EdXposed Manager. I'm using 4.5.7 stable. I don't have any Xposed Hide menu (maybe because i'm not using Magisk Hide) so i used Applications->EdXposed Manager->Optimize with Speed mode. And i already did a complete Speed Optimze by the 3-dot menu in the upper-right corner before because i suffered from a general speed down as well like others mentioned as well. Not sure though if it helped. I need to test it more.
The 'yellow' state, though, is still active.
The 'yellow' state, though, is still active.
Yellow state means some hooks deployed while some hooks didn't. Also could you try uninstall manager first then re-install?
Tried to fix in https://github.com/ElderDrivers/EdXposed/commit/30fa70d43ebe70fa4e4238f235ff11dfaeafab4e, please check if it works.
Also could you try uninstall manager first then re-install?
Didn't help. It even led to 'red state' after reboot. But only for one boot session. On next it was yellow again.
Tried to fix in 30fa70d
No change. Tried dex2oat as well but no success. Still yellow. Log is nice and clean now but no errors or anything useful.
Try this:
EdXposedManager_4_6_0_pre_45757_org_meowcat_edxposed_manager_release.zip
I have the same problem. I tried the last canary and this manager, still installed but not active. The modules work.
The modules work.
what do you mean
The modules work.
what do you mean
That xposed modules actived before the upgrade still works even if the manager says xposed is installed but not active. I tried also to do a "clean install" of edxposed and the manager but I haven't tried to enable any modules skipping the status check.
Yellow state means some hooks deployed while some hooks didn't.
Indeed. I had MXPlayer crashing here when rotating the screen. That's uncommon. Never had it before. And no crash reports as if the system wouldn't even know about it.
Also, sometimes edxposed is still 'red' when booting up. A reboot fixes that (to 'yellow').
I've tried YAHFA then. It's always 'red'. Doesn't start up at all.
I think that happened because sandhook was not properly uninstalled.
Sandhook has quite a speed impact on the phone. Hooking always came for a price but currently it's significantly higher. Maybe this is related.
I will try the debug builds next.
Here is a log of sandhook debug (version). I've removed the skipped/blacklisted entries (the rest is logcat -d | grep -i xposed
).
YAHFA is blue. Sandhook still yellow.
Both crash MXPlayer when pressing 'rotate screen' button. That's somewhat new. It did work properly some time ago with edxposed (and still does when edxposed is uninstalled).
12-16 19:57:25.542 854 854 I PackageManager: Un-granting permission android.permission.REQUEST_INSTALL_PACKAGES from package org.meowcat.edxposed.manager (protectionLevel=66 flags=0x28c83e44)
12-16 19:57:25.850 854 854 I PackageManager: Un-granting permission android.permission.REQUEST_INSTALL_PACKAGES from package org.meowcat.edxposed.manager (protectionLevel=66 flags=0x28c83e44)
12-16 19:58:02.983 854 1932 I ActivityTaskManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=org.meowcat.edxposed.manager/.WelcomeActivityStaol bnds=[270,882][540,1152]} from uid 10123
12-16 19:58:03.345 715 715 I EdXposed: Loaded /data/misc/edxp_xGgjdPWrE5fxudJG/framework/edxp.dex with size 655312
12-16 19:58:03.616 715 715 I EdXposed: Loaded /data/misc/edxp_xGgjdPWrE5fxudJG/framework/eddalvikdx.dex with size 894024
12-16 19:58:03.641 715 715 I EdXposed: Loaded /data/misc/edxp_xGgjdPWrE5fxudJG/framework/eddexmaker.dex with size 79332
12-16 19:58:03.650 854 882 I ActivityManager: Start proc 5345:org.meowcat.edxposed.manager/u0a193 for pre-top-activity {org.meowcat.edxposed.manager/org.meowcat.edxposed.manager.WelcomeActivityStaol}
12-16 19:58:03.672 5345 5345 E dxposed.manage: Not starting debugger since process cannot load the jdwp agent.
12-16 19:58:03.696 5345 5345 I EdXposed: Start to install inline hooks
12-16 19:58:03.696 5345 5345 I EdXposed: Using api level 29
12-16 19:58:03.696 5345 5345 I EdXposed: Start to install Riru hook
12-16 19:58:03.841 5345 5345 I EdXposed: Riru hooks installed
12-16 19:58:04.011 5345 5345 D EdXposed: _ZN3art7Runtime9instance_E = 0xade4e380
12-16 19:58:04.011 5345 5345 D EdXposed: art::runtime::Heap object: 0xade74400
12-16 19:58:04.011 5345 5345 D EdXposed: Classlinker hook setup, handle=0xae3ae690
12-16 19:58:04.011 5345 5345 D EdXposed: Classlinker object: 0xade44900
12-16 19:58:04.015 5345 5345 I EdXposed: ART hooks installed
12-16 19:58:04.062 5345 5345 I EdXposed: init to SDK 29
12-16 19:58:04.087 5345 5345 D EdXposed: not using yahfa
12-16 19:58:04.099 5345 5345 D EdXposed: Done prepare
12-16 19:58:04.196 5345 5345 I EdXposed: HookMain: getArtMethod: 0x7124eea0
12-16 19:58:04.196 5345 5345 D EdXposed: deoptimizing method: 0x7124eea0
12-16 19:58:04.196 5345 5345 D EdXposed: SetEntryPointsToInterpreter start, thiz=0xade44900, art_method=0x7124eea0
12-16 19:58:04.196 5345 5345 D EdXposed: method deoptimized: 0x7124eea0
12-16 19:58:04.197 5345 5345 D EdXposed: startBootstrapHook starts: isSystem = false
12-16 19:58:04.216 5345 5345 I EdXposed: HookMain: getArtMethod: 0x7136f180
12-16 19:58:04.216 5345 5345 I EdXposed: HookMain: getArtMethod: 0x7136f180
12-16 19:58:04.366 5345 5345 W dxposed.manage: Unsupported class loader
12-16 19:58:04.366 5345 5345 W dxposed.manage: Could not establish class loader context
12-16 19:58:04.415 5345 5345 D SandXposed: hook method <private void android.app.ActivityThread.handleBindApplication(android.app.ActivityThread$AppBindData)> cost 192 ms, by dex maker
12-16 19:58:04.416 5345 5345 I EdXposed: HookMain: getArtMethod: 0x7132fd94
12-16 19:58:04.416 5345 5345 I EdXposed: HookMain: getArtMethod: 0x7132fd94
12-16 19:58:04.458 5345 5345 W dxposed.manage: Unsupported class loader
12-16 19:58:04.458 5345 5345 W dxposed.manage: Could not establish class loader context
12-16 19:58:04.461 5345 5345 D SandXposed: hook method <public android.app.LoadedApk(android.app.ActivityThread,android.content.pm.ApplicationInfo,android.content.res.CompatibilityInfo,java.lang.ClassLoader,boolean,boolean,boolean)> cost 45 ms, by dex maker
12-16 19:58:04.462 5345 5345 I EdXposed: Loading modules for org.meowcat.edxposed.manager
12-16 19:58:04.463 5345 5345 D EdXposed: module list:
12-16 19:58:04.463 5345 5345 D EdXposed: injected xposed into org.meowcat.edxposed.manager
12-16 19:58:04.521 5345 5345 D EdXposed: ActivityThread#handleBindApplication() starts: pkg=android, prc=android
12-16 19:58:04.521 5345 5345 D EdXposed: processName=org.meowcat.edxposed.manager, packageName=org.meowcat.edxposed.manager, appDataDir=/data/user/0/org.meowcat.edxposed.manager
12-16 19:58:04.522 5345 5345 D EdXposed: LoadedApk#<init> starts: pkg=org.meowcat.edxposed.manager, prc=org.meowcat.edxposed.manager
12-16 19:58:04.522 5345 5345 D EdXposed: LoadedApk#<init> ends: /data/app/org.meowcat.edxposed.manager-n9hj7iD96CEneUl-VfmLKQ==/base.apk: pkg=org.meowcat.edxposed.manager, prc=org.meowcat.edxposed.manager
12-16 19:58:04.531 5345 5345 D EdXposed: LoadedApk#<init> has been loaded before, skip: /data/app/org.meowcat.edxposed.manager-n9hj7iD96CEneUl-VfmLKQ==/base.apk: pkg=org.meowcat.edxposed.manager, prc=org.meowcat.edxposed.manager
12-16 19:58:04.819 5345 5345 I EdXposed: HookMain: getArtMethod: 0x713300f8
12-16 19:58:04.819 5345 5345 I EdXposed: HookMain: getArtMethod: 0x713300f8
12-16 19:58:04.853 5345 5345 W dxposed.manage: Unsupported class loader
12-16 19:58:04.853 5345 5345 W dxposed.manage: Could not establish class loader context
12-16 19:58:04.855 5345 5345 D SandXposed: hook method <public java.lang.ClassLoader android.app.LoadedApk.getClassLoader()> cost 33 ms, by dex maker
12-16 19:58:04.870 5345 5345 I dxposed.manage: The ClassLoaderContext is a special shared library.
12-16 19:58:04.929 5345 5345 D EdXposed: LoadedApk#getClassLoader starts: pkg=org.meowcat.edxposed.manager, prc=org.meowcat.edxposed.manager
12-16 19:58:04.929 5345 5345 D EdXposed: LoadedApk#getClassLoader ends: /data/app/org.meowcat.edxposed.manager-n9hj7iD96CEneUl-VfmLKQ==/base.apk -> dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/org.meowcat.edxposed.manager-n9hj7iD96CEneUl-VfmLKQ==/base.apk"],nativeLibraryDirectories=[/data/app/org.meowcat.edxposed.manager-n9hj7iD96CEneUl-VfmLKQ==/lib/arm, /system/lib, /system/product/lib, /system/vendor/lib]]]: pkg=org.meowcat.edxposed.manager, prc=org.meowcat.edxposed.manager
12-16 19:58:04.936 5345 5345 I EdXposed: HookMain: getArtMethod: 0xa22c1184
12-16 19:58:04.936 5345 5345 I EdXposed: HookMain: getArtMethod: 0xa22c1184
12-16 19:58:04.961 5345 5345 W dxposed.manage: Unsupported class loader
12-16 19:58:04.961 5345 5345 W dxposed.manage: Could not establish class loader context
12-16 19:58:04.964 5345 5345 D SandHook: method <public static java.lang.Integer de.robv.android.xposed.installer.XposedApp.getActiveXposedVersion()> hook <replacement> success!
12-16 19:58:04.964 5345 5345 D SandXposed: hook method <public static java.lang.Integer de.robv.android.xposed.installer.XposedApp.getActiveXposedVersion()> cost 28 ms, by dex maker
12-16 19:58:04.965 5345 5345 I EdXposed: HookMain: getArtMethod: 0xa22c11d8
12-16 19:58:04.965 5345 5345 I EdXposed: HookMain: getArtMethod: 0xa22c11d8
12-16 19:58:04.989 5345 5345 W dxposed.manage: Unsupported class loader
12-16 19:58:04.989 5345 5345 W dxposed.manage: Could not establish class loader context
12-16 19:58:04.991 5345 5345 D SandHook: method <public void de.robv.android.xposed.installer.XposedApp.reloadXposedProp()> hook <replacement> success!
12-16 19:58:04.991 5345 5345 D SandXposed: hook method <public void de.robv.android.xposed.installer.XposedApp.reloadXposedProp()> cost 26 ms, by dex maker
12-16 19:58:05.001 5345 5345 I EdXposed: HookMain: getArtMethod: 0xa22c15c0
12-16 19:58:05.002 5345 5345 I EdXposed: HookMain: getArtMethod: 0xa22c15c0
12-16 19:58:05.025 5345 5345 W dxposed.manage: Unsupported class loader
12-16 19:58:05.025 5345 5345 W dxposed.manage: Could not establish class loader context
12-16 19:58:05.028 5345 5345 D SandHook: method <public void org.meowcat.edxposed.manager.XposedApp.onCreate()> hook <replacement> success!
12-16 19:58:05.028 5345 5345 D SandXposed: hook method <public void org.meowcat.edxposed.manager.XposedApp.onCreate()> cost 26 ms, by dex maker
12-16 19:58:05.033 5345 5345 I EdXposed: HookMain: getArtMethod: 0xa22c1ab4
12-16 19:58:05.033 5345 5345 I EdXposed: HookMain: getArtMethod: 0xa22c1ab4
12-16 19:58:05.060 5345 5345 W dxposed.manage: Unsupported class loader
12-16 19:58:05.060 5345 5345 W dxposed.manage: Could not establish class loader context
12-16 19:58:05.063 5345 5345 D SandHook: method <public synchronized void org.meowcat.edxposed.manager.util.ModuleUtil.updateModulesList(boolean,android.view.View)> hook <replacement> success!
12-16 19:58:05.063 5345 5345 D SandXposed: hook method <public synchronized void org.meowcat.edxposed.manager.util.ModuleUtil.updateModulesList(boolean,android.view.View)> cost 30 ms, by dex maker
12-16 19:58:05.075 5345 5345 I EdXposed: HookMain: getArtMethod: 0xa22c1c4c
12-16 19:58:05.075 5345 5345 I EdXposed: HookMain: getArtMethod: 0xa22c1c4c
12-16 19:58:05.103 5345 5345 W dxposed.manage: Unsupported class loader
12-16 19:58:05.103 5345 5345 W dxposed.manage: Could not establish class loader context
12-16 19:58:05.106 5345 5345 D SandHook: method <private java.io.File org.meowcat.edxposed.manager.StatusInstallerFragment.getCanonicalFile(java.io.File)> hook <replacement> success!
12-16 19:58:05.106 5345 5345 D SandXposed: hook method <private java.io.File org.meowcat.edxposed.manager.StatusInstallerFragment.getCanonicalFile(java.io.File)> cost 31 ms, by dex maker
12-16 19:58:05.120 5345 5345 I EdXposed: HookMain: getArtMethod: 0xa22c1e0c
12-16 19:58:05.121 5345 5345 D EdXposed: deoptimizing method: 0xa22c1e0c
12-16 19:58:05.121 5345 5345 D EdXposed: SetEntryPointsToInterpreter start, thiz=0xade44900, art_method=0xa22c1e0c
12-16 19:58:05.121 5345 5345 D EdXposed: method deoptimized: 0xa22c1e0c
12-16 19:58:05.131 5345 5345 I chatty : uid=10193(org.meowcat.edxposed.manager) identical 1 line
12-16 19:58:05.136 5345 5345 I dxposed.manager: type=1400 audit(0.0:898): avc: denied { search } for name="data" dev="mmcblk1p1" ino=3866626 scontext=u:r:untrusted_app_27:s0:c512,c768 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1
12-16 19:58:05.136 5345 5345 I dxposed.manager: type=1400 audit(0.0:898): avc: denied { search } for name="org.meowcat.edxposed.manager" dev="mmcblk1p1" ino=16450 scontext=u:r:untrusted_app_27:s0:c512,c768 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1
12-16 19:58:05.136 5345 5345 W dxposed.manager: type=1300 audit(0.0:898): arch=40000028 syscall=334 per=800008 success=yes exit=0 a0=ffffff9c a1=971e72b0 a2=0 a3=0 items=3 ppid=715 ppcomm=main auid=4294967295 uid=10193 gid=10193 euid=10193 suid=10193 fsuid=10193 egid=10193 sgid=10193 fsgid=10193 tty=(none) ses=4294967295 exe="/system/bin/app_process32" subj=u:r:untrusted_app_27:s0:c512,c768 key=(null)
12-16 19:58:05.136 255 255 W auditd : type=1302 audit(0.0:898): item=0 name="/storage/emulated/0/Android/data/org.meowcat.edxposed.manager/cache" inode=32769 dev=00:1f mode=040775 ouid=10193 ogid=1015 rdev=00:00 obj=u:object_r:sdcardfs:s0
12-16 19:58:05.166 5345 5345 D SandHook: method <public void org.meowcat.edxposed.manager.XposedApp.onCreate()> hook in
12-16 19:58:05.167 5345 5345 D SandHook: method <public void de.robv.android.xposed.installer.XposedApp.reloadXposedProp()> hook in
12-16 19:58:05.167 5345 5345 D EdXposed: before reloadXposedProp...
12-16 19:58:05.179 5345 5345 D EdXposed: reloadXposedProp done...
12-16 19:58:05.296 5345 5345 D EdXposedManager: EdXposed is not active
12-16 19:58:05.298 5345 5345 I chatty : uid=10193(org.meowcat.edxposed.manager) identical 5 lines
12-16 19:58:05.298 5345 5345 D EdXposedManager: EdXposed is not active
12-16 19:58:05.299 5345 5345 D EdXposedManager: ApplicationList: Force add modules to list
12-16 19:58:05.649 854 880 I ActivityTaskManager: Displayed org.meowcat.edxposed.manager/.WelcomeActivityStaol: +2s651ms
12-16 19:58:05.758 5345 5345 D EdXposedManager: EdXposed is not active
12-16 19:58:05.768 5345 5345 D SandHook: method <private java.io.File org.meowcat.edxposed.manager.StatusInstallerFragment.getCanonicalFile(java.io.File)> hook in
12-16 19:58:05.768 5345 5345 D SandHook: method <private java.io.File org.meowcat.edxposed.manager.StatusInstallerFragment.getCanonicalFile(java.io.File)> hook in
Can't see it hooking getActiveXposedVersion
Probably got lost due to edxposed
filtering. Will grep
it again with xposed
. Edit: New log posted above.
Sometimes i have a hard time to get sandhook installed (always red). I uninstall riru/edxposed and reflash kernel/magisk then. It also seems to be better to flash riru and edxposed in Magisk as TWRP seems to have difficulties (hangs forever on edxposed module installation).
Sometimes i have a hard time to get sandhook installed (always red)
It is highly possible because you installed BOTH Sandhook and YAHFA. Currently you can't install them at the same time. Also please try latest canary.
hangs forever on edxposed module installation
Known issue #532. But I think it is a won't fix.
@kotori2 last version fixed the yellow warning. I updated from 4596 to 4616 and now all seems ok.
I had a hard time again to install it but it finally worked in the end.
bad = unexpected
I'm not sure if it just needs time in "blue" state when modules were not working. I've noticed in logcat i have a massive count of entries of those below. The whole bootchain/apps come up there. And it needs 4-6 minutes untill all apps are processed and logcat calms down. This usually is done in under 60secs without xposed. This is not uncommon though. I think i've seen this class loader warnings
as long as Sandhook is out so it might be completely normal.
12-17 22:16:32.892 6349 6349 W org.dmfs.tasks: Could not establish class loader context
12-17 22:16:32.894 6349 6349 D SandHook: method <public android.content.Intent android.content.Intent$1.createFromParcel(android.os.Parcel)> hook <replacement> success!
12-17 22:16:32.922 6391 6391 W opjohnwu.magis: Unsupported class loader
12-17 22:16:32.922 6391 6391 W opjohnwu.magis: Could not establish class loader context
12-17 22:16:32.924 6391 6391 D SandHook: method <public android.app.DownloadManager$Request(android.net.Uri)> hook <replacement> success!
12-17 22:16:32.935 6349 6349 W org.dmfs.tasks: Unsupported class loader
12-17 22:16:32.935 6349 6349 W org.dmfs.tasks: Could not establish class loader context
12-17 22:16:32.938 6349 6349 D SandHook: method <public android.location.Location android.location.Location$2.createFromParcel(android.os.Parcel)> hook <replacement> success!
12-17 22:16:32.951 6391 6391 W opjohnwu.magis: Unsupported class loader
12-17 22:16:32.951 6391 6391 W opjohnwu.magis: Could not establish class loader context
12-17 22:16:32.954 6391 6391 D SandHook: method <android.app.DownloadManager$Request(java.lang.String)> hook <replacement> success!
12-17 22:16:32.969 6349 6349 W org.dmfs.tasks: Unsupported class loader
12-17 22:16:32.969 6349 6349 W org.dmfs.tasks: Could not establish class loader context
12-17 22:16:32.971 6349 6349 D SandHook: method <public boolean android.location.LocationManager.addNmeaListener(android.location.OnNmeaMessageListener)> hook <replacement> success!
12-17 22:16:32.997 6391 6391 W opjohnwu.magis: Unsupported class loader
12-17 22:16:32.997 6391 6391 W opjohnwu.magis: Could not establish class loader context
12-17 22:16:33.003 6391 6391 D SandHook: method <public android.app.Activity android.app.Instrumentation.newActivity(java.lang.Class,android.content.Context,android.os.IBinder,android.app.Application,android.content.Intent,android.content.pm.ActivityInfo,java.lang.CharSequence,android.app.Activity,java.lang.String,java.lang.Object) throws java.lang.InstantiationException,java.lang.IllegalAccessException> hook <replacement> success!
12-17 22:16:33.010 6349 6349 W org.dmfs.tasks: Unsupported class loader
12-17 22:16:33.010 6349 6349 W org.dmfs.tasks: Could not establish class loader context
I had a hard time again to install it but it finally worked in the end.
- (good) "red", install new version (no edxposed variant active or pending in magisk), reboot
- (bad) "blue", modules not working, reboot
- (bad) "red", uninstall riru, edxposed, reboot, TWRP: reflash kernel + magisk, reboot
- (good) "red", install riru, edxposed, reboot
- (bad) "blue" modules still not working, disabled 'skip status check', deactivated all modules (turn off), reboot
- (good) "blue" activated all modules, reboot
- (good) "blue, modules working
same for me. Re-installed everything (except Magisk) and it finally works.
closed as fixed
hi, i got something very like this(no yellow warning but anywebview module not working) after updating to 4641, should i open a new issue for it?
@rhjdvsgsgks Yes, with logs please.
no yellow warning
@rhjdvsgsgks wait I just misread this. I think it is a module related issue.
The fix doesn't work here as expected. Still 'yellow' state. Modules are working properly though.
Lineage-17.1-20201213 Riru v23.0 EdXposed 0.5.1.0_4607-master EdXposed Manager v4.5.7 Magisk v21.1