Skip to content

Commit

Permalink
Drop not needed and not working functionality
Browse files Browse the repository at this point in the history
Signed-off-by: Patryk Miś <foss@patrykmis.com>
  • Loading branch information
PatrykMis committed Mar 25, 2024
1 parent d392275 commit 6767754
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@ public class PackageManagerUtils {
public static final String TALKBACK_SERVICE_NAME =
"com.google.android.marvin.talkback.TalkBackService";

/** gmscore-package-name constants */
private static final String GMSCORE_PACKAGE_NAME = "com.google.android.gms";

private static final int MIN_GMSCORE_VERSION = 9200000; // Version should be at least V4.

/** Returns the package version code. */
public static long getVersionCode(Context context) {
return getVersionCodeCompat(context, context.getPackageName());
Expand Down Expand Up @@ -96,7 +91,7 @@ public static boolean hasPackage(Context context, String packageName) {

/** Returns {@code true} if the platform has GMS core package */
public static boolean hasGmsCorePackage(Context context) {
return hasPackage(context, GMSCORE_PACKAGE_NAME);
return false;
}

/** Returns {@code true} if the package is Talkback package */
Expand All @@ -106,7 +101,7 @@ public static boolean isTalkBackPackage(@Nullable CharSequence packageName) {

/** Returns {@code true} if the package supports help and feedback. */
public static boolean supportsHelpAndFeedback(Context context) {
return getVersionCodeCompat(context, GMSCORE_PACKAGE_NAME) > MIN_GMSCORE_VERSION;
return false;
}

private static @Nullable PackageInfo getPackageInfo(Context context, CharSequence packageName) {
Expand Down

0 comments on commit 6767754

Please sign in to comment.