Comments (5)
Could you please add more specific steps to reproduce this. That would be very helpful.
from relinker.
Suppose our app has a lib named "A.so", and it depends on "B.so" in Android.mk(LOCAL_SHARED_LIBRARIES += B), the version code is "1234", the reproduce steps:
- Find a rooted device below Android M and install the app.
- Delete "A.so" & "B.so" in the default lib directory such as "/data/app//lib/arm"
- Load "A.so", then relinker will decompress apk file and rename "A.so" to "A.so.1234", also with "B.so" to "B.so.1234".
- The bionic linker will read "DT_NEEDED" to look for "B.so", but there is only "B.so.1234", then throw UnsatisfiedLinkError.
Thank you.
from relinker.
@alhah sorry for not seeing this earlier. Got lost in notifications storm.
Thanks for the reproduction steps. I'd love to get this handled better in ReLinked, but unfortunately we don't have the resources to do this right now. You think you'll be able to open a PR?
How would you think a fix would look like?
from relinker.
Hi @alhah, this issue only occurs for rooted phones?
from relinker.
@emarc-m It occurs for all phones below Android M, root just for explain the reproduce path. If A.so depends B.so which has been renamed to B.so.version_code, linker can not find it below Android M.
from relinker.
Related Issues (20)
- Xamarin Android, CompilationFailedException: ApkLibraryInstaller$ZipFileInZipEntry.class
- 1.4.4 - Extremely Rare Android 12: Exception java.lang.NullPointerException
- ApkLibraryinstaller crash
- Android program crashes when using Relinker
- Assistance in debugging
- Relinker have concurrency issues
- Unclear MissingLibraryException when IOException occurs during getSupportedABIs()
- Caused by: com.getkeepsafe.relinker.MissingLibraryException: libmmkv.so HOT 3
- JCenter to be shut down HOT 12
- JCenter dependency HOT 3
- MissingLibraryException on user's device, happen quite alot
- Failed to resolve: com.getkeepsafe.relinker:relinker:1.4.1 HOT 3
- Java
- Ll
- Caused by:com.getkeepsafe.relinker.MissingLibraryException: HOT 7
- Keespsafe
- Support different notations for library versions
- Purpose? HOT 1
- android平台Google渠道aab包无法加载mmkv的so,报com.getkeepsafe.relinker.MissingLibraryException HOT 4
- Unable to find the library even though it is existing in the Apk of the devices which is causing the issue HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from relinker.