rhunk / SnapEnhance

An Xposed module offering an enhanced Snapchat experience
https://t.me/snapenhance
GNU General Public License v3.0
1.29k stars 119 forks source link

Snapchat keeps crashing/won't open #1215

Open nandish-jha opened 3 months ago

nandish-jha commented 3 months ago

Description

I am stuck at Snapchat opening logo screen. I have tried installing various versions of Snapchat and the whole process again and again with LSPatch and SnapEnhance. Still the same issue.

Reproduction steps

  1. Installing the APK for SnapEnhance, LSPatch and tried using APK and play store application for Snapchat.
  2. Get Shizuku ready and running. Give LSPatch Shizuku permission.
  3. Open LSPatch and do the procedure.
  4. Once the integrated moded Snapchat is installed, open Snapchat.
  5. Getting stuck at the opening logo screen.

Logs

No response

Snapchat Version

13.3.0.42 and 12.93.0.43 and 12.81.0.44

SnapEnhance Version

2.0.1

Agreement

kUltraduce commented 3 months ago

I'm having the same problem

Fishman456 commented 3 months ago

Same

Beingzain commented 3 months ago

Disable Security Features In SE Setting ✓ Used the latest Lspatch fork ✓

nandish-jha commented 3 months ago

What do you exactly mean by "Disable Security Features In SE Setting" ??? @Beingzain

nandish-jha commented 3 months ago

Still not working.

Beingzain commented 3 months ago

What's your android version

nandish-jha commented 3 months ago

I'm using pixel 7 and running Android 14 stable version.

shadowking1443 commented 3 months ago

Also having this issue. Pixel 7 Pro running Android 14.

rhunk commented 3 months ago

Can someone try the latest ci build? https://github.com/rhunk/SnapEnhance/actions/runs/10585181221

nandish-jha commented 3 months ago

Can someone try the latest ci build? https://github.com/rhunk/SnapEnhance/actions/runs/10585181221

Not sure how to do that.

shadowking1443 commented 3 months ago

Can someone try the latest ci build? https://github.com/rhunk/SnapEnhance/actions/runs/10585181221

Just tried it, and the issue persists still. Not sure if this is a SnapEnhance issue, or a failure in how LSPatch is patching since it hasn't been updated.

MatisAgr commented 2 months ago

I managed to fix the problem by deleting the app's cache and data (I think there were traces of the old version left)

• S23u - Android 14 • LSPatch 0.6 • Snapenhance 2.0.1 • Snapchat 12.81.0.44 on APKPure

kUltraduce commented 2 months ago

I managed to fix the problem by deleting the app's cache and data (I think there were traces of the old version left)

• S23u - Android 14 • LSPatch 0.6 • Snapenhance 2.0.1 • Snapchat 12.81.0.44 on APKPure

how did you delete the old version's cache?

MatisAgr commented 2 months ago

https://github.com/user-attachments/assets/5e31e116-1a55-488c-9871-0489d5ffa03e

It's like you want to do on any application via the application manager. Since both applications have the same package name, the cache and data are shared between them.

nandish-jha commented 2 months ago

https://github.com/user-attachments/assets/5e31e116-1a55-488c-9871-0489d5ffa03e

It's like you want to do on any application via the application manager. Since both applications have the same package name, the cache and data are shared between them.

I think this issue is only occurring on pixel phones. I have a Samsung device. If I do the steps on that, I don't even need to clear the cache. Or works fine on that. Just the pixel devices.

MatisAgr commented 2 months ago

https://github.com/user-attachments/assets/5e31e116-1a55-488c-9871-0489d5ffa03e

It's like you want to do on any application via the application manager. Since both applications have the same package name, the cache and data are shared between them.

I think this issue is only occurring on pixel phones. I have a Samsung device. If I do the steps on that, I don't even need to clear the cache. Or works fine on that. Just the pixel devices.

For my part I was blocked on the connection page (with my identifiers already identified) the application told me that my connection was fraudulent or that my account was blocked . I was afraid of the ban 🙃

