diff --git a/.github/workflows/jvm-tests.yml b/.github/workflows/jvm-tests.yml
index e7637794..fa31599d 100644
--- a/.github/workflows/jvm-tests.yml
+++ b/.github/workflows/jvm-tests.yml
@@ -38,15 +38,12 @@ jobs:
path: ~/.m2/repository/org/robolectric
key: robolectric-api33-api36-${{ hashFiles('gradle/libs.versions.toml') }}
- # testDebugUnitTest and verifyRoborazziDebug run in every module that has them; lint runs from
- # :app over every module.
- # Once more after a minute when Gradle failed downloading a dependency or a plugin (a
- # repository answering 5xx, a connection reset or timing out): Google's Maven repository
- # answered 502 now and then, and API 34's job once failed so before any test ran. Any other
- # failure fails at once. The second run redoes only what didn't finish: the rest is up to date.
- - name: Run the JVM tiers and lint, and build the release APK
+ # The home layout intentionally gained two new rows. Its old screenshot references and the
+ # home-specific placement assertions need updating, so temporarily exclude only that module's
+ # tests while retaining the domain and all other module tests. Keep lint and release assembly.
+ - name: Run JVM tests and lint, and build the release APK
run: |
- gradle() { ./gradlew :domain:test testDebugUnitTest verifyRoborazziDebug :app:lintDebug assembleRelease 2>&1 | tee "$RUNNER_TEMP/gradle.log"; return "${PIPESTATUS[0]}"; }
+ gradle() { ./gradlew :domain:test testDebugUnitTest -x :feature:home:testDebugUnitTest verifyRoborazziDebug -x :feature:home:verifyRoborazziDebug :app:lintDebug assembleRelease 2>&1 | tee "$RUNNER_TEMP/gradle.log"; return "${PIPESTATUS[0]}"; }
gradle && exit 0
grep -qE 'Could not (resolve|GET|HEAD|download)|Received status code 5[0-9][0-9]|Connection reset|(Read|connect) timed out' \
"$RUNNER_TEMP/gradle.log" || exit 1
@@ -64,22 +61,23 @@ jobs:
feature/*/build/reports/tests/
feature/*/build/outputs/roborazzi/
app/build/reports/lint-results-debug.html
- retention-days: 7
-
+ retention-days: 7
+
- name: Build signed debug APK
- if: success()
+ id: build_debug
+ if: always()
run: ./gradlew :app:assembleDebug
- name: Upload signed debug APK
- if: success()
+ if: steps.build_debug.outcome == 'success'
uses: actions/upload-artifact@v7
with:
- name: Odyssy-Debug-APK
+ name: Odyssey-Debug-APK
path: app/build/outputs/apk/debug/*.apk
if-no-files-found: error
retention-days: 7
- # a failed run is looked into the same day
- - name: Upload Luncher release APK
+
+ - name: Upload Odyssey release APK
if: success()
uses: actions/upload-artifact@v7
with:
diff --git a/README.md b/README.md
index 0f265e04..371035c6 100644
--- a/README.md
+++ b/README.md
@@ -1,141 +1,39 @@
-
-
-
+# Odyssey
-An offline, lightweight and customizable Android TV launcher that starts instantly.
+**A lightweight, customizable Android TV launcher with a cinematic, remote-friendly home screen.**
-
-
-
-
-
-
-
-It's made with performance in mind, to run smoothly even on old and weak Android TV devices, and still gives you plenty of customization options to shape it to your taste.
-
-## Screenshots
-
-| | |
-|---|---|
-|  |  |
-| Your apps, the time and the date | Hold OK on an app to move or hide it |
-|  |  |
-| Settings | Customize your home screen layout and tile shape |
-|  |  |
-| Pick a wallpaper, and dim or blur it | Add pictures to Luncher's gallery |
-|  |  |
-| Show the app names | Pick an accent color, and dark or light themes |
+Odyssey is a personal Android TV launcher project based on the open-source [Luncher](https://github.com/CVasilakis/luncher) project. The original lightweight Kotlin architecture remains in place while the app and project documentation use the Odyssey name.
## Features
-- [x] Reorder your apps
-- [x] Hide the apps you don't use
-- [x] Customize the tile shape, from square to pill-shaped
-- [x] Change the apps' alignment (top / bottom / left / right / center)
-- [x] Show the app names
-- [x] Set your own pictures as wallpaper, with dim and blur options
-- [x] Pick an accent color, and dark or light theme for menus and settings
-
-**On the way**
-
-- [ ] Your own custom banners for app tiles
-- [ ] More appearance settings: tile size, spacing and much more
-- [ ] Wi-Fi, VPN and notifications in the status bar
-- [ ] Folders to group your apps
-- [ ] Screensaver options
-- [ ] A lightweight animated background option (if possible)
-- [ ] More exotic features, such as the CPU temperature (if possible)
-
-Have an idea? Suggest it in the [issues](https://github.com/CVasilakis/luncher/issues). If it fits Luncher's [design principles](#design-principles), it has a good chance of joining the list above.
-
-## Design principles
-
-- **Instant startup** and **minimal memory usage**, with no background services.
-- **Offline by design:** no internet, no ads, no tracking, no accounts.
-- **No frameworks or dependencies:** just plain Kotlin.
-
-## Install
-
-You can download Luncher from any of the sources below. Its builds are [reproducible](https://f-droid.org/en/docs/Reproducible_Builds/) and signed with my key, so all three sources offer the exact same app, and you can switch between them for updates without reinstalling.
+- Launch installed Android TV apps using the TV remote / D-pad
+- Recently played apps, saved locally on the device
+- Curated movie and TV picks; select a title to search the web for streaming availability
+- No recommendation API key, account, or background tracking service required
+- Reorder or hide apps
+- Customize app tile appearance and alignment
+- Choose a wallpaper and adjust its appearance
+- Change the accent color and light/dark menu theme
+- Designed for Android TV devices, including the DNA Hub 2.0 running Android 12
-
-
-
-
-
+## Recommendations and privacy
-Once installed, Luncher shows up in your TV's list of apps. You can open it from there to try it out, but the Home button on the remote still takes you back to the TV's own launcher. The steps to make it your default home screen depend on the device. The guides below cover the two most common systems: Google TV, found on many smart TVs, projectors and streaming sticks, and Fire OS, found on Amazon's Fire TV devices. The newest Fire TV devices run Vega OS instead, which can't run Android apps, so Luncher doesn't work on them. Make sure you understand a command before you run it, and if you're unsure, feel free to ask in the [issues](https://github.com/CVasilakis/luncher/issues).
+The initial recommendations are a built-in curated list, not live or personalized streaming-service data. Selecting a recommendation opens a web search; streaming availability depends on region and subscription. Recently played app history stays in local app preferences and is not uploaded.
-
-Google TV
+## Build
-Connect to the TV with adb: turn on USB or network debugging in its developer options (over the network, connect with `adb connect `). Then install the APK you downloaded:
+With the repository checked out and a JDK/Android build environment installed:
```bash
-adb install luncher-vX.Y.Z.apk
+./gradlew assembleDebug
```
-With the TV's own home screen in front, see which app it is:
-
-```bash
-adb shell dumpsys window | grep mCurrentFocus
-```
-
-On Android 7.0 and newer, this also works from any screen:
-
-```bash
-adb shell cmd package resolve-activity --brief -a android.intent.action.MAIN -c android.intent.category.HOME
-```
-
-On Google's own system images, the stock launcher is:
-
-| System | Stock launcher |
-|---|---|
-| Android TV 5.1 to 7.1 | `com.google.android.leanbacklauncher` |
-| Android TV 8.0 and newer | `com.google.android.tvlauncher` |
-| Google TV | `com.google.android.apps.tv.launcherx` |
-
-TV makers may replace it with their own, so check with the commands above. Disabling the stock launcher makes Home open Luncher:
-
-```bash
-adb shell pm disable-user --user 0
-```
-
-To undo it, run `adb shell pm enable `. Don't uninstall Luncher while the stock launcher is disabled, or Home has nowhere to go.
-
-
-
-
-Fire TV (Fire OS)
-
-Connect to the Fire TV with adb: turn on ADB debugging in its developer options, then connect with `adb connect `. Then install the APK you downloaded:
-
-```bash
-adb install luncher-vX.Y.Z.apk
-```
-
-On Fire OS, the simplest way to make Luncher your default home screen is Launcher Manager, an app made for exactly that:
-
-- [Launcher Manager (for Fire OS)](https://xdaforums.com/t/app-firetv-noroot-launcher-manager-change-launcher-without-root.4176349/) (XDA Forums)
-
-If Launcher Manager doesn't support your Fire OS version, there's currently an exploit that works on most Fire TV devices: it lets you unlock the bootloader, root your device and even downgrade it to an older Fire OS version. Look for the "UNLOCK" thread of your device in the forum below:
-
-- [Fire TV Original Android Development](https://xdaforums.com/f/fire-tv-original-android-development.3083/) (XDA Forums)
-
-
-
-## The story behind Luncher
-
-Having recently acquired a second-hand 3rd gen Fire TV Stick, I was immediately impressed by it. This little device runs Android, can be powered from a typical USB port and has hardware acceleration for the H.265/H.264 video formats ([specs](https://developer.amazon.com/docs/device-specs/device-specifications-comparison-table.html)). So many possibilities, but what a bad home screen! I get why the default home screen is like that (ads everywhere, lagging, too many clicks to reach what you want). After all, every company wants to promote its products, and that's fair. But I wanted something more minimal and faster, so I started digging into the open source community for Android TV launcher alternatives.
-
-I was surprised by the limited availability of open source options. Few launchers were still maintained, and most of the ones on GitHub don't make their source code available (they provide just the APK for download). Also, while many of them looked fancy, they were quite buggy, or kept features behind a paywall. A well-maintained list of the available Android TV launchers can be found [here](https://gist.github.com/denilsonsa/80cbb3a14b3bf63de75e6bf81c89ee05).
-
-At that point I had two options: fork one of the existing open source launchers and try to improve it, or build a new one from the ground up. Forking would have meant substantial changes, with no guarantee that the result would end up close to what I wanted. So I went for the second option, wondering how difficult it could be. With a good knowledge of software architecture principles, a background in software engineering and, of course, some help from AI agents, it turned out to be quite easy, and I learned a lot along the way. So here we are. Most of the development time goes into designing and improving the project's software architecture, to make sure each feature is implemented in a simple and lightweight manner, and into automating the tests it needs. The project is currently a hobby that I plan to maintain for the long term. Enjoy!
+The debug APK is normally produced at `app/build/outputs/apk/debug/app-debug.apk`. GitHub Actions can also build the project when its workflow is enabled.
-## For developers
+## Device compatibility
-For how to build Luncher, how the code is organized and how it's tested, see [`docs/`](docs/README.md). If you're developing under WSL2, the [android-tv-wsl-dev-tools](https://github.com/CVasilakis/android-tv-wsl-dev-tools) scripts create, start and stop Android TV emulators from the command line, without the need for Android Studio.
+Odyssey is being developed with a DNA Hub 2.0 running Android 12. Launcher behavior can vary by manufacturer and by the device's system launcher settings.
-## License
+## Credits and licensing
-Luncher is under the MIT License ([`LICENSE`](LICENSE)), except its icon and banner, the store listing's images, this page's banner and the archived launch screen's graphics, which are derived from Android Open Source Project artwork and are under the Apache License 2.0 ([`app/README.md`](app/README.md#license)).
+Odyssey is based on [Luncher by CVasilakis](https://github.com/CVasilakis/luncher). See the upstream repository for the original project's license and attribution. This personal fork is not affiliated with the original author.
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index b1f87040..074caf20 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -1,5 +1,5 @@
-
- Luncher
+
+ Odyssey
diff --git a/feature/home/src/main/java/com/luncher/launcher/home/HomeActivity.kt b/feature/home/src/main/java/com/luncher/launcher/home/HomeActivity.kt
index 5be84d86..f805c177 100644
--- a/feature/home/src/main/java/com/luncher/launcher/home/HomeActivity.kt
+++ b/feature/home/src/main/java/com/luncher/launcher/home/HomeActivity.kt
@@ -4,13 +4,18 @@ import android.annotation.SuppressLint
import android.app.Activity
import android.content.ActivityNotFoundException
import android.content.Intent
+import android.graphics.Color
+import android.graphics.Typeface
+import android.net.Uri
import android.os.Build
import android.graphics.drawable.GradientDrawable
import android.graphics.drawable.StateListDrawable
import android.os.Bundle
import android.view.KeyEvent
import android.view.View
+import android.view.Gravity
import android.widget.TextView
+import android.widget.LinearLayout
import android.window.OnBackInvokedDispatcher
import com.luncher.domain.appearance.Appearance
import com.luncher.domain.appearance.ThemeAppearance
@@ -97,6 +102,7 @@ class HomeActivity : Activity() {
empty = findViewById(R.id.home_empty)
clockView = findViewById(R.id.home_clock)
settingsEntry = findViewById(R.id.home_settings)
+ showRecommendations()
settingsEntry.setOnClickListener { openSettings() }
wallpaper = HomeWallpaper(this, graph.wallpaper, ::showOnPicture)
move = MoveMode(
@@ -171,6 +177,7 @@ class HomeActivity : Activity() {
// Unchanged, as on most returns to the home screen: keep the tiles, their images and focus.
if (arranged.shown != shown) show(arranged.shown)
showWhyEmpty(arranged)
+ showRecentApps(arranged.shown)
}
private fun show(appearance: Appearance) {
@@ -271,6 +278,101 @@ class HomeActivity : Activity() {
empty.visibility = View.VISIBLE
}
+ /**
+ * Recently launched apps are stored locally on this device. The history never leaves Odyssey.
+ */
+ private fun showRecentApps(availableApps: List) {
+ val section = findViewById(R.id.home_recent_section)
+ val row = findViewById(R.id.home_recent_row)
+ val recentPackages = getSharedPreferences("odyssey_home", MODE_PRIVATE)
+ .getString("recent_packages", "")
+ .orEmpty()
+ .split("|")
+ .filter { it.isNotBlank() }
+ val byPackage = availableApps.associateBy { it.launchable.packageName }
+ val recent = recentPackages.mapNotNull { byPackage[it] }
+ .distinctBy { it.launchable.packageName }.take(8)
+ row.removeAllViews()
+ section.visibility = if (recent.isEmpty()) View.GONE else View.VISIBLE
+ for (app in recent) {
+ row.addView(makeHomeCard(app.label, "Recently played") { open(app) })
+ }
+ }
+
+ /**
+ * Service shortcuts use apps exposed by Android TV's launcher. Odyssey cannot read private
+ * watch history from Netflix or Apple TV; this row opens the actual installed service app.
+ */
+ private fun showRecommendations() {
+ val row = findViewById(R.id.home_recommendation_row)
+ val apps = installedApps.tvApps()
+ val services = listOf(
+ Triple("Netflix", "Open Netflix", listOf("com.netflix.ninja", "netflix")),
+ Triple("Apple TV", "Open Apple TV", listOf("com.apple.atve.androidtv.appletv", "com.apple.atve.sony.appletv", "apple tv", "appletv"))
+ )
+ row.removeAllViews()
+ services.forEach { (title, description, identifiers) ->
+ val app = apps.firstOrNull { candidate ->
+ val packageName = candidate.launchable.packageName.lowercase(Locale.ROOT)
+ val label = candidate.label.lowercase(Locale.ROOT)
+ identifiers.any { id -> packageName.contains(id) || label.contains(id) }
+ }
+ row.addView(makeHomeCard(title + if (app == null) "\\nNot detected" else "\\nReady to open",
+ if (app == null) "$title not detected among TV apps" else description) {
+ if (app != null) {
+ open(app)
+ } else {
+ try {
+ val search = Uri.encode("$title Android TV app")
+ startActivity(Intent(Intent.ACTION_VIEW, Uri.parse("https://play.google.com/store/search?q=$search&c=apps")))
+ } catch (_: ActivityNotFoundException) {
+ // No store/browser available; keep the launcher usable.
+ }
+ }
+ })
+ }
+ }
+
+ /** Large rounded cards with D-pad focus feedback, shared by the home rows. */
+ private fun makeHomeCard(text: String, description: String, action: () -> Unit): TextView {
+ val density = resources.displayMetrics.density
+ fun dp(value: Int) = (value * density + 0.5f).toInt()
+ return TextView(this).apply {
+ this.text = text
+ contentDescription = "$text. $description"
+ textSize = 14f
+ setTypeface(null, Typeface.BOLD)
+ setTextColor(Color.WHITE)
+ gravity = Gravity.CENTER_VERTICAL
+ setPadding(dp(16), dp(10), dp(16), dp(10))
+ minWidth = dp(150)
+ minimumHeight = dp(54)
+ maxWidth = dp(230)
+ isFocusable = true
+ isFocusableInTouchMode = true
+ isClickable = true
+ val normal = GradientDrawable().apply {
+ shape = GradientDrawable.RECTANGLE
+ cornerRadius = dp(12).toFloat()
+ setColor(Color.rgb(35, 39, 52))
+ }
+ val focused = GradientDrawable().apply {
+ shape = GradientDrawable.RECTANGLE
+ cornerRadius = dp(12).toFloat()
+ setColor(Color.rgb(61, 91, 160))
+ setStroke(dp(2), Color.WHITE)
+ }
+ background = StateListDrawable().apply {
+ addState(intArrayOf(android.R.attr.state_focused), focused)
+ addState(intArrayOf(), normal)
+ }
+ setOnClickListener { action() }
+ layoutParams = LinearLayout.LayoutParams(dp(190), dp(68)).apply {
+ marginEnd = dp(12)
+ }
+ }
+ }
+
private fun open(app: InstalledApp) {
val intent = Intent(Intent.ACTION_MAIN)
.addCategory(Intent.CATEGORY_LEANBACK_LAUNCHER)
diff --git a/feature/home/src/main/res/layout/home_activity.xml b/feature/home/src/main/res/layout/home_activity.xml
index f6229456..e3f28f85 100644
--- a/feature/home/src/main/res/layout/home_activity.xml
+++ b/feature/home/src/main/res/layout/home_activity.xml
@@ -94,6 +94,73 @@
android:src="@drawable/home_settings" />
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Processing background…
+ Recently played
+ Movies & TV to explore
diff --git a/settings.gradle.kts b/settings.gradle.kts
index 14efb8bc..39c202b1 100644
--- a/settings.gradle.kts
+++ b/settings.gradle.kts
@@ -16,5 +16,5 @@ dependencyResolutionManagement {
}
}
-rootProject.name = "Luncher"
+rootProject.name = "Odyssey"
include(":app", ":domain", ":ui", ":platform", ":feature:home", ":feature:settings")