chahinebrini 63fae25531 fix(android-protection): explicit specialUse FGS type — Samsung/Android 16 crash loop
RebreakVpnService.onStartCommand crashed with SecurityException because Android 16's validateForegroundServiceType rejects the implicit 2-arg startForeground(). Now passes FOREGROUND_SERVICE_TYPE_SPECIAL_USE explicitly (Google's documented best practice) and guards the call so a failed foreground promotion stops the service cleanly instead of crashing the app. Verified vs reported Galaxy A54 / Android 16 signature (97% of crash events, 1-user crash loop).

Bundles pending working-tree work across native/marketing/locales/mac + graphify-out rebuild. gitignore: google-services.json + /screenshots/.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-10 22:33:28 +02:00

82 lines
2.1 KiB
YAML

# screens/09-geraete.yaml
#
# Marketing-Screenshot 09: Geräte-Übersicht (devices.tsx)
#
# Ziel: Devices-Screen mit mindestens dem aktuellen Gerät sichtbar.
# devices.section_title_this = "Dieses Gerät"
# devices.status_active = "Aktiv"
# Ideal für Legend-Account: mehrere Gerätetypen (iPhone, Mac, Android) sichtbar.
#
# Navigation: Login → Header-Dropdown → "Einstellungen" → Devices-Screen
# ODER: Direktnavigation wenn "Geräte" im Dropdown erreichbar.
# Actual route: app/devices.tsx — wird über HeaderDropdownMenu erreichbar.
# Prüfen ob es im Dropdown oder in Settings liegt.
#
# Fallback: AppHeader der devices.tsx zeigt title aus t('settings.devices_title')
# settings.devices_title = "Meine Geräte" (check de.json)
#
# Screenshot-Output: screenshots/09-geraete.png
# Env-Vars: E2E_TEST_USER, E2E_TEST_PASSWORD
appId: org.rebreak.app
---
- launchApp:
clearState: true
- waitForAnimationToEnd:
timeout: 5000
# --- Auth ---
- assertVisible:
text: "E-Mail"
- tapOn:
text: "E-Mail"
- inputText: ${E2E_TEST_USER}@rebreak.internal
- tapOn:
text: "Passwort"
- inputText: ${E2E_TEST_PASSWORD}
- tapOn:
text: "Anmelden"
- waitForAnimationToEnd:
timeout: 10000
- assertVisible:
text: "ReBreak"
# --- Profil öffnen um zu Einstellungen/Geräten zu navigieren ---
# FRAGILE: Koordinaten-Tap bis testID="header-avatar-btn" gesetzt ist
- tapOn:
id: "header-avatar-btn"
- waitForAnimationToEnd:
timeout: 2000
# Einstellungen öffnen: appHeader.settings = "Einstellungen" (de.json)
- assertVisible:
text: "Einstellungen"
- tapOn:
text: "Einstellungen"
- waitForAnimationToEnd:
timeout: 3000
# Settings-Screen: "Meine Geräte" Row oder "Geräte" Abschnitt suchen
# Scrolle bis Geräte-Eintrag sichtbar ist
- scrollUntilVisible:
element:
text: "Geräte"
direction: DOWN
timeout: 5000
- tapOn:
text: "Geräte"
- waitForAnimationToEnd:
timeout: 4000
# Devices-Screen: "Dieses Gerät" Section
- assertVisible:
text: "Dieses Gerät"
- waitForAnimationToEnd:
timeout: 1000
- takeScreenshot: screenshots/09-geraete