Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
Update MicroGPatch
Browse files Browse the repository at this point in the history
  • Loading branch information
YT-Advanced authored Mar 27, 2024
1 parent 32dad88 commit 8f0aba6
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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) {
Expand Down

0 comments on commit 8f0aba6

Please sign in to comment.