Perlindungan integritas untuk Google Play Game di PC
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Google Play Game di PC mendukung perlindungan integritas melalui Play
Integrity API dan beberapa fitur Google Play lainnya untuk membantu memastikan
game Anda tidak dimodifikasi atau diinstal dari sumber yang tidak tepercaya.
Play Integrity API
Play Integrity API membantu melindungi
game Anda dari interaksi yang berpotensi berisiko dan menipu. API
memungkinkan Anda mengurangi serangan dan penyalahgunaan seperti
penipuan, kecurangan, dan akses tanpa izin. Play Integrity API menggantikan
SafetyNet Attestation API (SNAA) dan Play App Licencing API.
SNAA tidak berfungsi dengan Google Play Game di PC.
Kolom Integritas Perangkat
Kolom
deviceRecognitionVerdict
berisi satu nilai, deviceRecognitionVerdict,
yang menunjukkan seberapa baik perangkat dapat menerapkan integritas aplikasi. Secara default,
deviceRecognitionVerdict dapat memiliki salah satu nilai berikut:
MEETS_DEVICE_INTEGRITY: Aplikasi berjalan di perangkat yang didukung Android
dengan
layanan Google Play. Perangkat lulus pemeriksaan integritas sistem dan memenuhi
persyaratan kompatibilitas Android.
MEETS_VIRTUAL_INTEGRITY: Aplikasi berjalan di lingkungan Android virtual
dengan layanan Google Play, yang saat ini terbatas untuk
Google Play Game di PC. Lingkungan ini memenuhi persyaratan kompatibilitas Android inti
dan lulus pemeriksaan integritas Google Play.
Tidak ada (nilai kosong): Aplikasi berjalan pada perangkat yang
memiliki tanda serangan (seperti hooking API) atau penyusupan sistem (seperti
di-root), atau aplikasi sedang berjalan pada perangkat non-fisik (seperti
emulator) yang tidak lulus pemeriksaan integritas Google Play.
Play Integrity API menggunakan nilai deviceRecognitionVerdictMEETS_VIRTUAL_INTEGRITY untuk menunjukkan bahwa game berjalan di Google Play Game di PC. Berikut adalah contoh respons penerusan dari
Play Integrity API:
deviceIntegrity:{// "MEETS_VIRTUAL_INTEGRITY" indicates the game is running on Google Play Games on PCdeviceRecognitionVerdict:["MEETS_VIRTUAL_INTEGRITY"]}
Jika Anda memiliki game lintas platform yang tersedia di perangkat seluler dan
Google Play Game di PC, pastikan
logika validasi Anda memeriksa MEETS_VIRTUAL_INTEGRITY dan
MEETS_DEVICE_INTEGRITY.
Perlindungan otomatis
Perlindungan otomatis Google Play adalah layanan
yang membantu Anda melindungi game dari pembajakan dan
pendistribusian ulang yang tidak sah. Jika pengguna mendapatkan aplikasi Anda yang dilindungi dari saluran
distribusi yang tidak dikenal, mereka akan diminta untuk mendapatkan aplikasi resmi Anda dari
Google Play. Perlindungan otomatis berfungsi di aplikasi Anda tanpa koneksi
data. Fitur ini dapat diaktifkan dengan sekali klik di
Konsol Play, dan tidak memerlukan pekerjaan developer sebelum pengujian dan tanpa
integrasi server backend. Perlindungan otomatis dapat menambahkan fitur
berikut ke game Anda:
Pemeriksaan penginstal: Perlindungan otomatis dapat menambahkan pemeriksaan penginstal
Google Play ke kode aplikasi Anda yang terjadi saat runtime saat aplikasi
dibuka. Jika tidak lolos pemeriksaan penginstal, pengguna akan diminta untuk mendapatkan
aplikasi Anda di Google Play.
Perlindungan anti-modifikasi(fitur ini hanya tersedia untuk partner Play tertentu):
Perlindungan otomatis dapat menambahkan pemeriksaan runtime ke kode aplikasi Anda untuk mendeteksi
modifikasi dan menggunakan teknik obfuscation lanjutan untuk mencegah pemeriksaan
dihapus atau direkayasa balik. Jika pemeriksaan gagal, pengguna
akan diminta untuk mendapatkan aplikasi Anda di Google Play atau aplikasi tidak akan berjalan.
Konten dan contoh kode di halaman ini tunduk kepada lisensi yang dijelaskan dalam Lisensi Konten. Java dan OpenJDK adalah merek dagang atau merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-27 UTC.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-07-27 UTC."],[],[],null,["# Integrity protection for Google Play Games on PC\n\nGoogle Play Games on PC supports integrity protection through the Play\nIntegrity API and several other Google Play features to help ensure that\nyour game hasn't been tampered with or installed from an untrustworthy source.\n\nPlay Integrity API\n------------------\n\nThe [Play Integrity API](/google/play/integrity) helps protect your\ngames from potentially risky and fraudulent interactions. The API\nenables you to reduce attacks and abuse such as\nfraud, cheating, and unauthorized access. The\n[Play Integrity API](/google/play/integrity) replaces the\nSafetyNet Attestation API (SNAA) and Play App Licencing API.\nSNAA does not work with Google Play Games on PC.\n\n### Device Integrity Field\n\nThe\n[`deviceRecognitionVerdict`](/google/play/integrity/verdict#device-integrity-field)\nfield contains a single value, `deviceRecognitionVerdict`,\nthat represents how well a device can enforce app integrity. By default,\n`deviceRecognitionVerdict` can have one of these values:\n\n- `MEETS_DEVICE_INTEGRITY`: The app is running on an Android-powered device with Google Play services. The device passes system integrity checks and meets Android compatibility requirements.\n- `MEETS_VIRTUAL_INTEGRITY`: The app is running in a virtual Android environment with Google Play services, currently limited to Google Play Games on PC. The environment meets core Android compatibility requirements and passes Google Play integrity checks.\n- None (a blank value): The app is running on a device that has signs of attack (such as API hooking) or system compromise (such as being rooted), or the app is running on a non-physical device (such as an emulator) that does not pass Google Play integrity checks.\n\nThe Play Integrity API uses the `deviceRecognitionVerdict` value\n`MEETS_VIRTUAL_INTEGRITY` to indicate that the game is running on Google Play Games on PC. Here's an example of a passing response from\nthe Play Integrity API: \n\n deviceIntegrity: {\n // \"MEETS_VIRTUAL_INTEGRITY\" indicates the game is running on Google Play Games on PC\n deviceRecognitionVerdict: [\"MEETS_VIRTUAL_INTEGRITY\"]\n }\n\nIf you have a cross-platform game available on both mobile and\nGoogle Play Games on PC, make sure your\nvalidation logic checks for both `MEETS_VIRTUAL_INTEGRITY` and\n`MEETS_DEVICE_INTEGRITY`.\n\nAutomatic protection\n--------------------\n\nGoogle Play's [automatic protection](https://support.google.com/googleplay/android-developer/answer/10183279) is a service\nthat helps you protect your game against unauthorized redistribution and\npiracy. When users get your protected app from an unknown distribution\nchannel, they'll be prompted to get your official app from\nGoogle Play. Automatic protection works in your app without a data\nconnection. It can be turned on with one click in the\nPlay Console, and requires no developer work before testing and no\nbackend server integration. Automatic protection can add the following\nfeatures to your game:\n\n- **Installer checks**: Automatic protection can add Google Play installer checks to your app's code that happen at runtime when your app is opened. If the installer checks fail, users will be prompted to get your app on Google Play.\n- **Anti-tamper protection** **(this feature is only available to selected Play partners)**: Automatic protection can add runtime checks to your app's code to detect modification and use advanced obfuscation techniques to prevent the checks from being removed or reverse engineered. If the checks fail, the user will be prompted to get your app on Google Play or the app will not run.\n\nAutomatic protection requires no code changes or developer work before\ntesting. Learn more about\n[automatic protection in the Play Console help center](https://support.google.com/googleplay/android-developer/answer/10183279)."]]