targetSdkVersion. This page is for developers who maintain an existing Fire TV Android app. It explains how the upgrade works, how to run it with your AI coding agent, and how to test the result.
How the Fire TV Android SDK upgrade works
ADBT is an npm package that adds a Model Context Protocol (MCP) server and agent skills to your AI coding agent. You don’t run separate commands for each capability. Instead, you describe what you want in your agent’s chat, and the agent selects the right skill. The upgrade capability uses theamazon-devices-android-sdk-uplevel skill.
This capability upgrades your app’s targetSdkVersion from API level 30 or later up to API level 36. If your app currently targets an API level below 30, update it to API level 30 before you use this capability.
The agent works through the behavior changes and required code updates between your app’s current targetSdkVersion and the new target. It works in small, reviewable steps:
- One API level at a time. The agent moves your app up one API level, and then continues to the next level.
- One behavioral change at a time. At each level, the agent addresses each Android behavior change separately.
- Evidence review before each edit. The agent shows you the code that a behavior change affects, and why.
- Explicit approval before each edit. The agent doesn’t change your code until you approve the change.
targetSdkVersion. It doesn’t port Android TV apps or other Android apps to Fire TV. To port an app, see How Fire TV Development Differs from Android TV Development.
targetSdkVersion and the Fire OS version on the device
Your app’s API levels don’t have to match the API level of the device that it runs on. Your app’s build configuration declares three API levels:minSdkVersion— The oldest API level that your app installs on. For example, an app withminSdkVersion22 installs on Fire OS 5 and all later versions.compileSdkVersion— The API level that your app compiles against. It controls which APIs you can call in your code.targetSdkVersion— The newest API level that you tested your app against and opted in to. Android uses this value to decide which behavior changes apply to your app at runtime.
targetSdkVersion, it uses compatibility behavior. For example, the system doesn’t apply newer permission, background execution, storage, and foreground service rules that the app hasn’t opted in to. So both of the following cases are common:
- An app with
targetSdkVersion28 runs on a Fire OS 14 TV (API level 34) in compatibility mode. - An app with
targetSdkVersion34 andminSdkVersion22 runs on a Fire OS 6 or Fire OS 7 device (API level 25 or 28). The device ignores the newer behaviors.
targetSdkVersion doesn’t drop support for older devices, because minSdkVersion controls which devices your app installs on. For example, your app can move to targetSdkVersion 34 and still install on Fire OS 6 and Fire OS 7 devices.
Before you begin
To use the upgrade capability, you need the following:- Your app’s Android project source code, with a working Gradle build
- An app with
targetSdkVersion30 or later - Node.js 18 or later (if the MCP server fails to start on Node.js v26, use Node.js v24)
- An MCP-compatible AI coding agent, such as Claude Code, Cursor, Kiro, GitHub Copilot, Cline, OpenCode, Codex, or Gemini CLI
- An Amazon developer account, for testing on virtual devices in Appstore Quality Central
Set up Amazon Devices Builder Tools
If you already set up ADBT, skip to Upgrade your app. To set up ADBT for your AI agent, complete the following steps.-
To install and configure ADBT, run the following command in your terminal from your app’s project directory.
- When prompted, choose your AI agent, confirm the MCP settings update, and choose where to install the context document.
-
To verify your setup, run the following command.
- Restart your AI agent so that it loads the new configuration.
Upgrade your app
To upgrade your app’stargetSdkVersion, complete the following steps.
- In your AI agent, open your app’s project directory.
-
In the agent’s chat, enter a prompt that names your current and target API levels.
- Review the assessment that the agent returns for the next API level.
- For each proposed edit, review the evidence that the agent provides, and then approve or reject the edit.
- After the agent finishes an API level, build your app and run your tests before you continue to the next level.
- Repeat steps 3–5 until your app reaches the target API level.
targetSdkVersion 34. For apps that run on Fire OS 16 devices, Amazon requires targetSdkVersion 36. For details, see What to set for minSdkVersion and targetSdkVersion.
Review the Android behavior changes
The agent addresses Android behavior changes as it upgrades your app. Review these changes yourself as well, so that you can evaluate the agent’s proposed edits. The Fire OS 14 and Fire OS 16 pages list the Android changes that matter most for Fire TV apps.targetSdkVersion 30 to 36, review the changes on both pages.
Some changes aren’t Android behavior changes, so review them separately:
- Amazon SDKs. Replace the
amazon:enable-featureelement withuses-libraryin your manifest. For details, see Amazon SDKs for Fire OS 14 and Update your Amazon SDKs for Fire OS 16. - 64-bit support. Starting with Fire OS 14, users see a warning if your app supports only 32-bit architectures. For details, see 64-bit compatibility.
Test your upgraded app
To test your upgraded app, use one or more of the following options:- Virtual devices. Use Live Device Interaction in Appstore Quality Central to access a virtual Fire OS 14 or Fire OS 16 device remotely. For details, see Live Device Interaction - Virtual Devices.
- Physical devices. Connect to a Fire TV smart TV that runs Fire OS 14 or Fire OS 16 through ADB. For details, see Connect to Fire TV Through ADB.
- Closed beta testing. Use Live App Testing (LAT) to distribute your app to testers on Fire OS 14 or Fire OS 16 devices. For details, see Get Started with Live App Testing.
minSdkVersion lets your app install on older devices, also test it on each older Fire OS version that it supports. To check the Fire OS version on a device at runtime, compare Build.VERSION.SDK_INT with the API level for that version.
Before you submit your app, review the Test Criteria for Amazon Appstore Apps.
Troubleshoot
If your agent gives generic Android guidance instead of Fire TV-specific steps, runcheck-status, start a new chat, and retry your prompt. If the MCP server doesn’t connect, check your Node.js version and restart your agent. For more solutions, see Troubleshoot Amazon Devices Builder Tools for AI.

