chahinebrini
b31066a04c
feat(chat): native action sheet + Insta-style heart for DM messages
...
- ChatBubble: useActionSheet replaces custom Modal (native iOS popup, Android bottom sheet)
- DM mode (isDM prop): hides like-count, shows Insta-style heart badge under bubble when liked
- Group chat unchanged
- Cleanup: remove unused Modal/Platform imports, sheet styles, actionsOpen state
- deploy.sh: auto-detect ANDROID_HOME + auto-create local.properties for local Gradle
- NEXT_RELEASE.md: DM reactions release note
- Includes other staged work across binder-mac, marketing, ops/mdm, ios/
2026-05-30 09:14:32 +02:00
chahinebrini
2cb1f8ad6e
feat(binder-mac): SwiftUI Wizard für Self-Bind End-to-End-Flow
...
apps/rebreak-binder-mac/ — neue macOS-App die User durch den kompletten
Self-Bind-Prozess führt: Welcome → Preflight → Supervise → Enroll →
Configure (MDM-Push + Pre/Post-Check) → Sideload Lock-Profile (AirDrop).
3-Layer Smart-Resume: supervised? + Enrollment-Profil installed (cfgutil
Ground-Truth)? + MDM-Ack fresh (NanoMDM-DB via ssh+psql)?
Services: DeviceDetector (ideviceinfo + cfgutil), SuperviseRunner
(spawnt supervise-magic CLI), MDMClient (PUT /v1/enqueue?push=1, Apple
XML-Plist, identisch zum server-watcher-Format), MDMStatus (DB-Real-
Check + ManagedApplicationList-Result-Read).
Plus:
- fix(supervise-magic): EOF nach ProcessMessage Response (ErrorCode=0)
ist Success, nicht Error — vermeidet false-fail bei iPhone-Restore-
Reboot
- feat(mdm-profiles): rebreak-content-filter-mdm.mobileconfig als
MDM-Push-Variante (ohne ConsentText, ohne globales allowAppRemoval=
false — per-app via managed-state)
End-to-End validiert: App-Push via Ad-Hoc-Manifest (silent), Managed-
State via ManagedApplicationList-Query, NEFilter-Mode nach App-Force-
Quit, Lock-Profile non-removable nach Sideload.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-27 08:37:14 +02:00
chahinebrini
01374c426e
feat(supervise-magic): TechLockdown-clone v1 — supervise iPhones without erase
...
Implementiert eigenen MobileBackup2-Restore-Trick zur Supervision-Übernahme
von aktivierten iOS-Geräten ohne Factory-Reset. Foundation für DiGA-Phase-G
Lock-Layer-Stack (non-removable Apps, non-removable Profiles, OnDemand-VPN-
Toggle-Lock) auf Consumer-iPhones.
Verifiziert end-to-end auf:
- iPhone Air (iPhone18,4, iOS 26.5): TL→ReBreak re-supervise ✅
- Olfa iPhone 14 Pro (iPhone15,3, iOS 26.4.2): TL→ReBreak re-supervise ✅
Key empirische Findings:
1. Find-My-iPhone MUSS off sein (ErrorCode 211 sonst)
→ Stolen Device Protection (SDP) zwingt FMI an seit iOS 17.3+
2. SupervisorHostCertificates DARF NICHT in CloudConfigurationDetails sein
für fresh-supervise auf activated unsupervised devices (sonst partial-apply)
3. MCInstall.SetCloudConfiguration firet 14002 auf allen activated devices
→ MobileBackup2-Restore-Trick ist der einzige Weg
4. TL's extracted-embed-bytes != TL's wire-output (Runtime-Mutation)
→ Verbatim-Kopieren reicht nicht
Reverse-Engineering basiert komplett auf:
- Apple's public protocol docs (devicemanagement, mobilebackup2 schemas)
- libimobiledevice (open-source reference impl)
- TL public-distributed binary (interop-RE, legal per US-DMCA-1201 + EU-2009/24)
Structure:
cmd/supervise/ — main CLI (check, cloud-config, supervise, cert-info, unsupervise)
cmd/dump-artifacts/ — diagnostic helper (no device needed)
cmd/usbmux-proxy/ — MITM-proxy for TL-traffic-capture (debug)
cmd/tl-patcher/ — patches TL's hard-coded usbmuxd path (debug)
internal/dlmessage/ — DLMessage wire-protocol (4-byte BE length + plist)
internal/mobilebackup2/— mobilebackup2-service impl (BaseVersionExchange,
Hello, Restore, ServeFiles + TL-extracted templates)
internal/cloudconfig/ — CloudConfigurationDetails.plist builder (cert-less,
25 keys matching TL's runtime-output)
internal/cert/ — auto-gen + persist supervisor-cert in ~/.rebreak-supervise/
internal/mcinstall/ — MCInstall.GetCloudConfiguration für state-checks
internal/device/ — go-ios DeviceEntry wrapper
internal/afclock/ — AFC sync-lock auf /com.apple.itunes.lock_sync
internal/notification_proxy/ — PostNotification (syncWillStart/etc)
internal/preflight/ — FMI/Activation/OS-version pre-checks
internal/supervise/ — End-to-end Flow-Orchestrierung (MobileBackup2 default,
MCInstall via REBREAK_FORCE_MCINSTALL=1)
Pending für volle Productization (Phase G):
- Fresh-supervise direkt-empirisch auf truly-unsupervised iPhone testen
(heute Nacht nur durch Inferenz aus TL-Verhalten gestützt)
- Auto-MDM-enroll-Step nach Supervise (ConfigurationURL oder cfgutil-style)
- DiGA-Onboarding-Flow + Lyra-Coach für FMI/SDP-Disable
- Multi-Device-Validation (Modelle, iOS-Versionen)
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-27 01:55:10 +02:00
chahinebrini
8f2ef2cc98
feat(mdm,vip): MDM-VPN-Pivot + Layer-2-Country-Curated + Custom-Domain-Refactor
...
MDM-VPN-Pivot (Phase F.2 done):
- ops/mdm/profiles/rebreak-iphone-protection.mobileconfig auf v5 mit
com.apple.vpn.managed Payload + OnDemandUserOverrideDisabled. iPhone-User
kann ReBreak-VPN-Profile nicht entfernen und "Bedarf verbinden"-Toggle
ist disabled. allowEnablingRestrictions empirisch widerlegt für FC-Toggle-
Lock — out.
- DEV-removable Variante als Test-Profile dazu.
- Bootstrap-Tool (rebreak-supervise.sh) + Supervision-Identity-Setup-Doc.
- PHASES.md updated mit empirischen Befunden.
App-side MDM-Detect (Pfad-a Banner-Logic):
- modules/rebreak-protection: getDeviceState() returnt mdmManaged via
Heuristik NETunnelProviderManager.count > 1 (App selbst kann nur einen
eigenen erstellen, MDM-Push fügt einen zweiten hinzu).
- DeviceLayers.mdmManaged?: boolean Type.
- blocker.tsx: lockedIn-Bedingung erweitert um mdmManaged. Bei MDM-managed
iPhones wird der App-Lock-Card (FC-Authorization-Toggle UI) ausgeblendet
weil der per-App FC-Toggle nicht lockbar ist und durch den MDM-VPN-Layer
redundant.
Layer-2-Country-Curated-Pivot:
- backend: vip-swap.post.ts raus, suggest.post.ts rein. Curated-domains
durch admin (separate Tabelle/Pfad), getrennt von User-Custom-Domains.
- Admin-APIs für curated-domain Pflege (index.get + [id].patch).
- seed-country-blocklists Script für initiale Curated-Domain-Liste.
- protection/webcontent-domains.get refactored für Country-Curated-Pfad.
- Migration drop_vip_swap_fields.sql + schema.prisma adjusted.
- docs/concepts/layer2-country-pivot.md mit Architektur + Decision-Trail.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-25 07:11:47 +02:00
chahinebrini
db7875fb34
feat(ops/mdm): AdGuard ClientID handshake — nginx + watcher
...
End-to-end DoH-to-backend wiring for Mac auto-activation:
Mac → dns.rebreak.org/dns-query/<token> → nginx → AdGuard
→ querylog.json (CP field) → watcher.py → POST /handshake → backend
- ops/nginx/dns.rebreak.org.conf: vhost with `location ^~ /dns-query`
prefix-match (not exact). proxy_pass without trailing slash preserves
the full path so AdGuard parses the ClientID natively.
- watcher.py: NDJSON tail with inode-based rotation safety, per-token
60s in-memory cooldown, urllib (no external deps), graceful 401/404/5xx
- rebreak-handshake-watcher.service: systemd unit, EnvironmentFile with
chmod 600 (HANDSHAKE_SECRET never in git), NoNewPrivileges + PrivateTmp
- DOH_CLIENTID_HANDSHAKE.md: architecture + flow diagram + risk table
- RUNBOOK.md: status/logs/restart commands + deploy ordering
Not yet deployed. Verify-checklist before `nginx -s reload`:
1. confirm AdGuard DoH port (config assumes 127.0.0.1:3000)
2. confirm TLS cert exists for dns.rebreak.org
3. snapshot current nginx config
4. `nginx -t` dry-run
5. functional curl + grep CP in querylog before starting watcher
2026-05-15 22:41:38 +02:00
chahinebrini
5d6c322129
wip: KeyboardAwareSheet migrations + Snake/Tetris UI + iron.png + useMe live-update
...
Sheets via neuer KeyboardAwareSheet-Composable (in Modal pattern, auto-grow
mit Tastatur, paddingBottom-Lift): EditMail, AddDomain, CreateRoom, ConnectMail.
GameOverScreen behält Spring-Slide-In, nutzt RN Keyboard.addListener für Lift.
- KeyboardAwareSheet.tsx — universal modal with sheet-grow + keyboard-padding
- react-native-keyboard-controller installiert + KeyboardProvider in Root
- Snake: time + ScoreProgressBar + useSnakeSounds (haptic, audio TODO)
- Tetris: title weg, Buttons zentriert, kein Pressable mit style-fn
- DPad-Buttons 60→48, more bg, no scale
- useMe: pub-sub listener pattern für app-weite avatar/nickname-Updates
- dm.tsx: resolveAvatar wrap (iron.png-Warning)
- Mail-error-humanizer + locales
Recovery-Doc-Update in docs/internal/RECOVERY_LOG_2026-05-10.md
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-10 23:59:25 +02:00