CertifitacePinning: Add toggle to enable/disable

- Enabled by default
- Could be useful for people using VPN based ad blockers
- Option to make app usable, if at all Google's root certs gets changed/updated
This commit is contained in:
Rahul Patel
2024-12-16 21:16:58 +05:30
parent cf1d709bf5
commit fbeee2300c
5 changed files with 50 additions and 11 deletions

View File

@@ -231,6 +231,8 @@
<string name="pref_network_proxy_title">Proxy</string>
<string name="pref_network_proxy_enable">"Enable proxy"</string>
<string name="pref_network_proxy_enable_desc">"Allow all traffic from app to go through the proxy"</string>
<string name="pref_certificate_pinning_enable">"Enable certificate pinning"</string>
<string name="pref_certificate_pinning_enable_desc">"Locks the app to trust only specific server certificates, preventing connections to untrusted or compromised servers."</string>
<string name="pref_network_proxy_url">"Proxy URL"</string>
<string name="pref_network_proxy_url_message">Enter a valid proxy URL to pass all data through the proxy.</string>
<string name="pref_ui_title">"Customization"</string>

View File

@@ -44,6 +44,12 @@
app:singleLineTitle="false"
app:title="@string/pref_common_extra" />
<SwitchPreferenceCompat
app:iconSpaceReserved="false"
app:key="PREFERENCE_CERTIFICATE_PINNING_ENABLED"
app:summary="@string/pref_certificate_pinning_enable_desc"
app:title="@string/pref_certificate_pinning_enable" />
<com.aurora.store.view.custom.preference.AuroraListPreference
app:defaultValue="0"
app:entries="@array/pref_vending_version"