【错误记录】360 加固后的运行错误 ( 加固 SO 动态库时不能对第三方动态库进行加固 )

2023-03-29 10:34:28 浏览数 (1)

文章目录

  • 一、加固 SO 动态库报错
  • 二、解决方案

一、加固 SO 动态库报错


在 【Android 安全】使用 360 加固宝加固应用 ( 购买高级加固服务 | 设置资源加固 | 设置 SO 文件保护配置 | 设置 SO 防盗用文件配置 | 反编译验证加固效果 ) 加固时 , 遇到的问题 ;

使用 360 加固保 加固 SO 动态库后 , 一旦调用该 SO 库所在的类 , 就会报如下错误 ;

代码语言:javascript复制
2021-04-27 14:10:01.605 611-1808/? E/SurfaceFlinger: size mismatch (1920, 1080) > (1080, 1920)
2021-04-27 14:10:02.991 2578-2578/xxx E/crashsdk: load libcrashsdk.so failed!
2021-04-27 14:10:03.063 2578-2594/xxx E/JavaBinder: *** Uncaught remote exception!  (Exceptions are not yet supported across processes.)
    java.lang.UnsatisfiedLinkError: JNI_ERR returned from JNI_OnLoad in "/data/app/xxx-AwEPOi3u8iBcwz7sxpy0zw==/lib/arm64/libxxx.so"
        at java.lang.Runtime.loadLibrary0(Runtime.java:1016)
        at java.lang.System.loadLibrary(System.java:1669)
        at xxx.<clinit>(xxx.java:57)
        at xxx.xxx(Unknown Source:0)
        at xxx.xxxxxxService$xxx.xxx(xxx.java:99)
        at xxx.xxxxxxPlayer$Stub.onTransact(xxx.java:158)
        at android.os.Binder.execTransact(Binder.java:731)
2021-04-27 14:10:03.063 2578-2594/xxx E/AndroidRuntime: FATAL EXCEPTION: Binder:2578_3
    Process: xxx:xxx, PID: 2578
    java.lang.UnsatisfiedLinkError: JNI_ERR returned from JNI_OnLoad in "/data/app/xxx-AwEPOi3u8iBcwz7sxpy0zw==/lib/arm64/libxxx.so"
        at java.lang.Runtime.loadLibrary0(Runtime.java:1016)
        at java.lang.System.loadLibrary(System.java:1669)
        at xxx.<clinit>(xxx.java:57)
        at xxx.xxx(Unknown Source:0)
        at xxx.xxxxxxService$xxx.xxx(xxx.java:99)
        at xxx.xxxxxxPlayer$Stub.onTransact(xxx.java:158)
        at android.os.Binder.execTransact(Binder.java:731)
