Add spoofVendingSdk to force legacy verdicts from new PI #30
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds the
spoofVendingSdk
advanced option to custom.pif.json which, when enabled, spoofs the build SDK level for Play Store (com.android.vending). It is disabled by default.When
spoofVendingSdk
is set to 1, PIFork spoofs SDK level 32 for Play Store. Values higher than 1 will spoof that SDK level. PIFork will not spoof an SDK level higher than device's real one as this is likely to cause instability.Additionally, killgms.sh has been replaced with killpi.sh which stops both DroidGuard and Play Store processes. Stopping both processes is necessary to see changes to new Play Integrity verdicts.
Context
Play Integrity verdicts are changing in May 2025 for devices running Android 13 and later, and will require a locked bootloader for MEETS_DEVICE_INTEGRITY. The new Play Integrity system uses signals from both DroidGuard and Play Store. When Play Store sees an SDK level less than 33, Play Integrity returns the legacy (pre-Android 13) verdicts. This spoofing feature may help in getting MEETS_DEVICE_INTEGRITY verdicts when the bootloader is unlocked.
Known Issues
Devices will experience degraded functionality in Play Store when this feature is enabled:
We're investigating ways to rectify this.