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

update url and JsonObject check json Key

parent b9d5a0b6
Pipeline #129466 failed with stage
in 4 minutes and 23 seconds
......@@ -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")
......
......@@ -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"
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment