From 8e86d9e6cb6b036af8747c7ac25e5cdf18fa5863 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Sat, 18 Jun 2022 17:49:17 +0200 Subject: [PATCH] refactor: improve `microg-support` reference patches --- .../youtube/misc/microg/patch/bytecode/MicroGBytecodePatch.kt | 2 -- .../youtube/misc/microg/patch/resource/MicroGResourcePatch.kt | 4 ---- 2 files changed, 6 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/microg/patch/bytecode/MicroGBytecodePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/microg/patch/bytecode/MicroGBytecodePatch.kt index d1d1d8cb..f1a5f872 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/microg/patch/bytecode/MicroGBytecodePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/microg/patch/bytecode/MicroGBytecodePatch.kt @@ -65,13 +65,11 @@ class MicroGBytecodePatch : BytecodePatch( val replaceMode = if (stringValue.equalsAny( "com.google.android.gms", - "com.google.android.youtube.fileprovider", "com.google.android.c2dm.intent.REGISTER", "com.google.android.c2dm.permission.SEND", "com.google.iid.TOKEN_REQUEST", "com.google", "com.google.android.gms.auth.accounts", - "com.google.android.youtube.SuggestionProvider", "com.google.android.c2dm.intent.REGISTRATION", "com.google.android.gsf.action.GET_GLS", "com.google.android.gsf.login", diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/microg/patch/resource/MicroGResourcePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/microg/patch/resource/MicroGResourcePatch.kt index b99a6273..5636f7ff 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/microg/patch/resource/MicroGResourcePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/microg/patch/resource/MicroGResourcePatch.kt @@ -39,10 +39,6 @@ class MicroGResourcePatch : ResourcePatch() { "android:label=\"@string/application_name", "android:label=\"$REVANCED_APP_NAME" ).replace( "android:authorities=\"com.google.android.youtube", "android:authorities=\"$REVANCED_PACKAGE_NAME" - ).replace( - "com.google.android.youtube.fileprovider", "$REVANCED_PACKAGE_NAME.fileprovider" - ).replace( - "com.google.android.youtube.SuggestionProvider", "$REVANCED_PACKAGE_NAME.SuggestionProvider" ).replace( "com.google.android.youtube.permission.C2D_MESSAGE", "$REVANCED_PACKAGE_NAME.permission.C2D_MESSAGE" ).replace( // TODO: might not be needed