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

feat(Messenger): Add Hide inbox subtabs patch #3163

Merged
merged 6 commits into from
Jun 1, 2024

Conversation

seaque
Copy link
Contributor

@seaque seaque commented May 14, 2024

This patch removes Home / Channels tabs between active now tray and chat boxes.

image

I also changed the directory of Hide inbox ads patch from patches/messenger/ads/inbox to patches/messenger/inbox/ads due to:

  1. Ads only appear in inbox in this app.
  2. My patch falls into this directory.
  3. Inbox parent directory makes more sense for patches to gather within.

@seaque seaque changed the base branch from main to dev May 14, 2024 10:58
@oSumAtrIX oSumAtrIX changed the title feat(messenger): Add Hide inbox subtabs patch feat(Messenger): Add Hide inbox subtabs patch May 18, 2024

@Patch(
name = "Hide inbox subtabs",
compatiblePackages = [CompatiblePackage("com.facebook.orca")],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add a description that explains what the patch does. The name isn't sufficient to understand.

import com.android.tools.smali.dexlib2.AccessFlags
import com.android.tools.smali.dexlib2.Opcode

internal object InboxSubTabsItemSupplierFingerprint : MethodFingerprint(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps a better name can be chosen? It is unclear what this fingerprint resolves to.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Supplies items for subtabs? Anyway, I will make it CreateInboxSubTabs


@Patch(
name = "Hide inbox subtabs",
compatiblePackages = [CompatiblePackage("com.facebook.orca")],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The patch relies on a complex fingeprint, perhaps it will break with future versions which is why you should either consider simplifying the fingerprint or constrain the patch to some version.

Copy link
Contributor Author

@seaque seaque May 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These subtabs have been added during 430 versions, and fingerprint resolves to an obfuscated class that works on a Runnable, unfortunately it's quite fragile print and breaks easily. I have to find more solid way to target this.

@oSumAtrIX
Copy link
Member

This patch removes Chats / Channels tabs between active now tray and chat boxes.

I don't understand what this means. Your screenshot shows a red box around nothing.

@kazimmt
Copy link
Contributor

kazimmt commented May 19, 2024

I don't understand what this means. Your screenshot shows a red box around nothing.

There are two tabs, Home and Channels where he marked it after hiding.

@seaque
Copy link
Contributor Author

seaque commented May 19, 2024

Accidentally force pushed on your refactor, I need to test the fingerprint in multiple versions, some patched versions tend to be false positives.

@seaque
Copy link
Contributor Author

seaque commented May 22, 2024

Tested new fingerprint on:

  • 430.0.0.38.101 (October 2023)
  • 444.0.0.41.109 (February 2024)
  • 459.0.0.48.108 (May 2024)

and it seems to be working.

@seaque seaque requested a review from oSumAtrIX May 31, 2024 08:55
Copy link
Member

@oSumAtrIX oSumAtrIX left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ignoring breaking changes here for now.

@oSumAtrIX oSumAtrIX merged commit 24e4ebd into ReVanced:dev Jun 1, 2024
2 checks passed
Copy link

welcome bot commented Jun 1, 2024

Thank you for contributing to ReVanced. Join us on Discord to receive a role for your contribution.

revanced-bot pushed a commit that referenced this pull request Jun 1, 2024
# [4.9.0-dev.4](v4.9.0-dev.3...v4.9.0-dev.4) (2024-06-01)

### Features

* **Messenger:** Add `Hide inbox subtabs` patch ([#3163](#3163)) ([24e4ebd](24e4ebd))
zainarbani pushed a commit to zainarbani/revanced-patches that referenced this pull request Jun 2, 2024
# [4.9.0-dev.1](v4.8.1...v4.9.0-dev.1) (2024-06-02)

### Bug Fixes

* **3rd-party Reddit apps:** Spoof user agent to work around Reddit API issues ([ReVanced#3253](https://github.com/zainarbani/revanced-patches/issues/3253)) ([495e6d6](495e6d6))
* **Reddit - Hide ads:** Constrain to last working version 2024.17.0 ([ReVanced#3192](https://github.com/zainarbani/revanced-patches/issues/3192)) ([4fb3456](4fb3456))
* **YouTube - Client spoof:** Spoof iOS client model to fix various side effects ([ReVanced#3220](https://github.com/zainarbani/revanced-patches/issues/3220)) ([9b5f4ce](9b5f4ce))
* **YouTube - Spoof client:** Allow swipe gestures to enter/exit fullscreen when spoofing with `Android VR` client ([ReVanced#3259](https://github.com/zainarbani/revanced-patches/issues/3259)) ([5114900](5114900))
* **YouTube - Spoof client:** Clarify that only enter/exit fullscreen gesture does not work with Android VR spoof ([ReVanced#3243](https://github.com/zainarbani/revanced-patches/issues/3243)) ([06d8f55](06d8f55))
* **YouTube - Spoof client:** Improve Android spoofing ([ReVanced#3230](https://github.com/zainarbani/revanced-patches/issues/3230)) ([b688923](b688923))
* **yt:** test ([0aa0461](0aa0461))

### Features

* **Messenger:** Add `Hide inbox subtabs` patch ([ReVanced#3163](https://github.com/zainarbani/revanced-patches/issues/3163)) ([24e4ebd](24e4ebd))
* **YouTube - Hide layout components:** Disable like / subscribe button glow animation ([ReVanced#3265](https://github.com/zainarbani/revanced-patches/issues/3265)) ([68d35ea](68d35ea))
* **YouTube Music:** Support version `7.03` ([ReVanced#3272](https://github.com/zainarbani/revanced-patches/issues/3272)) ([d1ceca3](d1ceca3))
* **YouTube:** Support version `19.12`, `19.13`, `19.14`, `19.15` and `19.16` ([ReVanced#3239](https://github.com/zainarbani/revanced-patches/issues/3239)) ([99b07e0](99b07e0))
revanced-bot pushed a commit that referenced this pull request Jun 2, 2024
# [4.9.0](v4.8.3...v4.9.0) (2024-06-02)

### Bug Fixes

* **YouTube - Spoof client:** Allow swipe gestures to enter/exit fullscreen when spoofing with `Android VR` client ([#3259](#3259)) ([5114900](5114900))
* **YouTube - Spoof client:** Restore playback speed menu when spoofing to an iOS client ([95f290f](95f290f))

### Features

* **Messenger:** Add `Hide inbox subtabs` patch ([#3163](#3163)) ([24e4ebd](24e4ebd))
* **YouTube - Hide layout components:** Disable like / subscribe button glow animation ([#3265](#3265)) ([68d35ea](68d35ea))
* **YouTube - Playback speed:** Add option to show speed dialog button in video player ([#3197](#3197)) ([ad00305](ad00305))
* **YouTube Music:** Support version `7.03` ([#3272](#3272)) ([d1ceca3](d1ceca3))
* **YouTube:** Support version `19.12`, `19.13`, `19.14`, `19.15` and `19.16` ([#3239](#3239)) ([99b07e0](99b07e0))
E85Addict pushed a commit to E85Addict/revanced-patches that referenced this pull request Jun 2, 2024
# [4.9.0](v4.8.3...v4.9.0) (2024-06-02)

### Bug Fixes

* **YouTube - Spoof client:** Allow swipe gestures to enter/exit fullscreen when spoofing with `Android VR` client ([ReVanced#3259](https://github.com/E85Addict/revanced-patches/issues/3259)) ([5114900](5114900))
* **YouTube - Spoof client:** Restore playback speed menu when spoofing to an iOS client ([95f290f](95f290f))

### Features

* **Messenger:** Add `Hide inbox subtabs` patch ([ReVanced#3163](https://github.com/E85Addict/revanced-patches/issues/3163)) ([24e4ebd](24e4ebd))
* **YouTube - Hide layout components:** Disable like / subscribe button glow animation ([ReVanced#3265](https://github.com/E85Addict/revanced-patches/issues/3265)) ([68d35ea](68d35ea))
* **YouTube - Playback speed:** Add option to show speed dialog button in video player ([ReVanced#3197](https://github.com/E85Addict/revanced-patches/issues/3197)) ([ad00305](ad00305))
* **YouTube Music:** Support version `7.03` ([ReVanced#3272](https://github.com/E85Addict/revanced-patches/issues/3272)) ([d1ceca3](d1ceca3))
* **YouTube:** Support version `19.12`, `19.13`, `19.14`, `19.15` and `19.16` ([ReVanced#3239](https://github.com/E85Addict/revanced-patches/issues/3239)) ([99b07e0](99b07e0))

### Performance Improvements

* Personal Logo && Add upstream sync ([e9d6554](e9d6554))
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

Successfully merging this pull request may close these issues.

None yet

3 participants