Error "Servidor Google no funciona" / "Error al iniciar sesión Gmail" en HTC One M7
Si tu HTC One M7 (2013, Snapdragon 600, Android 4.1-5.0) muestra error al iniciar sesión en Gmail/Play Store/YouTube ("Servidor Google no funciona", "Error de autenticación", "Comunicación con servidores Google fallida"):
Causa principal: Google Play Services / Play Store desactualizados
Android 4.x/5.x en 2024 tiene **certificados raíz caducados** y **APIs obsoletas**. Google Play Services < v23+ no conecta a servidores actuales.
Soluciones en orden
1. Actualizar Google Play Services y Play Store (APKs manuales)
- En PC: Descarga **ÚLTIMAS versiones compatibles Android 5.0 (API 21)** desde **APKMirror.com** (sitio seguro):
- Google Play Services: Busca `Google Play Services 23.x.x (API 21, nodpi)` — Última compatible Android 5.0
- Google Play Store: Busca `Google Play Store 30.x.x (API 21, nodpi)`
- Google Services Framework: Busca `Google Services Framework 5.1.x (API 21)`
- Transfiere APKs a HTC (USB MTP / Bluetooth / Tarjeta SD)
- En HTC: Ajustes > Seguridad > **Orígenes desconocidos ON**
- Instala en orden: **1. Services Framework, 2. Play Services, 3. Play Store** (Gestor archivos > APK > Instalar)
- Reinicia > Abre Play Store > Acepta términos > Intenta login Gmail
2. Borrar datos Play Services / Play Store / Gmail
Ajustes > Apps > Todas > **Google Play Services** > Almacenamiento > **Borrar datos** + **Borrar caché** > **Forzar detención**. Repite con **Play Store**, **Gmail**, **Servicios de Google**. Reinicia.
3. Verificar Fecha/Hora/Red
- Ajustes > Fecha y hora > **Automático (Red)** ON
- Si hora incorrecta → Certificados TLS fallan → Error servidor Google
- Prueba **WiFi distinto** / **Datos móviles** / **VPN** (algunos ISP bloquean Google)
4. Eliminar y volver a añadir cuenta Google
Ajustes > Cuentas > Google > Tu cuenta > Menú (⋮) > **Eliminar cuenta** > Reinicia > Añadir cuenta > Google > Login.
5. Factory Reset (Si nada arriba funciona)
Ajustes > Copia seguridad > **Restablecer datos fábrica**. **BACKUP**. Limpia todo software corrupto.
Realidad: HTC One M7 (2013) en 2024
- Última oficial: **Android 5.0.2 (LRX22G) Sense 7** — **Fin soporte Google Play Services ~2021/2022**
- Apps modernas (WhatsApp, Maps, YouTube, Gmail, Banco) **DEJARÁN DE FUNCIONAR** progresivamente (requieren API 23+ / Android 6.0+)
- Custom ROM LineageOS 14.1 (Android 7.1) / 17.1 (Android 10) / 18.1 (Android 11) / 19.1 (Android 12) / 20 (Android 13) / 21 (Android 14) para `m7ul` / `m7` / `m7att` / `m7tmo` / `m7vzw` / `m7spr` / `m7vzw` — **Requiere: HTCDev Unlock + S-OFF (firewater/sunshine) + TWRP**
- LineageOS 14.1/17.1/18.1/19.1/20/21 traen **Play Services actualizados** y **certificados raíz vigentes** → **Google Login FUNCIONA
Recomendación honesta: Si sabes flashear: **LineageOS 18.1/19.1/20/21 (Android 11/12/13/14)** — Revive el M7 5-7 años más. Si no: **El M7 ya no es usable para Google/services modernos**. Úsalo offline (MP3, cámara, GPS offline, retro) o recicla. Cualquier Android 10+ gama entrada (100-150 €) >> M7 hoy.