Question
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
Answer
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
-
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
-
Check SDB Connection:
- Run
sdb devicesto verify the emulator is properly connected - Restart both the emulator and SDB service if needed
- Run
-
Permission Adjustment:
- The error occurs during a
mkdiroperation, suggesting permission issues - Try running SDB with elevated privileges (as administrator)
- The error occurs during a
Additional Tips
- This appears to be TV-specific development. For better support, consider posting in the Samsung TV Developers Forum: https://developer.samsung.com/smarttv/develop/support/forum.html
- Make sure your Tizen Studio and SDK versions are compatible with the emulator version