shadowking1443 commented 2 months ago

https://github.com/user-attachments/assets/5e31e116-1a55-488c-9871-0489d5ffa03e

It's like you want to do on any application via the application manager. Since both applications have the same package name, the cache and data are shared between them.

Unfortunately, this didn't work for me either. It may be isolated to Pixel phones... I'm on a Pixel 7 Pro running Android 14

🤞for a fix

god-speed47 commented 2 months ago

I'm running a Google Pixel 8 Pro and I'm having the same issue

Screen_Recording_20240830_155151_Settings.mp4

It's like you want to do on any application via the application manager. Since both applications have the same package name, the cache and data are shared between them.

Unfortunately, this didn't work for me either. It may be isolated to Pixel phones... I'm on a Pixel 7 Pro running Android 14

🤞for a fix

htocqueville commented 2 months ago

Same here with a pixel 7 on android 14 stable. I've tried every methods shown on the internet but nothing seems to be working...

saugatshakya commented 2 months ago

Same here with pixel 6

GIT-Radeth commented 2 months ago

I have the same issue on a OnePlus Nord 3. Tried reinstall and activate via lsposed. Stuck at opening the app.

kamharry commented 2 months ago

https://nightly.link/JingMatrix/LSPatch/actions/runs/10714678100

Use debug build

Patch with this and optimize in lspatch, whoever is facing any crash or login issue

shadowking1443 commented 2 months ago

https://nightly.link/JingMatrix/LSPatch/actions/runs/10714678100

Use debug build

Patch with this and optimize in lspatch, whoever is facing any crash or login issue

Thanks for this, I was able to patch! As a side note, it doesn't seem to let me log in if the security features for SnapEnhance are enabled. Is that an issue? SE V2.1.0

Additionally, the menu cog wheel in the Snapchat app for SE does not appear to work

nandish-jha commented 2 months ago

Stop using SnapEnhance. Snapchat has started licking accounts. Check Reddit for SnapEnhance.

kamharry commented 2 months ago

@shadowking1443 try this updated build

https://nightly.link/JingMatrix/LSPatch/actions/runs/10835509931

Use debug version

iGamerrr commented 2 months ago

hey so i have same problem i tried updated build but it still keeps crashing

htocqueville commented 2 months ago

I used the build about a week ago, and it worked perfectly. However, I then received a warning from Snap, stating that I should stop using a third-party app to access Snapchat or risk being banned. I did not activate any features other than Snapchat+.

Screenshot_20240913-180212~2.png

kamharry commented 2 months ago

@LamaNivelle most of the people got the warning even rooted ones

kamharry commented 2 months ago

@iGamerrr try the build that is released yesterday

https://github.com/JingMatrix/LSPatch/actions/runs/10888848425

iGamerrr commented 2 months ago

also i uninstalled snapchat and now i cant install it again is there any solution?

kamharry commented 2 months ago

@iGamerrr uninstall with adb

TheSirTigerr commented 2 months ago

I get the error that the account is locked. And when I try it with the official Snapchat app it works.

Can someone Please Help me?

MatisAgr commented 2 months ago

Screen_Recording_20240830_155151_Settings.mp4

It's like you want to do on any application via the application manager. Since both applications have the same package name, the cache and data are shared between them.

For my part I was blocked on the connection page (with my identifiers already identified) the application told me that my connection was fraudulent or that my account was blocked . I was afraid of the ban 🙃

I get the error that the account is locked. And when I try it with the official Snapchat app it works.

Can someone Please Help me?

Look at my comment up

TheSirTigerr commented 2 months ago

Screen_Recording_20240830_155151_Settings.mp4 It's like you want to do on any application via the application manager. Since both applications have the same package name, the cache and data are shared between them.

For my part I was blocked on the connection page (with my identifiers already identified) the application told me that my connection was fraudulent or that my account was blocked . I was afraid of the ban 🙃

