Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 13 additions & 15 deletions .github/workflows/jvm-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down
146 changes: 22 additions & 124 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,141 +1,39 @@
<p align="center">
<img src="docs/images/readme-banner.png" alt="Luncher" width="100%">
</p>
# Odyssey

<p align="center"><b>An offline, lightweight and customizable Android TV launcher that starts instantly.</b></p>
**A lightweight, customizable Android TV launcher with a cinematic, remote-friendly home screen.**

<p align="center">
<img src="https://img.shields.io/badge/APK-~244_KB-blue" alt="APK ~244 KB">
<a href="https://f-droid.org/packages/com.luncher.launcher/"><img src="https://img.shields.io/f-droid/v/com.luncher.launcher?logo=fdroid" alt="F-Droid version"></a>
<a href="https://github.com/CVasilakis/luncher/releases/latest"><img src="https://img.shields.io/github/v/release/CVasilakis/luncher?logo=github" alt="GitHub release"></a>
<img src="https://img.shields.io/badge/Android_TV-5.1%2B-3DDC84?logo=android&logoColor=white" alt="Android TV 5.1+">
</p>

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

| | |
|---|---|
| ![The home screen](fastlane/metadata/android/en-US/images/tvScreenshots/1.png) | ![An app's menu](fastlane/metadata/android/en-US/images/tvScreenshots/2.png) |
| Your apps, the time and the date | Hold OK on an app to move or hide it |
| ![The settings](fastlane/metadata/android/en-US/images/tvScreenshots/3.png) | ![The appearance settings](fastlane/metadata/android/en-US/images/tvScreenshots/4.png) |
| Settings | Customize your home screen layout and tile shape |
| ![The background settings](fastlane/metadata/android/en-US/images/tvScreenshots/5.png) | ![Adding a picture from a folder](fastlane/metadata/android/en-US/images/tvScreenshots/6.png) |
| Pick a wallpaper, and dim or blur it | Add pictures to Luncher's gallery |
| ![App names below the tiles](fastlane/metadata/android/en-US/images/tvScreenshots/7.png) | ![The light mode](fastlane/metadata/android/en-US/images/tvScreenshots/8.png) |
| 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

<p align="center">
<a href="https://f-droid.org/packages/com.luncher.launcher/"><img src="https://fdroid.gitlab.io/artwork/badge/get-it-on.png" alt="Get it on F-Droid" height="80"></a>
<a href="https://apps.obtainium.imranr.dev/redirect?r=obtainium://add/https://github.com/CVasilakis/luncher"><img src="https://raw.githubusercontent.com/ImranR98/Obtainium/main/assets/graphics/badge_obtainium.png" alt="Get it on Obtainium" height="80"></a>
<a href="https://github.com/CVasilakis/luncher/releases/latest"><img src="https://raw.githubusercontent.com/Kunzisoft/Github-badge/main/get-it-on-github.png" alt="Get it on GitHub" height="80"></a>
</p>
## 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.

<details>
<summary><b>Google TV</b></summary>
## Build

Connect to the TV with adb: turn on USB or network debugging in its developer options (over the network, connect with `adb connect <TV's IP address>`). 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 <package>
```

To undo it, run `adb shell pm enable <package>`. Don't uninstall Luncher while the stock launcher is disabled, or Home has nowhere to go.

</details>

<details>
<summary><b>Fire TV (Fire OS)</b></summary>

Connect to the Fire TV with adb: turn on ADB debugging in its developer options, then connect with `adb connect <Fire TV's IP address>`. 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)

</details>

## 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.
4 changes: 2 additions & 2 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- A name, the same in every language. -->
<string name="app_name" translatable="false">Luncher</string>
<!-- The app name shown by Android TV. -->
<string name="app_name" translatable="false">Odyssey</string>
</resources>
Loading