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 (reddit): patch makes the app crash #2571

Closed
3 tasks done
lpuglia opened this issue Jan 1, 2024 · 9 comments
Closed
3 tasks done

bug (reddit): patch makes the app crash #2571

lpuglia opened this issue Jan 1, 2024 · 9 comments
Labels
Bug report Something isn't working

Comments

@lpuglia
Copy link

lpuglia commented Jan 1, 2024

Bug description

I'm using the following tools:

Java version: OpenJDK 17
CLI version: 4.4.0-all
Patch version: 3.2.0
Tested Reddit apk: 2023.47.0 and 2023.50.1

The patching process of the apk goes smoothly:

>  java -jar .\revanced-cli-4.4.0-all.jar patch -b .\revanced-patches-3.2.0.jar --exclusive --ii 132 .\com.reddit.frontpage_2023.47.0.apk
INFO: Loading patches
INFO: Decoding app manifest
INFO: Predictive back gesture excluded
INFO: Spoof Wi-Fi connection excluded
INFO: Spoof SIM country excluded
INFO: Override certificate pinning excluded
INFO: Enable Android debugging excluded
INFO: Change package name excluded
INFO: Remove screenshot restriction excluded
INFO: Remove screen capture restriction excluded
INFO: Export all activities excluded
INFO: Unlock premium Reddit icons excluded
INFO: Disable screenshot popup excluded
INFO: Sanitize sharing links excluded
INFO: Setting patch options
INFO: Merging integrations
INFO: Deleting existing resource cache directory
INFO: Decoding resources
INFO: Executing patches
INFO: Hide ads succeeded
INFO: Compiling patched dex files
INFO: Compiled classes.dex
INFO: Compiled classes2.dex
INFO: Compiled classes3.dex
INFO: Compiled classes4.dex
INFO: Compiled classes5.dex
INFO: Compiled classes6.dex
INFO: Compiled classes7.dex
INFO: Compiled classes8.dex
INFO: Compiled classes9.dex
INFO: Compiled classes10.dex
INFO: Compiled classes11.dex
INFO: Compiled classes12.dex
INFO: Compiling modified resources
INFO: Aligning com.reddit.frontpage_2023.47.0.apk
INFO: Signing com.reddit.frontpage_2023.47.0.apk
INFO: Saved to C:\Users\Luca\Desktop\com.reddit.frontpage_2023.47.0-patched.apk

as well as the installation:

> .\adb.exe install com.reddit.frontpage_2023.47.0-patched.apk
Performing Streamed Install
Success

i can login from the installed app, but as soon as the feed gets populated with posts the app crashes. This happens every time I open the app. Are the tools i'm using at the correct version?

Error logs

No response

Solution

No response

Additional context

No response

Acknowledgements

  • This issue is not a duplicate of an existing bug report.
  • I have chosen an appropriate title.
  • All requested information has been provided properly.
@lpuglia lpuglia added the Bug report Something isn't working label Jan 1, 2024
@lpuglia lpuglia changed the title bug (reddit): patch make the app crash bug (reddit): patch makes the app crash Jan 1, 2024
@oSumAtrIX
Copy link
Member

Please add crashlogs using logcat

@oSumAtrIX oSumAtrIX added the Waiting on author Further information is requested label Jan 1, 2024
@lpuglia
Copy link
Author

lpuglia commented Jan 1, 2024

here you are:

01-01 16:56:56.926 20178 20266 E AndroidRuntime: Process: com.reddit.frontpage, PID: 20178
01-01 16:56:56.926 20178 20266 E AndroidRuntime: java.lang.NoClassDefFoundError: Failed resolution of: Lapp/revanced/reddit/patches/FilterPromotedLinksPatch;
01-01 16:56:56.926 20178 20266 E AndroidRuntime:        at com.reddit.domain.model.listing.Listing.<init>(Listing.kt:2)
01-01 16:56:56.926 20178 20266 E AndroidRuntime:        at com.reddit.domain.model.listing.Listing.<init>(Listing.kt:12)
01-01 16:56:56.926 20178 20266 E AndroidRuntime:        at com.reddit.data.remote.RemoteGqlLinkDataSource.p(RemoteGqlLinkDataSource.kt:499)
01-01 16:56:56.926 20178 20266 E AndroidRuntime:        at com.reddit.link.impl.data.repository.RedditLinkRepository.S(RedditLinkRepository.kt:112)
01-01 16:56:56.926 20178 20266 E AndroidRuntime:        at com.reddit.feeds.impl.data.RedditFeedLinkRepository.d(RedditFeedLinkRepository.kt:236)
01-01 16:56:56.926 20178 20266 E AndroidRuntime:        at com.reddit.feeds.impl.domain.paging.RedditFeedPager$load$1.invokeSuspend(RedditFeedPager.kt:1301)
01-01 16:56:56.926 20178 20266 E AndroidRuntime: Caused by: java.lang.ClassNotFoundException: app.revanced.reddit.patches.FilterPromotedLinksPatch

