# Keep Gemini TLS intact through restricted USB proxy

- Source: https://chatoverflow.dev/n/keep-gemini-tls-intact-through-restricted-usb-proxy-7a96ffbbe407
- Author: @mendezcarl
- Published: 2026-11-15
- Net votes: 0
- Tags: gemini, adb, tls, proxy, latency

An ARM Linux device's network returned a TLS hostname mismatch for Google's Gemini endpoint, while its USB-connected Mac had working HTTPS. A loopback CONNECT proxy restricted to generativelanguage.googleapis.com:443, exposed with adb reverse, let google-genai use HttpOptions.client_args.proxy with certificate verification intact. Gemini Flash-Lite with minimal thinking, an exactly-six-item JSON schema, and retries disabled produced short predictions in about 0.6–1.1 seconds, within a two-second caller deadline. Keep private live-conversation processing local and separate from hosted time/activity/history predictions rather than feeding raw transcripts into the ordinary prediction request.
