TPK installation troubleshooting - flutter-tizen/flutter-tizen GitHub Wiki
-
app_id[APPLICATION_ID] install start app_id[APPLICATION_ID] installing[10] app_id[APPLICATION_ID] installing[21] app_id[APPLICATION_ID] install failed[118, -12], reason: Check certificate error : spend time for wascmd is [1116]ms
- Other possible error messages:
Invalid certificate chain with certificate in signature.:<-3>
Device is not registered. Register this device first:<-30>
Non trusted certificate is used. Register valid certificate:<-32>
- Checklist:
- Did you create a Samsung certificate profile?
- Are the author and distributor certificates valid (not expired)?
- Did you connect a new device (including emulator) after issuing a distributor certificate? Did you register the DUID of the device when creating the distributor certificate?
- If you are using a headless system like WSL or connected to a remote host using SSH, did you unlock your GNOME keyring properly?
- Possible solutions:
- Create a Samsung certificate profile in Certificate Manager and set it active. You must have the Samsung Certificate Extension installed to create the profile (use Package Manager to install the package).
- To register a new device to an existing certificate profile, create a new distributor certificate.
- Click the Add (+) button in Certificate Manager and choose Samsung certificate.
- In step 2 (Certificate Profile), select your existing profile. If you are asked whether you want to remove an existing author certificate, click No.
- In step 4 (Distributor Certificate), choose Create a new distributor certificate. Make sure your device is connected to your PC and its DUID is displayed in the DUID list.
- Enable GNOME keyring and unlock it.
- Unlock for a remote session: https://github.com/flutter-tizen/flutter-tizen/issues/79#issuecomment-848106353
- Unlock from the command line (reference):
- Install
gnome-keyring
if not installed:sudo apt install gnome-keyring
- Start a new D-Bus session:
dbus-run-session -- bash
- Create a login keyring with a password:
echo <PASSWORD> | gnome-keyring-daemon --unlock
- Remove any existing certificate profile and create again (only once):
~/tizen-studio/tools/ide/bin/tizen security-profiles add \ -n [profile_name] \ -a [author_certificate.p12] -p [author_password] \ -d [distributor_certificate.p12] -dp [distributor_password]
- Install
- Other possible error messages:
-
__return_cb req_id[1] pkg_type[tpk] pkgid[PACKAGE_ID] key[install_percent] val[72] __return_cb req_id[1] pkg_type[tpk] pkgid[PACKAGE_ID] key[error] val[-21] __return_cb req_id[1] pkg_type[tpk] pkgid[PACKAGE_ID] key[end] val[fail] processing result : Register application error [-21] failed
- Checklist:
- Did you try to install a native TPK on a TV device?
- Possible solutions:
- Change the Tizen app language from C++ to C#, by removing the
tizen
directory and runningflutter-tizen create
again.
- Change the Tizen app language from C++ to C#, by removing the
- Checklist:
-
app_id[APPLICATION_ID] installing[72] app_id[APPLICATION_ID] install failed[118, -21], reason: Register application error :
- Checklist:
- Is your app ID different from the package ID?
- Possible solutions:
- Open
tizen-manifest.xml
and make sure the app ID exactly matches the package ID.
- Open
- Checklist:
-
__return_cb req_id[1] pkg_type[tpk] pkgid[] key[error] val[-23] __return_cb req_id[1] pkg_type[tpk] pkgid[] key[end] val[fail] processing result : Unzip error [-23] failed (or) processing result : Out of disc space [-3] failed
- Checklist:
- The device may be running out of disk space.
- Possible solutions:
- Remove some applications on the device.
- Checklist:
-
__return_cb req_id[1] pkg_type[tpk] pkgid[PACKAGE_ID] key[install_percent] val[25] __return_cb req_id[1] pkg_type[tpk] pkgid[PACKAGE_ID] key[error] val[-4] __return_cb req_id[1] pkg_type[tpk] pkgid[PACKAGE_ID] key[end] val[fail] processing result : Operation not allowed [-4] failed
- Checklist:
- The package API version may not be compatible with the selected device.
- Possible solutions:
- Lower the target API version of your package by editing
tizen-manifest.xml
.
- Lower the target API version of your package by editing
- Checklist:
-
__return_cb req_id[1] pkg_type[] pkgid[] key[start] val[install] __return_cb req_id[1] pkg_type[] pkgid[] key[error] val[-4] error message: :Load archive info fail __return_cb req_id[1] pkg_type[] pkgid[] key[end] val[fail] processing result : Operation not allowed [-4] failed
- Possible solutions:
- Try rebooting your device.
- Possible solutions: