Open jliukai opened 4 weeks ago
Hello, @jliukai,
The error logs do not indicate any reference to freeRASP.
The log reveals multiple warnings about missing configuration files (split_config.*.dm) and the application not being able to load certain resources. Specifically, the process cannot start the debugger due to the inability to load the JDWP agent, and the app repeatedly fails to find required entries. Subsequently, the app crashes with an AndroidRuntime error, and the system reports that the package is "REPLACED" but assumes it has been "REMOVED" due to missing application information.
Anyway, I don't see any way how freeRASP could affect your build as you don't even use it.
Best, Tomas from Talsec
yeah. this bug is really confusing.
When i "npm uninstall freerasp-react-native" , and ./gradlew clean
, create an aab file, => app runs fine.
then I "npm i freerasp-react-native", and no other changes in code (ie. not touched: androidmanifest.xml, build gradles, or react native components), create an aab file => app crashes. i get the errors in logcat.
Given i have a RN 0.72.5 https://github.com/talsec/Free-RASP-ReactNative and my minSdkVersion = 24, this implies android works out of the box.
is there some updated configuration required for android? I'm trying to compare configs in https://github.com/talsec/Free-RASP-Android and in https://github.com/talsec/Free-RASP-ReactNative for android.
Hi @jliukai,
Just the minSdkVersion = 23 is required for Android.
I reproduced the issue, it seems like just newer versions of RN are affected (the example in this repo uses RN 0.70.6 and works just fine).
Trying to fix this now.
Best, Tomas from Talsec
Hi @jliukai,
The issue I ran into is probably not related to yours, as I reproduced it only in RN 0.75 (although it looked very similar). That one will be fixed in v3.8.2.
However, I ran into this SO question which may be useful for you: https://stackoverflow.com/a/77280632 - tldr, integrate freeRASP and the issue may be gone 😉
Best, Tomas from Talsec
Describe the bug apk file is fine. aab file crashes the app.
To Reproduce Setup
useFreeRasp()
function yet.Expected behavior not crash, app the load fine, since no code was ran.
Please complete the following information:
Additional context
my logcat output