Free-RASP-ReactNative icon indicating copy to clipboard operation
Free-RASP-ReactNative copied to clipboard

breaks android app

Open jliukai opened this issue 6 months ago • 2 comments

Describe the bug apk file is fine. aab file crashes the app.

To Reproduce Setup

  • package.json
    • "freerasp-react-native": "^3.8.1",
    • "react-native": "0.72.5",
  • android/build.gradle
    buildscript {
   ext {
       buildToolsVersion = "34.0.0"
       minSdkVersion = 24
       compileSdkVersion = 34
       targetSdkVersion = 34
       kotlinVersion = '1.8.0'
          ...
   }
   repositories {
       google()
       mavenCentral()
       maven { url "https://europe-west3-maven.pkg.dev/talsec-artifact-repository/freerasp" } // <--- tried with and without this
       maven { url 'https://www.jitpack.io' }   // <--- tried with and without this
   }
  • did not add any code in tsx file. ie. no useFreeRasp() function yet.
  1. I ran in metro and via apk file, runs fine.
  2. then built in aab file, upload for internal testing, ** crashes app **

Expected behavior not crash, app the load fine, since no code was ran.

Please complete the following information:

  • Device: Pixel 7, android
  • OS version: android 14.
  • Version of freeRASP: "freerasp-react-native": "^3.8.1"

Additional context

my logcat output

08-14 22:11:16.358  1467  1701 I ActivityManager: Start proc 5133:com.myapp1.main/u0a315 for top-activity {com.myapp1.main/com.mobile.MainActivity}
08-14 22:11:16.369  5133  5133 I com.myapp1.main: Using CollectorTypeCMC GC.
08-14 22:11:16.373  5133  5133 E com.myapp1.main: Not starting debugger since process cannot load the jdwp agent.
08-14 22:11:16.392  5133  5133 W ziparchive: Unable to open '/data/app/~~lzSx6NlBPFZt9NdBDCwfhQ==/com.myapp1.main-AzmnOeOIaTnNmSA74md2QA==/split_config.arm64_v8a.dm': No such file or directory
08-14 22:11:16.392  5133  5133 W ziparchive: Unable to open '/data/app/~~lzSx6NlBPFZt9NdBDCwfhQ==/com.myapp1.main-AzmnOeOIaTnNmSA74md2QA==/split_config.arm64_v8a.dm': No such file or directory
08-14 22:11:16.392  5133  5133 W com.myapp1.main: Entry not found
08-14 22:11:16.393  5133  5133 W ziparchive: Unable to open '/data/app/~~lzSx6NlBPFZt9NdBDCwfhQ==/com.myapp1.main-AzmnOeOIaTnNmSA74md2QA==/split_config.en.dm': No such file or directory
08-14 22:11:16.393  5133  5133 W ziparchive: Unable to open '/data/app/~~lzSx6NlBPFZt9NdBDCwfhQ==/com.myapp1.main-AzmnOeOIaTnNmSA74md2QA==/split_config.en.dm': No such file or directory
08-14 22:11:16.393  5133  5133 W com.myapp1.main: Entry not found
08-14 22:11:16.393  5133  5133 W ziparchive: Unable to open '/data/app/~~lzSx6NlBPFZt9NdBDCwfhQ==/com.myapp1.main-AzmnOeOIaTnNmSA74md2QA==/split_config.xxhdpi.dm': No such file or directory
08-14 22:11:16.393  5133  5133 W ziparchive: Unable to open '/data/app/~~lzSx6NlBPFZt9NdBDCwfhQ==/com.myapp1.main-AzmnOeOIaTnNmSA74md2QA==/split_config.xxhdpi.dm': No such file or directory
08-14 22:11:16.394  5133  5133 W com.myapp1.main: Entry not found
08-14 22:11:16.395  5133  5133 D nativeloader: Configuring clns-4 for other apk /data/app/~~lzSx6NlBPFZt9NdBDCwfhQ==/com.myapp1.main-AzmnOeOIaTnNmSA74md2QA==/base.apk:/data/app/~~lzSx6NlBPFZt9NdBDCwfhQ==/com.myapp1.main-AzmnOeOIaTnNmSA74md2QA==/split_config.arm64_v8a.apk:/data/app/~~lzSx6NlBPFZt9NdBDCwfhQ==/com.myapp1.main-AzmnOeOIaTnNmSA74md2QA==/split_config.en.apk:/data/app/~~lzSx6NlBPFZt9NdBDCwfhQ==/com.myapp1.main-AzmnOeOIaTnNmSA74md2QA==/split_config.xxhdpi.apk. target_sdk_version=34, uses_libraries=, library_path=/data/app/~~lzSx6NlBPFZt9NdBDCwfhQ==/com.myapp1.main-AzmnOeOIaTnNmSA74md2QA==/lib/arm64:/data/app/~~lzSx6NlBPFZt9NdBDCwfhQ==/com.myapp1.main-AzmnOeOIaTnNmSA74md2QA==/base.apk!/lib/arm64-v8a:/data/app/~~lzSx6NlBPFZt9NdBDCwfhQ==/com.myapp1.main-AzmnOeOIaTnNmSA74md2QA==/split_config.arm64_v8a.apk!/lib/arm64-v8a:/data/app/~~lzSx6NlBPFZt9NdBDCwfhQ==/com.myapp1.main-AzmnOeOIaTnNmSA74md2QA==/split_config.en.apk!/lib/arm64-v8a:/data/app/~~lzSx6NlBPFZt9NdBDCwfhQ==/com.myapp1.main-AzmnOeOIaTnNmSA74md2QA==/split_config.xxhdpi.apk!/lib/arm64-v8a, permitted_pa
08-14 22:11:16.402  5133  5133 V GraphicsEnvironment: com.myapp1.main is not listed in per-application setting
08-14 22:11:16.429  5133  5133 E AndroidRuntime: Process: com.myapp1.main, PID: 5133
08-14 22:11:16.447  1467  4092 I ActivityManager: Process com.myapp1.main (pid 5133) has died: fg  TOP
08-14 22:11:18.545  7586  7586 E ActivityThread: Package [com.myapp1.main] reported as REPLACED, but missing application info. Assuming REMOVED.
08-14 22:11:18.549  7586  7586 E ActivityThread: Package [com.myapp1.main] reported as REPLACED, but missing application info. Assuming REMOVED.
08-14 22:11:31.383  1467  1700 I ActivityManager: Skip zero pid ANR, process=com.myapp1.main
08-14 22:11:41.039  3061  3077 W .apps.wellbeing: ApkAssets: Deleting an ApkAssets object '<empty> and /data/app/~~lzSx6NlBPFZt9NdBDCwfhQ==/com.myapp1.main-AzmnOeOIaTnNmSA74md2QA==/base.apk' with 1 weak references
08-14 22:11:41.039  3061  3077 W .apps.wellbeing: ApkAssets: Deleting an ApkAssets object '<empty> and /data/app/~~lzSx6NlBPFZt9NdBDCwfhQ==/com.myapp1.main-AzmnOeOIaTnNmSA74md2QA==/split_config.arm64_v8a.apk' with 1 weak references
08-14 22:11:41.039  3061  3077 W .apps.wellbeing: ApkAssets: Deleting an ApkAssets object '<empty> and /data/app/~~lzSx6NlBPFZt9NdBDCwfhQ==/com.myapp1.main-AzmnOeOIaTnNmSA74md2QA==/split_config.en.apk' with 1 weak references
08-14 22:11:41.040  3061  3077 W .apps.wellbeing: ApkAssets: Deleting an ApkAssets object '<empty> and /data/app/~~lzSx6NlBPFZt9NdBDCwfhQ==/com.myapp1.main-AzmnOeOIaTnNmSA74md2QA==/split_config.xxhdpi.apk' with 1 weak references
08-14 22:13:01.760 15502 15514 W gle.android.gms: ApkAssets: Deleting an ApkAssets object '<empty> and /data/app/~~lzSx6NlBPFZt9NdBDCwfhQ==/com.myapp1.main-AzmnOeOIaTnNmSA74md2QA==/base.apk' with 1 weak references
08-14 22:13:01.761 15502 15514 W gle.android.gms: ApkAssets: Deleting an ApkAssets object '<empty> and /data/app/~~lzSx6NlBPFZt9NdBDCwfhQ==/com.myapp1.main-AzmnOeOIaTnNmSA74md2QA==/split_config.arm64_v8a.apk' with 1 weak references
08-14 22:13:01.761 15502 15514 W gle.android.gms: ApkAssets: Deleting an ApkAssets object '<empty> and /data/app/~~lzSx6NlBPFZt9NdBDCwfhQ==/com.myapp1.main-AzmnOeOIaTnNmSA74md2QA==/split_config.en.apk' with 1 weak references
08-14 22:13:01.761 15502 15514 W gle.android.gms: ApkAssets: Deleting an ApkAssets object '<empty> and /data/app/~~lzSx6NlBPFZt9NdBDCwfhQ==/com.myapp1.main-AzmnOeOIaTnNmSA74md2QA==/split_config.xxhdpi.apk' with 1 weak references
08-14 22:17:30.872 14636 14636 E ActivityThread: Package [com.myapp1.main] reported as REPLACED, but missing application info. Assuming REMOVED.

jliukai avatar Aug 15 '24 05:08 jliukai