Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 82b82377 authored by narinder Rana's avatar narinder Rana
Browse files

update url and JsonObject check json Key

parent b9d5a0b6
Loading
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -159,9 +159,8 @@ class IntegrityVerificationTask(
                }
            }
        try {
            if (packageName == JSONObject(jsonResponse).get(packageName)) {
                return true
            }

            return JSONObject(jsonResponse).has(packageName);
        } catch (e: Exception) {
            if (e is JSONException) {
                Log.d(TAG, "$packageName is not a system application")
+2 −1
Original line number Diff line number Diff line
@@ -71,5 +71,6 @@ object Constants {

    // Integrity Verification
    const val F_DROID_PACKAGES_URL = "https://f-droid.org/en/packages/"
    const val SYSTEM_PACKAGES_JSON_FILE_URL = "https://gitlab.e.foundation/e/apps/apps/-/raw/e169c1905114d97af867b051f96c38166f4782e2/app/src/main/assets/systemApp.json"
    //const val SYSTEM_PACKAGES_JSON_FILE_URL = "https://gitlab.e.foundation/e/apps/apps/-/raw/e169c1905114d97af867b051f96c38166f4782e2/app/src/main/assets/systemApp.json"
    const val SYSTEM_PACKAGES_JSON_FILE_URL = "https://gitlab.e.foundation/e/apps/apps/-/raw/issue-3328JSON/app/src/main/assets/systemApp.json"
}