Apktool icon indicating copy to clipboard operation
Apktool copied to clipboard

应用程序崩溃 UnsatisfiedLinkError: No implementation found for

Open janus-xiao opened this issue 1 year ago • 3 comments
trafficstars

Information

  1. Apktool Version (2.9.3) -
  2. Operating System (Windows) -
  3. APK From? (Other) -
  4. Java Version (17.0.10) -

Stacktrace/Logcat

2024-02-29 20:38:47.266 28551-28551/? E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.excean.gspace:lebian, PID: 28551
    java.lang.UnsatisfiedLinkError: No implementation found for com.excelliance.kxqp.GameUtilBuild com.excelliance.kxqp.GameUtilBuild.getIntance() (tried Java_com_excelliance_kxqp_GameUtilBuild_getIntance and Java_com_excelliance_kxqp_GameUtilBuild_getIntance__)
        at com.excelliance.kxqp.GameUtilBuild.getIntance(Native Method)
        at com.excelliance.kxqp.process.ProcessUtil.a(ProcessUtil.java:75)
        at com.excelliance.kxqp.process.e.attachBaseContext(LebianProcess.java:33)
        at com.excelliance.kxqp.KXQPApplication.attachBaseContext(KXQPApplication.java:72)
        at android.app.Application.attach(Application.java:355)
        at android.app.Instrumentation.newApplication(Instrumentation.java:1245)
        at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1485)
        at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1422)
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7034)
        at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2206)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loopOnce(Looper.java:210)
        at android.os.Looper.loop(Looper.java:299)
        at android.app.ActivityThread.main(ActivityThread.java:8240)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:559)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:954)

Steps to Reproduce

  1. java -jar apktool_2.9.3.jar empty-framework-dir
  2. java -jar apktool_2.9.3.jar d base_test.apk --only-main-classes
  3. java -jar apktool_2.9.3.jar b base_test

Frameworks

If this APK is from an OEM ROM (Samsung, HTC, LG). Please attach framework files (.apks that live in /system/framework or /system/priv-app)

APK

If this APK can be freely shared, please upload/attach a link to it. https://www.ourplay.net/download/

Questions to ask before submission

  1. Have you tried apktool d, apktool b without changing anything?
  2. yes
  3. If you are trying to install a modified apk, did you resign it?
  4. yes
  5. Are you using the latest apktool version?
  6. yes

janus-xiao avatar Mar 01 '24 10:03 janus-xiao

Since the stacktrace appears to be in userland - I'm guessing this is some anti-tamper code. You can run some tests with like

  • -r - skip resources
  • -s - skip sources

That'll help eliminate the possibility of disassemble/assemble causing issues.

iBotPeaches avatar Mar 01 '24 11:03 iBotPeaches

Using - s will not cause this error, but I need to modify smali to debug. Is there a way to solve this problem

janus-xiao avatar Mar 02 '24 04:03 janus-xiao

You can pull a bleeding edge build from the artifacts of the latest build here - https://github.com/iBotPeaches/Apktool/actions/runs/8048426591

This has an internal upgrade to smali/baksmali. I would try that. If no, I fear this is internal detection of modification and thus probably out of scope of something Apktool can automatically fix.

iBotPeaches avatar Mar 02 '24 15:03 iBotPeaches

I'm closing after testing myself this appears to be anti-tamper behavior. Apktool can't do much about that.

05-16 06:59:44.413 27533 27587 E AndroidRuntime: 	at com.excelliance.kxqp.GameUtilBuild.getIntance(Native Method)
05-16 06:59:44.413 27533 27587 E AndroidRuntime: 	at com.excelliance.kxqp.process.ProcessUtil.a(ProcessUtil.java:75)
05-16 06:59:44.413 27533 27587 E AndroidRuntime: 	at com.excelliance.kxqp.process.MainProcess.i(MainProcess.java:155)
05-16 06:59:44.413 27533 27587 E AndroidRuntime: 	at com.excelliance.kxqp.process.MainProcess.lambda$KAOCA59BmDCaxB_lHIpzrOMjwlE(Unknown Source:0)
05-16 06:59:44.413 27533 27587 E AndroidRuntime: 	at com.excelliance.kxqp.process.-$$Lambda$MainProcess$KAOCA59BmDCaxB_lHIpzrOMjwlE.run(Unknown Source:4)
05-16 06:59:44.413 27533 27587 E AndroidRuntime: 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
05-16 06:59:44.413 27533 27587 E AndroidRuntime: 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
05-16 06:59:44.413 27533 27587 E AndroidRuntime: 	at com.excelliance.kxqp.gs.thpool.ThreadPool$6$1.run(ThreadPool.java:197)
05-16 06:59:44.413  1756  5977 E ActivityManager: App crashed on incremental package com.excean.gspace which is 100% loaded.

iBotPeaches avatar May 16 '24 11:05 iBotPeaches