I get the error that the account is locked. And when I try it with the official Snapchat app it works. Can someone Please Help me?

Look at my comment up

I did read it but i didn't find a solution.

TheSirTigerr commented 2 months ago

Screen_Recording_20240830_155151_Settings.mp4 It's like you want to do on any application via the application manager. Since both applications have the same package name, the cache and data are shared between them.

For my part I was blocked on the connection page (with my identifiers already identified) the application told me that my connection was fraudulent or that my account was blocked . I was afraid of the ban 🙃

I get the error that the account is locked. And when I try it with the official Snapchat app it works. Can someone Please Help me?

Look at my comment up

I did read it but i didn't find a solution.

I found a solution:

Here's the fix for non root users When using Shizuku / LSPatch After selecting which app you want to modify (in this case Snapchat)

Choose Local not Integrated mode Disable (uncheck) SnapEnhance from the modules Login to Snapchat Back to LSPatch, enable the SnapEnhance module Force Stop Snapchat Open Snapchat, and you'll see it working. Enjoy.

sirzento commented 1 month ago

Is there also a solution for rooted users?

suryadip2008 commented 1 month ago

Is there also a solution for rooted users?

Check this comment: https://github.com/rhunk/SnapEnhance/issues/1265#issuecomment-2395302181

zax4r0 commented 1 month ago

same steps https://github.com/rhunk/SnapEnhance/issues/1215#issue-2477947129

Android 14

AndroidRuntime: usap64                               E  FATAL EXCEPTION: main
Process: com.snapchat.android, PID: 4700

java.lang.RuntimeException: Unable to instantiate application com.snap.mushroom.app.MushroomApplication package com.snapchat.android: java.lang.ClassNotFoundException: Didn't find class "com.snap.mushroom.app.MushroomApplication" on path: DexPathList[[zip file "/data/app/~~G50MvjnFFNzNH2ijPSmTZQ==/com.snapchat.android-RMDQSVa9BjNJF41EXqkVqw==/base.apk"], nativeLibraryDirectories=[/data/app/~~G50MvjnFFNzNH2ijPSmTZQ==/com.snapchat.android-RMDQSVa9BjNJF41EXqkVqw==/lib/arm64, /data/app/~~G50MvjnFFNzNH2ijPSmTZQ==/com.snapchat.android-RMDQSVa9BjNJF41EXqkVqw==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]
    at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1475)
    at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1400)
    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7362)
    at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2379)
    at android.os.Handler.dispatchMessage(Handler.java:107)
    at android.os.Looper.loopOnce(Looper.java:232)
    at android.os.Looper.loop(Looper.java:317)
    at android.app.ActivityThread.main(ActivityThread.java:8595)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:583)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:878)

Caused by: java.lang.ClassNotFoundException: Didn't find class "com.snap.mushroom.app.MushroomApplication" on path: DexPathList[[zip file "/data/app/~~G50MvjnFFNzNH2ijPSmTZQ==/com.snapchat.android-RMDQSVa9BjNJF41EXqkVqw==/base.apk"], nativeLibraryDirectories=[/data/app/~~G50MvjnFFNzNH2ijPSmTZQ==/com.snapchat.android-RMDQSVa9BjNJF41EXqkVqw==/lib/arm64, /data/app/~~G50MvjnFFNzNH2ijPSmTZQ==/com.snapchat.android-RMDQSVa9BjNJF41EXqkVqw==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]
    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:259)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:637)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
    at android.app.AppComponentFactory.instantiateApplication(AppComponentFactory.java:76)
    at android.app.Instrumentation.newApplication(Instrumentation.java:1356)
    at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1468)
    at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1400)
    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7362)
    at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2379)
    at android.os.Handler.dispatchMessage(Handler.java:107)
    at android.os.Looper.loopOnce(Looper.java:232)
    at android.os.Looper.loop(Looper.java:317)
    at android.app.ActivityThread.main(ActivityThread.java:8595)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:583)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:878)
