-
Task
-
Resolution: Fixed
-
Major
-
None
-
None
-
FF RC1(5.99.1) on R-Car M3
agl-demo-platform
I tried to get connection with afm-main using WebSocket not D-Bus from Window Manager.
Thanks to your information below,
https://git.automotivelinux.org/src/app-framework-main/tree/src/afm-binding.c#n66
I expected I should set permissions into config.xml
<?xml version="1.0" encoding="UTF-8"?> <widget xmlns="http://www.w3.org/ns/widgets" id="windowmanager-service-2017" version="0.1"> <name>windowmanager-service-2017</name> <icon src="icon.svg"/> <content src="config.xml" type="application/vnd.agl.service"/> <description>Window Manager</description> <author>TOYOTA</author> <license>APL 2.0</license> <feature name="urn:AGL:widget:required-permission"> <param name="urn:AGL:permission::public:hidden" value="required" /> <param name="urn:AGL:permission::system:run-by-default" value="required" /> <!-- Add --> <param name="urn:AGL:permission:afm:system:runner" value="required" /> </feature> <feature name="urn:AGL:widget:provided-api"> <param name="windowmanager" value="ws" /> </feature> <feature name="urn:AGL:widget:required-api"> <param name="lib/windowmanager-service.so" value="local" /> <!-- Add --> <param name="afm-main" value="ws" /> </feature> </widget>
But I couldn't launch window manager (install success).
I got following message in journal.
Jul 06 10:31:07 m3ulcb systemd[1]: afm-service-windowmanager-service-2017--0.1--main@0.service: Bound to unit afm-api-ws-afm-main@0.socket, but unit isn't active. Jul 06 10:31:07 m3ulcb systemd[1]: Dependency failed for Window Manager. Jul 06 10:31:07 m3ulcb systemd[1]: afm-service-windowmanager-service-2017--0.1--main@0.service: Job afm-service-windowmanager-service-2017--0.1--main@0.service/start failed with result 'dependency'.
When I changed the value of required-api to <param name="afm-main" value="auto" />, I also got same message.
When I didn't wrote <param name="afm-main" value="ws" />, launch successes and call API as below
json_object *response; afb_service_call_sync("afm-main", "runners", NULL, &response);
But I got following log
Runners:{ "jtype": "afb-reply", "request": { "status": "unknown-api", "info": "api afm-main not found (for verb runners)" } }
May I have some missing things?