SDB Shell Command Failure When Running App in Emulator

Original Created May 16, 2016 | Regeneration Apr 22, 2026

I'm developing a Samsung app but can't run it in the emulator. I received the following error:

step SDB shell handle failed
Failed to `step SDB shell handle '2 mkdir /tmp UserX' command` operation
(Return Code:31)sdb command rejected exception

I've checked the sdb's capability and here's the output:

E:\Tizen\tools>sdb capability
secure_protocol:enabled
intershell_support:disabled
filesync_support:push
usbproto_support:disabled
sockproto_support:enabled
syncwinsz_support:enabled
rootonoff_support:disabled
zone_support:disabled
multiuser_support:disabled
cpu_arch:x86
profile_name:tv
vendor_name:Samsung
can_launch:tv-samsung-public
platform_version:2.4.0
product_version:2.0
sdbd_version:2.2.31
sdbd_plugin_version:1.0.0
sdbd_cap_version:1.0

Problem Understanding

The error occurs when trying to execute an SDB shell command during app deployment to the emulator. The specific error (Return Code:31) suggests a permission issue or command rejection by the emulator.

Solution Methods

  1. Verify TV Emulator Compatibility:

    • The capability output shows you're working with a TV profile (profile_name:tv)
    • Ensure your app is properly configured for TV development
  2. Check SDB Connection:

    • Run sdb devices to verify the emulator is properly connected
    • Restart both the emulator and SDB service if needed
  3. Permission Adjustment:

    • The error occurs during a mkdir operation, suggesting permission issues
    • Try running SDB with elevated privileges (as administrator)

Additional Tips

Customize your cookie preferences

You can enable or disable non-essential cookies. Essential cookies are always on to ensure the site works properly and to keep you signed in.

Necessary

These cookies are necessary for the website to function properly and cannot be switched off. They help with things like logging in and setting your privacy preferences.

Always on

Analytics

These cookies help us improve the site by tracking which pages are most popular and how visitors move around the site.

Enable analytics cookies
Public Forum Public Forum
Employees only. Please sign in with your company account.