aimardcr / APKKiller

Bypass APK Signatures Verify & Integrity Check using Reflection
295 stars 91 forks source link

Error java.lang.NoClassDefFoundError: #18

Open josephkandi opened 1 year ago

josephkandi commented 1 year ago

I have followed the steps and seems am missing something. I copied the com/kuro to the target app smali folder. When I rebuild and re-run the app, I get the following error:

Process: com.sample.sample, PID: 9865
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/kuro/APKKIller;
    at com.sample.SampleApp.onCreate(Unknown Source:2)
    at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1277)
    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6805)

I have the below on the class that extends the Android Application class:

.method public onCreate()V
    .locals 10
    sput-object p0, Lkn/ࡨࡱ;->ࡣ:Landroid/content/Context;
    invoke-static {p0}, Lcom/kuro/APKKIller;->Start(Landroid/content/Context;)V

My folder structure looks as follows after copying the com/kuro smalli folder:

image
Kaspek2480 commented 8 months ago

try that:

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 0

    invoke-static {p0}, Lcom/kuro/APKKiller;->Start(Landroid/content/Context;)V