appstore: give GrapheneOS its own trust profile (#679)
- Commit
5a5576dcea8548d1b143bb1d5bf42386a2774c0b- Author
- vayun-mathur <[email protected]>
- When
- 2026-09-11 16:53 UTC (2 months ago)
- Parents
38f4ea3
Diff
appstore/src/main/java/com/vayunmathur/appstore/data/security/TrustProfile.kt
diff --git a/appstore/src/main/java/com/vayunmathur/appstore/data/security/TrustProfile.kt b/appstore/src/main/java/com/vayunmathur/appstore/data/security/TrustProfile.ktindex 7db2388522..13ccf140ae 100644--- a/appstore/src/main/java/com/vayunmathur/appstore/data/security/TrustProfile.kt+++ b/appstore/src/main/java/com/vayunmathur/appstore/data/security/TrustProfile.kt@@ -79,6 +79,13 @@ enum class TrustProfile { */ FDROID, + /**+ * GrapheneOS's app release server, which re-hosts Google's own signed builds of the+ * Sandboxed Google Play components behind a signify-signed index. Trust is the pinned+ * release key, and per file the SHA-256 and signing certificate that index vouches for.+ */+ GRAPHENEOS,+ /** Google Play, via an anonymous account. */ PLAY, @@ -94,6 +101,7 @@ enum class TrustProfile { get() = when (this) { MODERN_APPS -> R.string.trust_modern_apps_title FDROID -> R.string.trust_fdroid_title+ GRAPHENEOS -> R.string.trust_grapheneos_title PLAY -> R.string.trust_play_title ACCRESCENT -> R.string.trust_accrescent_title }@@ -104,6 +112,7 @@ enum class TrustProfile { get() = when (this) { MODERN_APPS -> R.string.trust_modern_apps_summary FDROID -> R.string.trust_fdroid_summary+ GRAPHENEOS -> R.string.trust_grapheneos_summary PLAY -> R.string.trust_play_summary ACCRESCENT -> R.string.trust_accrescent_summary }@@ -120,6 +129,11 @@ enum class TrustProfile { R.string.trust_fdroid_practice_rebuild, R.string.trust_fdroid_practice_antifeatures, )+ GRAPHENEOS -> listOf(+ R.string.trust_grapheneos_practice_official,+ R.string.trust_grapheneos_practice_signed_index,+ R.string.trust_grapheneos_practice_matched,+ ) PLAY -> listOf( R.string.trust_play_practice_identity, R.string.trust_play_practice_scanning,@@ -147,6 +161,11 @@ enum class TrustProfile { R.string.trust_fdroid_check_rebuilt, R.string.trust_fdroid_check_hash_and_key, )+ GRAPHENEOS -> listOf(+ R.string.trust_grapheneos_check_index_signed,+ R.string.trust_grapheneos_check_rollback,+ R.string.trust_grapheneos_check_hash_and_key,+ ) PLAY -> listOf( R.string.trust_play_check_hash, R.string.trust_play_check_key,@@ -165,6 +184,7 @@ enum class TrustProfile { get() = when (this) { MODERN_APPS -> R.string.trust_modern_apps_limits FDROID -> R.string.trust_fdroid_limits+ GRAPHENEOS -> R.string.trust_grapheneos_limits PLAY -> R.string.trust_play_limits ACCRESCENT -> R.string.trust_accrescent_limits }@@ -175,10 +195,7 @@ enum class TrustProfile { // The whole F-Droid catalogue is listed; whether a given version was reproduced // is shown per-app as a badge (see UnifiedApp.reproducible). AppSource.FDROID -> FDROID- // GrapheneOS serves a hard-pinned, signify-signed index with a publisher key and a- // per-APK hash this app checks every downloaded file against โ the same trust- // story as F-Droid, so it shares that profile.- AppSource.GRAPHENEOS -> FDROID+ AppSource.GRAPHENEOS -> GRAPHENEOS AppSource.PLAYSTORE -> PLAY // Accrescent apps are signed by their developers, not by Accrescent; trust is the // ed25519-signed allowlist that pins each app's signing certificate + min version.
appstore/src/main/res/values/strings.xml
diff --git a/appstore/src/main/res/values/strings.xml b/appstore/src/main/res/values/strings.xmlindex 30d2e1aa97..6452165adf 100644--- a/appstore/src/main/res/values/strings.xml+++ b/appstore/src/main/res/values/strings.xml@@ -207,8 +207,16 @@ <string name="trust_fdroid_check_chained">Every entry in that list is chained back to the signature</string> <string name="trust_fdroid_check_rebuilt">Versions F-Droid\'s second build server reproduced bit-for-bit are badged as reproducible</string> <string name="trust_fdroid_check_hash_and_key">The hash and the signing key both come from the signed list</string>- <string name="trust_fdroid_limits">F-Droid holds the signing key, not the developer, so its build servers can sign anything. Nobody checks what an app does, only that it matches its source. Updates wait to be rebuilt, which can take days or weeks โ security fixes included โ and there is no way to pull a bad app back off phones.</string>-+ <string name="trust_fdroid_limits">F-Droid holds the signing key, not the developer, so its build servers can sign anything. Nobody checks what an app does, only that it matches its source. Updates wait to be rebuilt, which can take days or weeks - security fixes included - and there is no way to pull a bad app back off phones.</string>+ <string name="trust_grapheneos_title">GrapheneOS</string>+ <string name="trust_grapheneos_summary">Google\'s own signed builds of the Sandboxed Google Play components, re-hosted by GrapheneOS behind a signed list naming each file\'s hash and signing key.</string>+ <string name="trust_grapheneos_practice_official">The files are Google\'s own signed builds, re-hosted unchanged rather than rebuilt</string>+ <string name="trust_grapheneos_practice_signed_index">GrapheneOS signs the list of versions, file hashes and expected signing keys with its release key</string>+ <string name="trust_grapheneos_practice_matched">Only the builds that match the compatibility layer your OS ships are offered</string>+ <string name="trust_grapheneos_check_index_signed">That signed list is checked against a key built into this store</string>+ <string name="trust_grapheneos_check_rollback">A list older than the last one seen is refused, so an old build cannot be pushed back onto you</string>+ <string name="trust_grapheneos_check_hash_and_key">Every downloaded file matches the hash and the signing key that list names for it</string>+ <string name="trust_grapheneos_limits">These are Google\'s closed-source apps. Nothing is built from published source and nothing is reproducible, so what is proven is that you received the file GrapheneOS listed, not anything about what that file does. The source carries only the Sandboxed Google Play components, and there is no way to pull a bad release back off phones.</string> <string name="trust_play_title">Google Play</string> <string name="trust_play_summary">Reviewed, scanned and signed by Google, who verify who the developer is and can pull an app from every phone at once.</string> <string name="trust_play_practice_identity">Developers have to prove who they are, with a real name and address on file</string>