alibaba / alibaba/AndFix

加载多个apatch文件报错

Open
#80 5 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

测试在Android 5.0-6.0下加载多个aptch文件, 运行被修复代码crash
同样过程在Android 4.0上并不会有问题.
**这个库是不是不支持在art runtime下进行多次修复.**
## 错误日志:

com.demo.andfixdemo E/AndroidRuntime: FATAL EXCEPTION: main
Process:
com.demo.andfixdemo, PID: 1832
java.lang.IllegalAccessError: Method 'void com.demo.andfixdemo.MainActivity_CF.show()' is inaccessible to class 'com.demo.andfixdemo.MainActivity_CF' (declaration of 'com.demo.andfixdemo.MainActivity_CF' appears in /data/data/com.demo.andfixdemo/files/apatch/app-release-1-4333cf2e974d886763e1b20ee2a230dc.apatch)
at com.demo.andfixdemo.MainActivity_CF.test(MainActivity.java:45)
at com.demo.andfixdemo.MainActivity.access$100(MainActivity.java:14)
at com.demo.andfixdemo.MainActivity$2.onClick(MainActivity.java:29)
at android.view.View.performClick(View.java:4780)
at android.view.View$PerformClick.run(View.java:19866)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5254)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the multiple-apatch loading case on Android 5.0–6.0 and compare it with Android 4.0, starting from MainActivity.java:45 and the IllegalAccessError in the report. Read the affected patch-loading path and determine whether repeated fixes are supported under ART; done means the cause and supported behavior are documented or the crash is fixed and verified.

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
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.