Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Develop
Test
Publish
Monetize
Engage users
Device specifications
Resources
Skip to main content
If your Fire TV app targets an older Android API level, you can use the Fire TV Android SDK upgrade capability in Amazon Devices Builder Tools (ADBT) to raise its 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 the amazon-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.
The capability is only for upgrading 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 with minSdkVersion 22 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.
The Fire OS version only sets the platform that your app runs on. When a newer Fire OS version runs an app with an older 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 targetSdkVersion 28 runs on a Fire OS 14 TV (API level 34) in compatibility mode.
  • An app with targetSdkVersion 34 and minSdkVersion 22 runs on a Fire OS 6 or Fire OS 7 device (API level 25 or 28). The device ignores the newer behaviors.
Raising 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 targetSdkVersion 30 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
Fire OS workflows don’t require the Vega SDK.

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.
  1. To install and configure ADBT, run the following command in your terminal from your app’s project directory.
  2. When prompted, choose your AI agent, confirm the MCP settings update, and choose where to install the context document.
  3. To verify your setup, run the following command.
  4. Restart your AI agent so that it loads the new configuration.
For setup options, such as non-interactive mode and agent mode, see Get Started with Amazon Devices Builder Tools for AI.

Upgrade your app

To upgrade your app’s targetSdkVersion, complete the following steps.
  1. In your AI agent, open your app’s project directory.
  2. In the agent’s chat, enter a prompt that names your current and target API levels.
  3. Review the assessment that the agent returns for the next API level.
  4. For each proposed edit, review the evidence that the agent provides, and then approve or reject the edit.
  5. After the agent finishes an API level, build your app and run your tests before you continue to the next level.
  6. Repeat steps 3–5 until your app reaches the target API level.
If the agent doesn’t start the upgrade workflow, name the skill in your prompt.
For apps that run on Fire OS 14 devices, Amazon requires 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. If you upgrade from 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-feature element with uses-library in 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: If your 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, run check-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.

Send feedback

To send feedback about ADBT, including the upgrade capability, enter the following prompt in your agent’s chat. The agent confirms that your feedback is about ADBT, and then gives you a link to a survey.
Last modified on November 25, 2026