[BEGIN]
Patch for Sync v20+
Created by hacker2048

This patch disables ads.
Some specific versions are unsupported. See the patch data for details.

Patch group 3 is only required for APK rebuilds with an unoriginal signature.
The app may be unstable when resigned, though, so doing this is unsupported.
[PACKAGE]
[CLASSES]

// LEGACY PATCHES - v22.4 and older

{"group":"1"}
{"apk_build":"1558-"}
{"apk_build":"1288+"} // Always write false <adsEnabled> and "failedToValidate" values to the shared preferences.
{"original":"1A ?? ?? ?? 71 ?? ?? ?? ?? ?? 0C ?? 72 ?? ?? ?? ?? ?? 0C ?? 62 ?? ?? ?? 12 ?? 72 ?? ?? ?? ?? ?? 1A ?? ?? ?? 72 ?? ?? ?? ?? ?? 72 ?? ?? ?? ?? ?? 0E ??"}
{"replaced":"?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? -16 ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??"}

{"apk_build":"1280-"} // Always write false "adsEnabled" and "failedToValidate" values to the shared preferences. (class m3.m0 in build 960)
{"original":"1A ?? ?? ?? 71 ?? ?? ?? ?? ?? 0C ?? 72 ?? ?? ?? ?? ?? 0C ?? 1A ?? ?? ?? 12 ?? 72 ?? ?? ?? ?? ?? 1A ?? ?? ?? 72 ?? ?? ?? ?? ?? 72 ?? ?? ?? ?? ?? 0E ??"}
{"replaced":"?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? -16 ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??"}

{"group":"2"}
{"apk_build":"1558-"}
{"apk_build":"1288+"} // Act as if there's no network connection, and don't even check <adsEnabled> in the "SyncIAPHelper".
{"original":"71 ?? ?? ?? ?? ?? 0A ?? 39 ?? ?? ?? 12 ?? 0F ?? 1A ?? ?? ?? 71 ?? ?? ?? ?? ?? 0C ?? 62 ?? ?? ?? 12 ?? 72 ?? ?? ?? ?? ?? 0A ?? 0F ??"}
{"replaced":"?? ?? ?? ?? ?? ?? 12 ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??"}

{"apk_build":"1280-"} // Act as if there's no network connection, and don't even check "adsEnabled" in the "SyncIAPHelper". (class m3.m0 in build 960)
{"original":"71 ?? ?? ?? ?? ?? 0A ?? 39 ?? ?? ?? 12 ?? 0F ?? 1A ?? ?? ?? 71 ?? ?? ?? ?? ?? 0C ?? 12 ?? 1A ?? ?? ?? 72 ?? ?? ?? ?? ?? 0A ?? 0F ??"}
{"replaced":"?? ?? ?? ?? ?? ?? 12 ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??"}

// {"group":"3"}
// {"apk_build":"1280-"} // Act as if there's no network connection, and skip the piracy checker initialization. (This has the side effect of calling `Log.d("checker", "Offline, skipping checker")`.)
// {"original":"71 ?? ?? ?? ?? ?? 0A ?? 39 ?? ?? ?? 1A ?? ?? ?? 1A ?? ?? ?? 71 ?? ?? ?? ?? ?? 6E ?? ?? ?? ?? ?? 0E ?? 22 ?? ?? ?? 70 ?? ?? ?? ?? ?? 6E ?? ?? ?? ?? ?? 0C ??"}
// {"replaced":"?? ?? ?? ?? ?? ?? 12 ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??"}

{"group":"3"}
{"apk_build":"1280-"} // Replace the calls to enable various piracy checks (documented here: https://github.com/javiersantos/PiracyChecker#usage) with nops. One of the piracy checks involves a base64 representation of the app's expected APK signature: "V87ApIPNBXYlwkgxLTxP90bCpxM=".
{"original":"1A ?? ?? ?? 6E ?? ?? ?? ?? ?? 54 ?? ?? ?? 1A ?? ?? ?? 6E ?? ?? ?? ?? ?? 54 ?? ?? ?? 12 ?? 23 ?? ?? ?? 12 ?? 62 ?? ?? ?? 4D ?? ?? ?? 6E ?? ?? ?? ?? ??"}
{"replaced":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"}

// MODERN PATCHES - v22.5 and newer

{"group":"4"}
{"apk_build":"1559+"} // Always return false in the ads enabled check in SyncIAPHelper. (String used in log statement in relevant function: "ADS ENABLED ID:".)
{"original":"22 ?? ?? ?? 70 ?? ?? ?? ?? ?? 1A ?? ?? ?? 6E ?? ?? ?? ?? ?? 71 ?? ?? ?? ?? ?? 0C ?? 6E ?? ?? ?? ?? ?? 6E ?? ?? ?? ?? ?? 0C ?? 71 ?? ?? ?? ?? ?? 1A ?? ?? ?? 71 ?? ?? ?? ?? ?? 0C ?? 71 ?? ?? ?? ?? ?? 0C ?? 72 ?? ?? ?? ?? ?? 0A ?? DF ??  ?? ?? 0F ??"}
{"replaced":"?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? 12 ?? 00 00 ?? ??"}

[END]
App patched. Enjoy!