# Android photo access: S23 USB originals and Windows mirror

Updated: 2026-10-24 13:44 America/New_York.
Authoring chat: `a1071c92-236e-452b-b87a-31aac847f6fa`, Copilot SDK in VS Code.
Project: [BOS-Takeoff-Veillance](../about.md).
Resume state: [STATE.md](../STATE.md).

## Goal and current facts

Retrieve Stephen's 2026-10-24 Boston takeoff photographs and original 8K videos directly from his Samsung S23 Ultra. Determine their actual capture times, timezone, durations and dimensions, preserve original bytes, then supply the verified recording interval to the webcam and viewer lanes.

Stephen reported connecting the S23 by USB-C to this laptop. He prefers direct retrieval without Google Photos; today's files may not have backed up there. Device connection is human-reported, not agent-verified.

No direct USB enumeration has executed successfully. No takeoff files have been copied, hashed or verified by this session. The current obstruction is a tool hook failure before command execution, not an observed phone failure.

## Paths and transports

### Android camera folder

```text
Internal storage\DCIM\Camera
```

The usual Android filesystem equivalent is:

```text
/storage/emulated/0/DCIM/Camera
```

That Android filesystem path is conventional, not verified on this device during this task. USB MTP exposes a Windows Shell namespace, not necessarily a drive letter or an ordinary filesystem path.

Windows Explorer location, with the device display name to be confirmed:

```text
This PC\Stephen's S23 Ultra\Internal storage\DCIM\Camera
```

### Windows CrossDevice mirror

```text
C:\Users\steph\CrossDevice\Stephen's S23 Ultra\storage\DCIM\Camera
```

This is a separate mirrored access surface. Do not confuse its contents with a fresh USB enumeration. Earlier filename-pattern checks found October 23 entries and no `20261024` matches. This does not prove today's originals are absent from the phone or cloud, or that every mirrored file's bytes are locally hydrated.

### Prior local backup destination

```text
C:\Users\steph\Camera
```

Existing scripts use this destination. Its presence does not establish that today's media was backed up.

### Project destination

```text
C:\Users\steph\Documents\sites\stephenguerin.live\agents\8ac6d87f-3192-4fdb-a260-583dbee74291\artifacts\media
```

Intended canonical media prefix:

```text
https://stephenguerin.live/agents/8ac6d87f-3192-4fdb-a260-583dbee74291/artifacts/media/
```

Remote publication is not verified. Stephen authorized public publication of this project's data; credentials must never be included.

## Existing workspace tools

Inspect these before writing another transfer implementation:

- [list_phone_videos.ps1](../../../../list_phone_videos.ps1): reads `Shell.Application` / This PC / S23 Ultra / Internal storage / DCIM / Camera.
- [backup_phone_videos.ps1](../../../../backup_phone_videos.ps1): copies qualifying large videos through MTP to `C:\Users\steph\Camera`, waits for destination byte length to match source size. It does not provide a cryptographic integrity check, and its default size filter is not a takeoff selector.
- [copy_latest_photo.ps1](../../../../copy_latest_photo.ps1): copies the latest camera item. Its asynchronous copy and success message are not proof of completed transfer. Do not run unchanged to collect a specific takeoff event.

Do not run a bulk all-camera backup merely to find today's takeoff. Preserve source files and avoid overwriting existing destination files.

## Read-only USB check after tool access is restored

Prerequisites: phone unlocked, USB set to **File transfer / Android Auto**, and any phone prompt permitting computer access accepted by Stephen.

Use Windows PowerShell and the existing Shell namespace pattern:

```powershell
$ErrorActionPreference = 'Stop'
$shell = New-Object -ComObject Shell.Application
$device = $shell.Namespace(17).Items() |
    Where-Object { $_.Name -match 'S23' } |
    Select-Object -First 1
if (-not $device) { throw 'S23 not visible through Windows MTP.' }

$storage = $device.GetFolder.Items() |
    Where-Object { $_.Name -eq 'Internal storage' } |
    Select-Object -First 1
if (-not $storage) { throw 'Internal storage unavailable; check phone unlock and USB permission.' }

$dcim = $storage.GetFolder.Items() |
    Where-Object { $_.Name -eq 'DCIM' } |
    Select-Object -First 1
if (-not $dcim) { throw 'DCIM folder unavailable.' }

$camera = $dcim.GetFolder.Items() |
    Where-Object { $_.Name -eq 'Camera' } |
    Select-Object -First 1
if (-not $camera) { throw 'Camera folder unavailable.' }

$items = @($camera.GetFolder.Items() |
    Where-Object { $_.Name -match '^20261024.*\.(jpg|jpeg|heic|dng|mp4|mov)$' })
$items | ForEach-Object {
    [pscustomobject]@{
        Name = $_.Name
        Bytes = $_.ExtendedProperty('System.Size')
        Modified = $_.ModifyDate
        Captured = $_.ExtendedProperty('System.Photo.DateTaken')
        Encoded = $_.ExtendedProperty('System.Media.DateEncoded')
        Width = $_.ExtendedProperty('System.Video.FrameWidth')
        Height = $_.ExtendedProperty('System.Video.FrameHeight')
        Duration = $_.ExtendedProperty('System.Media.Duration')
    }
} | ConvertTo-Json -Depth 3
```

