From 8f0aba6619a170636bf5d42fa82eb4d1be36e58a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ho=C3=A0ng=20Gia=20B=E1=BA=A3o?= <70064328+YT-Advanced@users.noreply.github.com> Date: Wed, 27 Mar 2024 19:27:02 +0700 Subject: [PATCH] Update MicroGPatch --- .../integrations/music/patches/utils/MicroGPatch.java | 8 -------- 1 file changed, 8 deletions(-) diff --git a/app/src/main/java/app/revanced/integrations/music/patches/utils/MicroGPatch.java b/app/src/main/java/app/revanced/integrations/music/patches/utils/MicroGPatch.java index 9f8a023d2e..4846c3b876 100644 --- a/app/src/main/java/app/revanced/integrations/music/patches/utils/MicroGPatch.java +++ b/app/src/main/java/app/revanced/integrations/music/patches/utils/MicroGPatch.java @@ -20,7 +20,6 @@ public class MicroGPatch { private static final String MICROG_PACKAGE_NAME = MICROG_VENDOR + ".android.gms"; private static final String MICROG_DOWNLOAD_LINK = "https://github.com/YT-Advanced/GmsCore/releases/latest"; private static final Uri MICROG_PROVIDER = Uri.parse("content://" + MICROG_VENDOR + ".android.gsf.gservices/prefix"); - private static final String YOUTUBE_MUSIC_PACKAGE_NAME = "com.google.android.apps.youtube.music"; private static void startIntent(Context context, String uriString, String... message) { for (String string : message) { @@ -35,13 +34,6 @@ private static void startIntent(Context context, String uriString, String... mes } public static void checkAvailability(@NonNull Context context) { - try { - context.getPackageManager().getPackageInfo(YOUTUBE_MUSIC_PACKAGE_NAME, PackageManager.GET_META_DATA); - } catch (PackageManager.NameNotFoundException exception) { - LogHelper.printInfo(() -> "Stock YouTube Music was not found", exception); - ReVancedUtils.showToastLong("Please install Stock YouTube Music from Play Store"); - } - try { context.getPackageManager().getPackageInfo(MICROG_PACKAGE_NAME, PackageManager.GET_ACTIVITIES); } catch (PackageManager.NameNotFoundException exception) {