suryadip2008 commented 1 month ago

same steps #1215 (comment)

Android 14

AndroidRuntime: usap64                               E  FATAL EXCEPTION: main
Process: com.snapchat.android, PID: 4700

java.lang.RuntimeException: Unable to instantiate application com.snap.mushroom.app.MushroomApplication package com.snapchat.android: java.lang.ClassNotFoundException: Didn't find class "com.snap.mushroom.app.MushroomApplication" on path: DexPathList[[zip file "/data/app/~~G50MvjnFFNzNH2ijPSmTZQ==/com.snapchat.android-RMDQSVa9BjNJF41EXqkVqw==/base.apk"], nativeLibraryDirectories=[/data/app/~~G50MvjnFFNzNH2ijPSmTZQ==/com.snapchat.android-RMDQSVa9BjNJF41EXqkVqw==/lib/arm64, /data/app/~~G50MvjnFFNzNH2ijPSmTZQ==/com.snapchat.android-RMDQSVa9BjNJF41EXqkVqw==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]
    at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1475)
    at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1400)
    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7362)
    at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2379)
    at android.os.Handler.dispatchMessage(Handler.java:107)
    at android.os.Looper.loopOnce(Looper.java:232)
    at android.os.Looper.loop(Looper.java:317)
    at android.app.ActivityThread.main(ActivityThread.java:8595)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:583)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:878)

Caused by: java.lang.ClassNotFoundException: Didn't find class "com.snap.mushroom.app.MushroomApplication" on path: DexPathList[[zip file "/data/app/~~G50MvjnFFNzNH2ijPSmTZQ==/com.snapchat.android-RMDQSVa9BjNJF41EXqkVqw==/base.apk"], nativeLibraryDirectories=[/data/app/~~G50MvjnFFNzNH2ijPSmTZQ==/com.snapchat.android-RMDQSVa9BjNJF41EXqkVqw==/lib/arm64, /data/app/~~G50MvjnFFNzNH2ijPSmTZQ==/com.snapchat.android-RMDQSVa9BjNJF41EXqkVqw==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]
    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:259)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:637)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
    at android.app.AppComponentFactory.instantiateApplication(AppComponentFactory.java:76)
    at android.app.Instrumentation.newApplication(Instrumentation.java:1356)
    at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1468)
    at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1400)
    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7362)
    at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2379)
    at android.os.Handler.dispatchMessage(Handler.java:107)
    at android.os.Looper.loopOnce(Looper.java:232)
    at android.os.Looper.loop(Looper.java:317)
    at android.app.ActivityThread.main(ActivityThread.java:8595)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:583)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:878)

Try this: https://github.com/rhunk/SnapEnhance/issues/1265#issuecomment-2395302181

zax4r0 commented 1 month ago

same steps #1215 (comment) Android 14

AndroidRuntime: usap64                               E  FATAL EXCEPTION: main
Process: com.snapchat.android, PID: 4700

java.lang.RuntimeException: Unable to instantiate application com.snap.mushroom.app.MushroomApplication package com.snapchat.android: java.lang.ClassNotFoundException: Didn't find class "com.snap.mushroom.app.MushroomApplication" on path: DexPathList[[zip file "/data/app/~~G50MvjnFFNzNH2ijPSmTZQ==/com.snapchat.android-RMDQSVa9BjNJF41EXqkVqw==/base.apk"], nativeLibraryDirectories=[/data/app/~~G50MvjnFFNzNH2ijPSmTZQ==/com.snapchat.android-RMDQSVa9BjNJF41EXqkVqw==/lib/arm64, /data/app/~~G50MvjnFFNzNH2ijPSmTZQ==/com.snapchat.android-RMDQSVa9BjNJF41EXqkVqw==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]
    at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1475)
    at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1400)
    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7362)
    at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2379)
    at android.os.Handler.dispatchMessage(Handler.java:107)
    at android.os.Looper.loopOnce(Looper.java:232)
    at android.os.Looper.loop(Looper.java:317)
    at android.app.ActivityThread.main(ActivityThread.java:8595)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:583)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:878)

Caused by: java.lang.ClassNotFoundException: Didn't find class "com.snap.mushroom.app.MushroomApplication" on path: DexPathList[[zip file "/data/app/~~G50MvjnFFNzNH2ijPSmTZQ==/com.snapchat.android-RMDQSVa9BjNJF41EXqkVqw==/base.apk"], nativeLibraryDirectories=[/data/app/~~G50MvjnFFNzNH2ijPSmTZQ==/com.snapchat.android-RMDQSVa9BjNJF41EXqkVqw==/lib/arm64, /data/app/~~G50MvjnFFNzNH2ijPSmTZQ==/com.snapchat.android-RMDQSVa9BjNJF41EXqkVqw==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]
    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:259)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:637)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
    at android.app.AppComponentFactory.instantiateApplication(AppComponentFactory.java:76)
    at android.app.Instrumentation.newApplication(Instrumentation.java:1356)
    at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1468)
    at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1400)
    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7362)
    at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2379)
    at android.os.Handler.dispatchMessage(Handler.java:107)
    at android.os.Looper.loopOnce(Looper.java:232)
    at android.os.Looper.loop(Looper.java:317)
    at android.app.ActivityThread.main(ActivityThread.java:8595)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:583)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:878)

Try this: #1265 (comment)


It worked, thanks 👍. However, now I can't log in using the patched app. I receive the following error:
"Due to repeated failed attempts or other unusual activity, your access to Snapchat is temporarily disabled. Learn more."
The original app works fine, though.

I also noticed this message in logs while trying to log in: 👇

version 12.81.0.37 Beta com.snapchat.android

E  Package [com.snapchat.android] reported as REPLACED, but missing application info. Assuming REMOVED.

I was able to restore the old Snapchat data from SwiftBackup, enabled "Prevent Force Logout," logged out manually, and then logging in again worked.

MatisAgr commented 1 month ago

same steps #1215 (comment) Android 14

AndroidRuntime: usap64                               E  FATAL EXCEPTION: main
Process: com.snapchat.android, PID: 4700

java.lang.RuntimeException: Unable to instantiate application com.snap.mushroom.app.MushroomApplication package com.snapchat.android: java.lang.ClassNotFoundException: Didn't find class "com.snap.mushroom.app.MushroomApplication" on path: DexPathList[[zip file "/data/app/~~G50MvjnFFNzNH2ijPSmTZQ==/com.snapchat.android-RMDQSVa9BjNJF41EXqkVqw==/base.apk"], nativeLibraryDirectories=[/data/app/~~G50MvjnFFNzNH2ijPSmTZQ==/com.snapchat.android-RMDQSVa9BjNJF41EXqkVqw==/lib/arm64, /data/app/~~G50MvjnFFNzNH2ijPSmTZQ==/com.snapchat.android-RMDQSVa9BjNJF41EXqkVqw==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]
    at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1475)
    at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1400)
    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7362)
    at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2379)
    at android.os.Handler.dispatchMessage(Handler.java:107)
    at android.os.Looper.loopOnce(Looper.java:232)
    at android.os.Looper.loop(Looper.java:317)
    at android.app.ActivityThread.main(ActivityThread.java:8595)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:583)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:878)

Caused by: java.lang.ClassNotFoundException: Didn't find class "com.snap.mushroom.app.MushroomApplication" on path: DexPathList[[zip file "/data/app/~~G50MvjnFFNzNH2ijPSmTZQ==/com.snapchat.android-RMDQSVa9BjNJF41EXqkVqw==/base.apk"], nativeLibraryDirectories=[/data/app/~~G50MvjnFFNzNH2ijPSmTZQ==/com.snapchat.android-RMDQSVa9BjNJF41EXqkVqw==/lib/arm64, /data/app/~~G50MvjnFFNzNH2ijPSmTZQ==/com.snapchat.android-RMDQSVa9BjNJF41EXqkVqw==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]
    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:259)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:637)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
    at android.app.AppComponentFactory.instantiateApplication(AppComponentFactory.java:76)
    at android.app.Instrumentation.newApplication(Instrumentation.java:1356)
    at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1468)
    at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1400)
    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7362)
    at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2379)
    at android.os.Handler.dispatchMessage(Handler.java:107)
    at android.os.Looper.loopOnce(Looper.java:232)
    at android.os.Looper.loop(Looper.java:317)
    at android.app.ActivityThread.main(ActivityThread.java:8595)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:583)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:878)

Try this: #1265 (comment)

It worked, thanks 👍. However, now I can't log in using the patched app. I receive the following error: "Due to repeated failed attempts or other unusual activity, your access to Snapchat is temporarily disabled. Learn more." The original app works fine, though.

I also noticed this message in logs while trying to log in: 👇

version 12.81.0.37 Beta com.snapchat.android

E  Package [com.snapchat.android] reported as REPLACED, but missing application info. Assuming REMOVED.

I was able to restore the old Snapchat data from SwiftBackup, enabled "Prevent Force Logout," logged out manually, and then logging in again worked.

For the logging you just need to delete data and cache and it's done :)

Hemant881 commented 1 month ago

same steps #1215 (comment)

Android 14

AndroidRuntime: usap64                               E  FATAL EXCEPTION: main
Process: com.snapchat.android, PID: 4700

java.lang.RuntimeException: Unable to instantiate application com.snap.mushroom.app.MushroomApplication package com.snapchat.android: java.lang.ClassNotFoundException: Didn't find class "com.snap.mushroom.app.MushroomApplication" on path: DexPathList[[zip file "/data/app/~~G50MvjnFFNzNH2ijPSmTZQ==/com.snapchat.android-RMDQSVa9BjNJF41EXqkVqw==/base.apk"], nativeLibraryDirectories=[/data/app/~~G50MvjnFFNzNH2ijPSmTZQ==/com.snapchat.android-RMDQSVa9BjNJF41EXqkVqw==/lib/arm64, /data/app/~~G50MvjnFFNzNH2ijPSmTZQ==/com.snapchat.android-RMDQSVa9BjNJF41EXqkVqw==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]
    at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1475)
    at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1400)
    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7362)
    at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2379)
    at android.os.Handler.dispatchMessage(Handler.java:107)
    at android.os.Looper.loopOnce(Looper.java:232)
    at android.os.Looper.loop(Looper.java:317)
    at android.app.ActivityThread.main(ActivityThread.java:8595)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:583)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:878)

Caused by: java.lang.ClassNotFoundException: Didn't find class "com.snap.mushroom.app.MushroomApplication" on path: DexPathList[[zip file "/data/app/~~G50MvjnFFNzNH2ijPSmTZQ==/com.snapchat.android-RMDQSVa9BjNJF41EXqkVqw==/base.apk"], nativeLibraryDirectories=[/data/app/~~G50MvjnFFNzNH2ijPSmTZQ==/com.snapchat.android-RMDQSVa9BjNJF41EXqkVqw==/lib/arm64, /data/app/~~G50MvjnFFNzNH2ijPSmTZQ==/com.snapchat.android-RMDQSVa9BjNJF41EXqkVqw==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]
    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:259)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:637)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
    at android.app.AppComponentFactory.instantiateApplication(AppComponentFactory.java:76)
    at android.app.Instrumentation.newApplication(Instrumentation.java:1356)
    at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1468)
    at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1400)
    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7362)
    at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2379)
    at android.os.Handler.dispatchMessage(Handler.java:107)
    at android.os.Looper.loopOnce(Looper.java:232)
    at android.os.Looper.loop(Looper.java:317)
    at android.app.ActivityThread.main(ActivityThread.java:8595)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:583)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:878)

Where to use this and how?

TakenMC commented 1 month ago

I got it working

LSPatch: Latest CI build from actions https://github.com/JingMatrix/LSPatch SE: Latest debug version from actions SC: Recommend version from readme

I also cleared the data from SE and optimized app in LSPatch

Device: S24 Ultra

Just the only issue is that the snapenhance menu button doesn't show up so you gotta configure from the SE app

FishAndFire commented 1 month ago

same steps #1215 (comment) Android 14

AndroidRuntime: usap64                               E  FATAL EXCEPTION: main
Process: com.snapchat.android, PID: 4700

java.lang.RuntimeException: Unable to instantiate application com.snap.mushroom.app.MushroomApplication package com.snapchat.android: java.lang.ClassNotFoundException: Didn't find class "com.snap.mushroom.app.MushroomApplication" on path: DexPathList[[zip file "/data/app/~~G50MvjnFFNzNH2ijPSmTZQ==/com.snapchat.android-RMDQSVa9BjNJF41EXqkVqw==/base.apk"], nativeLibraryDirectories=[/data/app/~~G50MvjnFFNzNH2ijPSmTZQ==/com.snapchat.android-RMDQSVa9BjNJF41EXqkVqw==/lib/arm64, /data/app/~~G50MvjnFFNzNH2ijPSmTZQ==/com.snapchat.android-RMDQSVa9BjNJF41EXqkVqw==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]
    at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1475)
    at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1400)
    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7362)
    at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2379)
    at android.os.Handler.dispatchMessage(Handler.java:107)
    at android.os.Looper.loopOnce(Looper.java:232)
    at android.os.Looper.loop(Looper.java:317)
    at android.app.ActivityThread.main(ActivityThread.java:8595)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:583)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:878)

Caused by: java.lang.ClassNotFoundException: Didn't find class "com.snap.mushroom.app.MushroomApplication" on path: DexPathList[[zip file "/data/app/~~G50MvjnFFNzNH2ijPSmTZQ==/com.snapchat.android-RMDQSVa9BjNJF41EXqkVqw==/base.apk"], nativeLibraryDirectories=[/data/app/~~G50MvjnFFNzNH2ijPSmTZQ==/com.snapchat.android-RMDQSVa9BjNJF41EXqkVqw==/lib/arm64, /data/app/~~G50MvjnFFNzNH2ijPSmTZQ==/com.snapchat.android-RMDQSVa9BjNJF41EXqkVqw==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]
    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:259)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:637)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
    at android.app.AppComponentFactory.instantiateApplication(AppComponentFactory.java:76)
    at android.app.Instrumentation.newApplication(Instrumentation.java:1356)
    at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1468)
    at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1400)
    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7362)
    at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2379)
    at android.os.Handler.dispatchMessage(Handler.java:107)
    at android.os.Looper.loopOnce(Looper.java:232)
    at android.os.Looper.loop(Looper.java:317)
    at android.app.ActivityThread.main(ActivityThread.java:8595)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:583)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:878)

Try this: #1265 (comment)

It worked, thanks 👍. However, now I can't log in using the patched app. I receive the following error: "Due to repeated failed attempts or other unusual activity, your access to Snapchat is temporarily disabled. Learn more." The original app works fine, though. I also noticed this message in logs while trying to log in: 👇 version 12.81.0.37 Beta com.snapchat.android

E  Package [com.snapchat.android] reported as REPLACED, but missing application info. Assuming REMOVED.

I was able to restore the old Snapchat data from SwiftBackup, enabled "Prevent Force Logout," logged out manually, and then logging in again worked.

For the logging you just need to delete data and cache and it's done :)

Nope it doesn't work out for my friend. He uses a Realme GT 5G running Realme UI 5.0 A14.

https://github.com/user-attachments/assets/6242897f-ece3-4298-b055-17793e0801a1

Patient6038 commented 2 weeks ago

to modify (in this case Snapchat)

Choose Local not Integrated mode

still crashes to me with pixel 8 pro.