mirror of
https://github.com/Dasemu/NavFrame.git
synced 2026-11-26 07:16:06 +00:00
201 lines
40 KiB
Markdown
201 lines
40 KiB
Markdown
# Testing and physical validation status
|
||
|
||
**Latest physical report — 2026-10-12:** using the latest version (exact version number not supplied), the rider saw the map work correctly on the Yamaha TFT for approximately 20 minutes. In La Corredoria, Oviedo, the TFT then displayed **“Mapa no disponible”** (“Map unavailable”) and did not recover for the rest of the trip, while the map continued working on the phone with an offline map installed. Whether the phone was locked or the app was in the background, and any diagnostic error code, are unknown. This establishes successful TFT map rendering followed by a persistent failure; it does not establish the failure's cause or prove the TFT's active source was the installed offline map. See the [incident investigation](TFT_MAP_INCIDENT_2026-10-12.md) for findings and recovery checks.
|
||
|
||
Offline POI behavior, GPS quality, voice instructions, camera-alert timing, intercom audio, Bluetooth recovery, and a controlled 30-minute screen-off session still require physical validation unless a newer report records them. Older statements below describe evidence available at the time and are superseded by the report above.
|
||
|
||
Automated checks and physical-device checks are separate. Local verification for `0.13.1` passed 159 unit tests (60 app, 89 core, 10 NaviLite), 17 Python offline-builder tests, Android APK assembly, and lint with zero errors and 76 warnings. The earlier `0.13.0` / versionCode 16 build passed 152 automated JVM/Robolectric tests (55 app, 87 core, 10 NaviLite), plus 11 Python offline-builder tests. Android lint reported 0 errors and 75 warnings. Its debug APK was 81,266,845 bytes, SHA-256 `4901f4fe846e606d3db64e74e1e6b27ad554e46fc01d45d2f7091d441cee8eff`.
|
||
|
||
The owner confirmed static and synthetic NavFrame frames on a Xiaomi 11 Lite 5G NE (Android 14) and a 2026 Yamaha MT-07, and the Asturias offline map on the phone. JVM/Robolectric tests do not run MapLibre JNI/OpenGL or exercise a physical Yamaha display, motorcycle, Bluetooth intercom, or Android TextToSpeech hardware.
|
||
|
||
UI labels below are translated for readability; the installed app may display their Spanish equivalents. Literal status strings and diagnostic messages are retained where useful.
|
||
|
||
## Historical test procedures
|
||
|
||
### M1-TFT: preparation and smoke test
|
||
|
||
**M1-TFT completed:** the user confirmed both the static image and synthetic navigation image on the TFT of a 2026 Yamaha MT-07, using a Xiaomi 11 Lite 5G NE with Android 14. StreetCross also works with that combination. Local preview and fake transport remain separate from physical compatibility tests.
|
||
|
||
The session was observed disconnecting when no new frames arrived. Version `0.1.1-continuous` retains and resends the last JPEG, maintains a foreground service with a bounded partial wake lock, and retries after 1, 2, 4, 8, and up to 15 seconds. Selectable intervals are 0.5, 1, or 2 seconds (default: one second). This logic passed unit tests, but prolonged screen-off operation and complete shutdown after **Disconnect** still require validation on the user's phone.
|
||
|
||
#### Local check (without a motorcycle)
|
||
|
||
1. Build and install using the root commands documented in `README.md`.
|
||
2. Open NavFrame. Preview appears before connection and shows the JPEG generated by `TestTftRenderer` in a 480×240 viewer.
|
||
3. Press **Connect simulator**. Connection state must become `CONNECTED`, and the message ends with “Simulator connected · no continuous Bluetooth session.” Press **Send synthetic navigation text**; the viewer reflects fixed values (NEXT TURN 350 m, 23 km, ETA 17:42). Press **Disconnect** afterward.
|
||
4. This path uses `FakeTftTransport`, opens no Bluetooth connection, requires no permission, and displays the same JPEG bytes received by the fake. It verifies local rendering/flow, not handshake, Bluetooth writes, or the physical TFT image.
|
||
|
||
#### M1 procedure (completed; repeat only after protocol changes)
|
||
|
||
Start with the Xiaomi 11 Lite 5G NE (Android 14) and 2026 MT-07 already working with StreetCross. Prepare the phone and stationary motorcycle in a safe location. Completely close StreetCross so it does not compete for the CCU session. Enable Bluetooth. In NavFrame, press **Refresh paired devices** and grant nearby-device permission / `BLUETOOTH_CONNECT`; if not paired, use **Open Bluetooth settings / pair** and follow the motorcycle's instructions. Return to NavFrame, refresh, select Yamaha, and press **Connect selected Yamaha**. Allow notifications if Android requests them for the foreground session. After setup, state must become `CONNECTED`; the app automatically attempts to send the static image. The message becomes “Image sent: … bytes · … ms” after the service ACK. Then test **Send test image** and **Send synthetic navigation text**. Keep the app foregrounded for initial diagnosis. Record motorcycle model/year, phone model/Android version, app version, pairing state, connection/handshake result, and whether the complete image appears on the TFT. Avoid precise location, Bluetooth identifiers, or personal data in shared logs.
|
||
|
||
Reported observable success: both NavFrame images appear on the TFT without MediaProjection or capturing another application. This validates M1 connection/render smoke testing for that phone and MT-07; it does not establish long-term stability, real navigation, GPS, or compatibility with other Yamaha model years.
|
||
|
||
#### Screen-off and recovery test (pending)
|
||
|
||
Install `0.2.0` or later on the Xiaomi 11 Lite 5G NE (Android 14) and use the 2026 MT-07. Close StreetCross and other navigation apps, connect NavFrame, and first confirm an M1 image. Check the displayed battery-optimization state. If Android/Xiaomi prevents the session continuing, use **Open battery optimization settings** and record any change; the app does not change policy automatically. Leave the motorcycle safely parked with TFT/CCU powered and turn off the phone screen; do not conduct this test while riding.
|
||
|
||
Leave NavFrame backgrounded with the screen off for 30 minutes. Check that the TFT retains and refreshes the last frame and that reopening NavFrame shows a connected state and “Continuous session · … ACK … ms.” Record service termination by Android, visible interruptions, recovery time, and battery/permission warnings. In a separate stationary test, disable phone Bluetooth for approximately ten seconds and re-enable it; verify retry state and frame transmission resume without opening StreetCross or pressing Connect. Do not record location or Bluetooth identifiers.
|
||
|
||
Finally press **Disconnect**. Verify the navigation notification disappears, state becomes `DISCONNECTED`, the message says “Disconnected · sending and reconnection stopped,” and no further retries occur. The last TFT image may remain static; that does not mean the service keeps transmitting. The app shows Android optimization state, not wake-lock state.
|
||
|
||
For a technical wake-lock release check with authorized USB debugging, inspect before and after disconnecting: `adb shell dumpsys power | grep -F 'NavFrame:TftSession'`. It should appear during the active real session and disappear after **Disconnect**. This optional check does not replace the 30-minute phone test.
|
||
|
||
### Phase 2: animated demo (fictional data)
|
||
|
||
1. Open NavFrame and optionally press **Connect simulator** or connect Yamaha. Preview alone can also test the demo.
|
||
2. Press **Start animated demo**. No location permission is required. Confirm `DEMO · carretera, ruta y maniobras ficticias`, changing preview, and a 480×240 JPEG.
|
||
3. The image must display `DEMO · RUTA FICTICIA` and `ETA … · DEMO`; position, speed, road, route, and maneuvers are invented. If TFT is connected, visually confirm dynamic frames there. The local simulator validates preview/local flow, not physical Bluetooth.
|
||
4. Press **Stop navigation · keep TFT**. The demo stops while TFT connection remains available; **Disconnect TFT** also stops Bluetooth.
|
||
|
||
### Phase 3: real GPS without a map or route
|
||
|
||
Start parked in a safe location; do not operate the phone while riding. On the Xiaomi 11 Lite 5G NE with Android 14, close StreetCross before connecting the motorcycle to avoid channel competition. Enable phone location. Press **Start real GPS (no map/route)** and grant precise location when Android requests it. The app needs `ACCESS_FINE_LOCATION`; approximate-only permission must explain that real GPS cannot start while the demo remains available. Android may request notifications for the foreground service. GPS starts from a visible screen and requests no permanent/background-location permission.
|
||
|
||
If the GPS provider is off, NavFrame asks to enable it via **Open location settings**, then press GPS again. With reception, wait for a fix: UI/TFT must show `GPS · SIN MAPA/RUTA`; speed, heading when supplied by Android, accuracy, and a test grid appear, never a real route. GPS can run without TFT to test preview; with Yamaha connected, the same frame is transmitted. Exact position stays in memory and must not appear in shared logs or screenshots.
|
||
|
||
Check the no-fix state: more than 15 seconds after the last valid position, display `SIN SEÑAL` / `GPS_LOST`, mark speed/heading/accuracy unavailable, and wait for a recent position. Data should update when reception returns. Revoke permission through **Open NavFrame permissions** to verify the app offers the demo as an alternative.
|
||
|
||
Press **Stop navigation · keep TFT**. GPS stops and `NAVEGACIÓN DETENIDA` appears, preserving any TFT session. **Disconnect TFT** also ends connection; notification action **Stop everything** cancels navigation and connection. Do not infer wake-lock release or screen-off stability from this test.
|
||
|
||
This phase checks position and local rendering, not maps, destinations, geocoding, calculated routes, or turn-by-turn directions. The demo must never be mistaken for real navigation. Keep preview/fake, real phone GPS, and physical TFT evidence separate.
|
||
|
||
### Phase 4: real MapLibre map
|
||
|
||
This phase adds **Start demo map (simulated position)** and **Start GPS map (no route)**, an optional HTTPS vector-style URL, attribution, and **Save map source**. An empty URL uses NavFrame's reduced dark asset style and OpenFreeMap source; custom styles must be complete MapLibre-compatible style JSON with all credits in attribution. Do not use `tile.openstreetmap.org` as a source. Public OpenFreeMap requires no key but offers no SLA.
|
||
|
||
1. Start with preview/fake and network access. Save defaults (empty URL and default credits), start **Demo map**, and wait for the first snapshot. Real cartography must appear around the invented position with `MAPA · POSICIÓN SIMULADA · sin ruta`; the TFT position indicator includes neither route line nor maneuvers. The initial online request may take time; subsequent snapshots must update serially without accumulating frames.
|
||
2. With precise GPS authorized, location enabled, and phone parked outdoors, start **GPS map**. Preview must show real streets around the phone fix and `MAPA GPS · SIN RUTA`. With Yamaha connected, verify the received 480×240 JPEG preserves attribution and indicator. Repeat without GPS signal; current measurements must not appear valid.
|
||
3. Test an invalid source/network disconnection. NavFrame must display `MAPA NO DISPONIBLE`, clear current speed/heading, and retry with pauses, without substituting the demo's illustrated road. Restoring the network should recover the map. If TFT snapshot fails, open **Settings → Info → TFT map diagnostics** and inspect code, stage, timing, and ONLINE/LOCAL source; reports omit coordinates, URLs, and queries. Categories guide diagnosis but do not independently identify a root cause. Changing style/source stops current navigation, preserves local configuration, and requires restarting the mode.
|
||
4. Use **Stop navigation · keep TFT** during capture: cancel MapSnapshotter, prevent a late callback publishing a navigation frame, and preserve Bluetooth. **Disconnect TFT** also stops connection.
|
||
|
||
The app logs neither coordinates nor URLs/tokens. Loading a remote map nevertheless requests visible-area resources from the configured origin, revealing that area and network metadata. OpenFreeMap states that regular logs omit IPs, but may use a CDN and temporary incident logging; review its [privacy policy](https://openfreemap.org/privacy/) and [terms](https://openfreemap.org/tos/). This phase has no offline-download mode. TFT must show at least `© OpenStreetMap contributors · © OpenMapTiles` plus additional style/configuration credits; the phone exposes licenses/credits through **MapLibre license and map credits**.
|
||
|
||
Real maps require an Android device with GPU and connectivity. Robolectric composition tests load no JNI/OpenGL and do not confirm tile endpoint availability; compilation does not test native rendering. At this phase, the Xiaomi/MT-07 map test remained pending until the user could perform it with the motorcycle stationary.
|
||
|
||
### Phase 5: calculate and display a plan (without guidance)
|
||
|
||
This phase calculates a route only after explicit action and two coordinates. There is no geocoder at this stage: enter destination latitude/longitude. **DEMO Oviedo origin · simulated** uses an invented Oviedo position. **Real GPS origin · latest position** requires an active GPS provider and a fix younger than 15 seconds; start **Start real GPS** or **Start GPS map** and wait for a recent position before calculating. The result identifies the origin used. Do not use the demo for real travel.
|
||
|
||
For development, use `https://valhalla1.openstreetmap.de/route` only with nonsensitive coordinates, or configure a custom HTTPS endpoint. Calculation sends origin/destination to the selected endpoint, revealing those coordinates and phone IP. The app limits requests to one per second and sends `User-Agent` and `X-Client-Id`. GPS guidance may recalculate after confirmed deviation with at least 30 seconds cooldown; HTTP429 pauses automatic recalculation. The public instance has fair-use conditions and no SLA; read [ROUTING.md](ROUTING.md) before changing service or distributing the app.
|
||
|
||
1. Select DEMO origin, enter valid destination coordinates, and press **Calculate route · preview**. Distance, estimated duration, maneuver count, and `origen DEMO` must appear. **View route on map** shows the polyline marked as preview. Preview does not activate guidance; **Start calculated-route guidance** does.
|
||
2. For GPS origin, grant precise location, start GPS, wait for a recent fix, select it, and calculate another route to a nonsensitive destination. `origen GPS` must appear. Missing permission, disabled provider, or a fix older than 15 seconds must request a recent fix without sending another request. The result shows a plan from the fix used for calculation.
|
||
3. Press **Cancel calculation** to test cancellation. Calculate successive routes/change destination: late results must not replace later calculations. Switching DEMO/GPS must remove the earlier plan. Enter a malformed destination after loading a route to verify the previous plan does not reappear. **Stop route · keep GPS/TFT** removes the displayed plan while preserving GPS/map and TFT; **Stop navigation · keep TFT** also stops the navigation source. HTTP errors, 429, or missing network must permit manual retry without presenting an old route as new.
|
||
4. Check the visible map overlay. The line represents only Valhalla's returned geometry; the marker shows current/demo position, not route progress. Time is a backend estimate. The beta `motorcycle` profile does not certify restrictions or safety for this motorcycle.
|
||
|
||
At this phase, a route rendered on Xiaomi/TFT had no physical validation. Phase 6 adds basic guidance and recalculation below. Voice and motorcycle-suitable roads remained unverified; the phase was not ready to guide a ride. Parser, mocked HTTP, and synthetic server queries do not replace phone GPU rendering or TFT testing, nor physical GPS and the 30-minute screen-off test.
|
||
|
||
### Phase 6: guidance and recalculation
|
||
|
||
1. At home, calculate a DEMO-origin route and press **Start calculated-route guidance**. The marker must follow the route, update the next maneuver, and reduce remaining distance until arrival. DEMO remains visible and triggers no HTTP recalculation.
|
||
2. For GPS, use precise location and a recent fix. Guidance requires finite accuracy up to 25 m; inadequate signal hides turn, distance, and ETA. ETA is approximate, based on Valhalla duration and remaining geometric fraction.
|
||
3. Deviation requires at least three distinct positions over five seconds, separated from the route by more than max(40 m, twice accuracy). Recalculation retains the previous route until another valid route arrives. Errors do not replace it; HTTP429 and three failures pause automatic requests. **Recalculate now (GPS)** permits retry while respecting cooldown and Retry-After.
|
||
4. **Cancel calculation** also cancels active recalculation and pauses automatic requests. Stopping/changing mode must prevent late responses restoring guidance.
|
||
|
||
`app/build/outputs/preview/guidance.png` is exported with Android Canvas in Robolectric: it checks HUD composition on a drawn test base, not MapLibre GPU rendering. At this stage physical guidance, deviation, recalculation, GPS, and screen-off tests remained pending. Thresholds were not road-calibrated; geometric limits are documented in [ROUTING.md](ROUTING.md).
|
||
|
||
### Phase 7: explicit destination search
|
||
|
||
Search starts only after **Search**; typing issues no requests at this stage. Enter a name/address with city, check the HTTPS endpoint, and press Search. Use only nonsensitive queries on the public service: the provider receives text and source IP. The UI explains GPS is not sent; avoid personal/confidential data. No autocomplete or result fetching occurs while typing. Settings can change the Nominatim-compatible endpoint without updating the app.
|
||
|
||
1. Start with a synthetic nonprivate query, such as a known public site, and confirm full name and OSM/license attribution. No results is not an error. Changing text/endpoint while searching must cancel the previous request and remove its buttons; a late response must not replace the new query.
|
||
2. Press **Cancel search** during a query; the connection must close with no selectable result remaining. Repeat an identical query to check memory caching, including empty responses; change endpoint/language/parameter to verify entries do not mix. Cache and rate limiter exist only in process memory (100 entries/24 hours); no history is persisted.
|
||
3. Selecting a result fills the destination and starts preview calculation without guidance: no active maneuvers appear before **Start**. Editing the query clears the old destination; Calculate without a current selection must not reuse earlier coordinates. With guidance active, choosing/calculating another result preserves existing guidance while waiting or after failure. A new plan does not replace guidance until **Start**. **Stop route** explicitly removes the active route. The first result is not selected automatically.
|
||
4. Do not stress-test the public service. OSMF limits all installations of this app together to an absolute maximum of one request per second. The adapter serializes requests, caches queries, identifies the app with User-Agent, and honors Retry-After on 429; a 429 blocks new searches until the period expires and requires manual action without a retry loop. Controlled-server adapter tests cover cancellation, query encoding, caching, and 429; do not generate automatic test traffic to public Nominatim.
|
||
|
||
Search provides place candidates, not validated addresses or motorcycle access. The user confirms the result/calculation; Valhalla may snap it to a nearby road. At this phase search/routes and guidance had not been tested on phone/TFT or while riding. See [GEOCODING.md](GEOCODING.md) and the [official Nominatim policy](https://operations.osmfoundation.org/policies/nominatim/).
|
||
|
||
### Phase 8: Asturias offline vector package
|
||
|
||
Version `0.7.0` embeds a PMTiles file generated from a Geofabrik OpenStreetMap extract in the APK. **Install bundled Asturias** copies the bundled resource to app-private storage without downloading maps. A compatible NavFrame PMTiles file can also be imported through the file picker. Copy/import displays bytes and supports cancellation; cancellation removes partial staging. Packages persist across app restarts. Current limits: three packages, 500 MiB per file, 1 GiB total, up to 5° latitude/10° longitude; only the NavFrame Offline 1.0.0 schema/style is accepted.
|
||
|
||
1. In **Settings → Offline maps**, press **Install bundled Asturias**. Check copy progress, then ready state/size. Press **Use Asturias · OSM 2026-09-28** or the equivalent displayed name. Phone map and 480×240 TFT renderer use the same source; OSM credit must remain visible. Changing the current source can preserve guidance; deleting an active package switches to online first and releases views/readers.
|
||
2. Cancel an installation and reopen the manager: no incomplete selectable package or partial files may remain. Complete installation, close/reopen the app, and verify the ready package persists. Check **Delete**, then reinstall for further testing.
|
||
3. Activate the package before disabling data and start **DEMO map without route** from **Advanced options**; Oviedo is inside the stored area. Disable Wi-Fi/data (Bluetooth/GPS may remain enabled) and check the phone map; with TFT connected, independently check the transmitted frame. Cartography extends to zoom 14; higher zoom enlarges the z14 tile. Actual coverage follows extract data and does not automatically extend into neighboring regions.
|
||
4. Search/calculate a route in a separate online test and select it. Once calculated, GPS can follow stored geometry without contacting Valhalla again, but search and route calculation/recalculation still require Internet. The package contains **no** routing graph. DEMO/simulated data must remain identified, and selecting/installing a package must not start a route.
|
||
5. Use **Import NavFrame PMTiles** with the format documented in [OFFLINE.md](OFFLINE.md); generic PMTiles/Protomaps/OpenMapTiles may have incompatible schemas and must be rejected without changing the active source. Cancel a SAF import and check partial-copy removal. No broad storage permission is required.
|
||
|
||
The APK includes Asturias cartography (34,617,483 uncompressed bytes; hash/provenance in [OFFLINE.md](OFFLINE.md)); installation can noticeably increase storage use. The package lives in `filesDir`, outside MapLibre's ambient tile cache. JVM/Robolectric tests verify headers, persistence, limits, cancellation, and source selection, but **do not** run JNI/OpenGL.
|
||
|
||
**Physical result reported for 0.7.0 on 2026-09-29:** the Xiaomi 11 Lite 5G NE / Android 14 phone MapView displayed OpenFreeMap online cartography correctly. Yamaha MT-07 2026 TFT connection worked, but its map frame displayed `MAPA NO DISPONIBLE`. No diagnostic cause was recorded; the generic message cannot establish network, style, GPU, or GPS failure. **The user subsequently confirmed Asturias offline maps on the phone**; that did not cover the new POI catalog or establish 480×240 TFT rendering. Version 0.7.1 added sanitized diagnostic categories/stages without coordinates or URLs, requiring a new report rather than representing a confirmed cause. For an initial report without motorcycle/GPS, reproduce at home: **Settings → Advanced options → DEMO map without route**, wait 30–40 seconds, then **Info → TFT map diagnostics → Share**. A phone report distinguishes snapshot failure but does not prove frame delivery to Yamaha. Screen-off testing remained pending; M1 did not establish these functions. Later physical evidence is recorded at the top of this document.
|
||
|
||
### Phase 9: motorcycle navigation workflow and Yamaha preferences
|
||
|
||
1. On the main screen, confirm a background map and top Yamaha connection/status bar/menu. Tap **◎** to recenter/follow after panning; screen readers must announce the action. Map/search remain available without GPS permission. Leaving NavFrame stops visible-screen location listening; only GPS guidance uses a foreground location service and notification.
|
||
2. Type a nonsensitive term in **Search streets and places**. Immediate suggestions must use installed local POI catalogs only; typing, panning, and marker loading must send no HTTP. Press search/IME to explicitly query Nominatim: online/offline results are labeled by source and merged without duplicates. Check local search in airplane mode and online search with networking. Do not load-test public Nominatim; limits aggregate all installations. New queries/list closure must prevent old responses restoring outdated results.
|
||
3. Pan to another installed coverage area. After motion settles, markers update from SQLite/regional catalogs without contacting Nominatim, Overpass, or other services. Pan rapidly several times to check cancelled local queries cannot place previous-view markers. Labels show clusters when zoomed out and individual places when zoomed in; details retain name/category, and distance is labeled straight-line.
|
||
4. Select a suggestion/result. The route bottom sheet must show destination, profile, origin, summary, and **Start**; preparation/calculation does not start guidance. Change motorcycle profile and verify the prepared-route summary; backend preferences do not guarantee motorway/unpaved avoidance. With another route already guiding, an alternative destination leaves the sheet accessible while existing guidance continues; only **Start** switches guidance. Errors/edited text must not restore an earlier selection.
|
||
5. Pair the motorcycle in phone Bluetooth settings. The top Yamaha indicator announces state and allows connection/change. Reopening NavFrame with automatic reconnection enabled attempts foreground connection; the service retries an interrupted session while active. **STOP · Stop route** is the only bottom action during guidance: clear the route/stop guidance while keeping the visible GPS/map and Yamaha session. **Disconnect Yamaha** pauses automatic reconnection; manual connection, re-enabling the preference, or selecting another motorcycle lifts that pause. **Forget Yamaha** clears the saved selection without changing route/destination.
|
||
6. Compact `© OpenStreetMap` credit remains visible on the map; tapping opens Info/licenses. Verify full ODbL text and OSM copyright credit/link. TFT frames include source attribution; previous diagnostic output alone does not prove Yamaha map delivery. Custom HTTPS styles without attribution metadata must report undeclared credits rather than inventing OpenFreeMap/OSM attribution.
|
||
|
||
The `0.11.0` layout preview uses placeholder cartography for 360×720 controls; it runs neither MapLibre Android nor a physical screen. Repeat this phase on the Xiaomi 11 Lite 5G NE and stationary motorcycle before treating real navigation as validated.
|
||
|
||
The experience uses general motorcycle-navigation concepts as functional reference; it integrates/copies no OsmAnd UI, icons, or code. See [OSMAND_RESEARCH.md](OSMAND_RESEARCH.md). These steps did not replace the physical TFT test that failed in 0.7.0 or validate road guidance; screen-off stability remained pending at the time.
|
||
|
||
### Phase 10: local Asturias place catalog (0.9)
|
||
|
||
The APK embeds a SQLite catalog derived from the same OSM extract as PMTiles. It installs automatically into private storage independently of the PMTiles manager, without Nominatim/Overpass queries for these places. It contains 11,457 records (fuel 259, workshops 196, food 4,393, lodging 1,383, shopping 5,226), limited by the extract and not necessarily complete/current. Search is local substring matching with accent normalization; phone markers cluster when numerous. Distance is straight-line from the map center used when opening **Places**, not road distance. Remote address/Nominatim results remain a separate workflow.
|
||
|
||
1. With online cartography and in airplane mode with Asturias offline active, press **Places**. Catalog opening requires no GPS, storage, or network permission. Search “Oviedo,” “Gijón,” and an accented string such as “Peñaflor” / “Penaflor”; select categories and verify new queries replace previous markers/results. Empty categories or a center outside Asturias show a clear no-results state, not invented coordinates. Repeat from multiple Asturias map centers: list navigation/exploration radius vary with category/text. Clusters separate when zooming in; five categories use distinct marker colors while cards/lists always retain category text.
|
||
2. Select a marker/result and inspect its card: name/category come from OSM tags, “unnamed” is a fallback, and address/phone/web/hours may be absent. Hours are raw text and must not claim “open now.” Straight-line distance is not a route. Motorcycle sellers without explicit repair tags appear in Shopping; no promise is made that all workshops service motorcycles.
|
||
3. Test **Open website**/phone only from a card after explicit action. Websites must be sanitized HTTP/HTTPS; phone opens the system dialer without starting a call. Missing external apps must not break NavFrame. A map tap must not launch an external dialer without the card step.
|
||
4. **Choose destination** requests online route calculation for that point. POI queries remain local; calculation sends origin/destination to Valhalla. Guidance does not start automatically: existing guidance continues until **Start**. Closing/replacing searches and late local responses must not install obsolete markers. Routes do not become offline: without networking they cannot calculate/recalculate.
|
||
5. Reopen **Places** after closing/restarting the app. The local copy must remain usable without replacing/deleting PMTiles, imports, or active selection. Check at least fuel, workshops, and shops by name in airplane mode; POI search sends no network request or persistent local history. `© OpenStreetMap contributors` remains visible on the map and accessible in cards. Test **Hide markers** with a query in flight: old responses must not restore them.
|
||
|
||
The physical 0.9 catalog was not yet user-validated; earlier Asturias offline-map confirmation covered a different version/function. The database may contain stale businesses, duplicates, or incorrect road access. See [POIS.md](POIS.md) for schema, tag selection, coverage, and hash. Parser/generator/SQLite tests do not validate a TFT catalog or business availability.
|
||
|
||
### Permissions and recovery
|
||
|
||
The main screen works without GPS/Bluetooth: online maps, search, DEMO options, and settings request neither location nor nearby-device permission. Precise location enables fixes while NavFrame is visible; leaving stops them. Press **◎** or start a GPS route to recenter/acquire fixes; guidance uses a location foreground service and notification. **Yamaha** requests only Bluetooth and notifications required by the system for the connected service. Denial must not cause repeated permission dialogs; the tappable notice opens NavFrame settings. Revoking location during guidance stops foreground tracking; returning from Settings does not resume guidance automatically. Permanent location access is not requested.
|
||
|
||
## Observed development environment
|
||
|
||
### Ride feedback and regression checks (0.13.1)
|
||
|
||
Previously recorded feedback for 0.13.1: the rider confirmed downloaded regional maps on the phone and Yamaha TFT and working voice instructions during a ride. Online maps worked on the phone but failed on the TFT. Deviating from the route could incorrectly report GPS loss while the map still followed the rider, with instructions resuming only after returning to the previous route progress. This feedback was already recorded before the 12 October incident; it does not identify the cause of the new failure.
|
||
|
||
Route regressions now distinguish a reliable position outside the reachable route section from an unusable GPS fix. Validate automatic recalculation from the current position after a sustained deviation, including a reversal on the same road. The destination and selected routing profile must remain unchanged, and a successful replacement route must resume instructions.
|
||
|
||
The TFT snapshot renderer now owns its connectivity lifecycle independently of the phone map. The effect of that change on online TFT rendering still needs device validation. Test the default online map with no offline source selected, then background the phone, lock the screen, and change between Wi-Fi and mobile data. If rendering fails, use **Info → TFT map diagnostics** to collect the sanitized failure stage and reason.
|
||
|
||
Horizontal GPS uncertainty remains visible as small marker movement. Guidance still rejects fixes older than 15 seconds or with accuracy worse than 25 metres; deviation handling must not hide genuine loss of usable positioning.
|
||
|
||
Cloud verification on 2026-10-12 for 0.13.1 passed 159 unit tests (60 app, 89 core, 10 NaviLite), 17 Python offline-builder tests, Android APK assembly, and lint with zero errors and 76 warnings. The online TFT lifecycle tests do not exercise the native GPU renderer or prove online rendering on the motorcycle.
|
||
|
||
The original shell had OpenJDK 25 and `adb` 35.0.2, no `ANDROID_HOME`/`ANDROID_SDK_ROOT`, and no `gradle` in PATH. An Android SDK was found at `/home/dasemu/.bubblewrap/android_sdk` and JDK 17 at `/home/dasemu/.bubblewrap/jdk/jdk-17.0.11+9`; Gradle ran with that JDK and SDK configured in `local.properties`. No ADB-connected phone was validated. These are historical machine-specific paths, not required cloud paths.
|
||
|
||
## Historical local verification records
|
||
|
||
Version `0.9.0` (versionCode 11) built with JDK 17: **120 tests passed, zero failures** (42 app, 68 core, 10 NaviLite); lint reported **zero errors and 55 warnings**. APK `app/build/outputs/apk/debug/app-debug.apk`: 81,243,815 bytes; SHA-256 `37c0d2b573737449f6b4f910112dfa8c45a9f47d8e8b7f021012b3ad17cd0ab7`. Four new repository tests use the actual packaged SQLite for integrity/hash/counts and map-pack preservation, accent normalization and wildcard/SQL escaping, category/radius/order/limit, and corrupt private-copy recovery; another activity test checks that choosing a place from its card requests calculation/preview without starting guidance. Automated tests run no JNI/OpenGL and do not establish TFT tile/POI rendering. Included catalog: 2,334,720 bytes (SHA-256 `153cbc6d71e5a51b16ddb125ee4e51e34982a34c6da5231b22c786764976fa3d`); Asturias PMTiles: 34,617,483 bytes (SHA-256 `f63f65f9c2bc7e169371d3da8c01125f15f3d6ae0caae0d7d7d47aad43f4df9e`). No public Nominatim test queries were made. The synthetic Valhalla query documented in [ROUTING.md](ROUTING.md) does not validate coverage or road suitability.
|
||
|
||
The existing `sports_test` AVD (Android 14 / API 34) was started twice but exited with code 139 before boot completed; ADB never listed it as available. The APK was not installed/opened in an emulator. At this stage, the user had confirmed physical M1 for two test images on Xiaomi 11 Lite 5G NE / Android 14 and MT-07 2026, and Asturias offline cartography on the phone. Version 0.7.0 had failed to display the TFT map, with no later physical TFT map/POI success yet recorded. Physical POI search, GPS, routes, guidance, motorcycle profiles, 30-minute background operation, Bluetooth recovery, and wake-lock release after STOP remained pending. See the latest reports at the top for subsequent evidence.
|
||
|
||
### Phase 11: local Cantabria regional package (0.10)
|
||
|
||
`dist/es-cantabria-20260928.1.navframe` is delivered outside the APK for SAF import. Copy it to the phone and open **Settings → Offline maps → Import/update region**. Check progress, name/version, and **Use**. Restart and verify persistence; bundled Asturias and its catalog remain available. Center on Santander in Cantabria and open **Places**; check local results such as fuel, then repeat in airplane mode. Center outside Cantabria/Asturias polygons: the app must not claim installed-region coverage. Import a corrupt ZIP or one with an additional entry and verify rejection without active-source changes. Deleting an active region must release TFT/MapView readers first.
|
||
|
||
A Robolectric test imports the real `.navframe` from `dist/`, checks Santander POI coverage and Asturias preservation; another checks incorrect hashes/additional ZIP entries with rollback. Automated tests run no MapLibre JNI/OpenGL and do not validate TFT frames. New physical Cantabria/POI and TFT-map testing remained pending.
|
||
|
||
Final `0.10.0` build (versionCode 12): **129 tests passed, zero failed/skipped** (45 app/Robolectric, 74 core, 10 NaviLite). `assembleDebug` and `lintDebug` passed; lint: **zero errors, 62 warnings**. APK `app/build/outputs/apk/debug/app-debug.apk`: **81,324,605 bytes**, SHA-256 `0b1b4ff07153e9d794b1a26d621d8ad857e635d8b7e21d98b035139d2ed1c4df`.
|
||
|
||
### Phase 12: map main screen and unified search (0.11)
|
||
|
||
In `0.11.0`, the map screen places Yamaha status/menu at the top, street/place search in one bar, compact map attribution, and a recenter button. Typing searches only installed catalogs; remote requests require Search/IME. Moving the map updates local POI with debounce/cancellation. Selecting a destination presents profile/route preparation; **Start** is separate. During guidance, **STOP · Stop route** is the only bottom action and preserves TFT/Yamaha connection.
|
||
|
||
Review `app/build/outputs/preview/phone-layout-placeholder.png` and `phone-route-sheet-placeholder.png`. These compose layout with a sample map; they exercise neither MapLibre, GPU, system IME, nor physical hardware. In 360×720 images, Yamaha/search sit below system bars; the recenter FAB sits above OSM credit; the bottom card offers origin/profile/summary/Start. OSM credit and STOP occupy separate bands.
|
||
|
||
Final `0.11.0` validation (versionCode 13): **133 tests passed, zero failed/skipped** (49 app/Robolectric, 74 core, 10 NaviLite). `assembleDebug`, `lintDebug`, `:navilite:testDebugUnitTest`, and `:core:test` passed; lint: **zero errors, 62 warnings**. APK `app/build/outputs/apk/debug/app-debug.apk`: **81,357,540 bytes**, SHA-256 `1f6850be7077b4a53e1d30a2095bf5458269b734b4d2c33beeeedfa4d90fe516`. Tests/previews run no MapLibre JNI/OpenGL on a phone. No new physical TFT map, search/route/POI, guidance, actual small-screen compatibility, or screen-off test was performed. At that time, the latest physical TFT map result remained `MAPA NO DISPONIBLE` in 0.7.0; M1 confirmed only static/synthetic images. This historical status is superseded by later reports above.
|
||
|
||
### GPS recenter warning (0.11.1)
|
||
|
||
With the map visible, press recenter without a recent GPS fix or with insufficient accuracy: a subtle bottom notice appears and the camera does not move. Repeated presses refresh one notice. A recent accurate fix allows recentering again. Robolectric checks both paths; Xiaomi physical behavior/calibration remained pending. `0.11.1` (code 14) built with 50 passing Android tests and lint with zero errors (63 warnings). APK: 81,130,894 bytes, SHA-256 `d0c428e4ca67389484c45f65dbafd51cbc8101ae1c4d16ef80b8068a83b8f3e9`. Core/NaviLite remained unchanged from 74/10 earlier tests.
|
||
|
||
### Voice and optional fixed-camera alerts (0.12.0)
|
||
|
||
In Settings, leave Spanish voice enabled and check Android reports an installed voice. Prepare/start a GPS route: listen for announcements before maneuvers and verify no repetition on every position update. Mute/unmute voice. Test a route with phone locked and intercom paired; physical playback/audio behavior remained pending at this stage.
|
||
|
||
Possible fixed-camera alerts default off. Enable them in Settings; import `dist/es-cantabria-20260928.2.navframe` when testing Cantabria. On a real legal route, check the phone briefly displays the alert and enabled voice announces the approach. Do not deliberately speed for testing. The 83 Asturias points and 22 Cantabria points come from OSM, may be incomplete/stale, and certify neither lane nor direction; see [Camera alerts](RADARS.md). Before riding, check whether alerts are permitted locally.
|
||
|
||
Final `0.12.0` build (code 15): **140 tests passed, zero failures** (50 app/Robolectric, 80 core, 10 NaviLite). `assembleDebug`/`lintDebug` passed with **zero errors, 66 warnings**. APK: **81,150,850 bytes**, SHA-256 `26a03dc6f620e8fcdb55e261530f73e1835f499ef1c87b92e06496189f973a0b`. Automated tests reproduce neither physical audio, Bluetooth/intercom, nor MapLibre GPU/TFT.
|