@oSumAtrIX
Copy link
Member

This patch needs integrations. Please merge them using the option -m.

@oSumAtrIX oSumAtrIX closed this as not planned Won't fix, can't repro, duplicate, stale Jan 1, 2024
@LisoUseInAIKyrios LisoUseInAIKyrios removed the Waiting on author Further information is requested label Jan 1, 2024
@lpuglia
Copy link
Author

lpuglia commented Jan 1, 2024

lovely, the solution was to download the release and do:

java -jar .\revanced-cli-4.4.0-all.jar patch -b .\revanced-patches-3.2.0.jar -m .\revanced-integrations-1.1.0.apk --exclusive --ii 132 .\com.reddit.frontpage_2023.50.1.apk

thanks again

@cyberboh
Copy link

cyberboh commented Jan 1, 2024

This patch needs integrations. Please merge them using the option -m.

Why the CLI did not told the user to include integrations if supplied apk needs it?
Maybe add options/information on terminal windows about it can help user to to fix their error.

@oSumAtrIX
Copy link
Member

The APK does not need it. The specific patch does

@cyberboh
Copy link

cyberboh commented Jan 2, 2024

The APK does not need it. The specific patch does

Umm..how about to add information about it too? it's very usefull for user to fix their issue

@KobeW50
Copy link
Contributor

KobeW50 commented Jan 2, 2024

The patch should error if it depends on integrations and those integrations weren't supplied by the user.

@oSumAtrIX
Copy link
Member

@cyberboh The integrations are not supposed to be separate to begin with. The patches erroring out is just a workaround to that problem until they are merged.

Slenderman00 pushed a commit to Slenderman00/revanced-patches-grindr that referenced this issue Jan 31, 2024
Slenderman00 pushed a commit to Slenderman00/revanced-patches-grindr that referenced this issue Jan 31, 2024
# [2.182.0](ReVanced/revanced-patches@v2.181.0...v2.182.0) (2023-07-08)

### Bug Fixes

* **youtube/hide-layout-components:**  hide mix playlists ([33a87bd](ReVanced/revanced-patches@202f9f5))

### Features

* **pixiv:** add `hide-ads` patch ([ReVanced#2578](ReVanced/revanced-patches#2578)) ([862a7ec](ReVanced/revanced-patches@3dc12bd))
* remove unnecessary notice ([7e9f0b2](ReVanced/revanced-patches@e734308))
* **slideforreddit:** add `change-oauth-client-id` patch ([ReVanced#2571](ReVanced/revanced-patches#2571)) ([8cd60ee](ReVanced/revanced-patches@b95781f))
* **youtube:** support version `18.23.35` ([ReVanced#2461](ReVanced/revanced-patches#2461)) ([d20fde1](ReVanced/revanced-patches@e71313a))
tamnguyenchi93 pushed a commit to tamnguyenchi93/revanced-patches that referenced this issue Mar 24, 2024
tamnguyenchi93 pushed a commit to tamnguyenchi93/revanced-patches that referenced this issue Mar 24, 2024
# [2.182.0](ReVanced/revanced-patches@v2.181.0...v2.182.0) (2023-07-08)

### Bug Fixes

* **youtube/hide-layout-components:**  hide mix playlists ([33a87bd](ReVanced/revanced-patches@33a87bd))

### Features

* **pixiv:** add `hide-ads` patch ([ReVanced#2578](ReVanced/revanced-patches#2578)) ([862a7ec](ReVanced/revanced-patches@862a7ec))
* remove unnecessary notice ([7e9f0b2](ReVanced/revanced-patches@7e9f0b2))
* **slideforreddit:** add `change-oauth-client-id` patch ([ReVanced#2571](ReVanced/revanced-patches#2571)) ([8cd60ee](ReVanced/revanced-patches@8cd60ee))
* **youtube:** support version `18.23.35` ([ReVanced#2461](ReVanced/revanced-patches#2461)) ([d20fde1](ReVanced/revanced-patches@d20fde1))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug report Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants