Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Game crashes after recompilation #3422

Open
Yehh22 opened this issue Nov 7, 2023 · 2 comments
Open

[BUG] Game crashes after recompilation #3422

Yehh22 opened this issue Nov 7, 2023 · 2 comments

Comments

@Yehh22
Copy link

Yehh22 commented Nov 7, 2023

Information

  1. Apktool Version (apktool -version) 2.9.0
  2. Operating System (Mac, Linux, Windows) Windows 11
  3. APK From? (Playstore, ROM, Other) Play Store
  4. Java Version (java --version) "20.0.2" 2023-07-18

So apparently, the app crashes when I recompile it. No modifications were made. I'm certainly the app does not have any protections. The app works fine if I just zipalign and sign original apk directly

Stacktrace/Logcat

11-07 10:16:34.640 E/AndroidRuntime(23934): Caused by: java.lang.RuntimeException: Unable to resume activity {com.goatgames.dhs.gb.gp/com.haowan123.xiyou.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.contains(java.lang.CharSequence)' on a null object reference
11-07 10:16:34.640 E/AndroidRuntime(23934): 	at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3430)
11-07 10:16:34.640 E/AndroidRuntime(23934): 	at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3470)
11-07 10:16:34.640 E/AndroidRuntime(23934): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2733)
11-07 10:16:34.640 E/AndroidRuntime(23934): 	at android.app.ActivityThread.-wrap12(ActivityThread.java)
11-07 10:16:34.640 E/AndroidRuntime(23934): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1478)
11-07 10:16:34.640 E/AndroidRuntime(23934): 	at android.os.Handler.dispatchMessage(Handler.java:102)
11-07 10:16:34.640 E/AndroidRuntime(23934): 	at android.os.Looper.loop(Looper.java:154)
11-07 10:16:34.640 E/AndroidRuntime(23934): 	at android.app.ActivityThread.main(ActivityThread.java:6121)
11-07 10:16:34.640 E/AndroidRuntime(23934): 	at java.lang.reflect.Method.invoke(Native Method)
11-07 10:16:34.640 E/AndroidRuntime(23934): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)
11-07 10:16:34.640 E/AndroidRuntime(23934): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)
11-07 10:16:34.640 E/AndroidRuntime(23934): Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.contains(java.lang.CharSequence)' on a null object reference
11-07 10:16:34.640 E/AndroidRuntime(23934): 	at com.haowan123.xiyou.MainActivity.onResume(MainActivity.java:585)
11-07 10:16:34.640 E/AndroidRuntime(23934): 	at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1269)
11-07 10:16:34.640 E/AndroidRuntime(23934): 	at android.app.Activity.performResume(Activity.java:6864)
11-07 10:16:34.640 E/AndroidRuntime(23934): 	at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3407)
11-07 10:16:34.640 E/AndroidRuntime(23934): 	... 10 more
11-07 10:16:34.640 W/ActivityManager(  382):   Force finishing activity com.goatgames.dhs.gb.gp/com.haowan123.xiyou.MainActivity
11-07 10:16:34.641 W/ActivityManager(  382):   Force finishing activity com.goatgames.dhs.gb.gp/com.haowan123.xiyou.MainActivity

Steps to Reproduce

  1. apktool d
  2. apktool b
  3. Zipalign
  4. Sign with testkey or whatever

APK

https://apkcombo.com/dungeon-hunter-6/com.goatgames.dhs.gb.gp/download/apk

Questions to ask before submission

  1. Have you tried apktool d, apktool b without changing anything? Yes
  2. Are you using the latest apktool version? Yes
@iBotPeaches
Copy link
Owner

If you try with no sources (-s) and then again except with no resources (-r) - how does your test change?

@Yehh22
Copy link
Author

Yehh22 commented Nov 7, 2023

If you try with no sources (-s) and then again except with no resources (-r) - how does your test change?

I tried with both -s and -r, still crashes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants