Question
I'm attempting to install the BasicUI native app sample on a Z1 device but consistently encounter FATAL_ERROR[61]. Here are the details:
Installation Log:
[Deploying the package...]
RDS: On
[Creating the package...]
Created package: C:\Users\yyang\workspace\BasicUI\Release\org.example.basicui-1.0.0-arm.tpk
[Transferring the package...]
Transferred package to: /opt/usr/apps/tmp
[Installing the package...]
Uninstalling previous package...
Path: /opt/usr/apps/tmp/org.example.basicui-1.0.0-arm.tpk
Start process (install)
Error: 0
End process (fail)
Processing result: FATAL_ERROR [61] failed
Time spent: 3221ms
cmd_ret:61
Error from sdb dlog:
04-28 12:23:42.992 : ERROR / PKGMGR_SERVER ( 7930 : 7930 ) : pkgmgr-server.c: main(1608) > server start
04-28 12:23:43.232 : ERROR / rpm-installer ( 7934 : 7934 ) : rpm-appcore-intf.c: main(197) > [/opt/usr/apps/tmp/org.example.basicui-1.0.0-arm.tpk] is tpk package.
04-28 12:23:43.262 : ERROR / rpm-installer ( 7934 : 7934 ) : rpm-installer-core.c: _rpm_installer_get_pkgname_info(297) > first installation, pkgid=[org.example.basicui]
04-28 12:23:44.182 : ERROR / PKGMGR_PARSER ( 7934 : 7934 ) : pkgmgr_parser.c: pkgmgr_parser_check_manifest_validation(2401) > Manifest Validation Failed with error code 1866
04-28 12:23:44.182 : ERROR / rpm-installer ( 7934 : 7934 ) : coretpk-installer.c: _coretpk_installer_package_install(2590) > invalid manifest file
Steps I've verified:
- Completed all certificate processes (author.p12 and distributor.p12) through IDE successfully
- Enabled "permit to install applications" via Connection Explorer
- Confirmed DUID matches the device
- Verified device date/time are correct
Environment:
- Tizen SDK 2.4 Rev5 with Certificate Extension SDK
- Windows 8 64-bit
- Tried both api_version 2.4 and 2.3
The tizen-manifest.xml is untouched (default from IDE), yet pkgcmd reports it as invalid. Any suggestions?
Answer
Problem Understanding
The FATAL_ERROR[61] typically indicates a certificate-related issue during TPK installation. The specific error (Manifest Validation Failed with error code 1866) suggests there's a problem with the package's manifest validation.
Solution Methods
-
Verify Device Profile Configuration:
- Ensure your device-profile.xml is properly configured in /home/developer
- Confirm the DUID in device-profile.xml matches your device's actual DUID
-
Check Certificate Chain:
- Revalidate your certificate chain (author and distributor certificates)
- Ensure certificates are properly registered in Tizen Studio
-
Manifest File Validation:
- Review your tizen-manifest.xml for any inconsistencies
- Compare with a working sample manifest
- Pay special attention to:
- Package ID format
- API version compatibility
- Required permissions
-
Clean Rebuild:
- Clean your project and rebuild
- Generate new certificates if needed
- Try creating a fresh TPK package
Additional Tips
- For commercial devices like SM-Z130H/SM-Z300H, certificate requirements are stricter than reference devices
- Consider testing with a simpler application first to isolate the issue
- Check Samsung Tizen OS documentation for updated certificate requirements: Samsung Tizen OS Developer Portal