revanced-manager/lib/utils/check_for_gms.dart

11 lines
329 B
Dart
Raw Normal View History

2022-10-11 16:49:50 +02:00
// Check for google mobile services on device
import 'package:device_apps/device_apps.dart';
Future<bool> checkForGMS() async {
bool isGMSInstalled = true;
isGMSInstalled = await DeviceApps.isAppInstalled('com.google.android.gms') ||
await DeviceApps.isAppInstalled('com.android.vending');
return isGMSInstalled;
}