fix(GmsCore support): prompt to disable battery optimizations, if not done already

This commit is contained in:
inotia00
2024-04-20 23:38:45 +09:00
parent 844c295904
commit 4fe5ea9fce
3 changed files with 24 additions and 11 deletions

View File

@ -107,7 +107,7 @@ abstract class BaseGmsCoreSupportPatch(
mainActivityOnCreateFingerprint.resultOrThrow().mutableMethod.addInstructions(
1, // Hack to not disturb other patches (such as the YTMusic integrations patch).
"invoke-static/range { p0 .. p0 }, $INTEGRATIONS_PATH/patches/GmsCoreSupport;->" +
"checkGmsCore(Landroid/content/Context;)V",
"checkGmsCore(Landroid/app/Activity;)V",
)
// Change the vendor of GmsCore in ReVanced Integrations.