Repository navigation
K2GO-588 feat(privacy): one choice for usage data, crash reports and automatic connections - #815
Merged
Merged
Conversation
…automatic connections One stored choice replaces the analytics and crash-report opt-ins; the automatic-fetch rule and the Kiwix directory read follow it. Asked in every flavor, one switch in Settings > About. Crash events only (no Sentry sessions); off closes Sentry. Neutral User-Agent for app HTTP calls.
Only local hosts load; an internet page shows a short offline note instead of a blank screen.
…eens They held a second copy of the consent UI and were no longer reachable.
… it resumes at setup With permissions already granted the wizard opens at the setup choice and skipped the question.
main added the K2GO-552 strings at the end of each strings.xml, like this branch. Both blocks are kept, main first.
- The choice covers more than the old analytics and crash-report opt-ins, so their answers are dropped (new keys online_choice / online_choice_asked) and every user is asked once. Home asks an existing install after the boot gate; the wizard asks a fresh install. Until the answer: Keep offline. - OnlineChoiceEffects is the one place that applies a change (onboarding and Settings): analytics collection, and crash reports start at once on yes. Sentry.close() runs off the main thread (it can wait for its transport). - Sentry sends no client reports (counts of dropped events). - The label and question text move to presentation (OnlineChoiceDialog).
…s local - A local page's own internet sub-requests (map tiles, fonts) load when the choice is on and the network is unmetered (the K2GO-580 rule, now gated by the choice). An internet page still never opens in an in-app WebView. - HostScope treats a single-label name (http://box/) as local, so a box link no longer shows the "This page is on the internet" note.
…restores the device value
…pens On a cold start after the update, onResume runs while the gate is still up, so the question waited for the next resume. It is now asked when the gate opens, and the admin-password notice (K2GO-552) follows it, so the two dialogs never stack.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes
OnlineConsent) replaces the analytics and crash-report opt-ins. The old answers are dropped and every user is asked once (see Review fixes).NetworkCostAdmission.allowsAutomatic) also needs the choice on. App and dash-node update checks, the Kolibri Studio tree, the live rootfs size and the Kiwix directory read stop when the choice is off.K2Go) for app HTTP calls; the twoMozilla/5.0overrides are removed.Why
Steps to QA
update.json) still runs at each launch on Wi-Fi.update.jsonrequest and Sentry does not start. Turn the switch on in Settings > About: the next launch checksupdate.jsonand starts Sentry.Verifications
main(with K2GO-552) is merged into the branch. The only conflicts were instrings.xml: both branches append at the end, so both blocks are kept (main first).main, installed over amainbuild with a library (no data clear): the old answers are dropped and the question shows once (see Review fixes). Settings > About: dark and light verified. The onboarding was verified in dark only (light needs a data clear).google-services.json, so analytics is compiled out and the label is the crash-report one. CI builds of standard and Play have the file and show "Share usage data and request online content".Notes
strings.xmlhere; K2GO-588 feat(privacy): with Keep offline, actions ask once, box services stay off, catalogs follow the choice #814 removes them with the other unused strings.Review fixes (2026-11-22)
A code review found gaps. Maintainer decisions and fixes (b29d9eb, 8b19e16, 6b26f7a, 0b7b045):
analytics_opt_in,analytics_enrollment_shownandcrash_reports_opt_inare dropped (new keysonline_choice/online_choice_asked). Until the answer: Keep offline. The wizard asks a fresh install; Home asks an existing install when the boot gate opens, before the K2GO-552 password notice, so the two dialogs never stack.OnlineChoiceEffects, called from onboarding and Settings). Crash reports start at once on yes (before: at the next launch).Sentry.close()runs off the main thread. Sentry sends no client reports.HostScopetreats a single-label host (http://box/) as local.OnlineChoiceDialog).Device, OnePlus 7T, #813 + #815 + #814 on current
main, installed over the earlier build without a data clear:k2go-download.appdevforall.orgat once (catalogs).Noted by the review, not changed here: the dead
InstallationPlanner.getOrFetchCatalogpath stays gated (hotspot class); a cached "update available" can stay visible with Keep offline; the user-tapped OTA APK download (DownloadManager) sends the system User-Agent.