Vpkg installs fine on KVD Emulator but fails on Physical Hardware

:warning: Before you continue


Before submitting a bug report, please review our troubleshooting documentation at Redirect

If you still want to file a bug report, please make sure to fill in all the details below and provide the necessary information.

NOTE: PLEASE ONLY REPORT A SINGLE BUG USING THIS TEMPLATE.
If you’re experiencing multiple issues, please file a separate report for each.


:backhand_index_pointing_right: Bug Description


1. Summary

The built .vpkg application package installs and runs successfully on the Vega Virtual Device (KVD / Simulator), but fails during deployment on physical Vega TV hardware (G4N33M03351401B3). The Vega Package Manager (vpm / pkgmgrd) rejects the installation with Parameter value bad and Resource already exists errors due to process token deadlock.

App Name:vegaproject
App Link on Amazon Appstore (found through Developer Console → Actions column in App List → View on Amazon.com):

Bug Severity
Select one that applies

  • Impacts operation of app
  • Blocks current development
  • Improvement suggestion
  • Issue with documentation (If selected, please share the doc link and describe the issue)
  • Other

2. Steps to Reproduce

  1. [Build app success]
  2. [Connect physical Vega hardware via VDA (G4N33M03351401B3).]
  3. [Install app fail on Vega TV hardware but install success on virtual device.
    use 2 method:
    Method 1: click play button on vs code.
    Method 2: run vega device install-app --device G4N33M03351401B3 --packagePath ./vegaproject_armv7.vpkg
    ]

3. Observed Behavior

Explain what actually happened, noting any discrepancies or malfunctions.

<!-- The installation process fails on the physical device.
error: Vega operation FAILED due to an irrecoverable error: Failed: Installing/Updating '/tmp/vegaproject_armv7.vpkg' ...error (Parameter value bad ) -->

4. Expected Behavior

Describe what you expected the SDK to do under normal operation.

<!-- Can install app on Vega virtual device and Vega TV hardware --> 

4.a Possible Root Cause & Temporary Workaround

Fill out anything you have tried. If you don’t know, N/A is acceptable

<!-- N/A -->

5. Logs or crash report

(Please make sure to provide relevant logs as attachment)

For crash issues, please refer this guide for faster troubleshooting: Detect Where the App Crash Originates | Design and Develop Vega Apps

  • App/Device Logs

  • Crash Logs

  • Crash Report

  • For issues with Vega Studio Extension, please share log files from below folders:
    For v0.22+:

    ~/.vscode/extensions/amazon.vega-extension-<version>/ExtensionLogs
    ~/.vscode/extensions/amazon.vega-ui-extension-<version>/ExtensionLogs
    

    For v0.21 and earlier:

     ~/.vscode/extensions/amazon.kepler-extension-<version>/ExtensionLogs
     ~/.vscode/extensions/amazon.kepler-ui-extension-<version>/ExtensionLogs
    

6. Environment

Please fill out the fields related to your bug below:

  • SDK Version: 0.22.6759

  • App State: Foreground

  • OS Information: Please ssh into the device via vega exec vda shell (or kepler exec vda shell for v0.21 and earlier) and copy the output from cat /etc/os-release into the answer section below. Note, if you don’t have a simulator running or device attached, the command will respond with vda: no devices/emulators found

    <!-- #######################
    sh(com.amazon.dev.shell):/$ vda -s G4N33M03351401B3 shell
    sh: vda: command not found
    sh(com.amazon.dev.shell):/$ cat /etc/os-release
    NAME="OS"
    OE_VERSION="4.0.0"
    OS_MAJOR_VERSION="1"
    OS_MINOR_VERSION="1"
    RELEASE_ID="14"
    OS_VERSION="1.1"
    BRANCH_CODE="TV Ship day60"
    BUILD_DESC="OS 1.1 (TV Ship day60/4460)"
    BUILD_FINGERPRINT="4.0.227617.0(3072cab629675a74)/4460N:user-external/release-keys"
    BUILD_VARIANT="user-external"
    BUILD_TAGS="release-keys"
    BUILD_DATE="Fri Feb 20 16:02:43 UTC 2026"
    BUILD_TIMESTAMP="1771603363"
    VERSION_NUMBER="1401010446050"--> 
    

7. Example Code Snippet / Screenshots / Screengrabs

Include any relevant code or component setup in React Native that can help reproduce the bug.

import { ExampleComponent } from 'custom-sdk';

<ExampleComponent config={{ key: 'value' }} />

:backhand_index_pointing_right: Playback Issues


If this is a playback issue, please provide your content URL, any pre-conditions (like geo-location), and let us know if it’s x86 or arm7.


<!-- Describe your playback issue if applicable -->

Please share the following details in addition:_

  • Player SDK: [Bitmovin, Shaka, ...]
  • Player SDK Version: [e.g. 1.23]
    • Audio Codecs: [AAC, ...]
    • Video Codecs: [h.264, mp4]
    • Manifest Types: [m3u8, dash, etc ..]

Q: If applicable, please provide your media/content url
If this is created dynamically, tokenized, etc please provide a way for us to access it

[N/A]

Q: Are there any special headers required to reproduce the issue you are facing?

[N/A]

Additionally please provide the following if possible
Provide Screenshots / Screengrabs / Logs. Please include as much information as you can that will help debug.

<!-- 




--> 

:backhand_index_pointing_right: Additional Context


Any Additional Context you would like to provide?
Add any other relevant information, such as recent updates to the SDK, dependencies, or device OS that may affect the bug.

<!-- Answer here if applicable  --> 

Hi @NamTran,

This is a known issue.
The “Parameter value bad” error on physical hardware is caused by a pending download on the device that blocks new app installations. This doesn’t affect VVD/emulator because the virtual device has a clean state.
Fix:

  1. Shell into the device:
    vega exec vda shell
  2. Cancel all pending downloads:
    vpm cancel-all
  3. Retry the installation:
    vega device install-app --device G4N33M03351401B3 --packagePath./vegaproject_armv7.vpkg

If that doesn’t resolve it, also try:
4. Reboot the device:
vega exec vda reboot
Wait for it to fully restart, then retry the install.
5. If the error mentions “Resource already exists”, force the installation:
vega exec vda shell
vpm install /tmp/vegaproject_armv7.vpkg --force

Why this happens: The Fire TV 4K Select sometimes has background system updates or pending app downloads queued. These hold a lock on the package manager, causing a “process token deadlock” that rejects new sideloaded installs. Cancelling pending downloads releases the lock.

Note: I see you’re using SDK v0.22.6759 (Active) but have v0.23.9221 installed. The device is on OS 1.1 (build 4460). This SDK/OS combination should be compatible, but if issues persist after the above fix, try switching to the 0.23 SDK:
vega sdk use 0.23.9221

Documentation reference: Troubleshoot VDA Issues

Warm regards,
Ivy