Apktool icon indicating copy to clipboard operation
Apktool copied to clipboard

[BUG] ClassNotFoundException in recompiled app

Open ardevd opened this issue 1 year ago • 5 comments
trafficstars

Information

  1. Apktool Version (apktool -version) - 2.9.3
  2. Operating System (Mac, Linux, Windows) - Linux
  3. APK From? (Playstore, ROM, Other) - Playstore
  4. Java Version (java --version) - 17.0.9

Stacktrace/Logcat

03-06 18:36:21.784  2822  2822 E AndroidRuntime: Caused by: java.lang.ClassNotFoundException: Landroid/view/View$OnUnhandledKeyEventListener;
03-06 18:36:21.784  2822  2822 E AndroidRuntime: 	at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:92)
03-06 18:36:21.784  2822  2822 E AndroidRuntime: 	at android.app.Activity.performCreate(Activity.java:36)
03-06 18:36:21.784  2822  2822 E AndroidRuntime: 	at android.app.Activity.performLaunchActivity(ActivityThread.java:73)
03-06 18:36:21.784  2822  2822 E AndroidRuntime: 	at android.os.Handler.handleCallback(Handler.java:44)
03-06 18:36:21.784  2822  2822 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:6)
03-06 18:36:21.784  2822  2822 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:70)
03-06 18:36:21.784  2822  2822 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:41)
03-06 18:36:21.784  2822  2822 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Unknown Source:19)
03-06 18:36:21.784  2822  2822 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:2)
03-06 18:36:21.784  2822  2822 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:58)
03-06 18:36:21.848  1743  3115 I DropBoxManagerService: add tag=data_app_crash isTagEnabled=true flags=0x2

Doing a apktool d and subsequent apktool b on a specific app results in a base.apk that is about half the size of the original (39M vs 61M). Hence, when the app is launched I get a ClassNotFoundException. apktool doesnt show any errors in decompilation or compilation either.

ardevd avatar Mar 06 '24 17:03 ardevd

I assume Dropbox app based on stacktrace? Or can you link me to exact version/app you are referring?

iBotPeaches avatar Mar 07 '24 11:03 iBotPeaches

https://play.google.com/store/apps/details?id=com.jlr.jaguar.incontrolremote.appstore&hl=en&gl=US

I can share the apks if needed.

ardevd avatar Mar 07 '24 20:03 ardevd

Any news?

ardevd avatar Mar 14 '24 06:03 ardevd

I downloaded the application and was surprised to find it over 200mb - for a remote...for a car. Thats about all the news at the moment.

7f37fbd25d27ee79c992b99a46a02061  Jaguar Remote_2.18.0_Apkpure.apk

iBotPeaches avatar Mar 17 '24 12:03 iBotPeaches

Yeah, it's enormous. But I'll be interested to see if the size reduces significantly when you assemble it again with apktool. I suspect it strips away quite a bit by mistake.

ardevd avatar Mar 17 '24 14:03 ardevd