Question
I'm attempting to upload a .tpk binary file to Tizen Store - Seller Office, but the validation is failing with the following error: "Undocumented APIs is detected (white list)."
The problematic functions are:
- sap_peer_agent_set_service_connection_terminated_cb
- sap_peer_agent_terminate_service_connection
- sap_socket_send_data
- sap_socket_destroy
- sap_agent_find_peer_agent
- sap_agent_request_service_connection
- sap_agent_create
- sap_socket_set_data_received_cb
- sap_set_device_status_changed_cb
- sap_agent_initialize
- sap_peer_agent_destroy
These functions are part of the SAP protocol used in Sample apps.
Questions:
- Why does the pre-test fail for these functions?
- Do I need to manually add documentation for these functions?
- How can I resolve this validation issue?
Answer
Problem Understanding
The validation failure occurs because the Tizen Store validation system detected the use of undocumented APIs (SAP protocol functions) in your application. These APIs are not officially documented in the Tizen API reference, which triggers the validation error.
Solution Methods
-
Avoid Using Undocumented APIs:
- The recommended solution is to replace these undocumented SAP protocol functions with documented alternatives from the official Tizen API.
-
Incorporate Source Code:
- As a temporary workaround, you can incorporate the SAP protocol source code directly into your project instead of using it as a library. This approach might bypass the validation check.
-
Contact Tizen Seller Office Support:
- Submit a question through the Tizen Seller Office Q&A section to get official guidance on handling this specific case.
Additional Tips
- The SAP protocol appears to be intended for sample applications only, not for production use.
- Using undocumented APIs may cause compatibility issues in future Tizen versions.
- Always prefer documented APIs for long-term maintainability and store compliance.