alibaba / alibaba/AndFix

so loadLibray is error

Open
#95 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

loadLibrary
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.zhtx.zhtxghs-1/base.apk"],nativeLibraryDirectories=[/data/app/com.zhtx.zhtxghs-1/lib/arm, /vendor/lib, /system/lib]]] couldn't find "libandfix.so"
at java.lang.Runtime.loadLibrary(Runtime.java:366)
at java.lang.Runtime.loadLibrary(Runtime.java:352)
at com.alipay.euler.andfix.AndFix.(AndFix.java:37)
at com.alipay.euler.andfix.Compat.isSupport(Compat.java:45)
at com.alipay.euler.andfix.AndFixManager.(AndFixManager.java:74)
at com.alipay.euler.andfix.patch.PatchManager.(PatchManager.java:77)
at com.alipay.euler.andfix.PatchUtils.initPatchManager(PatchUtils.java:13)
at com.zhtx.zhtxghs.softapplication.SoftApplication.onCreate(SoftApplication.java:85)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1034)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4605)
at android.app.ActivityThread.access$1500(ActivityThread.java:148)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1353)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5312)
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:901)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:696)
11-27 16:33:43.437 27491-27491/com.zhtx.zhtxghs E/art: No implementation found for boolean com.alipay.euler.andfix.AndFix.setup(boolean, int) (tried Java_com_alipay_euler_andfix_AndFix_setup and Java_com_alipay

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at SoftApplication.java:85 and trace initialization through PatchUtils, PatchManager, AndFixManager, Compat, and AndFix.java:37. Check how the Android package supplies libandfix.so and how the native setup method is loaded. Done means the reported UnsatisfiedLinkError and missing native implementation no longer occur on the affected device.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, cpp, 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.