[
  {
    "path": ".gitignore",
    "content": "# Gradle files\n.gradle/\nbuild/\n\n# Local configuration file (sdk path, etc)\nlocal.properties\n\n# Log/OS Files\n*.log\n\n# Android Studio generated files and folders\ncaptures/\n.externalNativeBuild/\n.cxx/\n*.apk\noutput.json\n\n# IntelliJ\n*.iml\n.idea/\nmisc.xml\ndeploymentTargetDropDown.xml\nrender.experimental.xml\n\n# Keystore files\n*.jks\n*.keystore\n\n# Android Profiling\n*.hprof\n\n# Mac OS\n.DS_Store"
  },
  {
    "path": "LICENSE",
    "content": "MIT License\n\nCopyright (c) 2022 Nikolas Spiridakis\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
  },
  {
    "path": "README.md",
    "content": "<img src=\"https://github.com/1nikolas/play-integrity-checker-app/raw/main/app/src/main/ic_launcher-playstore.png\" width=\"96\" align=\"right\" />\n\n# Play Integrity API Checker\n\nGet info about your Device Integrity through the Play Integrity API\n     \n[<img src=\"https://play.google.com/intl/en_us/badges/images/generic/en-play-badge.png\"\n     alt=\"Get it on Google Play\"\n     height=\"80\">](https://play.google.com/store/apps/details?id=gr.nikolasspyr.integritycheck)\n\n> [!WARNING]\n> If you don't install the app from Play Store and sideload it, you might not get the `MEETS_BASIC_INTEGRITY` and `MEETS_STRONG_INTEGRITY` results.\n\n> [!WARNING]\n> If you want to implement the Play Integrity API in your app you shouldn't do it this way. The API server should not send the whole JSON to the app, only a yes/no. Also ideally you should pair the integrity request with another one (for example login). That way your API won't let the user proceed without a valid Integrity token that passes integrity checks (even if your app is reverse engineered).\n\n## Setup\nIn order to run this yourself you'll need:\n1) The [Play Integrity Checker Server](https://github.com/1nikolas/play-integrity-checker-server)\n2) Your server url specified in `local.properties` like this:\n```\nAPI_URL=https://my-awesome-server-url.com\n```\n3) The app to be on Play Store (otherwise you won't have access to `MEETS_BASIC_INTEGRITY` and `MEETS_STRONG_INTEGRITY`)\n4) Play Integrity linked to a Google Cloud project through the Play Console with `MEETS_BASIC_INTEGRITY` and `MEETS_STRONG_INTEGRITY` enabled\n\n![](https://user-images.githubusercontent.com/30593419/180609045-fe0da305-24d9-4ffb-a44d-4294a759c787.png)\n\nTo set up your Google Cloud project see [here](https://github.com/1nikolas/play-integrity-checker-server#how-to-set-up-google-cloud)\n\n## License\n\nMIT License\n\n```\nCopyright (c) 2022 Nikolas Spiridakis\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n"
  },
  {
    "path": "app/.gitignore",
    "content": "/build\n/release\n"
  },
  {
    "path": "app/build.gradle",
    "content": "plugins {\n    id 'com.android.application'\n}\n\nandroid {\n\n    defaultConfig {\n        applicationId \"gr.nikolasspyr.integritycheck\"\n\n        minSdkVersion 21\n        targetSdkVersion 36\n        compileSdk = 36\n\n        versionCode 22\n        versionName \"2.2\"\n\n        testInstrumentationRunner \"androidx.test.runner.AndroidJUnitRunner\"\n\n        //Get variables from local.properties\n        Properties properties = new Properties()\n        properties.load(project.rootProject.file('local.properties').newDataInputStream())\n        buildConfigField \"String\", \"API_URL\", \"\\\"${properties.getProperty('API_URL')}\\\"\"\n    }\n\n    buildFeatures {\n        dataBinding = true\n        buildConfig = true\n    }\n\n    buildTypes {\n        release {\n            minifyEnabled true\n            shrinkResources = true\n            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'\n        }\n    }\n    compileOptions {\n        sourceCompatibility JavaVersion.VERSION_17\n        targetCompatibility JavaVersion.VERSION_17\n    }\n    namespace = 'gr.nikolasspyr.integritycheck'\n\n}\n\n\ndependencies {\n\n    implementation 'androidx.appcompat:appcompat:1.7.1'\n    implementation 'com.google.android.material:material:1.12.0'\n    implementation 'androidx.constraintlayout:constraintlayout:2.2.1'\n\n    implementation 'com.google.android.play:integrity:1.4.0'\n\n    implementation 'com.squareup.okhttp3:okhttp:4.12.0'\n}"
  },
  {
    "path": "app/proguard-rules.pro",
    "content": "# Add project specific ProGuard rules here.\n# You can control the set of applied configuration files using the\n# proguardFiles setting in build.gradle.\n#\n# For more details, see\n#   http://developer.android.com/guide/developing/tools/proguard.html\n\n# If your project uses WebView with JS, uncomment the following\n# and specify the fully qualified class name to the JavaScript interface\n# class:\n#-keepclassmembers class fqcn.of.javascript.interface.for.webview {\n#   public *;\n#}\n\n# Uncomment this to preserve the line number information for\n# debugging stack traces.\n#-keepattributes SourceFile,LineNumberTable\n\n# If you keep the line number information, uncomment this to\n# hide the original source file name.\n#-renamesourcefileattribute SourceFile"
  },
  {
    "path": "app/src/main/AndroidManifest.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:tools=\"http://schemas.android.com/tools\">\n\n    <uses-permission android:name=\"android.permission.INTERNET\" />\n\n    <application\n        android:allowBackup=\"true\"\n        android:dataExtractionRules=\"@xml/data_extraction_rules\"\n        android:fullBackupContent=\"@xml/backup_rules\"\n        android:icon=\"@mipmap/ic_launcher\"\n        android:label=\"@string/app_name\"\n        android:roundIcon=\"@mipmap/ic_launcher_round\"\n        android:supportsRtl=\"true\"\n        android:theme=\"@style/Theme.PlayIntegrityAPIChecker\"\n        tools:targetApi=\"31\">\n        <activity\n            android:name=\".MainActivity\"\n            android:label=\"@string/app_name_short\"\n            android:exported=\"true\">\n            <intent-filter>\n                <action android:name=\"android.intent.action.MAIN\" />\n                <category android:name=\"android.intent.category.LAUNCHER\" />\n            </intent-filter>\n        </activity>\n    </application>\n\n</manifest>"
  },
  {
    "path": "app/src/main/assets/licenses/Appcompat",
    "content": "Copyright (C) 2014 The Android Open Source Project\r\n\r\nhttps://developer.android.com/jetpack/androidx/releases/appcompat\r\n\r\nLicensed under the Apache License, Version 2.0 (the \"License\");\r\nyou may not use this file except in compliance with the License.\r\nYou may obtain a copy of the License at\r\n\r\nhttp://www.apache.org/licenses/LICENSE-2.0\r\n\r\nUnless required by applicable law or agreed to in writing, software\r\ndistributed under the License is distributed on an \"AS IS\" BASIS,\r\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\nSee the License for the specific language governing permissions and\r\nlimitations under the License."
  },
  {
    "path": "app/src/main/assets/licenses/Constraintlayout",
    "content": "Copyright (C) 2015 The Android Open Source Project\r\n\r\nhttps://developer.android.com/jetpack/androidx/releases/constraintlayout\r\n\r\nLicensed under the Apache License, Version 2.0 (the \"License\");\r\nyou may not use this file except in compliance with the License.\r\nYou may obtain a copy of the License at\r\n\r\nhttp://www.apache.org/licenses/LICENSE-2.0\r\n\r\nUnless required by applicable law or agreed to in writing, software\r\ndistributed under the License is distributed on an \"AS IS\" BASIS,\r\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\nSee the License for the specific language governing permissions and\r\nlimitations under the License."
  },
  {
    "path": "app/src/main/assets/licenses/Material Components for Android",
    "content": "Copyright 2018 Google LLC\r\n\r\nhttps://github.com/material-components/material-components-android\r\n\r\nLicensed under the Apache License, Version 2.0 (the \"License\");\r\nyou may not use this file except in compliance with the License.\r\nYou may obtain a copy of the License at\r\n\r\nhttp://www.apache.org/licenses/LICENSE-2.0\r\n\r\nUnless required by applicable law or agreed to in writing, software\r\ndistributed under the License is distributed on an \"AS IS\" BASIS,\r\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\nSee the License for the specific language governing permissions and\r\nlimitations under the License."
  },
  {
    "path": "app/src/main/assets/licenses/okhttp",
    "content": "Copyright 2019 Square, Inc.\r\n\r\nhttps://github.com/square/okhttp\r\n\r\nLicensed under the Apache License, Version 2.0 (the \"License\");\r\nyou may not use this file except in compliance with the License.\r\nYou may obtain a copy of the License at\r\n\r\nhttp://www.apache.org/licenses/LICENSE-2.0\r\n\r\nUnless required by applicable law or agreed to in writing, software\r\ndistributed under the License is distributed on an \"AS IS\" BASIS,\r\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\nSee the License for the specific language governing permissions and\r\nlimitations under the License."
  },
  {
    "path": "app/src/main/java/gr/nikolasspyr/integritycheck/MainActivity.java",
    "content": "package gr.nikolasspyr.integritycheck;\n\nimport android.content.ClipData;\nimport android.content.ClipboardManager;\nimport android.content.Context;\nimport android.graphics.Color;\nimport android.graphics.drawable.Animatable;\nimport android.graphics.drawable.Drawable;\nimport android.os.Build;\nimport android.os.Bundle;\nimport android.text.TextUtils;\nimport android.view.Menu;\nimport android.view.MenuItem;\nimport android.view.View;\nimport android.widget.ImageView;\nimport android.widget.TextView;\nimport android.widget.Toast;\n\nimport androidx.annotation.NonNull;\nimport androidx.appcompat.app.AlertDialog;\nimport androidx.appcompat.app.AppCompatActivity;\nimport androidx.appcompat.widget.Toolbar;\nimport androidx.constraintlayout.widget.Group;\nimport androidx.core.content.ContextCompat;\nimport androidx.core.graphics.Insets;\nimport androidx.core.view.ViewCompat;\nimport androidx.core.view.WindowInsetsCompat;\n\nimport com.google.android.gms.tasks.Task;\nimport com.google.android.material.button.MaterialButton;\nimport com.google.android.material.color.MaterialColors;\nimport com.google.android.material.dialog.MaterialAlertDialogBuilder;\nimport com.google.android.material.progressindicator.CircularProgressIndicator;\nimport com.google.android.play.core.integrity.IntegrityManager;\nimport com.google.android.play.core.integrity.IntegrityManagerFactory;\nimport com.google.android.play.core.integrity.IntegrityServiceException;\nimport com.google.android.play.core.integrity.IntegrityTokenRequest;\nimport com.google.android.play.core.integrity.IntegrityTokenResponse;\nimport com.google.android.play.core.integrity.model.IntegrityErrorCode;\n\nimport org.json.JSONObject;\n\nimport java.io.IOException;\nimport java.util.Locale;\n\nimport gr.nikolasspyr.integritycheck.dialogs.AboutDialog;\nimport okhttp3.Call;\nimport okhttp3.Callback;\nimport okhttp3.OkHttpClient;\nimport okhttp3.Request;\nimport okhttp3.Response;\nimport okhttp3.ResponseBody;\n\npublic class MainActivity extends AppCompatActivity {\n\n    private MaterialButton btn;\n    private ImageView deviceIntegrityIcon;\n    private ImageView basicIntegrityIcon;\n    private ImageView strongIntegrityIcon;\n    private ImageView virtualIntegrityIcon;\n\n    private Group virtualIntegrity;\n\n    private String jsonResponse;\n    private Integer[] integrityState = {-1, -1, -1, -1};\n\n    @Override\n    protected void onCreate(Bundle savedInstanceState) {\n        super.onCreate(savedInstanceState);\n        setContentView(R.layout.activity_main);\n\n        Toolbar toolbar = findViewById(R.id.toolbar);\n        setSupportActionBar(toolbar);\n\n        if (getSupportActionBar() != null) {\n            getSupportActionBar().setTitle(R.string.app_name);\n        }\n\n        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.VANILLA_ICE_CREAM) {\n            ViewCompat.setOnApplyWindowInsetsListener(\n                    findViewById(android.R.id.content),\n                    (view, insets) -> {\n                        Insets systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars());\n                        view.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom);\n                        return insets;\n                    }\n            );\n        }\n\n        btn = findViewById(R.id.check_btn);\n\n        basicIntegrityIcon = findViewById(R.id.basic_integrity_icon);\n        deviceIntegrityIcon = findViewById(R.id.device_integrity_icon);\n        strongIntegrityIcon = findViewById(R.id.strong_integrity_icon);\n        virtualIntegrityIcon = findViewById(R.id.virtual_integrity_icon);\n\n        virtualIntegrity = findViewById(R.id.virtual_integrity);\n\n        btn.setOnClickListener(view -> {\n            toggleButtonLoading(true);\n\n            jsonResponse = null;\n            integrityState = new Integer[]{-1, -1, -1, -1};\n            setIcons(integrityState);\n\n            getToken();\n        });\n    }\n\n    private void getToken() {\n        String nonce = generateNonce();\n\n        // Create an instance of a manager.\n        IntegrityManager integrityManager = IntegrityManagerFactory.create(getApplicationContext());\n\n        // Request the integrity token by providing a nonce.\n        Task<IntegrityTokenResponse> integrityTokenResponseTask = integrityManager.requestIntegrityToken(\n                IntegrityTokenRequest.builder()\n                        .setNonce(nonce)\n                        .build());\n\n        integrityTokenResponseTask.addOnSuccessListener(integrityTokenResponse -> sendTokenRequest(integrityTokenResponse.token()));\n\n        integrityTokenResponseTask.addOnFailureListener(e -> {\n            toggleButtonLoading(false);\n\n            String errorMessage;\n            if (e instanceof IntegrityServiceException) {\n                errorMessage = getErrorMessageText((IntegrityServiceException) e);\n            } else {\n                errorMessage = e.getMessage();\n            }\n\n            showErrorDialog(getString(R.string.token_error_title), errorMessage);\n        });\n    }\n\n    private void sendTokenRequest(String token) {\n        OkHttpClient client = new OkHttpClient();\n        Request request = new Request.Builder()\n                .get()\n                .url(BuildConfig.API_URL + \"/api/check?token=\" + token)\n                .build();\n\n        client.newCall(request).enqueue(new Callback() {\n            @Override\n            public void onFailure(@NonNull Call call, @NonNull IOException e) {\n                onRequestError(e.getMessage());\n            }\n\n            @Override\n            public void onResponse(@NonNull Call call, @NonNull Response response) throws IOException {\n                if (!response.isSuccessful()) {\n                    onRequestError(String.format(Locale.US, getString(R.string.server_api_error_status_code), response.code()));\n                    return;\n                }\n\n                ResponseBody responseBody = response.body();\n\n                if (responseBody == null) {\n                    onRequestError(getString(R.string.server_api_error_empty_res));\n                    return;\n                }\n\n                String responseBodyString = responseBody.string();\n\n                try {\n                    parseResponseJSON(responseBodyString);\n                } catch (Exception e) {\n                    onRequestError(e.getMessage());\n                }\n\n            }\n        });\n    }\n\n    private void onRequestError(String error) {\n        runOnUiThread(() -> {\n            showErrorDialog(getString(R.string.server_api_error_title), error);\n            toggleButtonLoading(false);\n        });\n    }\n\n    private void parseResponseJSON(String apiResponseJson) throws Exception {\n        JSONObject json = new JSONObject(apiResponseJson);\n\n        if (json.has(\"error\")) {\n            throw new Exception(json.getString(\"error\"));\n        }\n\n        JSONObject result;\n\n        if (json.has(\"deviceIntegrity\")) {\n            result = json.getJSONObject(\"deviceIntegrity\");\n            jsonResponse = json.toString(4);\n        } else {\n            result = new JSONObject();\n        }\n\n        if (result.has(\"deviceRecognitionVerdict\")) {\n            integrityState = parseValues(result.get(\"deviceRecognitionVerdict\").toString());\n\n        } else {\n            integrityState = parseValues(\"\");\n        }\n\n        runOnUiThread(() -> setIcons(integrityState));\n\n        runOnUiThread(() -> toggleButtonLoading(false));\n    }\n\n\n    private void toggleButtonLoading(boolean isLoading) {\n        setButtonLoading(btn, isLoading);\n        btn.setEnabled(!isLoading);\n    }\n\n    private Drawable getProgressBarDrawable(Context context) {\n        CircularProgressIndicator drawable = new CircularProgressIndicator(context);\n        drawable.setIndicatorSize(48);\n        drawable.setTrackThickness(5);\n        drawable.setIndicatorColor(MaterialColors.getColor(context, com.google.android.material.R.attr.colorSecondary, Color.BLUE));\n        drawable.setIndeterminate(true);\n        return drawable.getIndeterminateDrawable();\n    }\n\n    private void setButtonLoading(MaterialButton button, boolean loading) {\n        button.setMaxLines(1);\n        button.setEllipsize(TextUtils.TruncateAt.END);\n        button.setIconGravity(MaterialButton.ICON_GRAVITY_START);\n\n        if (loading) {\n            Drawable drawable = button.getIcon();\n            if (!(drawable instanceof Animatable)) {\n                drawable = getProgressBarDrawable(button.getContext());\n                if (drawable instanceof Animatable) {\n                    button.setIcon(drawable);\n                    ((Animatable) drawable).start();\n                }\n            }\n        } else {\n            button.setIcon(null);\n        }\n    }\n\n    private String generateNonce() {\n        int length = 50;\n        String nonce = \"\";\n        String allowed = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";\n        for (int i = 0; i < length; i++) {\n            nonce = nonce.concat(String.valueOf(allowed.charAt((int) Math.floor(Math.random() * allowed.length()))));\n        }\n        return nonce;\n    }\n\n    private void showErrorDialog(String title, String message) {\n        new MaterialAlertDialogBuilder(MainActivity.this, R.style.Theme_PlayIntegrityAPIChecker_Dialogs)\n                .setTitle(title)\n                .setCancelable(true)\n                .setPositiveButton(R.string.ok, (dialogInterface, i) -> {\n\n                })\n                .setMessage(message)\n                .show();\n    }\n\n    private Integer[] parseValues(String integrity) {\n        return new Integer[]{integrity.contains(\"MEETS_BASIC_INTEGRITY\") ? 1 : 0, integrity.contains(\"MEETS_DEVICE_INTEGRITY\") ? 1 : 0, integrity.contains(\"MEETS_STRONG_INTEGRITY\") ? 1 : 0, integrity.contains(\"MEETS_VIRTUAL_INTEGRITY\") ? 1 : -1};\n    }\n\n\n    private void setIcons(Integer[] integrityState) {\n        setIcon(basicIntegrityIcon, integrityState[0]);\n        setIcon(deviceIntegrityIcon, integrityState[1]);\n        setIcon(strongIntegrityIcon, integrityState[2]);\n        setIcon(virtualIntegrityIcon, integrityState[3]);\n\n        if (integrityState[3] != -1) {\n            virtualIntegrity.setVisibility(View.VISIBLE);\n        } else {\n            virtualIntegrity.setVisibility(View.GONE);\n        }\n    }\n\n    private void setIcon(ImageView img, int state) {\n        if (state == -1) {\n            img.setImageDrawable(ContextCompat.getDrawable(MainActivity.this, R.drawable.ic_unknown));\n            img.setContentDescription(getString(R.string.status_unknown));\n        } else if (state == 0) {\n            img.setImageDrawable(ContextCompat.getDrawable(MainActivity.this, R.drawable.ic_fail));\n            img.setContentDescription(getString(R.string.status_fail));\n        } else {\n            img.setImageDrawable(ContextCompat.getDrawable(MainActivity.this, R.drawable.ic_pass));\n            img.setContentDescription(getString(R.string.status_pass));\n        }\n    }\n\n    private String getErrorCodeName(int errorCode) {\n        return switch (errorCode) {\n            case IntegrityErrorCode.NO_ERROR -> \"NO_ERROR\";\n            case IntegrityErrorCode.API_NOT_AVAILABLE -> \"API_NOT_AVAILABLE\";\n            case IntegrityErrorCode.PLAY_STORE_NOT_FOUND -> \"PLAY_STORE_NOT_FOUND\";\n            case IntegrityErrorCode.NETWORK_ERROR -> \"NETWORK_ERROR\";\n            case IntegrityErrorCode.PLAY_STORE_ACCOUNT_NOT_FOUND -> \"PLAY_STORE_ACCOUNT_NOT_FOUND\";\n            case IntegrityErrorCode.APP_NOT_INSTALLED -> \"APP_NOT_INSTALLED\";\n            case IntegrityErrorCode.PLAY_SERVICES_NOT_FOUND -> \"PLAY_SERVICES_NOT_FOUND\";\n            case IntegrityErrorCode.APP_UID_MISMATCH -> \"APP_UID_MISMATCH\";\n            case IntegrityErrorCode.TOO_MANY_REQUESTS -> \"TOO_MANY_REQUESTS\";\n            case IntegrityErrorCode.CANNOT_BIND_TO_SERVICE -> \"CANNOT_BIND_TO_SERVICE\";\n            case IntegrityErrorCode.NONCE_TOO_SHORT -> \"NONCE_TOO_SHORT\";\n            case IntegrityErrorCode.NONCE_TOO_LONG -> \"NONCE_TOO_LONG\";\n            case IntegrityErrorCode.GOOGLE_SERVER_UNAVAILABLE -> \"GOOGLE_SERVER_UNAVAILABLE\";\n            case IntegrityErrorCode.NONCE_IS_NOT_BASE64 -> \"NONCE_IS_NOT_BASE64\";\n            case IntegrityErrorCode.PLAY_STORE_VERSION_OUTDATED -> \"PLAY_STORE_VERSION_OUTDATED\";\n            case IntegrityErrorCode.PLAY_SERVICES_VERSION_OUTDATED ->\n                    \"PLAY_SERVICES_VERSION_OUTDATED\";\n            case IntegrityErrorCode.CLOUD_PROJECT_NUMBER_IS_INVALID ->\n                    \"CLOUD_PROJECT_NUMBER_IS_INVALID\";\n            case IntegrityErrorCode.CLIENT_TRANSIENT_ERROR -> \"CLIENT_TRANSIENT_ERROR\";\n            case IntegrityErrorCode.INTERNAL_ERROR -> \"INTERNAL_ERROR\";\n            default -> \"UNKNOWN_ERROR_CODE\";\n        };\n    }\n\n    private String getErrorReason(int errorCode) {\n        return switch (errorCode) {\n            case IntegrityErrorCode.API_NOT_AVAILABLE ->\n                    getString(R.string.error_reason_api_not_available);\n            case IntegrityErrorCode.APP_NOT_INSTALLED ->\n                    getString(R.string.error_reason_app_not_installed);\n            case IntegrityErrorCode.APP_UID_MISMATCH ->\n                    getString(R.string.error_reason_app_uid_mismatch);\n            case IntegrityErrorCode.CANNOT_BIND_TO_SERVICE ->\n                    getString(R.string.error_reason_cannot_bind_to_service);\n            case IntegrityErrorCode.CLIENT_TRANSIENT_ERROR ->\n                    getString(R.string.error_reason_client_transient_error);\n            case IntegrityErrorCode.CLOUD_PROJECT_NUMBER_IS_INVALID ->\n                    getString(R.string.error_reason_cloud_project_number_is_invalid);\n            case IntegrityErrorCode.GOOGLE_SERVER_UNAVAILABLE ->\n                    getString(R.string.error_reason_google_server_unavailable);\n            case IntegrityErrorCode.INTERNAL_ERROR ->\n                    getString(R.string.error_reason_internal_error);\n            case IntegrityErrorCode.NETWORK_ERROR -> getString(R.string.error_reason_network_error);\n            case IntegrityErrorCode.NONCE_IS_NOT_BASE64 ->\n                    getString(R.string.error_reason_nonce_is_not_base64);\n            case IntegrityErrorCode.NONCE_TOO_LONG ->\n                    getString(R.string.error_reason_nonce_too_long);\n            case IntegrityErrorCode.NONCE_TOO_SHORT ->\n                    getString(R.string.error_reason_nonce_too_short);\n            case IntegrityErrorCode.NO_ERROR -> \"\";\n            case IntegrityErrorCode.PLAY_SERVICES_NOT_FOUND ->\n                    getString(R.string.error_reason_play_services_not_found);\n            case IntegrityErrorCode.PLAY_SERVICES_VERSION_OUTDATED ->\n                    getString(R.string.error_reason_play_services_outdated);\n            case IntegrityErrorCode.PLAY_STORE_ACCOUNT_NOT_FOUND ->\n                    getString(R.string.error_reason_play_store_account_not_found);\n            case IntegrityErrorCode.PLAY_STORE_NOT_FOUND ->\n                    getString(R.string.error_reason_play_store_not_found);\n            case IntegrityErrorCode.PLAY_STORE_VERSION_OUTDATED ->\n                    getString(R.string.error_reason_play_store_version_outdated);\n            case IntegrityErrorCode.TOO_MANY_REQUESTS ->\n                    getString(R.string.error_reason_too_many_requests);\n\n            default -> getString(R.string.error_reason_unknown);\n        };\n    }\n\n    private String getErrorSolution(int errorCode) {\n        return switch (errorCode) {\n            case IntegrityErrorCode.API_NOT_AVAILABLE, IntegrityErrorCode.CANNOT_BIND_TO_SERVICE,\n                 IntegrityErrorCode.PLAY_STORE_VERSION_OUTDATED ->\n                    getString(R.string.error_solution_update_play_store);\n            case IntegrityErrorCode.APP_NOT_INSTALLED, IntegrityErrorCode.APP_UID_MISMATCH ->\n                    getString(R.string.error_solution_something_wrong_attack);\n            case IntegrityErrorCode.CLIENT_TRANSIENT_ERROR,\n                 IntegrityErrorCode.GOOGLE_SERVER_UNAVAILABLE, IntegrityErrorCode.INTERNAL_ERROR ->\n                    getString(R.string.error_solution_try_again);\n            case IntegrityErrorCode.CLOUD_PROJECT_NUMBER_IS_INVALID,\n                 IntegrityErrorCode.NONCE_IS_NOT_BASE64, IntegrityErrorCode.NONCE_TOO_LONG,\n                 IntegrityErrorCode.NONCE_TOO_SHORT, IntegrityErrorCode.NO_ERROR ->\n                    getString(R.string.error_solution_open_issue);\n            case IntegrityErrorCode.NETWORK_ERROR ->\n                    getString(R.string.error_solution_check_connection);\n            case IntegrityErrorCode.PLAY_SERVICES_NOT_FOUND ->\n                    getString(R.string.error_solution_install_update_play_services);\n            case IntegrityErrorCode.PLAY_SERVICES_VERSION_OUTDATED ->\n                    getString(R.string.error_solution_update_play_services);\n            case IntegrityErrorCode.PLAY_STORE_ACCOUNT_NOT_FOUND ->\n                    getString(R.string.error_solution_login);\n            case IntegrityErrorCode.PLAY_STORE_NOT_FOUND ->\n                    getString(R.string.error_solution_install_official_play_store);\n            case IntegrityErrorCode.TOO_MANY_REQUESTS ->\n                    getString(R.string.error_solution_try_again_later);\n\n            default -> \"\";\n        };\n    }\n\n    private String getErrorMessageText(IntegrityServiceException integrityServiceException) {\n        int errorCode = integrityServiceException.getErrorCode();\n\n        StringBuilder errorMessageBuilder = new StringBuilder();\n        errorMessageBuilder.append(String.format(Locale.US, \"%s (%d)\", getErrorCodeName(errorCode), errorCode));\n\n        String errorReason = getErrorReason(errorCode);\n        if (!errorReason.isEmpty()) {\n            errorMessageBuilder.append(\"\\n\");\n            errorMessageBuilder.append(errorReason);\n        }\n\n        String errorSolution = getErrorSolution(errorCode);\n        if (!errorSolution.isEmpty()) {\n            errorMessageBuilder.append(\"\\n\\n\");\n            errorMessageBuilder.append(errorSolution);\n        }\n\n        return errorMessageBuilder.toString();\n    }\n\n    // Menu stuff\n    @Override\n    public boolean onCreateOptionsMenu(@NonNull Menu menu) {\n        getMenuInflater().inflate(R.menu.menu, menu);\n\n        return true;\n    }\n\n    @Override\n    public boolean onOptionsItemSelected(MenuItem item) {\n        int id = item.getItemId();\n\n        if (id == R.id.about) {\n            new AboutDialog(MainActivity.this).show();\n            return true;\n        } else if (id == R.id.json_response) {\n            if (jsonResponse == null) {\n                Toast.makeText(this, R.string.check_first, Toast.LENGTH_SHORT).show();\n            } else {\n                AlertDialog dialog = new MaterialAlertDialogBuilder(MainActivity.this, R.style.Theme_PlayIntegrityAPIChecker_Dialogs)\n                        .setTitle(R.string.json_response)\n                        .setCancelable(true)\n                        .setPositiveButton(R.string.ok, null)\n                        .setNeutralButton(R.string.copy_json, (dialogInterface, i) -> {\n                            ClipboardManager clipboard = (ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE);\n                            ClipData clip = ClipData.newPlainText(\"\", jsonResponse);\n                            clipboard.setPrimaryClip(clip);\n                            dialogInterface.dismiss();\n                            Toast.makeText(MainActivity.this, getString(R.string.copied), Toast.LENGTH_SHORT).show();\n                        })\n                        .setView(R.layout.dialog_response)\n                        .show();\n\n                TextView text = dialog.findViewById(R.id.message);\n                if (text == null) {\n                    dialog.dismiss();\n                    return true;\n                }\n\n                text.setText(jsonResponse);\n            }\n            return true;\n        } else if (id == R.id.documentation) {\n            Utils.openLink(getString(R.string.docs_link), this);\n            return true;\n        } else {\n            return super.onOptionsItemSelected(item);\n        }\n\n    }\n\n\n}"
  },
  {
    "path": "app/src/main/java/gr/nikolasspyr/integritycheck/Utils.java",
    "content": "package gr.nikolasspyr.integritycheck;\n\nimport android.content.ActivityNotFoundException;\nimport android.content.Context;\nimport android.content.Intent;\nimport android.net.Uri;\nimport android.widget.Toast;\n\npublic class Utils {\n    public static void openLink(String url, Context context) {\n        Intent i = new Intent(Intent.ACTION_VIEW);\n        i.setData(Uri.parse(url));\n        try {\n            context.startActivity(i);\n        } catch (ActivityNotFoundException e) { //For devices that have no browsers\n            Toast.makeText(context, R.string.no_browser_found, Toast.LENGTH_LONG).show();\n        }\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/gr/nikolasspyr/integritycheck/dialogs/AboutDialog.java",
    "content": "package gr.nikolasspyr.integritycheck.dialogs;\n\nimport android.content.Context;\nimport android.view.View;\nimport android.widget.TextView;\n\nimport androidx.appcompat.app.AlertDialog;\n\nimport com.google.android.material.button.MaterialButton;\nimport com.google.android.material.dialog.MaterialAlertDialogBuilder;\n\nimport java.util.Locale;\n\nimport gr.nikolasspyr.integritycheck.BuildConfig;\nimport gr.nikolasspyr.integritycheck.R;\nimport gr.nikolasspyr.integritycheck.Utils;\nimport gr.nikolasspyr.integritycheck.dialogs.licenses.LicensesDialog;\n\n\npublic class AboutDialog {\n\n    private final AlertDialog dialog;\n\n    public AboutDialog(Context context) {\n\n        dialog = new MaterialAlertDialogBuilder(context, R.style.Theme_PlayIntegrityAPIChecker_Dialogs)\n                .setPositiveButton(R.string.ok, (dialog, which) -> {\n\n                })\n                .create();\n\n        View dialogView = View.inflate(context, R.layout.dialog_about, null);\n\n        dialog.setView(dialogView);\n\n        TextView aboutText = dialogView.findViewById(R.id.about_text);\n\n        aboutText.setText(String.format(Locale.US, context.getResources().getString(R.string.about_text), BuildConfig.VERSION_NAME, BuildConfig.VERSION_CODE));\n\n        MaterialButton githubBtn = dialogView.findViewById(R.id.about_github);\n        MaterialButton licensesBtn = dialogView.findViewById(R.id.about_licenses);\n\n\n        githubBtn.setOnClickListener(v -> {\n            Utils.openLink(context.getString(R.string.about_github_link), context);\n            dialog.dismiss();\n        });\n\n\n        licensesBtn.setOnClickListener(v -> {\n            new LicensesDialog(context).show();\n            dialog.dismiss();\n        });\n\n    }\n\n    public void show() {\n        dialog.show();\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/gr/nikolasspyr/integritycheck/dialogs/licenses/License.java",
    "content": "package gr.nikolasspyr.integritycheck.dialogs.licenses;\n\npublic class License {\n\n    public String subject;\n    public String text;\n\n    public License(String subject, String text) {\n        this.subject = subject;\n        this.text = text;\n    }\n\n}\n"
  },
  {
    "path": "app/src/main/java/gr/nikolasspyr/integritycheck/dialogs/licenses/LicensesAdapter.java",
    "content": "package gr.nikolasspyr.integritycheck.dialogs.licenses;\n\nimport android.content.Context;\nimport android.view.LayoutInflater;\nimport android.view.View;\nimport android.view.ViewGroup;\nimport android.widget.TextView;\n\nimport androidx.annotation.NonNull;\nimport androidx.recyclerview.widget.RecyclerView;\n\nimport java.util.List;\n\nimport gr.nikolasspyr.integritycheck.R;\n\n\npublic class LicensesAdapter extends RecyclerView.Adapter<LicensesAdapter.ViewHolder> {\n\n    private final LayoutInflater mInflater;\n    private List<License> mLicenses;\n\n    public LicensesAdapter(Context c) {\n        mInflater = LayoutInflater.from(c);\n    }\n\n    public void setLicenses(List<License> licenses) {\n        mLicenses = licenses;\n        notifyItemRangeInserted(0, licenses.size());\n    }\n\n    @NonNull\n    @Override\n    public ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {\n        return new ViewHolder(mInflater.inflate(R.layout.item_license, parent, false));\n    }\n\n    @Override\n    public void onBindViewHolder(@NonNull ViewHolder holder, int position) {\n        holder.bind(mLicenses.get(position));\n    }\n\n    @Override\n    public int getItemCount() {\n        return mLicenses == null ? 0 : mLicenses.size();\n    }\n\n    static class ViewHolder extends RecyclerView.ViewHolder {\n\n        private final TextView title;\n        private final TextView text;\n\n        private ViewHolder(@NonNull View itemView) {\n            super(itemView);\n\n            title = itemView.findViewById(R.id.license_title);\n            text = itemView.findViewById(R.id.license_text);\n        }\n\n        private void bind(License license) {\n            title.setText(license.subject);\n            text.setText(license.text);\n        }\n    }\n\n}\n\n"
  },
  {
    "path": "app/src/main/java/gr/nikolasspyr/integritycheck/dialogs/licenses/LicensesDialog.java",
    "content": "package gr.nikolasspyr.integritycheck.dialogs.licenses;\n\nimport android.content.Context;\nimport android.view.View;\n\nimport androidx.appcompat.app.AlertDialog;\nimport androidx.appcompat.app.AppCompatActivity;\nimport androidx.recyclerview.widget.LinearLayoutManager;\nimport androidx.recyclerview.widget.RecyclerView;\n\nimport com.google.android.material.button.MaterialButton;\nimport com.google.android.material.dialog.MaterialAlertDialogBuilder;\n\nimport gr.nikolasspyr.integritycheck.R;\n\n\npublic class LicensesDialog {\n\n    private final AlertDialog dialog;\n    private final Context context;\n\n    public LicensesDialog(Context context) {\n        this.context = context;\n\n        dialog = new MaterialAlertDialogBuilder(context, R.style.Theme_PlayIntegrityAPIChecker_Dialogs)\n                .setTitle(R.string.licenses)\n                .setPositiveButton(R.string.ok, (dialog, which) -> {\n\n                })\n                .create();\n\n        View dialogView = View.inflate(context, R.layout.dialog_licenses, null);\n\n        dialog.setView(dialogView);\n\n        RecyclerView recyclerView = dialogView.findViewById(R.id.licenses_recycler);\n\n        recyclerView.setLayoutManager(new LinearLayoutManager(context));\n        recyclerView.getRecycledViewPool().setMaxRecycledViews(0, 16);\n\n        LicensesAdapter adapter = new LicensesAdapter(context);\n        recyclerView.setAdapter(adapter);\n\n        AppCompatActivity activity = (AppCompatActivity) context;\n\n        LicensesViewModel viewModel = new LicensesViewModel(activity.getApplication());\n        viewModel.getLicenses().observe(activity, adapter::setLicenses);\n\n    }\n\n    public void show() {\n        dialog.show();\n\n        MaterialButton button = (MaterialButton) dialog.getButton(AlertDialog.BUTTON_POSITIVE);\n\n        button.setTextColor(context.getResources().getColor(R.color.blueSecondary));\n\n        button.setRippleColorResource(R.color.blueSecondary);\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/gr/nikolasspyr/integritycheck/dialogs/licenses/LicensesViewModel.java",
    "content": "package gr.nikolasspyr.integritycheck.dialogs.licenses;\n\nimport android.app.Application;\nimport android.content.res.AssetManager;\n\nimport androidx.annotation.NonNull;\nimport androidx.lifecycle.AndroidViewModel;\nimport androidx.lifecycle.LiveData;\nimport androidx.lifecycle.MutableLiveData;\n\nimport java.io.ByteArrayOutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.OutputStream;\nimport java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.List;\n\npublic class LicensesViewModel extends AndroidViewModel {\n\n    private final MutableLiveData<List<License>> mLicenses = new MutableLiveData<>();\n    private final MutableLiveData<Boolean> mAreLicensesLoading = new MutableLiveData<>();\n\n    public LicensesViewModel(@NonNull Application application) {\n        super(application);\n\n        mLicenses.setValue(Collections.emptyList());\n        mAreLicensesLoading.setValue(false);\n\n        loadLicences();\n    }\n\n    public LiveData<List<License>> getLicenses() {\n        return mLicenses;\n    }\n\n    private void loadLicences() {\n        if (Boolean.TRUE.equals(mAreLicensesLoading.getValue()))\n            return;\n\n        mAreLicensesLoading.setValue(true);\n\n        new Thread(() -> {\n            try {\n                AssetManager assetManager = getApplication().getAssets();\n                String licensesDir = \"licenses\";\n\n                String[] rawLicenses = assetManager.list(licensesDir);\n                assert rawLicenses != null;\n                ArrayList<License> licenses = new ArrayList<>(rawLicenses.length);\n\n                for (String rawLicense : rawLicenses)\n                    licenses.add(new License(rawLicense, readStream(assetManager.open(licensesDir + \"/\" + rawLicense), \"UTF-8\")));\n\n                Collections.sort(licenses, (license1, license2) -> license1.subject.compareToIgnoreCase(license2.subject));\n\n                mLicenses.postValue(licenses);\n                mAreLicensesLoading.postValue(false);\n            } catch (Exception e) {\n                mAreLicensesLoading.postValue(false);\n            }\n        }).start();\n    }\n\n    public static void copyStream(InputStream from, OutputStream to) throws IOException {\n        byte[] buf = new byte[1024 * 1024];\n        int len;\n        while ((len = from.read(buf)) > 0) {\n            to.write(buf, 0, len);\n        }\n    }\n\n    public static byte[] readStream(InputStream inputStream) throws IOException {\n        try (InputStream in = inputStream) {\n            return readStreamNoClose(in);\n        }\n    }\n\n    public static String readStream(InputStream inputStream, String charset) throws IOException {\n        return new String(readStream(inputStream), charset);\n    }\n\n    public static byte[] readStreamNoClose(InputStream inputStream) throws IOException {\n        ByteArrayOutputStream buffer = new ByteArrayOutputStream();\n        copyStream(inputStream, buffer);\n        return buffer.toByteArray();\n    }\n\n\n}\n\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_appicon.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"70dp\"\n    android:height=\"70dp\"\n    android:viewportWidth=\"48\"\n    android:viewportHeight=\"48\">\n  <path\n      android:pathData=\"M24,28.3q1.85,0 3.15,-1.275 1.3,-1.275 1.3,-3.125 0,-1.9 -1.3,-3.2 -1.3,-1.3 -3.15,-1.3 -1.85,0 -3.15,1.3 -1.3,1.3 -1.3,3.2 0,1.85 1.3,3.125T24,28.3ZM24,44q-7,-1.75 -11.5,-8.125T8,21.9V10l16,-6 16,6v11.9q0,3.25 -0.9,6.375T36.6,34.1l-6.4,-6.2q0.65,-0.85 0.95,-1.9 0.3,-1.05 0.3,-2.1 0,-3.15 -2.175,-5.325Q27.1,16.4 24,16.4q-3.1,0 -5.275,2.175Q16.55,20.75 16.55,23.9q0,3.1 2.175,5.25T24,31.3q1.1,0 2.15,-0.35 1.05,-0.35 2,-0.9l6.75,6.55q-2.1,2.7 -4.85,4.625Q27.3,43.15 24,44Z\"\n      android:fillColor=\"#008000\"/>\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_fail.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"48dp\"\n    android:height=\"48dp\"\n    android:viewportWidth=\"48\"\n    android:viewportHeight=\"48\">\n  <path\n      android:fillColor=\"@color/red\"\n      android:pathData=\"m16.5,33.6 l7.5,-7.5 7.5,7.5 2.1,-2.1 -7.5,-7.5 7.5,-7.5 -2.1,-2.1 -7.5,7.5 -7.5,-7.5 -2.1,2.1 7.5,7.5 -7.5,7.5ZM24,44q-4.1,0 -7.75,-1.575 -3.65,-1.575 -6.375,-4.3 -2.725,-2.725 -4.3,-6.375Q4,28.1 4,24q0,-4.15 1.575,-7.8 1.575,-3.65 4.3,-6.35 2.725,-2.7 6.375,-4.275Q19.9,4 24,4q4.15,0 7.8,1.575 3.65,1.575 6.35,4.275 2.7,2.7 4.275,6.35Q44,19.85 44,24q0,4.1 -1.575,7.75 -1.575,3.65 -4.275,6.375t-6.35,4.3Q28.15,44 24,44Z\"/>\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_gh.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"24dp\"\n    android:height=\"24dp\"\n    android:viewportWidth=\"12.7\"\n    android:viewportHeight=\"12.7\">\n  <path\n      android:pathData=\"m6.35,0.788c-3.149,0 -5.702,2.553 -5.702,5.702 0,2.519 1.634,4.657 3.9,5.411 0.285,0.053 0.39,-0.124 0.39,-0.274 0,-0.136 -0.005,-0.585 -0.008,-1.062C3.343,10.911 3.008,9.893 3.008,9.893 2.749,9.234 2.375,9.059 2.375,9.059 1.857,8.705 2.414,8.712 2.414,8.712 2.986,8.752 3.288,9.3 3.288,9.3 3.797,10.171 4.622,9.919 4.947,9.774 4.999,9.405 5.146,9.153 5.309,9.011 4.043,8.867 2.711,8.378 2.711,6.193c0,-0.622 0.223,-1.131 0.588,-1.531 -0.059,-0.144 -0.254,-0.724 0.055,-1.509 0,0 0.479,-0.153 1.568,0.585 0.455,-0.126 0.943,-0.19 1.427,-0.192 0.485,0.002 0.973,0.066 1.429,0.192 1.088,-0.738 1.567,-0.585 1.567,-0.585 0.31,0.785 0.115,1.365 0.056,1.509 0.366,0.399 0.587,0.908 0.587,1.531 0,2.19 -1.334,2.672 -2.604,2.814 0.205,0.177 0.387,0.524 0.387,1.056 0,0.763 -0.007,1.377 -0.007,1.565 0,0.152 0.103,0.33 0.392,0.274C10.421,11.146 12.052,9.009 12.052,6.491c0,-3.149 -2.553,-5.702 -5.702,-5.702\"\n      android:strokeWidth=\"0.0944291\"\n      android:fillColor=\"#1b1817\"\n      android:strokeColor=\"#00000000\"\n      android:fillType=\"evenOdd\"/>\n  <path\n      android:pathData=\"m2.807,8.976c-0.013,0.028 -0.057,0.037 -0.098,0.017 -0.041,-0.019 -0.065,-0.057 -0.051,-0.086 0.012,-0.029 0.057,-0.037 0.098,-0.018 0.041,0.019 0.065,0.058 0.051,0.086\"\n      android:strokeWidth=\"0.0944291\"\n      android:fillColor=\"#1b1817\"\n      android:strokeColor=\"#00000000\"\n      android:fillType=\"nonZero\"/>\n  <path\n      android:pathData=\"m3.038,9.233c-0.027,0.025 -0.08,0.014 -0.116,-0.026 -0.037,-0.04 -0.044,-0.093 -0.017,-0.119 0.028,-0.025 0.08,-0.013 0.117,0.026 0.037,0.04 0.045,0.093 0.016,0.119\"\n      android:strokeWidth=\"0.0944291\"\n      android:fillColor=\"#1b1817\"\n      android:strokeColor=\"#00000000\"\n      android:fillType=\"nonZero\"/>\n  <path\n      android:pathData=\"m3.263,9.562c-0.035,0.024 -0.092,0.002 -0.127,-0.049 -0.035,-0.051 -0.035,-0.112 0.001,-0.136 0.035,-0.024 0.092,-0.002 0.127,0.048 0.035,0.052 0.035,0.112 -0.001,0.137\"\n      android:strokeWidth=\"0.0944291\"\n      android:fillColor=\"#1b1817\"\n      android:strokeColor=\"#00000000\"\n      android:fillType=\"nonZero\"/>\n  <path\n      android:pathData=\"m3.571,9.879c-0.031,0.034 -0.098,0.025 -0.147,-0.022 -0.05,-0.046 -0.064,-0.111 -0.032,-0.146 0.032,-0.035 0.099,-0.025 0.148,0.022 0.049,0.046 0.064,0.112 0.031,0.146\"\n      android:strokeWidth=\"0.0944291\"\n      android:fillColor=\"#1b1817\"\n      android:strokeColor=\"#00000000\"\n      android:fillType=\"nonZero\"/>\n  <path\n      android:pathData=\"m3.996,10.063c-0.014,0.045 -0.078,0.065 -0.142,0.046 -0.064,-0.02 -0.107,-0.072 -0.094,-0.117 0.013,-0.045 0.078,-0.066 0.143,-0.046 0.064,0.019 0.107,0.071 0.093,0.117\"\n      android:strokeWidth=\"0.0944291\"\n      android:fillColor=\"#1b1817\"\n      android:strokeColor=\"#00000000\"\n      android:fillType=\"nonZero\"/>\n  <path\n      android:pathData=\"m4.463,10.097c0.002,0.047 -0.053,0.086 -0.121,0.087 -0.068,0.002 -0.123,-0.037 -0.124,-0.083 0,-0.047 0.054,-0.086 0.122,-0.087 0.068,-0.001 0.123,0.037 0.123,0.083\"\n      android:strokeWidth=\"0.0944291\"\n      android:fillColor=\"#1b1817\"\n      android:strokeColor=\"#00000000\"\n      android:fillType=\"nonZero\"/>\n  <path\n      android:pathData=\"m4.897,10.024c0.008,0.046 -0.039,0.093 -0.106,0.105 -0.066,0.012 -0.127,-0.016 -0.136,-0.062 -0.008,-0.047 0.04,-0.094 0.106,-0.106 0.067,-0.012 0.128,0.016 0.136,0.063\"\n      android:strokeWidth=\"0.0944291\"\n      android:fillColor=\"#1b1817\"\n      android:strokeColor=\"#00000000\"\n      android:fillType=\"nonZero\"/>\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_help.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"24dp\"\n    android:height=\"24dp\"\n    android:viewportWidth=\"24\"\n    android:viewportHeight=\"24\">\n  <path\n      android:pathData=\"M11,18h2v-2h-2v2zM12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM12,20c-4.41,0 -8,-3.59 -8,-8s3.59,-8 8,-8 8,3.59 8,8 -3.59,8 -8,8zM12,6c-2.21,0 -4,1.79 -4,4h2c0,-1.1 0.9,-2 2,-2s2,0.9 2,2c0,2 -3,1.75 -3,5h2c0,-2.25 3,-2.5 3,-5 0,-2.21 -1.79,-4 -4,-4z\"\n      android:fillColor=\"?colorOnPrimary\"/>\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_json.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"48dp\"\n    android:height=\"48dp\"\n    android:viewportWidth=\"48\"\n    android:viewportHeight=\"48\">\n  <path\n      android:fillColor=\"?colorOnPrimary\"\n      android:pathData=\"m16,35.9 l-12,-12 12.1,-12.1 2.15,2.15L8.3,23.9l9.85,9.85ZM31.9,36 L29.75,33.85 39.7,23.9 29.85,14.05L32,11.9l12,12Z\"/>\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_launcher_foreground.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"108dp\"\n    android:height=\"108dp\"\n    android:viewportWidth=\"108\"\n    android:viewportHeight=\"108\">\n  <group android:scaleX=\"1.17\"\n      android:scaleY=\"1.17\"\n      android:translateX=\"25.92\"\n      android:translateY=\"25.92\">\n    <path\n        android:pathData=\"M24,28.3q1.85,0 3.15,-1.275 1.3,-1.275 1.3,-3.125 0,-1.9 -1.3,-3.2 -1.3,-1.3 -3.15,-1.3 -1.85,0 -3.15,1.3 -1.3,1.3 -1.3,3.2 0,1.85 1.3,3.125T24,28.3ZM24,44q-7,-1.75 -11.5,-8.125T8,21.9V10l16,-6 16,6v11.9q0,3.25 -0.9,6.375T36.6,34.1l-6.4,-6.2q0.65,-0.85 0.95,-1.9 0.3,-1.05 0.3,-2.1 0,-3.15 -2.175,-5.325Q27.1,16.4 24,16.4q-3.1,0 -5.275,2.175Q16.55,20.75 16.55,23.9q0,3.1 2.175,5.25T24,31.3q1.1,0 2.15,-0.35 1.05,-0.35 2,-0.9l6.75,6.55q-2.1,2.7 -4.85,4.625Q27.3,43.15 24,44Z\"\n        android:fillColor=\"#008000\"/>\n  </group>\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_licenses.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\r\n    android:width=\"24dp\"\r\n    android:height=\"24dp\"\r\n    android:viewportWidth=\"24\"\r\n    android:viewportHeight=\"24\">\r\n  <path\r\n      android:pathData=\"M14,2L6,2c-1.1,0 -1.99,0.9 -1.99,2L4,20c0,1.1 0.89,2 1.99,2L18,22c1.1,0 2,-0.9 2,-2L20,8l-6,-6zM16,18L8,18v-2h8v2zM16,14L8,14v-2h8v2zM13,9L13,3.5L18.5,9L13,9z\"\r\n      android:fillColor=\"?attr/colorOnPrimary\"/>\r\n</vector>\r\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_pass.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"48dp\"\n    android:height=\"48dp\"\n    android:viewportWidth=\"48\"\n    android:viewportHeight=\"48\">\n  <path\n      android:fillColor=\"@color/green\"\n      android:pathData=\"M21.05,33.1 L35.2,18.95l-2.3,-2.25 -11.85,11.85 -6,-6 -2.25,2.25ZM24,44q-4.1,0 -7.75,-1.575 -3.65,-1.575 -6.375,-4.3 -2.725,-2.725 -4.3,-6.375Q4,28.1 4,24q0,-4.15 1.575,-7.8 1.575,-3.65 4.3,-6.35 2.725,-2.7 6.375,-4.275Q19.9,4 24,4q4.15,0 7.8,1.575 3.65,1.575 6.35,4.275 2.7,2.7 4.275,6.35Q44,19.85 44,24q0,4.1 -1.575,7.75 -1.575,3.65 -4.275,6.375t-6.35,4.3Q28.15,44 24,44Z\"/>\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_unknown.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"48dp\"\n    android:height=\"48dp\"\n    android:viewportWidth=\"48\"\n    android:viewportHeight=\"48\">\n  <path\n      android:fillColor=\"@color/yellow\"\n      android:pathData=\"M24.2,35.65q0.8,0 1.35,-0.55t0.55,-1.35q0,-0.8 -0.55,-1.35t-1.35,-0.55q-0.8,0 -1.35,0.55t-0.55,1.35q0,0.8 0.55,1.35t1.35,0.55ZM22.45,28.35h2.95q0,-1.3 0.325,-2.375T27.75,23.5q1.55,-1.3 2.2,-2.55 0.65,-1.25 0.65,-2.75 0,-2.65 -1.725,-4.25t-4.575,-1.6q-2.45,0 -4.325,1.225T17.25,16.95l2.65,1q0.55,-1.4 1.65,-2.175 1.1,-0.775 2.6,-0.775 1.7,0 2.75,0.925t1.05,2.375q0,1.1 -0.65,2.075 -0.65,0.975 -1.9,2.025 -1.5,1.3 -2.225,2.575 -0.725,1.275 -0.725,3.375ZM24,44q-4.1,0 -7.75,-1.575 -3.65,-1.575 -6.375,-4.3 -2.725,-2.725 -4.3,-6.375Q4,28.1 4,24q0,-4.15 1.575,-7.8 1.575,-3.65 4.3,-6.35 2.725,-2.7 6.375,-4.275Q19.9,4 24,4q4.15,0 7.8,1.575 3.65,1.575 6.35,4.275 2.7,2.7 4.275,6.35Q44,19.85 44,24q0,4.1 -1.575,7.75 -1.575,3.65 -4.275,6.375t-6.35,4.3Q28.15,44 24,44Z\"/>\n</vector>\n"
  },
  {
    "path": "app/src/main/res/layout/activity_main.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    xmlns:tools=\"http://schemas.android.com/tools\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    android:orientation=\"vertical\"\n    tools:context=\".MainActivity\">\n\n    <androidx.appcompat.widget.Toolbar\n        android:id=\"@+id/toolbar\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"?attr/actionBarSize\"\n        android:theme=\"@style/Theme.PlayIntegrityAPIChecker\" />\n\n    <View\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"1dp\"\n        android:alpha=\"0.12\"\n        android:background=\"?colorOnSurface\" />\n\n    <ScrollView\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        android:fillViewport=\"true\">\n\n        <androidx.constraintlayout.widget.ConstraintLayout\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"wrap_content\">\n\n            <Space\n                android:id=\"@+id/top_space\"\n                android:layout_width=\"0dp\"\n                android:layout_height=\"15dp\"\n                app:layout_constraintTop_toTopOf=\"parent\"\n                app:layout_constraintLeft_toLeftOf=\"parent\"\n                app:layout_constraintRight_toRightOf=\"parent\" />\n\n            <androidx.constraintlayout.helper.widget.Flow\n                android:id=\"@+id/flow\"\n                android:layout_width=\"wrap_content\"\n                android:layout_height=\"wrap_content\"\n                app:constraint_referenced_ids=\"basic_integrity_icon,basic_integrity_text,device_integrity_icon,device_integrity_text,strong_integrity_icon,strong_integrity_text,virtual_integrity_icon,virtual_integrity_text\"\n                app:flow_horizontalGap=\"15dp\"\n                app:flow_verticalGap=\"15dp\"\n                app:flow_wrapMode=\"aligned\"\n                app:flow_maxElementsWrap=\"2\"\n                app:layout_constraintVertical_chainStyle=\"packed\"\n                app:layout_constraintTop_toBottomOf=\"@id/top_space\"\n                app:layout_constraintStart_toStartOf=\"parent\"\n                app:layout_constraintEnd_toEndOf=\"parent\"\n                app:layout_constraintBottom_toTopOf=\"@id/check_btn\" />\n\n            <ImageView\n                android:id=\"@+id/basic_integrity_icon\"\n                android:layout_width=\"48dp\"\n                android:layout_height=\"48dp\"\n                android:layout_margin=\"10dp\"\n                android:contentDescription=\"@string/status_unknown\"\n                android:src=\"@drawable/ic_unknown\" />\n\n            <ImageView\n                android:id=\"@+id/device_integrity_icon\"\n                android:layout_width=\"48dp\"\n                android:layout_height=\"48dp\"\n                android:layout_margin=\"10dp\"\n                android:contentDescription=\"@string/status_unknown\"\n                android:src=\"@drawable/ic_unknown\" />\n\n            <ImageView\n                android:id=\"@+id/strong_integrity_icon\"\n                android:layout_width=\"48dp\"\n                android:layout_height=\"48dp\"\n                android:layout_margin=\"10dp\"\n                android:contentDescription=\"@string/status_unknown\"\n                android:src=\"@drawable/ic_unknown\" />\n\n            <ImageView\n                android:id=\"@+id/virtual_integrity_icon\"\n                android:layout_width=\"48dp\"\n                android:layout_height=\"48dp\"\n                android:layout_margin=\"10dp\"\n                android:contentDescription=\"@string/status_unknown\"\n                android:src=\"@drawable/ic_unknown\" />\n\n\n            <TextView\n                android:id=\"@+id/basic_integrity_text\"\n                android:layout_width=\"wrap_content\"\n                android:layout_height=\"wrap_content\"\n                android:layout_marginLeft=\"10dp\"\n                android:layout_marginRight=\"10dp\"\n                android:ellipsize=\"end\"\n                android:gravity=\"center\"\n                android:maxLines=\"1\"\n                android:text=\"MEETS_BASIC_INTEGRITY\"\n                android:textColor=\"?colorOnPrimary\"\n                android:textSize=\"18sp\"\n                tools:ignore=\"HardcodedText\" />\n\n            <TextView\n                android:id=\"@+id/device_integrity_text\"\n                android:layout_width=\"wrap_content\"\n                android:layout_height=\"wrap_content\"\n                android:layout_marginLeft=\"10dp\"\n                android:layout_marginRight=\"10dp\"\n                android:ellipsize=\"end\"\n                android:gravity=\"center\"\n                android:maxLines=\"1\"\n                android:text=\"MEETS_DEVICE_INTEGRITY\"\n                android:textColor=\"?colorOnPrimary\"\n                android:textSize=\"18sp\"\n                tools:ignore=\"HardcodedText\" />\n\n            <TextView\n                android:id=\"@+id/strong_integrity_text\"\n                android:layout_width=\"wrap_content\"\n                android:layout_height=\"wrap_content\"\n                android:layout_marginLeft=\"10dp\"\n                android:layout_marginRight=\"10dp\"\n                android:ellipsize=\"end\"\n                android:gravity=\"center\"\n                android:maxLines=\"1\"\n                android:text=\"MEETS_STRONG_INTEGRITY\"\n                android:textColor=\"?colorOnPrimary\"\n                android:textSize=\"18sp\"\n                tools:ignore=\"HardcodedText\" />\n\n            <TextView\n                android:id=\"@+id/virtual_integrity_text\"\n                android:layout_width=\"wrap_content\"\n                android:layout_height=\"wrap_content\"\n                android:layout_marginLeft=\"10dp\"\n                android:layout_marginRight=\"10dp\"\n                android:ellipsize=\"end\"\n                android:gravity=\"center\"\n                android:maxLines=\"1\"\n                android:text=\"MEETS_VIRTUAL_INTEGRITY\"\n                android:textColor=\"?colorOnPrimary\"\n                android:textSize=\"18sp\"\n                tools:ignore=\"HardcodedText\" />\n\n\n            <androidx.constraintlayout.widget.Group\n                android:id=\"@+id/virtual_integrity\"\n                android:layout_width=\"wrap_content\"\n                android:layout_height=\"wrap_content\"\n                android:visibility=\"gone\"\n                app:constraint_referenced_ids=\"virtual_integrity_text,virtual_integrity_icon\"\n                tools:visibility=\"visible\" />\n\n\n            <com.google.android.material.button.MaterialButton\n                android:id=\"@+id/check_btn\"\n                style=\"?attr/materialButtonOutlinedStyle\"\n                android:layout_width=\"wrap_content\"\n                android:layout_height=\"wrap_content\"\n                android:layout_marginTop=\"30dp\"\n                android:text=\"@string/check\"\n                android:textColor=\"?colorOnPrimary\"\n                app:iconTint=\"?colorSecondary\"\n                app:layout_constraintBottom_toTopOf=\"@id/bottom_space\"\n                app:layout_constraintLeft_toLeftOf=\"parent\"\n                app:layout_constraintRight_toRightOf=\"parent\"\n                app:layout_constraintTop_toBottomOf=\"@id/flow\"\n                app:rippleColor=\"?colorSecondary\" />\n\n            <Space\n                android:id=\"@+id/bottom_space\"\n                android:layout_width=\"0dp\"\n                android:layout_height=\"15dp\"\n                app:layout_constraintBottom_toBottomOf=\"parent\"\n                app:layout_constraintLeft_toLeftOf=\"parent\"\n                app:layout_constraintRight_toRightOf=\"parent\" />\n\n        </androidx.constraintlayout.widget.ConstraintLayout>\n\n    </ScrollView>\n\n\n</LinearLayout>"
  },
  {
    "path": "app/src/main/res/layout/dialog_about.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<androidx.constraintlayout.widget.ConstraintLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\">\n\n    <ImageView\n        android:id=\"@+id/about_top_img\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:layout_marginTop=\"10dp\"\n        app:layout_constraintLeft_toLeftOf=\"parent\"\n        app:layout_constraintRight_toRightOf=\"parent\"\n        app:layout_constraintTop_toTopOf=\"parent\"\n        app:srcCompat=\"@drawable/ic_appicon\" />\n\n    <TextView\n        android:id=\"@+id/about_text\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:text=\"@string/about_text\"\n        android:textColor=\"?attr/colorOnPrimary\"\n        android:textSize=\"16sp\"\n        android:layout_marginTop=\"10dp\"\n        android:textAlignment=\"center\"\n        android:lineSpacingExtra=\"5sp\"\n        app:layout_constraintLeft_toLeftOf=\"parent\"\n        app:layout_constraintRight_toRightOf=\"parent\"\n        app:layout_constraintTop_toBottomOf=\"@id/about_top_img\"/>\n\n\n    <androidx.constraintlayout.helper.widget.Flow\n        android:id=\"@+id/about_buttons\"\n        android:layout_width=\"0dp\"\n        android:layout_height=\"wrap_content\"\n        android:layout_margin=\"20dp\"\n        app:constraint_referenced_ids=\"about_github,about_licenses\"\n        app:flow_horizontalGap=\"10dp\"\n        app:flow_horizontalStyle=\"spread\"\n        app:flow_wrapMode=\"chain\"\n        app:layout_constraintLeft_toLeftOf=\"parent\"\n        app:layout_constraintRight_toRightOf=\"parent\"\n        app:layout_constraintTop_toBottomOf=\"@id/about_text\" />\n\n    <Space\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"20dp\"\n        app:layout_constraintLeft_toLeftOf=\"parent\"\n        app:layout_constraintRight_toRightOf=\"parent\"\n        app:layout_constraintTop_toBottomOf=\"@id/about_buttons\" />\n\n    <com.google.android.material.button.MaterialButton\n        android:id=\"@+id/about_github\"\n        style=\"@style/Widget.MaterialComponents.Button.OutlinedButton\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:text=\"@string/github\"\n        android:textColor=\"?attr/colorSecondary\"\n        app:icon=\"@drawable/ic_gh\"\n        app:iconTint=\"?attr/colorSecondary\"\n        app:rippleColor=\"@color/blueSecondary\"/>\n\n    <com.google.android.material.button.MaterialButton\n        android:id=\"@+id/about_licenses\"\n        style=\"@style/Widget.MaterialComponents.Button.OutlinedButton\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:text=\"@string/licenses\"\n        android:textColor=\"?attr/colorSecondary\"\n        app:icon=\"@drawable/ic_licenses\"\n        app:iconTint=\"?attr/colorSecondary\"\n        app:rippleColor=\"@color/blueSecondary\"/>\n\n\n</androidx.constraintlayout.widget.ConstraintLayout>"
  },
  {
    "path": "app/src/main/res/layout/dialog_licenses.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<RelativeLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\r\n    android:layout_width=\"match_parent\"\r\n    android:layout_height=\"match_parent\">\r\n\r\n    <androidx.recyclerview.widget.RecyclerView\r\n        android:id=\"@+id/licenses_recycler\"\r\n        android:layout_width=\"match_parent\"\r\n        android:layout_height=\"match_parent\"\r\n        android:layout_margin=\"10dp\"/>\r\n\r\n</RelativeLayout>"
  },
  {
    "path": "app/src/main/res/layout/dialog_response.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<androidx.core.widget.NestedScrollView\n    android:id=\"@+id/scrollView\"\n    android:layout_width=\"wrap_content\"\n    android:layout_height=\"wrap_content\"\n    android:clipToPadding=\"false\"\n    xmlns:android=\"http://schemas.android.com/apk/res/android\">\n\n    <HorizontalScrollView\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\">\n\n        <TextView\n            android:id=\"@+id/message\"\n            style=\"?attr/materialAlertDialogBodyTextStyle\"\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"wrap_content\"\n            android:singleLine=\"false\"\n            android:scrollHorizontally=\"true\"\n            android:padding=\"?attr/dialogPreferredPadding\"/>\n    </HorizontalScrollView>\n\n</androidx.core.widget.NestedScrollView>"
  },
  {
    "path": "app/src/main/res/layout/item_license.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<LinearLayout\r\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\r\n    xmlns:tools=\"http://schemas.android.com/tools\"\r\n    android:layout_width=\"match_parent\"\r\n    android:layout_height=\"wrap_content\"\r\n    android:orientation=\"vertical\"\r\n    android:paddingStart=\"16dp\"\r\n    android:paddingTop=\"12dp\"\r\n    android:paddingEnd=\"16dp\"\r\n    android:paddingBottom=\"12dp\">\r\n\r\n    <TextView\r\n        android:id=\"@+id/license_title\"\r\n        android:layout_width=\"match_parent\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:textAppearance=\"@style/TextAppearance.AppCompat.Headline\"\r\n        android:textColor=\"?attr/colorOnPrimary\"\r\n        tools:text=\"Test program\"/>\r\n\r\n    <TextView\r\n        android:id=\"@+id/license_text\"\r\n        android:layout_width=\"match_parent\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:autoLink=\"web\"\r\n        android:textColor=\"?attr/colorOnPrimary\"\r\n        android:alpha=\"0.66\"\r\n        tools:text=\"License text\"/>\r\n\r\n</LinearLayout>"
  },
  {
    "path": "app/src/main/res/menu/menu.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<menu xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\">\n\n    <item android:id=\"@+id/json_response\"\n        android:title=\"@string/show_json_response\"\n        android:icon=\"@drawable/ic_json\"\n        app:showAsAction=\"ifRoom\" />\n\n    <item android:id=\"@+id/documentation\"\n        android:title=\"@string/show_documentation\"\n        app:showAsAction=\"never\" />\n\n    <item android:id=\"@+id/about\"\n        android:title=\"@string/about\"\n        app:showAsAction=\"never\" />\n\n</menu>"
  },
  {
    "path": "app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<adaptive-icon xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <background android:drawable=\"@color/ic_launcher_background\"/>\n    <foreground android:drawable=\"@drawable/ic_launcher_foreground\"/>\n    <monochrome android:drawable=\"@drawable/ic_launcher_foreground\"/>\n</adaptive-icon>"
  },
  {
    "path": "app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<adaptive-icon xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <background android:drawable=\"@color/ic_launcher_background\"/>\n    <foreground android:drawable=\"@drawable/ic_launcher_foreground\"/>\n    <monochrome android:drawable=\"@drawable/ic_launcher_foreground\"/>\n</adaptive-icon>"
  },
  {
    "path": "app/src/main/res/values/colors.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <color name=\"black\">#000000</color>\n    <color name=\"white\">#ffffff</color>\n    <color name=\"blackAlpha\">#DE000000</color>\n    <color name=\"whiteAlpha\">#DEFFFFFF</color>\n    <color name=\"blueSecondary\">#4285f4</color>\n    <color name=\"blueSecondaryAlpha\">#ECF3FE</color>\n    <color name=\"blueSecondaryAlphaDark\">#171E29</color>\n    <color name=\"blueSecondaryDark\">#0059c1</color>\n    <color name=\"darkPrimary\">#121212</color>\n    <color name=\"green\">#3ec714</color>\n    <color name=\"red\">#c91818</color>\n    <color name=\"yellow\">#FFDA1A</color>\n</resources>"
  },
  {
    "path": "app/src/main/res/values/ic_launcher_background.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <color name=\"ic_launcher_background\">#353937</color>\n</resources>"
  },
  {
    "path": "app/src/main/res/values/strings.xml",
    "content": "<resources>\n    <string name=\"app_name\" translatable=\"false\">Play Integrity API Checker</string>\n    <string name=\"error\">Error</string>\n    <string name=\"ok\">OK</string>\n    <string name=\"check\">Check</string>\n    <string name=\"app_name_short\" translatable=\"false\">Integrity Checker</string>\n    <string name=\"licenses\">Licenses</string>\n    <string name=\"github\" translatable=\"false\">Github</string>\n    <string name=\"about_text\">Made by Nikolas Spiridakis\\nVersion: %s (%d)</string>\n    <string name=\"about\">About</string>\n    <string name=\"about_github_link\" translatable=\"false\">https://github.com/1nikolas/play-integrity-checker-app</string>\n    <string name=\"no_browser_found\">No browser found!</string>\n    <string name=\"status_unknown\">Unknown</string>\n    <string name=\"status_pass\">Pass</string>\n    <string name=\"status_fail\">Fail</string>\n    <string name=\"show_json_response\">Show JSON response</string>\n    <string name=\"json_response\">Raw JSON response</string>\n    <string name=\"check_first\">Please run a check first!</string>\n    <string name=\"show_documentation\">Learn what the results mean</string>\n    <string name=\"docs_link\">https://developer.android.com/google/play/integrity/verdicts#optional-device-labels</string>\n    <string name=\"copy_json\">Copy JSON</string>\n    <string name=\"copied\">Copied to clipboard!</string>\n    <string name=\"token_error_title\">Integrity API Error</string>\n    <string name=\"server_api_error_title\">Server API Request Error</string>\n    <string name=\"server_api_error_status_code\">API returned: %d</string>\n    <string name=\"server_api_error_empty_res\">Empty Response</string>\n\n    <!-- ERROR REASONS (from Google's docs) -->\n    <string name=\"error_reason_api_not_available\">Integrity API is not available.</string>\n    <string name=\"error_reason_app_not_installed\">The calling app is not installed.</string>\n    <string name=\"error_reason_app_uid_mismatch\">The calling app UID (user id) does not match the one from Package Manager.</string>\n    <string name=\"error_reason_cannot_bind_to_service\">Binding to the service in the Play Store has failed. This can be due to having an old Play Store version installed on the device.</string>\n    <string name=\"error_reason_client_transient_error\">There was a transient error in the client device.</string>\n    <string name=\"error_reason_cloud_project_number_is_invalid\">The provided cloud project number is invalid.</string>\n    <string name=\"error_reason_google_server_unavailable\">Unknown internal Google server error.</string>\n    <string name=\"error_reason_internal_error\">Unknown internal error.</string>\n    <string name=\"error_reason_network_error\">No available network is found.</string>\n    <string name=\"error_reason_nonce_is_not_base64\">Nonce is not encoded as a base64 web-safe no-wrap string.</string>\n    <string name=\"error_reason_nonce_too_long\">Nonce length is too long. The nonce must be less than 500 bytes before base64 encoding.</string>\n    <string name=\"error_reason_nonce_too_short\"> Nonce length is too short. The nonce must be a minimum of 16 bytes (before base64 encoding) to allow for a better security.</string>\n    <string name=\"error_reason_play_services_not_found\">Play Services is not available or version is too old.</string>\n    <string name=\"error_reason_play_services_outdated\">Play Services needs to be updated.</string>\n    <string name=\"error_reason_play_store_account_not_found\">No Play Store account is found on device.</string>\n    <string name=\"error_reason_play_store_not_found\">No Play Store app is found on device or not official version is installed.</string>\n    <string name=\"error_reason_play_store_version_outdated\">The Play Store needs to be updated.</string>\n    <string name=\"error_reason_too_many_requests\">The calling app is making too many requests to the API and hence is throttled.</string>\n    <string name=\"error_reason_unknown\">Unknown error.</string>\n\n    <!-- ERROR SOLUTIONS (based on Google's docs -->\n    <string name=\"error_solution_update_play_store\">Try updating Play Store.</string>\n    <string name=\"error_solution_something_wrong_attack\">Something is wrong (possibly an attack).</string>\n    <string name=\"error_solution_try_again\">Try again.</string>\n    <string name=\"error_solution_open_issue\">If this happens consistently, open an issue on Github.</string>\n    <string name=\"error_solution_check_connection\">Check your connection.</string>\n    <string name=\"error_solution_install_update_play_services\">Try installing/updating Google Play Services.</string>\n    <string name=\"error_solution_update_play_services\">Try updating Google Play Services.</string>\n    <string name=\"error_solution_login\">Try logging in to Play Store.</string>\n    <string name=\"error_solution_install_official_play_store\">Try installing an official and recent version of Play Store.</string>\n    <string name=\"error_solution_try_again_later\">Try again later.</string>\n\n\n</resources>"
  },
  {
    "path": "app/src/main/res/values/themes.xml",
    "content": "<resources xmlns:tools=\"http://schemas.android.com/tools\">\n    <!-- Base application theme. -->\n    <style name=\"Theme.PlayIntegrityAPIChecker\" parent=\"Theme.MaterialComponents.DayNight.NoActionBar\">\n        <!-- Primary brand color. -->\n        <item name=\"colorPrimary\">@color/white</item>\n        <item name=\"colorPrimaryVariant\">@color/white</item>\n        <item name=\"colorOnPrimary\">@color/black</item>\n        <!-- Secondary brand color. -->\n        <item name=\"colorSecondary\">@color/blueSecondary</item>\n        <item name=\"colorSecondaryVariant\">@color/blueSecondaryAlpha</item>\n        <item name=\"colorOnSecondary\">@color/white</item>\n        <!-- Status bar color. -->\n        <item name=\"android:statusBarColor\" >?attr/colorPrimaryVariant</item>\n        <item name=\"android:navigationBarColor\" >?attr/colorPrimaryVariant</item>\n        <item name=\"android:windowLightNavigationBar\" tools:targetApi=\"27\">true</item>\n        <item name=\"android:windowLightStatusBar\" tools:targetApi=\"23\">true</item>\n        <!-- 3dot -->\n        <item name=\"actionOverflowButtonStyle\">@style/Theme.PlayIntegrityAPIChecker.actionButtonOverflow</item>\n        <!-- Toolbar -->\n        <item name=\"actionBarTheme\">@style/Theme.PlayIntegrityAPIChecker.actionBarTheme</item>\n    </style>\n\n    <style name=\"Theme.PlayIntegrityAPIChecker.Dialogs\" parent=\"ThemeOverlay.MaterialComponents.MaterialAlertDialog\">\n        <item name=\"colorAccent\">@color/blueSecondary</item>\n        <item name=\"colorPrimary\">@color/blueSecondary</item>\n    </style>\n\n    <style name=\"Theme.PlayIntegrityAPIChecker.actionButtonOverflow\" parent=\"Widget.AppCompat.Light.ActionButton.Overflow\">\n        <item name=\"android:tint\">@color/black</item>\n        <item name=\"android:color\">@color/black</item>\n    </style>\n\n    <style name=\"Theme.PlayIntegrityAPIChecker.actionBarTheme\" parent=\"ThemeOverlay.AppCompat.ActionBar\">\n        <item name=\"android:textColorPrimary\">@color/black</item>\n    </style>\n</resources>"
  },
  {
    "path": "app/src/main/res/values-night/themes.xml",
    "content": "<resources>\n    <!-- Base application theme. -->\n    <style name=\"Theme.PlayIntegrityAPIChecker\" parent=\"Theme.MaterialComponents.DayNight.NoActionBar\">\n        <!-- Primary brand color. -->\n        <item name=\"colorPrimary\">@color/darkPrimary</item>\n        <item name=\"colorPrimaryVariant\">@color/darkPrimary</item>\n        <item name=\"colorOnPrimary\">@color/white</item>\n        <!-- Secondary brand color. -->\n        <item name=\"colorSecondary\">@color/blueSecondary</item>\n        <item name=\"colorSecondaryVariant\">@color/blueSecondaryAlphaDark</item>\n        <item name=\"colorOnSecondary\">@color/white</item>\n        <!-- Status bar color. -->\n        <item name=\"android:statusBarColor\" >?attr/colorPrimaryVariant</item>\n        <item name=\"android:navigationBarColor\" >?attr/colorPrimaryVariant</item>\n        <!-- 3dot color -->\n        <item name=\"actionOverflowButtonStyle\">@style/Theme.PlayIntegrityAPIChecker.actionButtonOverflow</item>\n    </style>\n\n    <style name=\"Theme.PlayIntegrityAPIChecker.Dialogs\" parent=\"ThemeOverlay.MaterialComponents.MaterialAlertDialog\">\n        <item name=\"colorAccent\">@color/blueSecondary</item>\n        <item name=\"colorPrimary\">@color/blueSecondary</item>\n    </style>\n\n    <style name=\"Theme.PlayIntegrityAPIChecker.actionButtonOverflow\" parent=\"Widget.AppCompat.Light.ActionButton.Overflow\">\n        <item name=\"android:tint\">@color/white</item>\n        <item name=\"android:color\">@color/white</item>\n    </style>\n</resources>"
  },
  {
    "path": "app/src/main/res/xml/backup_rules.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?><!--\n   Sample backup rules file; uncomment and customize as necessary.\n   See https://developer.android.com/guide/topics/data/autobackup\n   for details.\n   Note: This file is ignored for devices older that API 31\n   See https://developer.android.com/about/versions/12/backup-restore\n-->\n<full-backup-content>\n    <!--\n   <include domain=\"sharedpref\" path=\".\"/>\n   <exclude domain=\"sharedpref\" path=\"device.xml\"/>\n-->\n</full-backup-content>"
  },
  {
    "path": "app/src/main/res/xml/data_extraction_rules.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?><!--\n   Sample data extraction rules file; uncomment and customize as necessary.\n   See https://developer.android.com/about/versions/12/backup-restore#xml-changes\n   for details.\n-->\n<data-extraction-rules>\n    <cloud-backup>\n        <!-- TODO: Use <include> and <exclude> to control what is backed up.\n        <include .../>\n        <exclude .../>\n        -->\n    </cloud-backup>\n    <!--\n    <device-transfer>\n        <include .../>\n        <exclude .../>\n    </device-transfer>\n    -->\n</data-extraction-rules>"
  },
  {
    "path": "build.gradle",
    "content": "// Top-level build file where you can add configuration options common to all sub-projects/modules.\nplugins {\n    id 'com.android.application' version '8.12.0' apply false\n    id 'com.android.library' version '8.12.0' apply false\n}\n\ntasks.register('clean', Delete) {\n    delete layout.buildDirectory\n}"
  },
  {
    "path": "gradle/wrapper/gradle-wrapper.properties",
    "content": "#Thu Jan 16 16:08:38 EET 2025\ndistributionBase=GRADLE_USER_HOME\ndistributionPath=wrapper/dists\ndistributionUrl=https\\://services.gradle.org/distributions/gradle-8.13-bin.zip\nzipStoreBase=GRADLE_USER_HOME\nzipStorePath=wrapper/dists\n"
  },
  {
    "path": "gradle.properties",
    "content": "# Project-wide Gradle settings.\n# IDE (e.g. Android Studio) users:\n# Gradle settings configured through the IDE *will override*\n# any settings specified in this file.\n# For more details on how to configure your build environment visit\n# http://www.gradle.org/docs/current/userguide/build_environment.html\n# Specifies the JVM arguments used for the daemon process.\n# The setting is particularly useful for tweaking memory settings.\norg.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8\n# When configured, Gradle will run in incubating parallel mode.\n# This option should only be used with decoupled projects. More details, visit\n# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects\n# org.gradle.parallel=true\n# AndroidX package structure to make it clearer which packages are bundled with the\n# Android operating system, and which are packaged with your app\"s APK\n# https://developer.android.com/topic/libraries/support-library/androidx-rn\nandroid.useAndroidX=true\n# Enables namespacing of each library's R class so that its R class includes only the\n# resources declared in the library itself and none from the library's dependencies,\n# thereby reducing the size of the R class for that library\nandroid.nonTransitiveRClass=true\nandroid.nonFinalResIds=false"
  },
  {
    "path": "gradlew",
    "content": "#!/bin/sh\n\n#\n# Copyright © 2015-2021 the original authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n#      https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n#\n# SPDX-License-Identifier: Apache-2.0\n#\n\n##############################################################################\n#\n#   Gradle start up script for POSIX generated by Gradle.\n#\n#   Important for running:\n#\n#   (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is\n#       noncompliant, but you have some other compliant shell such as ksh or\n#       bash, then to run this script, type that shell name before the whole\n#       command line, like:\n#\n#           ksh Gradle\n#\n#       Busybox and similar reduced shells will NOT work, because this script\n#       requires all of these POSIX shell features:\n#         * functions;\n#         * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,\n#           «${var#prefix}», «${var%suffix}», and «$( cmd )»;\n#         * compound commands having a testable exit status, especially «case»;\n#         * various built-in commands including «command», «set», and «ulimit».\n#\n#   Important for patching:\n#\n#   (2) This script targets any POSIX shell, so it avoids extensions provided\n#       by Bash, Ksh, etc; in particular arrays are avoided.\n#\n#       The \"traditional\" practice of packing multiple parameters into a\n#       space-separated string is a well documented source of bugs and security\n#       problems, so this is (mostly) avoided, by progressively accumulating\n#       options in \"$@\", and eventually passing that to Java.\n#\n#       Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,\n#       and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;\n#       see the in-line comments for details.\n#\n#       There are tweaks for specific operating systems such as AIX, CygWin,\n#       Darwin, MinGW, and NonStop.\n#\n#   (3) This script is generated from the Groovy template\n#       https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt\n#       within the Gradle project.\n#\n#       You can find Gradle at https://github.com/gradle/gradle/.\n#\n##############################################################################\n\n# Attempt to set APP_HOME\n\n# Resolve links: $0 may be a link\napp_path=$0\n\n# Need this for daisy-chained symlinks.\nwhile\n    APP_HOME=${app_path%\"${app_path##*/}\"}  # leaves a trailing /; empty if no leading path\n    [ -h \"$app_path\" ]\ndo\n    ls=$( ls -ld \"$app_path\" )\n    link=${ls#*' -> '}\n    case $link in             #(\n      /*)   app_path=$link ;; #(\n      *)    app_path=$APP_HOME$link ;;\n    esac\ndone\n\n# This is normally unused\n# shellcheck disable=SC2034\nAPP_BASE_NAME=${0##*/}\n# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)\nAPP_HOME=$( cd -P \"${APP_HOME:-./}\" > /dev/null && printf '%s\n' \"$PWD\" ) || exit\n\n# Use the maximum available, or set MAX_FD != -1 to use that value.\nMAX_FD=maximum\n\nwarn () {\n    echo \"$*\"\n} >&2\n\ndie () {\n    echo\n    echo \"$*\"\n    echo\n    exit 1\n} >&2\n\n# OS specific support (must be 'true' or 'false').\ncygwin=false\nmsys=false\ndarwin=false\nnonstop=false\ncase \"$( uname )\" in                #(\n  CYGWIN* )         cygwin=true  ;; #(\n  Darwin* )         darwin=true  ;; #(\n  MSYS* | MINGW* )  msys=true    ;; #(\n  NONSTOP* )        nonstop=true ;;\nesac\n\nCLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar\n\n\n# Determine the Java command to use to start the JVM.\nif [ -n \"$JAVA_HOME\" ] ; then\n    if [ -x \"$JAVA_HOME/jre/sh/java\" ] ; then\n        # IBM's JDK on AIX uses strange locations for the executables\n        JAVACMD=$JAVA_HOME/jre/sh/java\n    else\n        JAVACMD=$JAVA_HOME/bin/java\n    fi\n    if [ ! -x \"$JAVACMD\" ] ; then\n        die \"ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME\n\nPlease set the JAVA_HOME variable in your environment to match the\nlocation of your Java installation.\"\n    fi\nelse\n    JAVACMD=java\n    if ! command -v java >/dev/null 2>&1\n    then\n        die \"ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.\n\nPlease set the JAVA_HOME variable in your environment to match the\nlocation of your Java installation.\"\n    fi\nfi\n\n# Increase the maximum file descriptors if we can.\nif ! \"$cygwin\" && ! \"$darwin\" && ! \"$nonstop\" ; then\n    case $MAX_FD in #(\n      max*)\n        # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.\n        # shellcheck disable=SC2039,SC3045\n        MAX_FD=$( ulimit -H -n ) ||\n            warn \"Could not query maximum file descriptor limit\"\n    esac\n    case $MAX_FD in  #(\n      '' | soft) :;; #(\n      *)\n        # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.\n        # shellcheck disable=SC2039,SC3045\n        ulimit -n \"$MAX_FD\" ||\n            warn \"Could not set maximum file descriptor limit to $MAX_FD\"\n    esac\nfi\n\n# Collect all arguments for the java command, stacking in reverse order:\n#   * args from the command line\n#   * the main class name\n#   * -classpath\n#   * -D...appname settings\n#   * --module-path (only if needed)\n#   * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.\n\n# For Cygwin or MSYS, switch paths to Windows format before running java\nif \"$cygwin\" || \"$msys\" ; then\n    APP_HOME=$( cygpath --path --mixed \"$APP_HOME\" )\n    CLASSPATH=$( cygpath --path --mixed \"$CLASSPATH\" )\n\n    JAVACMD=$( cygpath --unix \"$JAVACMD\" )\n\n    # Now convert the arguments - kludge to limit ourselves to /bin/sh\n    for arg do\n        if\n            case $arg in                                #(\n              -*)   false ;;                            # don't mess with options #(\n              /?*)  t=${arg#/} t=/${t%%/*}              # looks like a POSIX filepath\n                    [ -e \"$t\" ] ;;                      #(\n              *)    false ;;\n            esac\n        then\n            arg=$( cygpath --path --ignore --mixed \"$arg\" )\n        fi\n        # Roll the args list around exactly as many times as the number of\n        # args, so each arg winds up back in the position where it started, but\n        # possibly modified.\n        #\n        # NB: a `for` loop captures its iteration list before it begins, so\n        # changing the positional parameters here affects neither the number of\n        # iterations, nor the values presented in `arg`.\n        shift                   # remove old arg\n        set -- \"$@\" \"$arg\"      # push replacement arg\n    done\nfi\n\n\n# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.\nDEFAULT_JVM_OPTS='\"-Xmx64m\" \"-Xms64m\"'\n\n# Collect all arguments for the java command:\n#   * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,\n#     and any embedded shellness will be escaped.\n#   * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be\n#     treated as '${Hostname}' itself on the command line.\n\nset -- \\\n        \"-Dorg.gradle.appname=$APP_BASE_NAME\" \\\n        -classpath \"$CLASSPATH\" \\\n        org.gradle.wrapper.GradleWrapperMain \\\n        \"$@\"\n\n# Stop when \"xargs\" is not available.\nif ! command -v xargs >/dev/null 2>&1\nthen\n    die \"xargs is not available\"\nfi\n\n# Use \"xargs\" to parse quoted args.\n#\n# With -n1 it outputs one arg per line, with the quotes and backslashes removed.\n#\n# In Bash we could simply go:\n#\n#   readarray ARGS < <( xargs -n1 <<<\"$var\" ) &&\n#   set -- \"${ARGS[@]}\" \"$@\"\n#\n# but POSIX shell has neither arrays nor command substitution, so instead we\n# post-process each arg (as a line of input to sed) to backslash-escape any\n# character that might be a shell metacharacter, then use eval to reverse\n# that process (while maintaining the separation between arguments), and wrap\n# the whole thing up as a single \"set\" statement.\n#\n# This will of course break if any of these variables contains a newline or\n# an unmatched quote.\n#\n\neval \"set -- $(\n        printf '%s\\n' \"$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS\" |\n        xargs -n1 |\n        sed ' s~[^-[:alnum:]+,./:=@_]~\\\\&~g; ' |\n        tr '\\n' ' '\n    )\" '\"$@\"'\n\nexec \"$JAVACMD\" \"$@\"\n"
  },
  {
    "path": "gradlew.bat",
    "content": "@rem\n@rem Copyright 2015 the original author or authors.\n@rem\n@rem Licensed under the Apache License, Version 2.0 (the \"License\");\n@rem you may not use this file except in compliance with the License.\n@rem You may obtain a copy of the License at\n@rem\n@rem      https://www.apache.org/licenses/LICENSE-2.0\n@rem\n@rem Unless required by applicable law or agreed to in writing, software\n@rem distributed under the License is distributed on an \"AS IS\" BASIS,\n@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n@rem See the License for the specific language governing permissions and\n@rem limitations under the License.\n@rem\n@rem SPDX-License-Identifier: Apache-2.0\n@rem\n\n@if \"%DEBUG%\"==\"\" @echo off\n@rem ##########################################################################\n@rem\n@rem  Gradle startup script for Windows\n@rem\n@rem ##########################################################################\n\n@rem Set local scope for the variables with windows NT shell\nif \"%OS%\"==\"Windows_NT\" setlocal\n\nset DIRNAME=%~dp0\nif \"%DIRNAME%\"==\"\" set DIRNAME=.\n@rem This is normally unused\nset APP_BASE_NAME=%~n0\nset APP_HOME=%DIRNAME%\n\n@rem Resolve any \".\" and \"..\" in APP_HOME to make it shorter.\nfor %%i in (\"%APP_HOME%\") do set APP_HOME=%%~fi\n\n@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.\nset DEFAULT_JVM_OPTS=\"-Xmx64m\" \"-Xms64m\"\n\n@rem Find java.exe\nif defined JAVA_HOME goto findJavaFromJavaHome\n\nset JAVA_EXE=java.exe\n%JAVA_EXE% -version >NUL 2>&1\nif %ERRORLEVEL% equ 0 goto execute\n\necho. 1>&2\necho ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2\necho. 1>&2\necho Please set the JAVA_HOME variable in your environment to match the 1>&2\necho location of your Java installation. 1>&2\n\ngoto fail\n\n:findJavaFromJavaHome\nset JAVA_HOME=%JAVA_HOME:\"=%\nset JAVA_EXE=%JAVA_HOME%/bin/java.exe\n\nif exist \"%JAVA_EXE%\" goto execute\n\necho. 1>&2\necho ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2\necho. 1>&2\necho Please set the JAVA_HOME variable in your environment to match the 1>&2\necho location of your Java installation. 1>&2\n\ngoto fail\n\n:execute\n@rem Setup the command line\n\nset CLASSPATH=%APP_HOME%\\gradle\\wrapper\\gradle-wrapper.jar\n\n\n@rem Execute Gradle\n\"%JAVA_EXE%\" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% \"-Dorg.gradle.appname=%APP_BASE_NAME%\" -classpath \"%CLASSPATH%\" org.gradle.wrapper.GradleWrapperMain %*\n\n:end\n@rem End local scope for the variables with windows NT shell\nif %ERRORLEVEL% equ 0 goto mainEnd\n\n:fail\nrem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of\nrem the _cmd.exe /c_ return code!\nset EXIT_CODE=%ERRORLEVEL%\nif %EXIT_CODE% equ 0 set EXIT_CODE=1\nif not \"\"==\"%GRADLE_EXIT_CONSOLE%\" exit %EXIT_CODE%\nexit /b %EXIT_CODE%\n\n:mainEnd\nif \"%OS%\"==\"Windows_NT\" endlocal\n\n:omega\n"
  },
  {
    "path": "settings.gradle",
    "content": "pluginManagement {\n    repositories {\n        gradlePluginPortal()\n        google()\n        mavenCentral()\n    }\n}\ndependencyResolutionManagement {\n    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)\n    repositories {\n        google()\n        mavenCentral()\n    }\n}\nrootProject.name = \"Play Integrity API Checker\"\ninclude ':app'\n"
  }
]