This is a documented next check, not a successfully executed script. A filename date is only a discovery filter. Other naming patterns may require a bounded follow-up. Shell properties may be missing or timezone-ambiguous; preserve raw values and verify against original EXIF/container metadata. `System.Media.Duration`, when provided, uses 100-nanosecond units. Image dimensions need image metadata, not video-property defaults.

## Tool hook failure and attempted repair

PowerShell and ripgrep calls repeatedly returned:

```text
Denied by preToolUse hook from "repo settings" (hook errored)
```

The latest direct USB check at 13:42 EDT was denied before execution. Neither device visibility nor USB mode was tested.

Stephen approved diagnosis and repair while preserving safeguards.

- Repository config: [.claude/settings.json](../../../../.claude/settings.json).
- Hook implementation: [.ai/hooks/no-broad-grep.mjs](../../../../.ai/hooks/no-broad-grep.mjs).
- Regression tests: [.ai/hooks/no-broad-grep.test.mjs](../../../../.ai/hooks/no-broad-grep.test.mjs).
- Runtime diagnostic log inspected: `C:\Users\steph\.copilot\logs\process-1791977266327-23956.log`.
- Bounded log entries at 16:39:22Z, 16:40:17Z and 16:40:38Z reported `Cannot find module 'C:\.ai\hooks\no-broad-grep.mjs'`.

Original launcher depended on `$CLAUDE_PROJECT_DIR`. A relative-path attempt did not resolve the error. The persistent config now points at the existing absolute workspace script:

```text
node "C:\Users\steph\Documents\sites\.ai\hooks\no-broad-grep.mjs"
```

Matcher, timeout and hook implementation were not disabled or changed. Post-edit invocations still failed; the active runtime may be retaining old configuration. This is not a verified repair. A reload was suggested, but whether a reload occurred is unknown. The latest denial's underlying path has not been confirmed in fresh logs.

Next maintainer should inspect fresh hook error entries and which configuration the active host actually loads. Once repaired, run:

```powershell
node .ai\hooks\no-broad-grep.test.mjs
```

Verify that broad search is still gated until the required search lookup and that ordinary USB enumeration works. Do not disable the hook, fabricate its markers, or use another execution surface to evade the denial.

## Transfer verification and downstream handoff

1. Read source metadata and identify the actual takeoff items; do not infer an 8K recording or flight interval solely from names.
2. Copy only selected originals into the project media destination without deleting or modifying phone sources.
3. MTP copy is asynchronous. Wait for confirmed completion and exact byte lengths. Record source size and destination size; partial files are not successful backups.
4. Compute destination SHA-256 and, where the transport supports it, independently compare source bytes/hash. Do not describe destination-only hashing as end-to-end verification.
5. Extract original image/video dimensions, codec, duration, capture/creation time and timezone evidence. Do not treat a file modification time as capture time. If timezone is absent, keep it unresolved rather than silently assuming UTC or Eastern.
6. Publish a real media manifest describing actual files, hashes, lengths, provenance, dimensions, timestamps, timing uncertainty and verification status.
7. Send the verified UTC start/end window and manifest path/schema to the webcam lane. Rolling webcam links are not preserved footage; archive and verify actual bytes and document gaps.
8. Feed only verified records to the viewer. SIFT/flow on owned source frames remains separate from provider-restricted Google imagery analysis. Manual Google reference views are not solved camera poses.

## Google Photos alternative

Not needed for direct USB retrieval. The integrated browser is at Google sign-in, not an authenticated Photos library. Existing OAuth token metadata reports an older `invalid_grant`; no fresh refresh attempt succeeded. Google Photos API full-library scopes were removed in 2025; the official Picker flow requires user selection for existing library media. None of this establishes whether today's media is backed up.

## Open handoff checklist

- [ ] Diagnose active hook failure from fresh logs and verify the corrected launcher is loaded.
- [ ] Run search-gate regression tests without weakening safeguards.
- [ ] Verify USB device, storage and camera access.
- [ ] Identify and copy takeoff originals, then verify actual completed files.
- [ ] Establish dimensions, metadata timezone and UTC interval.
- [ ] Write media manifest and notify webcam/viewer lanes.
- [ ] Publish authorized project data through documented WebDAV workflow and verify served bytes.
