alibaba / alibaba/AndFix

混淆后 patchManager.loadPatch();处崩溃

Open
#123 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
7k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

01-21 16:57:38.295 20350-20350/? E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: cn.plu.testhotfix, PID: 20350
java.lang.RuntimeException: Unable to create application cn.plu.testhotfix.AndFixApplication: java.lang.RuntimeException: failure in processEncodedAnnotation
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4616)
at android.app.ActivityThread.access$1800(ActivityThread.java:139)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1316)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5314)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:864)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:680)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.RuntimeException: failure in processEncodedAnnotation
at java.lang.reflect.Method.getAnnotation(Native Method)
at java.lang.reflect.Method.getAnnotation(Method.java:266)
at com.alipay.euler.andfix.a.a(AndFixManager.java:199)
at com.alipay.euler.andfix.a.a(AndFixManager.java:179)
at com.alipay.euler.andfix.a.b.a(PatchManager.java:214)
at cn.plu.testhotfix.AndFixApplication.onCreate(AndFixApplication.java:26)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1009)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4613)
            at android.app.ActivityThread.access$1800(ActivityThread.java:139)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1316)
            at android.os.Handler.dispatchMessage(Handler.java:102)
            at android.os.Looper.loop(Looper.java:136)
            at android.app.ActivityThread.main(ActivityThread.java:5314)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:515)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:864)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:680)
            at dalvik.system.NativeStart.main(Native Method)
01-21 16:57:38.295 3034-3400/? W/ActivityManager﹕ Force finishing activity cn.plu.testhotfix/.MainActivity

Contributor guide

No contributing guide indexed for this repository

Research direction

Read AndFixManager.java around lines 179 and 199 and PatchManager.java around line 214, then inspect the reported failure during AndFixApplication.onCreate. Reproduce the crash with an obfuscated patch and compare it with an unobfuscated load. Done means the obfuscated patch no longer crashes at patchManager.loadPatch().

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.