2021-04-27 14:10:03.064 2578-2594/xxx E/DEBUG: begin to generate java report
2021-04-27 14:10:03.072 2578-2594/xxx E/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2021-04-27 14:10:03.073 2578-2594/xxx E/DEBUG: Basic Information: 'pid: 2578/tid: 2594/time: 20210427141003'
2021-04-27 14:10:03.076 2578-2594/xxx E/DEBUG: Cpu Information: 'abi: arm64-v8a,armeabi-v7a,armeabi/processor: AArch64 Processor rev 1 (aarch64)/hardware: Qualcomm Technologies, Inc MSM8998'
2021-04-27 14:10:03.077 2578-2594/xxx E/DEBUG: Mobile Information: 'model: Pixel 2/version: 9/sdk: 28'
2021-04-27 14:10:03.077 2578-2594/xxx E/DEBUG: Build fingerprint: 'google/walleye/walleye:9/PQ3A.190801.002/5670241:user/release-keys'
2021-04-27 14:10:03.078 2578-2594/xxx E/DEBUG: Runtime Information: 'start: 20210427141002/maxheap: 201326592/primaryabi: arm64-v8a/ground: bg'
2021-04-27 14:10:03.078 2578-2594/xxx E/DEBUG: Application Information: 'version: 0.1/subversion: release/buildseq: 82f731d1/versioncode: 1'
2021-04-27 14:10:03.079 2578-2594/xxx E/DEBUG: CrashSDK Information: 'version: 3.2.0.4/nativeseq: 0/javaseq: 200403192109/arch: /target: umeng'
2021-04-27 14:10:03.079 2578-2594/xxx E/DEBUG: Report Name: 5f3cf3dfd3093221547aec89_0.1_82f731d1_Pixel-2_9_161950380306424305_20210427141003_bg_java.log
2021-04-27 14:10:03.088 2578-2594/xxx E/DEBUG: UUID: 8cb2c151-7c59-4cec-8534-4e4562dcb1e3
2021-04-27 14:10:03.088 2578-2594/xxx E/DEBUG: Log Type: java
2021-04-27 14:10:03.088 2578-2594/xxx E/DEBUG: Activity: (none)
2021-04-27 14:10:03.088 2578-2594/xxx E/DEBUG: --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
2021-04-27 14:10:03.089 2578-2594/xxx E/DEBUG: um_app_key: 5f3cf3dfd3093221547aec89
2021-04-27 14:10:03.089 2578-2594/xxx E/DEBUG: um_app_channel: Umeng
2021-04-27 14:10:03.089 2578-2594/xxx E/DEBUG: um_os: android
2021-04-27 14:10:03.089 2578-2594/xxx E/DEBUG: um_crash_sdk_version: v0.0.5
2021-04-27 14:10:03.089 2578-2594/xxx E/DEBUG: um_umid_header: ai191fc43f360df8ac2281730c590eae61
2021-04-27 14:10:03.089 2578-2594/xxx E/DEBUG: --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
2021-04-27 14:10:03.089 2578-2594/xxx E/DEBUG: Process Name: 'xxx:xxx'
2021-04-27 14:10:03.089 2578-2594/xxx E/DEBUG: Thread Name: 'Binder:2578_3'
2021-04-27 14:10:03.090 2578-2594/xxx E/DEBUG: Back traces starts.
2021-04-27 14:10:03.091 2578-2594/xxx E/DEBUG: java.lang.UnsatisfiedLinkError: JNI_ERR returned from JNI_OnLoad in "/data/app/xxx-AwEPOi3u8iBcwz7sxpy0zw==/lib/arm64/libxxx.so"
2021-04-27 14:10:03.091 2578-2594/xxx E/DEBUG:     at java.lang.Runtime.loadLibrary0(Runtime.java:1016)
2021-04-27 14:10:03.091 2578-2594/xxx E/DEBUG:     at java.lang.System.loadLibrary(System.java:1669)
2021-04-27 14:10:03.091 2578-2594/xxx E/DEBUG:     at xxx.<clinit>(xxx.java:57)
2021-04-27 14:10:03.092 2578-2594/xxx E/DEBUG:     at xxx.xxx(Unknown Source:0)
2021-04-27 14:10:03.092 2578-2594/xxx E/DEBUG:     at xxx.xxxxxxService$xxx.xxx(xxx.java:99)
2021-04-27 14:10:03.092 2578-2594/xxx E/DEBUG:     at xxx.xxxxxxPlayer$Stub.onTransact(xxx.java:158)
2021-04-27 14:10:03.092 2578-2594/xxx E/DEBUG:     at android.os.Binder.execTransact(Binder.java:731)
2021-04-27 14:10:03.096 2578-2594/xxx E/DEBUG: Back traces ends.
2021-04-27 14:10:03.096 2578-2594/xxx E/DEBUG: --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
2021-04-27 14:10:03.096 2578-2594/xxx E/DEBUG: meminfo:
2021-04-27 14:10:03.097 2578-2594/xxx E/DEBUG: MemTotal:        3744240 kB
    MemFree:          267428 kB
    MemAvailable:    1390504 kB
    Buffers:           12852 kB
    Cached:          1270596 kB
    SwapCached:         7224 kB
    Active:          1514192 kB
    Inactive:         724988 kB
    Active(anon):     822640 kB
    Inactive(anon):   281756 kB
    Active(file):     691552 kB
    Inactive(file):   443232 kB
    Unevictable:      147248 kB
    Mlocked:          147248 kB
    SwapTotal:        524284 kB
    SwapFree:           1360 kB
    Dirty:               604 kB
    Writeback:             0 kB
    AnonPages:       1098952 kB
    Mapped:           423192 kB
    Shmem:              2004 kB
    Slab:             280836 kB
    SReclaimable:      96656 kB
    SUnreclaim:       184180 kB
    KernelStack:       50272 kB
    PageTables:        56856 kB
    NFS_Unstable:          0 kB
    Bounce:                0 kB
    WritebackTmp:          0 kB
    CommitLimit:     2396404 kB
    Committed_AS:   70488548 kB
    VmallocTotal:   258867136 kB
    VmallocUsed:           0 kB
    VmallocChunk:          0 kB
    CmaTotal:         196608 kB
    CmaFree:               0 kB

二、解决方案


经过咨询官方技术支持 , 发现加固时 , 不要加固引用的第三方动态库 , 只加固自己编译生成的动态 ;

0 人点赞