From 487457309785d00a8124d873acbd3c61067e1deb Mon Sep 17 00:00:00 2001 From: Mohammad Abdul Sahil <127765312+abdulsaheel@users.noreply.github.com> Date: Wed, 19 Aug 2026 23:09:33 +0530 Subject: [PATCH 01/64] barcode lookup is on by default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit the scanner refusing to scan until you find a settings toggle is a scanner nobody uses, and what leaves is a number the manufacturer printed on the packet — not anything about you. the paths that do send something about you (crash reports, health contribution) stay off until asked. the prompt in log_food stays for whoever turned it off and then tapped scan; refusing silently there just reads as broken. privacy.md and the docs page said off-by-default in two places each. --- PRIVACY.md | 9 +++++---- docs/privacy.html | 11 ++++++----- lib/data/off_lookup.dart | 24 ++++++++++++++---------- lib/ui2/profile/settings.dart | 2 +- lib/ui2/screens/log_food.dart | 10 ++++++---- test/off_lookup_test.dart | 20 ++++++++++++++++---- 6 files changed, 48 insertions(+), 28 deletions(-) diff --git a/PRIVACY.md b/PRIVACY.md index 6efb2c43..f364053f 100644 --- a/PRIVACY.md +++ b/PRIVACY.md @@ -64,9 +64,10 @@ because a sideloaded app has no store to tell you a security fix exists. **Barcode lookup for food logging** The food log can read a barcode with the camera and fill in the nutrition -figures for you. Doing that means asking a database, so it is **off until you -turn it on**, and the App asks you before the first lookup ever happens — not -after. +figures for you. Doing that means asking a database, so it is **on by +default**: what leaves is a number the manufacturer printed on the packet, and +nothing about you goes with it. Turn it off and the scan stops asking anybody +anything. - **What is sent is the barcode.** It goes to openfoodfacts.org, the free and open food database. Nothing about you, your meals, your health or your device @@ -157,7 +158,7 @@ moment you tap it: further upload immediately, and the App tells you when the last one was. - **Check for updates** — turning it off stops the App making any network request of its own accord. -- **Look barcodes up online** — off by default; turning it off stops any +- **Look barcodes up online** — on by default; turning it off stops any further lookup immediately, and the food log keeps working by hand. You can also disable AI Coach or Health app integration at any time in Settings diff --git a/docs/privacy.html b/docs/privacy.html index d4d14bb8..29c1345d 100644 --- a/docs/privacy.html +++ b/docs/privacy.html @@ -68,9 +68,10 @@

Anonymous diagnostics

Barcode lookup for food logging

The food log can read a barcode with the camera and fill in the nutrition - figures for you. Doing that means asking a database, so it is off - until you turn it on, and the App asks you before the first - lookup ever happens — not after.

+ figures for you. Doing that means asking a database, so it is on + by default: what leaves is a number the manufacturer printed on + the packet, and nothing about you goes with it. Turn it off and the scan + stops asking anybody anything.