From 4631982d427d454eac953b7f5456eef52237a6cd Mon Sep 17 00:00:00 2001 From: Alberto Ponces Date: Tue, 20 Sep 2022 10:04:02 +0100 Subject: [PATCH] fix: Use original packageName to get compatible patches --- lib/services/patcher_api.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/services/patcher_api.dart b/lib/services/patcher_api.dart index 4067caa2bd..cca088e047 100644 --- a/lib/services/patcher_api.dart +++ b/lib/services/patcher_api.dart @@ -70,10 +70,14 @@ class PatcherAPI { } Future> getFilteredPatches(String packageName) async { + String newPackageName = packageName.replaceFirst( + 'app.revanced.', + 'com.google.', + ); return _patches .where((patch) => !patch.name.contains('settings') && - patch.compatiblePackages.any((pack) => pack.name == packageName)) + patch.compatiblePackages.any((pack) => pack.name == newPackageName)) .toList(); }