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

请问大佬SandHook和Epic稳定性比起来如何 #10

Closed
ghost opened this issue Apr 28, 2019 · 5 comments
Closed

请问大佬SandHook和Epic稳定性比起来如何 #10

ghost opened this issue Apr 28, 2019 · 5 comments

Comments

@ghost
Copy link

ghost commented Apr 28, 2019

No description provided.

@ganyao114
Copy link
Collaborator

当我在 AS 模拟器中用 Android P 测试时出现了这些 log:
image

2019-04-29 12:20:10.532 3001-3001/? E/SandXposed: error occur when hook method <public android.content.pm.ApplicationInfo()>
java.lang.NoClassDefFoundError: com.swift.sandhook.xposedcompat.hookstub.HookStubManager
at com.swift.sandhook.xposedcompat.hookstub.HookStubManager.getHookMethodEntity(HookStubManager.java:64)
at com.swift.sandhook.xposedcompat.methodgen.DynamicBridge.hookMethod(DynamicBridge.java:62)
at de.robv.android.xposed.XposedBridge.hookMethodNative(XposedBridge.java:275)
at de.robv.android.xposed.XposedBridge.hookMethod(XposedBridge.java:181)
at de.robv.android.xposed.XposedBridge.hookAllConstructors(XposedBridge.java:237)
at com.crystal.chat.hook.SafetyHooker.(SafetyHooker.java:28)
at com.crystal.chat.hook.MainHookApplication.attachBaseContext(MainHookApplication.java:61)
at android.app.Application.attach(Application.java:212)
at android.app.Instrumentation.newApplication(Instrumentation.java:1121)
at android.app.LoadedApk.makeApplication(LoadedApk.java:1061)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5842)
at android.app.ActivityThread.access$1100(ActivityThread.java:199)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1650)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6669)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
Caused by: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.crystal.chat-6Xom5tpjwmxgaBsFLCTcEA==/base.apk"],nativeLibraryDirectories=[/data/app/com.crystal.chat-6Xom5tpjwmxgaBsFLCTcEA==/lib/x86, /data/app/com.crystal.chat-6Xom5tpjwmxgaBsFLCTcEA==/base.apk!/lib/x86, /system/lib]]] couldn't find "libsandhook.so"
at java.lang.Runtime.loadLibrary0(Runtime.java:1012)
at java.lang.System.loadLibrary(System.java:1669)
at com.swift.sandhook.SandHookConfig$1.loadLib(SandHookConfig.java:22)
at com.swift.sandhook.SandHook.(SandHook.java:48)
at com.swift.sandhook.SandHook.is64Bit(Native Method)
at com.swift.sandhook.xposedcompat.hookstub.HookStubManager.(HookStubManager.java:43)
at com.swift.sandhook.xposedcompat.hookstub.HookStubManager.getHookMethodEntity(HookStubManager.java:64)
at com.swift.sandhook.xposedcompat.methodgen.DynamicBridge.hookMethod(DynamicBridge.java:62)
at de.robv.android.xposed.XposedBridge.hookMethodNative(XposedBridge.java:275)
at de.robv.android.xposed.XposedBridge.hookMethod(XposedBridge.java:181)
at de.robv.android.xposed.XposedHelpers.findAndHookMethod(XposedHelpers.java:187)
at com.crystal.chat.hook.MainHookApplication.attachBaseContext(MainHookApplication.java:47)
at android.app.Application.attach(Application.java:212) 
at android.app.Instrumentation.newApplication(Instrumentation.java:1121) 
at android.app.LoadedApk.makeApplication(LoadedApk.java:1061) 
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5842) 
at android.app.ActivityThread.access$1100(ActivityThread.java:199) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1650) 
at android.os.Handler.dispatchMessage(Handler.java:106) 
at android.os.Looper.loop(Looper.java:193) 
at android.app.ActivityThread.main(ActivityThread.java:6669) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

  1. 暂不支持 X86
  2. 没反应 SandHookConfig.DEBUG = true 试试,这个一定要在最前面正确配置,否则很可能无法生效,SandHookConfig.DEBUG 跟你的 app 是否 debuggable 保持一致

@ghost
Copy link
Author

ghost commented Apr 29, 2019

@ganyao114 非常感谢,请问ApplicationInfo.class这个类无法hook是bug吗,我hook之后没有反应,但是epic可以hook掉

@ganyao114
Copy link
Collaborator

@ganyao114 非常感谢,请问ApplicationInfo.class这个类无法hook是bug吗,我hook之后没有反应,但是epic可以hook掉

应该是可以 Hook 的,你再自查一下

@ghost
Copy link
Author

ghost commented Apr 29, 2019

@ganyao114 又遇到了问题,方便加一下微信或者qq吗
Uploading image.png…

@ganyao114
Copy link
Collaborator

@ganyao114 又遇到了问题,方便加一下微信或者qq吗

qq 939543405

This issue was closed.
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

1 participant