Comments (11)
Hello @fanjavaid , @rpavliuk ,
we are looking at the issue. Thank you for details.
Kind regards,
Talsec team
from free-rasp-android.
Hello @fanjavaid,
We've managed to provide a partial solution. The native library libpolarssl.so
is no longer required in the freeRASP workflow, so the bug mentioned above shouldn't occur anymore.
Nevertheless, there are still other native libraries that are crucial for freeRASP (libsecurity.so
and libclib.so
) that can also be problematic. I found a lot of open issues regarding this problem (eg. Xiaomi native library load, App bundle UnsatisfiedLinkError, App Bundle native crash, and many others). It looks like there are still some issues during native library loading.
I also stumbled upon two proposed solutions, but I haven't had the possibility to test them out yet.
- Disabling bundle ABI split in the
build.gradle
as described here. This will slightly increase the size of a bundle.
bundle {
abi {
// This property is set to true by default.
enableSplit = false
}
}
- In the stack trace of this issue above, the application is trying to load a native library from the app directory in the filesystem. That usually means that the native libraries are compressed and extracted to the filesystem during the installation. You can try to modify your extractNativeLibs and If youโre using App Bundle, also set
android.bundle.enableUncompressedNativeLibs=true
along with the extractNativeLibs configuration option. - There is also a GH project ReLinker that tries to solve issues with native libraries linking.
If you manage to try one of the proposed solutions above or if you find a new one, please share your findings with us.
Best regards,
Talsec Team
from free-rasp-android.
Hello @rpavliuk , @fanjavaid ,
thank you for reporting the issue! We are looking into it.
Kind regards,
Talsec team
from free-rasp-android.
Hello @fanjavaid,
The library should support both x86 and x64. The library (aar) contains libpolarssl.so
for all ABIs (x86, x86_64, armeabi-v7a, arm64-v8a). Can you check on which devices the crash occurs? Is it a general problem for all x64 devices, or it only occurs on some devices? You can also inspect your bundle file (.aab) if the base/lib
directory contains libpolarssl.so for all ABIs. We will try to look into this issue but Iโm not sure if we will be able to reproduce this issue.
Best regards,
Talsec Team
from free-rasp-android.
Hello @msikyna
Here is the details about the devices:
![Screenshot 2023-06-22 at 10 52 55](https://private-user-images.githubusercontent.com/866289/247818281-4d55a736-c188-4830-979e-3dfc616055e5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIi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VkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNTIzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDUyM1QxODE5MDdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lNTE0ZjA2NTFhNjE1NDNmZTY5MmQ0NjYzMmFhMTAwOGY3NDVmMTA3MWJmY2JmMjc3MjIyNTgzOWIyODc2NDhmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.n-vIIH_fIp66OisumElTsuJ4rmIA-F_WnPex1y3mw9w)
Well, the Bundle file contains for all ABIS : x86_64, x86, arm64-v8a, armeabi-v7a
.
๐ดย Oh, in my exception above (my question) it is trying to lookup in the arm
directory & yes it is not available in my Bundle file.
Or do you have any suggestion how to handle it? I believe App crashes when invoke Talsec.start()
, but I can't catch the Exception. Crash still exists.
Thank you
from free-rasp-android.
We have, I guess, a similar issue:
Fatal Exception: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.signnow.android-9yrhDsO0RpoyrWxEyG4MXA==/base.apk"],nativeLibraryDirectories=[/data/app/com.signnow.android-9yrhDsO0RpoyrWxEyG4MXA==/lib/x86, /system/lib, /vendor/lib]]] couldn't find "libpolarssl.so" at java.lang.Runtime.loadLibrary0(Runtime.java:1011) at java.lang.System.loadLibrary(System.java:1657) at com.aheaditec.talsec.security.b2.<clinit>(SourceFile:1) at com.aheaditec.talsec.security.a2.<init>(SourceFile:6) at com.aheaditec.talsec.security.a2.a(SourceFile:4) at com.aheaditec.talsec_security.security.api.Talsec.start(SourceFile:1) at com.signnow.app.app.SignNowApp.setTalsecLibrary(SignNowApp.kt:128) at com.signnow.app.app.SignNowApp.onCreate(SignNowApp.kt:64) at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1119) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5740) at android.app.ActivityThread.-wrap1() at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1656) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:6494) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
It is our first release with your library. At this time it occurred only on Nexus 5X devices. I have researched SO a bit and found a similar issue. I don't want to try the solution on my current users. Can you provide some information about this error?
Or maybe I can safely use this solution?
Also, I need to mention that I have this block in my build.gradle
file. Because I have some native libraries:
ndk {
abiFilters.addAll(
listOf(
"arm64-v8a", "arm64-v8a", "armeabi-v7a", "x86", "x86_64"
)
)
}
from free-rasp-android.
@msikyna Can we help you with framing this bug?
from free-rasp-android.
Thank you so much, we will try to update your library and discuss the suggested solutions.
I will update you after the release of our app
from free-rasp-android.
We have tried to update the library to the latest version, but this exception still occurs:
Fatal Exception: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.signnow.android-tvn2uhQIOfml5bFibF2NLQ==/base.apk"],nativeLibraryDirectories=[/data/app/com.signnow.android-tvn2uhQIOfml5bFibF2NLQ==/lib/arm64, /system/lib64, /system/product/lib64]]] couldn't find "libsecurity.so" at java.lang.Runtime.loadLibrary0(Runtime.java:1067) at java.lang.Runtime.loadLibrary0(Runtime.java:1007) at java.lang.System.loadLibrary(System.java:1667) at com.aheaditec.talsec.security.a2.<clinit>(SourceFile:1) at com.aheaditec.talsec.security.z1.<init>(SourceFile:6) at com.aheaditec.talsec.security.z1.a(SourceFile:4) at com.aheaditec.talsec_security.security.api.Talsec.start(SourceFile:4) at com.signnow.app.app.SignNowApp.setTalsecLibrary(SignNowApp.kt:129) at com.signnow.app.app.SignNowApp.onCreate(SignNowApp.kt:64) at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1182) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6460) at android.app.ActivityThread.access$1300(ActivityThread.java:219) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1859) at android.os.Handler.dispatchMessage(Handler.java:107) at android.os.Looper.loop(Looper.java:214) at android.app.ActivityThread.main(ActivityThread.java:7356) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
But I want to notice that this crash occurs on the device Mainline
brand Google
. So, this can be an emulator, in this case, it's not an issue for us.
Also, we will check the recommensations from the message above, maybe we can use it in our project.
We will monitor this crash and update you if we will find something interesting.
Thanks!
from free-rasp-android.
@msikyna After monitoring this crash for some time we can conclude that it happens more on Emulators or already Rooted devices. So, it is not affecting us, because we plan to block these devices anyway.
But after the update we have encountered a new crash. I have created a separate issue for it.
from free-rasp-android.
Hello, after releasing the updated version with workarounds above, the issue about UnsatisfiedLinkError
was not happening. But, like @rpavliuk there is a new issue: Fatal Exception: java.lang.RuntimeException: Package manager has died
in the latest Talsec version.
from free-rasp-android.
Related Issues (20)
- React Native Support HOT 7
- Maven repo change HOT 1
- Cannot Access the Library. Received Status Code 521 from Server HOT 2
- Could not download TalsecSecurity-Community-6.0.0-release.aar HOT 14
- required help for Java code basse as we are not able to get the import packages HOT 6
- Fatal Exception: java.lang.SecurityException HOT 3
- The Nexus server is down HOT 1
- Package manager has died crash on Android 6.0.1 devices HOT 3
- Fatal Exception: java.security.ProviderException: Key size not available HOT 3
- Issue in building gradle dependency HOT 2
- onPasscode Called in wrong scenario HOT 6
- "Could not find com.aheaditec.talsec.security:TalsecSecurity-Community:3.1.0-dev." with 403 on pom file HOT 3
- Talsec Root by pass with Magisk Manager HOT 3
- SSLException for secured endpoints when integrating freeRASP HOT 10
- Is mandatory to include "https://developer.huawei.com/repo/" HOT 2
- Unable to detect noxplayer emulator HOT 3
- build error HOT 3
- Able to recompile the APK HOT 4
- Frida bypassing Antiroot HOT 1
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 free-rasp-android.