@echo off cls echo ================================================================================ echo INSTALL MICROG (Open Source Google Play Services) echo This will allow Canada Post app to work without official Google Play echo ================================================================================ echo. echo [1/4] Downloading MicroG APKs... echo. REM Latest version: v0.3.10.250932 (October 2024) set GMSCORE_URL=https://github.com/microg/GmsCore/releases/download/v0.3.10.250932/com.google.android.gms-250932020.apk set VENDING_URL=https://github.com/microg/GmsCore/releases/download/v0.3.10.250932/com.android.vending-84022620.apk echo Downloading GmsCore (microG core - 40MB)... powershell -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest -Uri '%GMSCORE_URL%' -OutFile 'GmsCore.apk' -UserAgent 'Mozilla/5.0 (Windows NT 10.0; Win64; x64)'" if errorlevel 1 ( echo ERROR: Failed to download GmsCore. Check internet connection. pause exit /b 1 ) echo Downloading FakeStore (Play Store stub - 140KB)... powershell -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest -Uri '%VENDING_URL%' -OutFile 'FakeStore.apk' -UserAgent 'Mozilla/5.0 (Windows NT 10.0; Win64; x64)'" if errorlevel 1 ( echo ERROR: Failed to download FakeStore. Check internet connection. pause exit /b 1 ) echo. echo Downloads complete! echo. echo [2/4] Installing MicroG Core... adb install -r GmsCore.apk if errorlevel 1 ( echo ERROR: Failed to install GmsCore. Is the device connected? pause exit /b 1 ) echo. echo [3/4] Installing Fake Store... adb install -r FakeStore.apk if errorlevel 1 ( echo ERROR: Failed to install FakeStore. pause exit /b 1 ) echo. echo [4/4] Granting permissions to MicroG... adb shell pm grant com.google.android.gms android.permission.ACCESS_FINE_LOCATION adb shell pm grant com.google.android.gms android.permission.ACCESS_COARSE_LOCATION adb shell pm grant com.google.android.gms android.permission.READ_PHONE_STATE adb shell pm grant com.google.android.gms android.permission.GET_ACCOUNTS echo Permissions granted. echo. echo ================================================================================ echo MICROG INSTALLED SUCCESSFULLY! echo ================================================================================ echo. echo Version: v0.3.10.250932 (October 2024) echo. echo IMPORTANT NEXT STEPS: echo. echo 1. Open "microG Settings" app on the device echo (Look for "Google Services Framework" or "microG" in app drawer) echo. echo 2. Go to "Self-Check" and grant any missing permissions echo. echo 3. Enable "Google device registration" in Settings echo. echo 4. Restart Canada Post app with Frida: echo frida -U -f com.canadapost.android -l frida_universal_bypass.js echo. echo The app should now launch without Google Play Services errors! echo ================================================================================ echo. pause