Lightweight native Kotlin Alexa client
Find a file
KaKi87 7931974ce4 📝 Restyle README after youprice-android, publish a latest prerelease
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 00:09:51 +01:00
.github 📝 Restyle README after youprice-android, publish a latest prerelease 2026-11-10 00:09:51 +01:00
app 💄 Align timer delete button with alarm delete button 2026-11-07 22:32:37 +01:00
decompiled 📦 Add decompiled Alexa 2.2.730155.0 (jadx, apktool, Hermes strings) 2026-11-07 00:04:16 +01:00
gradle/wrapper ✨ Add native Kotlin Alexa client with CI-signed APK build 2026-11-07 00:04:17 +01:00
.gitignore ✨ Add native Kotlin Alexa client with CI-signed APK build 2026-11-07 00:04:17 +01:00
build.gradle.kts ✨ Add native Kotlin Alexa client with CI-signed APK build 2026-11-07 00:04:17 +01:00
gradle.properties ✨ Add native Kotlin Alexa client with CI-signed APK build 2026-11-07 00:04:17 +01:00
gradlew ✨ Add native Kotlin Alexa client with CI-signed APK build 2026-11-07 00:04:17 +01:00
gradlew.bat ✨ Add native Kotlin Alexa client with CI-signed APK build 2026-11-07 00:04:17 +01:00
README.md 📝 Restyle README after youprice-android, publish a latest prerelease 2026-11-10 00:09:51 +01:00
settings.gradle.kts ✨ Add native Kotlin Alexa client with CI-signed APK build 2026-11-07 00:04:17 +01:00

VibedByKaKi/alexandroid

Lightweight native Android client for Alexa, written in Kotlin with no AndroidX or Compose dependency. It controls smart home devices, alarms and timers, and shows voice history.

The APK is a rolling GitHub pre-release on the latest tag. Direct download: alexandroid.apk.

What this app does

  • Smart home. Read the state of each device, toggle it, and set brightness, color and white temperature on lights.
  • Widgets. A scrollable list of every device, and a single-device toggle.
  • Alarms and timers. List, enable or disable, pause or resume, delete and create.
  • Voice history. Browse past requests, with a light, dark or system theme.
  • Out of scope. Voice control, chats, lists, notes, reminders, routines, skills and the calendar.

Build

./gradlew :app:assembleDebug

CI

  • Build runs on every push, on pull requests and on manual dispatch. It builds a release APK and signs it with the keystore stored in the ALEXA_KEYSTORE_BASE64, ALEXA_KEYSTORE_PASSWORD, ALEXA_KEY_PASSWORD and ALEXA_KEY_ALIAS repository secrets.
  • Each push outside a pull request attaches the APK to a build-<time>-<sha> pre-release.
  • On master, it also replaces the latest pre-release with alexandroid.apk.
  • The APK is also uploaded as the alexandroid-apk artifact when storage quota allows.

Sign-in

The app opens the regular Amazon sign-in page in a WebView (so two-step verification works), registers itself as a device with OAuth2 code and PKCE, and stores the refresh token. It exchanges that token for web cookies and renews them when Amazon rejects a request. Pick your Amazon region in Settings before signing in. Accounts are per marketplace: the same email can have different devices on amazon.com and amazon.fr, and the sign-in page uses a per-region amzn_dp_project_dee_android_<region> handle.

Endpoints used

These were taken from the Hermes bundle and Java sources of Alexa 2.2.730155.0 (see decompiled/) and checked against a live account.

Feature Request
Device list and state POST https://alexa.amazon.<tld>/nexus/v1/graphql, query listEndpoints with features { ... on Power { powerStateValue } }
Toggle same endpoint, mutation setEndpointFeatures with featureName: power and featureOperationName: turnOn or turnOff
Brightness and color setEndpointFeatures with featureName: brightness / setBrightness (payload {"brightness": 1..100}), color / setColor (payload {"color": {"hue", "saturation", "brightness"}}), colorTemperature / setColorTemperature (payload {"colorTemperatureInKelvin"}). The payload is passed as a GraphQL variable of type JSON!. Current values come from ... on Brightness, ... on Color, ... on ColorTemperature
Alarms GET, PUT and DELETE https://alexa.amazon.<tld>/api/notifications[/{id}]; creation is PUT /api/notifications/createReminder with status: ON
Alarm repeat and date recurringPattern: P1D daily, XXXX-WD weekdays, XXXX-WE weekends, XXXX-WXX-1 to XXXX-WXX-7 for single days (comma-separated for several), "" for once, and YYYY-MM-DD for a one-time alarm on that date. Setting originalDate alone is ignored by the server
Timers listed, paused (PUT with status: PAUSED), resumed and deleted through /api/notifications. Creating one through that endpoint returns HTTP 500, so the app sends the text command "set a timer for N minutes" (in the device's language) to POST /api/behaviors/preview
Echo devices GET /api/devices-v2/device?cached=false
Voice history GET https://www.amazon.<tld>/alexa-privacy/apd/rvh/customer-history-records?startTime=&endTime= (10 records per call; the page token is rejected, so the app moves endTime back to the oldest record and deduplicates)

The older /api/phoenix and /api/activities endpoints no longer answer, which is why the app does not use them.

Decompiled app

decompiled/ holds the output of jadx (Java sources) and apktool (manifest and resources) for the Alexa app 2.2.730155.0 for Android, plus the string table of its React Native Hermes bundle (index.bundle.strings.txt.gz). The APK itself is not committed.