ADB (Android Debug Bridge) is a command-line tool that allows you to communicate with Android devices. It is bundled with Android Studio or available as standalone download.
The steps to enable developer mode might vary depending on your device and Android version. If the instructions below do not match your device, please search online for specific instructions for your device model.
- Go to
Settings
on your Android TV. - Navigate to
Device Preferences
>About
. - Scroll down to
Build
and click it repeatedly (about 7 times) until you see a message saying "You are now a developer!" - Go back to
Device Preferences
and you will now see a new option calledDeveloper options
. - Open
Developer options
and enableUSB Debugging
andNetwork Debugging
.
- Go to
Settings
on your Fire TV. - Navigate to
My Fire TV
>About
and click onBuild
repeatedly (about 7 times) until Developer options are enabled. - Go back to
My Fire TV
and openDeveloper options
. - Enable
ADB Debugging
andApps from Unknown Sources
.
- Find the IP address of your Android TV. Go to
Settings
>Network & Internet
and select your network to see the IP address. - On your computer, open a terminal or command prompt.
- Connect to the Android TV using the IP address:
adb connect <ANDROID_TV_IP_ADDRESS>
- You will see a prompt on your Android TV asking for permission to connect. Allow it.
-
Ensure your device is connected via ADB:
adb devices
Your device should be listed.
-
Install the APK file:
adb install <PATH_TO_APK_FILE>
-
Ensure your device is connected via ADB:
adb devices
Your device should be listed.
-
Use
adb logcat
to read all logs from your device:adb logcat
-
Optionally filer the logs using
grep
:adb logcat | grep -i 'org.jellyfin.androidtv'
If you're testing changes from a specific pull request (PR), you can download the APK generated by the build workflow. You'll be able to sideload this along with the stable version of the app. Follow these steps to download and install the APK:
-
Navigate to the Pull Request:
- Go to the Jellyfin for Android TV GitHub repository.
- Find the pull request that you want to test under the "Pull requests" tab. Click on the relevant PR to open it.
-
Open the Build Workflow:
- In the PR page, scroll down to the "Checks" section. This section contains details of the automated tests and build workflows that run for the pull request.
- If the section is collapsed click on "Show all checks".
- Look for the workflow labeled "App / Build / Build." Click on "Details" next to the successful build.
-
Locate the APK Artifact:
- In the workflow page, go to the "Summary" tab.
- Scroll down to the "Artifacts" section. This section lists the files generated by the build, including the APKs.
- You should see an artifact named
build-artifacts
. Click on the artifact to download it.
-
Unpack the ZIP file:
- Unpack the
jellyfin-androidtv-v0.0.0-dev.1-debug.apk
file from the downloaded ZIP file
- Unpack the
-
Install the APK on Your Android TV:
- Follow the instructions above to install the debug version of the app.