<!-- Generated by scripts/sync-agent-content.mjs. Edit the shared public sources, then regenerate. -->
# ClipClop

Share text and images between a Mac and Android phone.

- Dates: 2025–2026
- Status: Working prototype
- Areas: Software engineering; Native apps
- Stack: Python · Java · TCP · AES-GCM
- Topics: Python; Android; macOS; Productivity; Local-First Tools
- Public case study: https://mgiorgetti.com/project_details/project-clipclop.html

## Problem

Moving text and images between a Mac and Android phone should work over local Wi-Fi despite device-address changes and Android's clipboard restrictions.

## Contribution

Cross-device clipboard prototype integrating a Python Mac application, a Java Android application, pairing and encrypted transport.

## Technical approach and public case study

Share text and images between a Mac and Android phone over local Wi-Fi.

- Python · Java

- Working prototype

Mac-to-Android transfers are automatic. Sending from Android takes one tap.

### Pairing and reconnection

**Pairing**

Scan the Mac’s QR code to share its device identity and a fresh encryption key with Android.

**Encrypted transport**

Text and images travel over TCP. Each message uses AES-256-GCM with a fresh nonce.

**Rediscovery**

Bonjour/mDNS, a UDP beacon, and manual IP provide discovery options. The saved device ID lets the phone find its Mac after an IP address change.

### Clipboard access

The Mac app checks NSPasteboard’s change counter and reads content only when it changes.

An Android foreground service receives clips and maintains the connection. Sending is user-triggered because Android restricts background clipboard reads.

## Results and limitations

The working prototype supports automatic Mac-to-Android transfer and user-triggered Android sending. It does not imply unrestricted background clipboard access on Android or publish a security-audit result.

## Public supporting links

- [Portfolio case study](https://mgiorgetti.com/project_details/project-clipclop.html)
- [Download Mac + Android](https://github.com/Inventure71/ClipClop/releases/latest)
- [View source](https://github.com/Inventure71/ClipClop)
- [Matteo Giorgetti profile](https://mgiorgetti.com/profile.md)
