Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

想问一下怎么调试vxp #77

Closed
captain-black opened this issue Apr 19, 2018 · 2 comments
Closed

想问一下怎么调试vxp #77

captain-black opened this issue Apr 19, 2018 · 2 comments

Comments

@captain-black
Copy link

我调试vxp启动到launcher不久就自动闪退了
跑出异常如下
04-19 20:42:06.086 24782-24782/? I/art: Late-enabling -Xcheck:jni
04-19 20:42:06.102 24782-24782/? W/ReflectionUtils: java.lang.NoSuchMethodException: android.os.MessageQueue#enableMonitor()#bestmatch
at miui.util.ReflectionUtils.findMethodBestMatch(ReflectionUtils.java:338)
at miui.util.ReflectionUtils.findMethodBestMatch(ReflectionUtils.java:375)
at miui.util.ReflectionUtils.callMethod(ReflectionUtils.java:800)
at miui.util.ReflectionUtils.tryCallMethod(ReflectionUtils.java:818)
at android.os.BaseLooper.enableMonitor(BaseLooper.java:47)
at android.os.Looper.prepareMainLooper(Looper.java:112)
at android.app.ActivityThread.main(ActivityThread.java:6325)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:880)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:770)
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:107)
04-19 20:42:06.103 24782-24782/? V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@59445f6
04-19 20:42:06.128 24782-24782/? I/Xposed: [handleLoadPackage] io.va.exposed
04-19 20:42:06.136 24782-24782/? I/art: Starting a blocking GC Xposed
04-19 20:42:06.139 24782-24782/? I/art: Starting a blocking GC Xposed
04-19 20:42:06.141 24782-24782/io.va.exposed:x I/art: Starting a blocking GC Xposed
04-19 20:42:06.143 24782-24782/io.va.exposed:x I/art: Starting a blocking GC Xposed
04-19 20:42:06.146 24782-24782/io.va.exposed:x I/art: Starting a blocking GC Xposed
04-19 20:42:06.152 24782-24782/io.va.exposed:x E/Xposed: de.robv.android.xposed.XposedHelpers$ClassNotFoundError: java.lang.ClassNotFoundException: com.android.server.LocationManagerService$Receiver
at de.robv.android.xposed.XposedHelpers.findClass(XposedHelpers.java:71)
at de.robv.android.xposed.XposedHelpers.findAndHookMethod(XposedHelpers.java:260)
at com.a.a.f.a(SourceFile:22)
at com.a.a.b.a(SourceFile:80)
at com.bigsing.fakemap.MainHook.handleLoadPackage(SourceFile:47)
at de.robv.android.xposed.IXposedHookLoadPackage$Wrapper.handleLoadPackage(IXposedHookLoadPackage.java:34)
at de.robv.android.xposed.callbacks.XC_LoadPackage.call(XC_LoadPackage.java:61)
at de.robv.android.xposed.callbacks.XCallback.callAll(XCallback.java:106)
at de.robv.android.xposed.XposedInit$2.beforeHookedMethod(XposedInit.java:134)
at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:340)
at android.app.ActivityThread.handleBindApplication()
at android.app.ActivityThread.-wrap2(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1602)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:163)
at android.app.ActivityThread.main(ActivityThread.java:6343)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:880)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:770)
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:107)
Caused by: java.lang.ClassNotFoundException: com.android.server.LocationManagerService$Receiver
at java.lang.Class.classForName(Native Method)
at java.lang.Class.forName(Class.java:400)
at external.org.apache.commons.lang3.ClassUtils.getClass(ClassUtils.java:823)
at de.robv.android.xposed.XposedHelpers.findClass(XposedHelpers.java:69)
at de.robv.android.xposed.XposedHelpers.findAndHookMethod(XposedHelpers.java:260) 
at com.a.a.f.a(SourceFile:22) 
at com.a.a.b.a(SourceFile:80) 
at com.bigsing.fakemap.MainHook.handleLoadPackage(SourceFile:47) 
at de.robv.android.xposed.IXposedHookLoadPackage$Wrapper.handleLoadPackage(IXposedHookLoadPackage.java:34) 
at de.robv.android.xposed.callbacks.XC_LoadPackage.call(XC_LoadPackage.java:61) 
at de.robv.android.xposed.callbacks.XCallback.callAll(XCallback.java:106) 
at de.robv.android.xposed.XposedInit$2.beforeHookedMethod(XposedInit.java:134) 
at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:340) 
at android.app.ActivityThread.handleBindApplication() 
at android.app.ActivityThread.-wrap2(ActivityThread.java) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1602) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:163) 
at android.app.ActivityThread.main(ActivityThread.java:6343) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:880) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:770) 
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:107) 
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.android.server.LocationManagerService$Receiver" on path: DexPathList[[zip file "/data/app/io.va.exposed-2/base.apk"],nativeLibraryDirectories=[/data/app/io.va.exposed-2/lib/arm, /system/fake-libs, /data/app/io.va.exposed-2/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:380)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at java.lang.Class.classForName(Native Method) 
at java.lang.Class.forName(Class.java:400) 
at external.org.apache.commons.lang3.ClassUtils.getClass(ClassUtils.java:823) 
at de.robv.android.xposed.XposedHelpers.findClass(XposedHelpers.java:69) 
at de.robv.android.xposed.XposedHelpers.findAndHookMethod(XposedHelpers.java:260) 
at com.a.a.f.a(SourceFile:22) 
at com.a.a.b.a(SourceFile:80) 
at com.bigsing.fakemap.MainHook.handleLoadPackage(SourceFile:47) 
at de.robv.android.xposed.IXposedHookLoadPackage$Wrapper.handleLoadPackage(IXposedHookLoadPackage.java:34) 
at de.robv.android.xposed.callbacks.XC_LoadPackage.call(XC_LoadPackage.java:61) 
at de.robv.android.xposed.callbacks.XCallback.callAll(XCallback.java:106) 
at de.robv.android.xposed.XposedInit$2.beforeHookedMethod(XposedInit.java:134) 
at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:340) 
at android.app.ActivityThread.handleBindApplication() 
at android.app.ActivityThread.-wrap2(ActivityThread.java) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1602) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:163) 
at android.app.ActivityThread.main(ActivityThread.java:6343) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:880) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:770) 
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:107) 
04-19 20:42:06.177 24782-24782/io.va.exposed:x E/VA++: processProfileingInfo: 0x0
04-19 20:42:06.177 24782-24782/io.va.exposed:x E/VA++: compileMethod: 0xe8fdae65

@tiann
Copy link
Member

tiann commented Apr 19, 2018

https://github.com/android-hacker/VirtualXposed/blob/exposed/VirtualApp/app/src/main/java/io/virtualapp/VCommends.java#L63

这里做了一个简单的签名验证,不要调用这个函数即可。

但是,自己直接打包,里面的hook 核心代码 epic 并非最新的,可能会不如release版本稳定。

@tiann tiann closed this as completed Apr 19, 2018
@captain-black
Copy link
Author

谢谢!调试版比较好跟踪日志 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants