-
-
Notifications
You must be signed in to change notification settings - Fork 233
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(Google News): Add Enable CustomTabs
and GmsCore support
patch
#3111
base: dev
Are you sure you want to change the base?
Conversation
depends on this pullrequest in revanced-integrations: otherwise i get an error in the onCreate method of StartActivity |
...in/kotlin/app/revanced/patches/magazines/customtabs/fingerprints/UseCustomTabsFingerprint.kt
Outdated
Show resolved
Hide resolved
...in/kotlin/app/revanced/patches/magazines/customtabs/fingerprints/UseCustomTabsFingerprint.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/app/revanced/patches/magazines/misc/gms/ClientSpoofPatch.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/app/revanced/patches/magazines/misc/gms/ClientSpoofPatch.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/app/revanced/patches/magazines/misc/gms/ClientSpoofPatch.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/app/revanced/patches/magazines/misc/gms/GmsCoreSupportPatch.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/app/revanced/patches/magazines/misc/gms/GmsCoreSupportPatch.kt
Outdated
Show resolved
Hide resolved
...pp/revanced/patches/magazines/misc/integrations/fingerprints/StartActivityInitFingerprint.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/app/revanced/patches/shared/misc/gms/BaseGmsCoreSupportPatch.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/app/revanced/patches/magazines/customtabs/UseCustomTabs.kt
Outdated
Show resolved
Hide resolved
...in/kotlin/app/revanced/patches/magazines/customtabs/fingerprints/UseCustomTabsFingerprint.kt
Outdated
Show resolved
Hide resolved
...in/kotlin/app/revanced/patches/magazines/customtabs/fingerprints/UseCustomTabsFingerprint.kt
Outdated
Show resolved
Hide resolved
.../kotlin/app/revanced/patches/magazines/misc/gms/fingerprints/GooglePlayUtilityFingerprint.kt
Outdated
Show resolved
Hide resolved
...pp/revanced/patches/magazines/misc/integrations/fingerprints/StartActivityInitFingerprint.kt
Outdated
Show resolved
Hide resolved
...pp/revanced/patches/magazines/misc/integrations/fingerprints/StartActivityInitFingerprint.kt
Outdated
Show resolved
Hide resolved
...pp/revanced/patches/magazines/misc/integrations/fingerprints/StartActivityInitFingerprint.kt
Outdated
Show resolved
Hide resolved
@benjy3gg Is this PR still active? |
@Patch(requiresIntegrations = true) | ||
object IntegrationsPatch : BaseIntegrationsPatch( | ||
setOf( | ||
StartActivityInitFingerprint |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are there any other exported activities that can be launched? Because if so, they should be added here because if they are launched, context would not be hooked.
Enable CustomTabs
and GmsCore support
patch
The GmsCore patch crashes the app.
changing register to v2 in this line of the decompiled patched app fixes the crash invoke-static/range {v3 .. v3}, Lapp/revanced/integrations/shared/Utils;->setContext(Landroid/content/Context;)V |
This Patch implements CustomTabs in Google News (com.google.android.apps.magazines).
This sets a flag that is otherwise false to true -> Instead of opening articles in ChromeWebView it uses the Default Browser
This also implements Basic GMSCore Support.
Login and Logout works.
Clicking on "Manager your Google Account" doesn't open the GMSCore settings -> same problem as in Youtube.