Repository navigation
Privacy and security
English · Italiano
The app has no server of its own: it downloads public files and nothing else. There are no accounts, usage statistics or ads.
Copies of passports and tickets are encrypted (AES-GCM) with a key that unlocks only with the device's biometrics: fingerprint or face, "strong" level. The key requires strong biometrics for every operation, even on older versions of Android. Keys already created stay as they were until the vault is reset.
At the first unlock the app creates the documents key, wraps it with the Keystore key and writes it to the device before using it: if the system closes the app right after, at the next start the vault opens with the same key and the documents stay readable. If the write fails, for example with full storage, the unlock fails and the key is not used. The same holds for the keys of the assistant history: if they are not written, the conversation is not saved.
The unlocked key stays in memory only. It is discarded when leaving the documents screen, including when switching to Notes in the Documents | Notes selector, or when the app goes to the background. Rotating the device does not discard it. The array of the unlocked key is zeroed after it is copied into the session. Thumbnails are kept in an in-memory cache that is emptied on lock.
A button with a padlock locks the vault at once, with the same effect as the automatic lock: key discarded, list and thumbnails emptied.
If a fingerprint is added or removed, Android invalidates the key. The saved documents can no longer be opened, and the screen offers to reset the vault, which deletes them. If the reset fails, "Reset failed. Try again" appears.
The screen offers the reset in two other cases as well: if the Keystore key disappears, and if the wrapped key saved on the device is damaged or missing. In the latter case the reset is offered instead of the app closing. For any other error while unlocking, for example a momentary Keystore fault, the reset does not appear: "Unlock" stays, to try again.
If strong biometrics disappear while the vault is locked, on returning to the app the explanation appears instead of an unlock error. With the sensor temporarily unavailable (BIOMETRIC_ERROR_HW_UNAVAILABLE) the vault stays locked and the unlock is retried. If Android asks for a security update for biometrics (BIOMETRIC_ERROR_SECURITY_UPDATE_REQUIRED, or BIOMETRIC_ERROR_UNSUPPORTED), the screen says so instead of "Unlock failed".
On Android 8 and 9 the fingerprint dialog is not the system's but androidx.biometric's, with an AppCompat theme: this is why the app theme derives from Theme.AppCompat. Version 1.4.0 of androidx.biometric is needed: since version 1.19 of androidx.core the earlier versions, on Android 8 and 9, do not find the sensor and the vault appears to have no biometrics.
The fields of a document being edited do not go into the state that Android saves for the activity. They are in a draft in the ViewModel (DocumentDrafts), which survives a rotation and is discarded on save, on cancel and on lock. The document number is typed without autocorrect, so the keyboard does not learn it. Each document type has its own fields (DocumentFields), and those the type does not show are not saved.
While the vault is open the window has FLAG_SECURE. No screenshots or screen recordings. No passport data in the recent apps thumbnail, which Android takes at onPause, before the vault locks.
Dialogs also request it, since they have a window of their own, the camera included. The flag is removed on exit, only if it was not already set before.
The shot goes through a temporary file in the app cache, because EXIF (location, device model) can be reliably removed only from a file. The file is deleted as soon as it is read into memory, even if the EXIF removal fails; in that case the shot is discarded.
If the process dies halfway, the folder of temporary files is emptied when the vault opens and at every app start. The photos of a document not yet saved are also deleted when the vault locks, for example with the app in the background. The camera does not turn on if the dialog has already been closed.
For tickets, the autocomplete of airlines and airports comes from lists compressed inside the app: OurAirports (public domain), OpenTravelData and GeoNames (CC BY 4.0), Wikidata (CC0). The lists are loaded only when a ticket is being filled in. What is typed does not leave the device.
A city code such as "ROM" or a name such as "Milan" offers the city first, with its airports, and then the individual airports. European stations with an IATA code are also there, such as Milano Centrale (XIK). Among the airlines there are no booking systems that have an IATA code, such as Amadeus (1A) and Sabre (1S).
In the search the apostrophe does not split words. This way a name with an apostrophe is also found when typed without it: "ohare" finds Chicago O'Hare, "laquila" finds L'Aquila.
In the repository the lists are airports.tsv.gz and airlines.tsv.gz, but in the APK they are called airports.tsv and airlines.tsv, because the Android plugin decompresses .gz assets. The app looks for them by the APK name. With the repository name it would not find them, and choosing the Ticket type would close the app.
Notes (bookings, addresses, itinerary) are encrypted with an Android Keystore key that does not require biometrics. This way the AI assistant can use them to answer without asking for the fingerprint each time. Notes stay on the device only. The search in the notes, also used by the assistant, ignores accents: "perche" finds "perché". For more sensitive data, such as the passport, there is the vault, with biometric unlock.
Conversations with the assistant are saved only with the "On device" engine, in the region.db database, encrypted. With the "Online" engine nothing is saved. Without strong biometrics nothing is saved.
Each conversation has its own AES-256-GCM key, wrapped with the RSA public key of the history, so new turns are written without an unlock. The private key of the history is protected by an Android Keystore RSA key that requires strong biometrics at every use (BiometricPrompt with CryptoObject, like the vault). For this reason opening the history always asks for the fingerprint or face.
The history window has FLAG_SECURE. It closes when the app goes to the background, and the key is discarded from memory. The assistant screen also has FLAG_SECURE, as long as it shows a conversation resumed from the history. The same applies while the API key of the Online engine is shown in plain text ("Show key"): no screenshots, screen sharing or recent apps thumbnail with the key.
The conversation search writes nothing on the device: no index on disk, no extra table. After unlocking, the turns are decrypted into an index in memory only (ConversationSearchIndex), discarded when the history closes, when the app goes to the background and when the history is deleted. A search still running at closing does not recreate it.
Deleted rows do not stay in the database file. Android's SQLite is compiled with SQLITE_SECURE_DELETE (PRAGMA secure_delete = 1, full zeroing). SecureDeleteDeviceTest checks that the bytes of a deleted conversation disappear from the file after the WAL checkpoint.
"Delete the history" from Settings also closes the conversation open in the AI tab. If the biometrics change, the history is no longer readable and only deletion remains: of one conversation, or of the whole history from Settings, without an unlock. Conversations unused for 30 days, counted from the last turn, are deleted automatically at app start.
The microphone is used only to dictate the question to the assistant, from Android 12. The RECORD_AUDIO permission is requested at the first tap on the microphone. The recognition is the on-device one (createOnDeviceSpeechRecognizer) and also works without internet. The audio stays with the system service: the app receives only the text and neither saves nor sends audio.
The nationality and the app language are chosen at first start and stay on the device: they are not sent anywhere. The nationality is used to show the embassies, consulates and official sources of one's own country, and the guide sections written for its citizens.
Location is used only for navigation. The permission is requested the first time the Navigator uses the location, or when "Navigation routes" is turned on. It is foreground only: the app does not request ACCESS_BACKGROUND_LOCATION.
GPS is used only in the Navigator, in three cases:
- during navigation;
- to calculate a route that starts from one's own location;
- while the Navigator is open without a destination, to show the location and the nearby points of interest; the GPS stops when leaving the screen.
To continue with the screen off or with the app in the background, navigation starts a location-type foreground service. The service always has a persistent visible notification, with the turn, the distance and "End". It is the way Android provides for using location off-screen without the background permission, and the user always sees that the location is in use.
The service records nothing. It stops when navigation ends. With "Turn off GPS on arrival", on by default, it also stops right away on arrival.
During navigation the app appears over the lock screen (setShowWhenLocked). Navigation can be seen without unlocking the device, but only its screen; moving to anything else requires an unlock. Once navigation is closed, the behavior returns to normal.
The navigation in progress (destination, travel mode, arrival time) stays saved on the device for 12 hours at most, so it can be resumed if the app is closed.
Active alerts come from GDACS, USGS, Meteoalarm, the NOAA tsunami centers and national services. They are never downloaded with the location, but for the whole world, per country, per state (National Weather Service) or for the bounding box of the region (Environment and Climate Change Canada). The bounding box is applied on the device anyway. The sources see only the IP address, as for any web page.
"Alert notifications" is in More → Settings, is off by default and asks for the notification permission. When on, it runs the same check about every hour even with the app closed, only when online. It remembers the ids of the alerts already notified for 7 days. Tapping the notification opens the guide of the region.
The English guide asks the GOV.UK Content API only for the date of the travel advice of the region's country.
Shortened Google, Apple and Mapy links in the Navigator are read online only after consent, off at first (More → Settings → Shortened links). The service receives the link without its parameters, the app name with the project address (User-Agent) and the IP address, never the device's location or cookies. No request starts in the background. See Coordinates and links.
With the permission already granted, the last location known to the device is also used to suggest the nearby public transport networks. It is also used to put embassies and consulates within 100 km at the top. It does not turn on the GPS. The country is derived from the borders already in the app, without external services.
The location does not leave the device, with a single deliberate exception. For the "Nearby" weather, Open-Meteo receives only the location rounded to about 10 km, never the exact location. Open-Meteo requires no key or account.
The "Emergency" and "Shortcuts" widgets are only on the Home screen, not on the lock screen. They show the last region opened, the emergency numbers and the embassy of the chosen nationality. They do not show documents, notes or location, and do not access the network. Documents from the widget still asks for the biometric unlock.
Text selected or shared from another app stays on the device with the On device engine. With the Online engine it goes to the chosen service together with the question, only after a tap, without the location, vaccinations or personal note. It does not enter the history.
The personal API key is saved on the device, encrypted with Android Keystore. The key and the questions go directly to the service chosen by the user.
The relevant texts of the downloaded guides are sent with the question. If the switch is off, the sections written for the chosen nationality, such as visas, stay out. The personal note, data near the location, the departure country and the nationality are sent only with Send personal data to the service on, off at first.
A photo is sent only with Send photos to the service on for that service, off at first. It is also sent after tapping "Send" in the notice shown for the first photo sent to that service. The following questions of the same conversation send it again. Before sending, the app re-encodes the photo without metadata, so location, date and phone stay on the device.
A failed answer leaves in the system log only the engine and the type of the error, with the HTTP code. It never leaves the question, the key or the text of the answer.
"Listen" reads the answers of both engines only with voices installed on the device. With Online voices for Listen on, off at first, the voice is chosen by the device's text-to-speech. If that voice is online, it receives the text of the answer.
Every downloaded file is checked against its SHA-256 hash before being used. The app accepts only addresses from a fixed list (GitHub, Protomaps, BRouter, plus the host of the catalog in use) and only over HTTPS. The only exception is the debug catalog, which can use plain HTTP and applies only in debug builds.
The real-time and service alert feeds of public transport come from the operators' websites, outside the list. Their address (realtimeUrl, alertsUrl) comes from transit.json, which is signed, and is HTTPS only, with a host and without credentials.
The feeds are downloaded only with the card of a stop open, never in the background. The operator sees the IP address, as for any web page. The decompressed feed has a size cap and is not saved to disk.
A download that exceeds the size written in the catalog is stopped immediately, even when resumed halfway. The same applies to xz decompression, as soon as the result exceeds the expected size, because a small xz file can expand enormously.
The rule also applies to the assistant's models and to the cells of the address search. The cells stay compressed on the device and are unpacked to rebuild addresses-search.db. The unpacking stops beyond the size indicated by the catalog, and at the end checks size and SHA-256, as for the region packages.
A damaged file of the installed house numbers does not block reading the parts already installed: unreadable entries are skipped.
llama.cpp is at v1.0.0, which contains the fix for CVE-2026-107183: a memory handling error in the reading of tool calls, fixed since v0.6.0. The app does not use that part of the library. At every push the CI searches OSV for known vulnerabilities of the Java and Kotlin libraries (see CI checks, in Publishing).
Two downloads on the same staging folder, for example two jobs on the same region, are queued instead of writing the same partial file. The second reuses the files that are already complete. A canceled download or decompression (region deleted, job replaced) stops immediately, without leaving half-written files. The installations of several countries in the database are queued as well, because with two at once the second timed out after 30 seconds and failed. Deleting a country while another is being installed and the database stays busy beyond that time shows the deletion's error message, without closing the app.
The SHA-256 hash protects the packages only if the catalog that contains it is authentic. For this reason the JSON files that the app downloads are signed with ECDSA P-256 and SHA-256. java.security already supports them from Android 8, unlike Ed25519.
| File | Published by |
|---|---|
manifest.json, the file of the catalog regions |
publish-regions.yml, on GitHub Pages |
transit.json (public transport index) |
publish-regions.yml, on GitHub Pages |
address-grid.json (index of the house number cells) |
publish-regions.yml, on GitHub Pages |
app-status.json (new version of the app and of the AI models) |
publish-apk.yml, on the app-status release |
online-models.json (models offered for the Online engine services, with prices) |
publish-online-models.yml, on the app-status release |
exchange-rates.json (indicative exchange rates of the guides' quick facts) |
publish-exchange-rates.yml, on the app-status release |
app-status.json also contains the hashes used to verify the model downloads.
Next to each file is <name>.sig, the DER signature over the exact bytes of the file. The app downloads it from the same host, only among those allowed for the catalog. It verifies it with the public key embedded in the app before reading the file.
sequenceDiagram
accTitle: Signed catalog verification
accDescr: The app downloads manifest.json and manifest.json.sig from an allowed host, verifies the signature with the embedded public key and uses the file only if the signature is valid; otherwise the download counts as failed.
participant App
participant Pages as GitHub Pages
App->>Pages: manifest.json
App->>Pages: manifest.json.sig
App->>App: verifies with the embedded public key
alt valid signature
App->>App: reads the catalog
else missing or wrong signature
App->>App: download failed, the file is not used
end
A missing, wrong or unreadable signature counts as a failed download, never as a go-ahead. A temporary server error (5xx, 408, 429) triggers a retry; an absent signature (404) does not. For the indexes saved per version, the verified signature stays next to the file, so it is checked again even offline.
With the debug catalog, only in debug builds, the signature is not checked, because a local test server does not have the key.
manifest.json, app-status.json and online-models.json are downloaded only when they change (SignedFileCache). The app saves the verified bytes, the signature and the site's ETag, and sends If-None-Match with the next request. With a 304 response it rereads the saved copy and verifies it again, signature and publishedAt, like a new download.
A copy that does not pass (changed key, altered file) is deleted and downloaded again in full. An ETag with characters not allowed in a header is not saved. The copies of the catalogs used before are deleted at the first read after the restart that follows the catalog change.
Each signed file also carries publishedAt, the publication time in seconds, inside the signed data. After the signature, the app compares it with the last one accepted for that file. It rejects a lower value, or a file without the field after having seen one.
This way an old file + .sig pair, republished by someone who had obtained write permission on the releases, cannot roll the catalog back or hide the update notices. App versions without this check ignore the field.
In More → Settings → Catalog the catalog of a fork can be used. The address of manifest.json (HTTPS only, without credentials or fragments) and its P-256 public key are needed. The app downloads manifest.json and the signature, verifies them with that key and checks that it really is a catalog. Only then does it save the two items and restart, so no component stays with the previous catalog.
That key applies to manifest.json, transit.json and address-grid.json. app-status.json (notices of new app versions and model hashes) and online-models.json stay the project's, with the embedded key and their own publishedAt.
The online models list decides only the names of the models and the temperature. The address of each service is written in the app, so the API key always goes only to its own service. The publishedAt dates of the previous catalog are forgotten at start after the change. "Return to the official catalog" restores the project's catalog.
The private key lives only in the MANIFEST_SIGNING_KEY secret of the repository, and is passed only to the workflow step that signs. Without the secret that step fails instead of publishing unsigned files. In the publishing workflows the checkouts do not save the write token (persist-credentials: false). In publish-apk.yml the GitHub token is exposed only to the steps that publish. The workflows are described in Publishing.
After a crash, a freeze (ANR) or a close due to low memory, at the next launch the app shows "The app closed unexpectedly", with the report to read before sharing it. The report stays in filesDir/crash/ and is deleted with "Close"; it never leaves on its own.
"Share the report" uses the Android share sheet. "Report on GitHub" opens the "Problema nell'app" (problem in the app) form, with version, Android, device and report already written in the address. There are four forms for reports on GitHub: problem in the app, wrong data in a region or a guide, AI assistant, idea.
The labels of the report (Event, Screen, Loaded model) follow the app language. The report contains:
- app version, Android version, device model and RAM;
- type and time of the close;
- name of the screen, without its arguments;
- id of the loaded assistant model, with its RAM tier and that of the device;
- the trace.
For Java crashes the trace has only classes and lines of code, with the "Caused by:" lines but without the exception messages, which could contain user text. For ANRs the trace is the stack of the threads. For native code crashes there is no trace, because Android's trace also contains pieces of the process memory, which could be questions or notes.
The report contains no conversations, notes, documents, location or API keys. Low-memory closes and native crashes are read with ApplicationExitInfo, from Android 11.
Websites and addresses opened by the app often come from data that anyone can edit (OpenStreetMap, Wikidata) or from downloaded databases. The internal browser and the "Open the website" buttons open only http and https addresses with a host. intent:, market:, content:, file:, javascript: and the like are discarded, also in redirects inside the browser.
A site without a scheme ("www.example.com") becomes https://. This also applies when the address contains ":" after the site name, for example in parameters, which is not mistaken for a scheme. Domain names with non-ASCII letters ("münchen.de", "www.zürich.ch") are valid and open. Addresses that contain |, {, }, [, ], ^ or ` after the site name open too, as in browsers; in the site name these characters remain invalid.
The pages of the internal browser cannot read the local files or the app's content providers. Another app cannot make the internal browser open an address of its choice, because the app's intents have no implicit navigation deep links. tel: and mailto: links taken from OpenStreetMap are also built with Uri.fromParts, not by pasting the text. This way numbers and addresses with characters such as "#" or "?" open.