src/app-framework-main.git
5 years agoAPI Reference: Updated the api-services-book.yml file 74/21074/1 guppy 7.0.2 7.0.3 7.0.4 guppy/7.0.2 guppy/7.0.3 guppy/7.0.4 guppy_7.0.2 guppy_7.0.3 guppy_7.0.4
Scott Rifenbark [Wed, 17 Apr 2019 18:05:20 +0000 (11:05 -0700)]
API Reference: Updated the api-services-book.yml file

I removed the stuff that was trying to use the deleted "kristi"
file.

Change-Id: I405ff748f5419c8dc162e00de5aef6314a39f423
Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
5 years agoAPI Reference Overview: Removed old "kristi" overview file. 73/21073/1
Scott Rifenbark [Wed, 17 Apr 2019 17:57:22 +0000 (10:57 -0700)]
API Reference Overview: Removed old "kristi" overview file.

Change-Id: I901fb0a55f6ec023666646484b38e957fd60d7ee
Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
5 years agoAdd ability to manage all widget/applications 79/20779/1 7.0.1 guppy/7.0.1 guppy_7.0.1
José Bollo [Tue, 19 Mar 2019 22:21:35 +0000 (23:21 +0100)]
Add ability to manage all widget/applications

For system uses -like automatic testing-, it is
needed to include tha ability to list ALL installed
widgets and ALL running instance of installed
widgets.

This change adds the option -a or --all to the
commands 'list' and 'runners' for the purpose
of listing any installed widgets, even those
requiring to be hidden.

Example: afm-util ps -a

Bug-AGL: SPEC-2272
Bug-AGL: SPEC-1850

Change-Id: I216ec9c63efea1b3af58e1d2d7723d986e04551e
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
5 years agoSet default version 7.0.0 GRUMPY GUPPY 79/19979/1 6.99.5 7.0.0 guppy/6.99.5 guppy/7.0.0 guppy_6.99.5 guppy_7.0.0
José Bollo [Thu, 7 Feb 2019 09:22:36 +0000 (10:22 +0100)]
Set default version 7.0.0 GRUMPY GUPPY

Change-Id: Ie8265569cbf99694285f9dc0f309fd202b413765
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
5 years agoRevert "afm-unit: Restore removal of capabilities" 77/19977/1
José Bollo [Thu, 7 Feb 2019 09:05:29 +0000 (10:05 +0100)]
Revert "afm-unit: Restore removal of capabilities"

This reverts commit f2a2f1357a5268b614528feeba0a91f4ea04a7aa.

Change-Id: I9e88c2e339d37141a7f8624c8660808ce80a9fea
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
5 years agowgtpkg-unit: Fix Segmentation fault 59/19959/1
Jose Bollo [Wed, 6 Feb 2019 15:11:42 +0000 (16:11 +0100)]
wgtpkg-unit: Fix Segmentation fault

This fixes a segmentation fault raised when
uninstalling a widget. This regression was
introduced by the commit f8b0495.

Bug-AGL: SPEC-2144

Change-Id: Ie10eb97a4d2f2663d73f83b210ef2b17717ed2e6
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
5 years agoAdd gitreview file for guppy branch
Jan-Simon Möller [Mon, 4 Feb 2019 19:32:18 +0000 (20:32 +0100)]
Add gitreview file for guppy branch

Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
5 years agoafm-user-setup service: disable start rate limit 17/19517/1 6.99.4 guppy/6.99.4 guppy_6.99.4
Stephane Desneux [Sun, 6 Jan 2019 14:13:27 +0000 (15:13 +0100)]
afm-user-setup service: disable start rate limit

The service afm-user-setup is invoked each time an app is started.
If the user starts apps too quickly (3 apps in less than 10secs by default),
then afm-user-setup will fail and the last app is not started.

This patch removes the rate limitation coming from systemd default config.

Change-Id: Ief6af726c58866e2fc6d3fa170e5f6c6afbee987
Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
5 years agoMerge "Revert "afm-unit: add autoapi in required-api feature"" 6.99.3 guppy/6.99.3 guppy_6.99.3
Jan-Simon Moeller [Thu, 20 Dec 2018 21:17:45 +0000 (21:17 +0000)]
Merge "Revert "afm-unit: add autoapi in required-api feature""

5 years agoRevert "afm-unit: add autoapi in required-api feature" 97/19297/1
José Bollo [Thu, 20 Dec 2018 20:41:58 +0000 (20:41 +0000)]
Revert "afm-unit: add autoapi in required-api feature"

This reverts commit 2b6e13bd5812dc1d7efe338a163f6dd253bbe15b.

Change-Id: I5e2493669da8d45150ed46257b06a5dae005e0bd

5 years agoMerge "Fixed book.yml file"
Jan-Simon Moeller [Thu, 20 Dec 2018 20:08:49 +0000 (20:08 +0000)]
Merge "Fixed book.yml file"

5 years agoMerge "afm-unit: add autoapi in required-api feature"
Jan-Simon Moeller [Thu, 20 Dec 2018 20:07:09 +0000 (20:07 +0000)]
Merge "afm-unit: add autoapi in required-api feature"

5 years agoFixed book.yml file 63/19163/1
Sebastien Douheret [Wed, 19 Dec 2018 22:13:34 +0000 (23:13 +0100)]
Fixed book.yml file

- remove useless %lang% prefix
- remove unwanted (copy/paste error) "API Reference" chapter

Change-Id: I2c46f93093eed6950cfbb7319e7cfd47fcd8b8b7
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
5 years agoafm-unit: Restore removal of capabilities 71/18871/2
José Bollo [Mon, 10 Dec 2018 07:07:39 +0000 (08:07 +0100)]
afm-unit: Restore removal of capabilities

This removes capabilities to any application installed
and launched.

Also applications are added by default to the display
group, meaning that it can be displayed.

Bug-AGL: SPEC-2006

Change-Id: Ia0b2d0df3ec1c74f37ca176fc9f0e8db96de3566
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
5 years agoafm-unit: Fix http port multi allocation 93/18993/1
José Bollo [Tue, 18 Dec 2018 09:58:25 +0000 (10:58 +0100)]
afm-unit: Fix http port multi allocation

When serveral targets were set in the widget file, the
framework allocated the same HTTP port to each. This
lead to impossibility to run all targets or to a
systemd conflict.

This should fix the issue by allocating an HTTP port for
each target installed by the widget. To achieves that goal,
the afm-unit.conf tag for the port is moved from
'#metadata.http-port' to '#metatarget.http-port'.

Bug-AGL: SPEC-2068

Change-Id: I5376d6f052e0ffc5c77cc80041528637777aed1e
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
5 years agowrap-json: Upgrade to latest version 91/18991/1
José Bollo [Fri, 14 Dec 2018 17:37:10 +0000 (18:37 +0100)]
wrap-json: Upgrade to latest version

Change-Id: Iaaf302aa13650390bc8536f19187708dd67fa174
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
5 years agoafm-unit: add autoapi in required-api feature 01/18901/1
Clément Bénier [Fri, 14 Dec 2018 02:55:29 +0000 (03:55 +0100)]
afm-unit: add autoapi in required-api feature

- required-api feature: add autoapi value
- start the daemon with --auto-api option to the websocket directory

Change-Id: Ia36d0edb4bfa22d07feafed580373cda21dd5b35
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
5 years agobook doc: add book yaml file 31/18731/2
Clément Bénier [Wed, 12 Dec 2018 08:38:06 +0000 (09:38 +0100)]
book doc: add book yaml file

SPEC-1988

Change-Id: Ie68d715f04338bf8917792f0f1ae6e36d1602553
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
5 years agowgtpkg-install: Improve port allocation 19/18419/1 6.99.2 guppy/6.99.2 guppy_6.99.2
José Bollo [Thu, 29 Nov 2018 12:37:11 +0000 (13:37 +0100)]
wgtpkg-install: Improve port allocation

The algorithm that allocates ports is improved
by:

 - allocating ports in the range 31000...32759
 - avoiding systematic rescan

Change-Id: I72771cf3f361f4977edc7b59c75921e71f5b470b
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
5 years agoMerge "API Landing Page: Test landing page for all APIs"
Stéphane Desneux [Wed, 28 Nov 2018 17:15:30 +0000 (17:15 +0000)]
Merge "API Landing Page:  Test landing page for all APIs"

5 years agoAPI Landing Page: Test landing page for all APIs 73/18373/1
Scott Rifenbark [Wed, 21 Nov 2018 17:10:32 +0000 (09:10 -0800)]
API Landing Page:  Test landing page for all APIs

Change-Id: I5c8b843fc2c31d45cafbf25eef156a94e9fd0f1c
Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
5 years agoonappid: retrieves the 'appid' with id field 49/18149/1 6.99.1 guppy/6.99.1 guppy_6.99.1
Clément Bénier [Wed, 21 Nov 2018 17:31:51 +0000 (18:31 +0100)]
onappid: retrieves the 'appid' with id field

the value of id field shoud be a string not an integer
so {si} is replaced by {ss}

Change-Id: Ief8a1e56295085cfe818301fd0073399a3ae6315
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
5 years agoafm-unit: Export new variables 09/17809/1
José Bollo [Thu, 8 Nov 2018 13:47:10 +0000 (14:47 +0100)]
afm-unit: Export new variables

Export the new variables:

 - AFM_ID: the identifier of the application
 - AFM_WORKDIR: the workdir of the application
 - AFM_WSAPI_DIR: the directory where APIs can
   be accessed

Change-Id: I79b46754f84161a36d9a13dd79bc94e777c854fe
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
5 years agoTreat correctly running/not running status 77/17677/1
José Bollo [Mon, 5 Nov 2018 17:14:15 +0000 (18:14 +0100)]
Treat correctly running/not running status

Systemd returns 0 for services that don't run.
It wasn't checked well causing weird effect:
trying to terminate an application not running
killed afm-system-daemon because kill(0) kills
all processes of the group of the caller.

Bug-AGL: SPEC-1836

Change-Id: I1bd64faf871ecd42aaaa5449312e8b8cb26ee9dd
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
5 years agoafm-system-daemon: Improve error message report 07/17607/1
José Bollo [Wed, 31 Oct 2018 13:06:07 +0000 (14:06 +0100)]
afm-system-daemon: Improve error message report

Bug-AGL: SPEC-1872

Change-Id: I6e48baa05312b1490edd38ccf9231afe4aa6eb51
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
5 years agoafm-util: Fix report of error 37/17537/1
José Bollo [Tue, 30 Oct 2018 20:39:40 +0000 (21:39 +0100)]
afm-util: Fix report of error

The script afm-util wasn't reporting correctly
errors. The use of the output status of
afb-client-demo was possible but this solution
is simplest to output the error message.

Bug-AGL: SPEC-1863

Change-Id: I5ac919e615ed5c0f21589292e94a9c3d6209a83f
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
5 years agoInstall afm-user-daemon with correct rights 81/17481/1
Jose Bollo [Mon, 29 Oct 2018 14:04:45 +0000 (15:04 +0100)]
Install afm-user-daemon with correct rights

Install afm-user-daemon with rwx-r-xr-x instead
of --x--x--x as before.

Bug-AGL: SPEC-1846

Change-Id: Ie48d379f5f4cfe8ddf3192ebee85580b05e35b36
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
5 years agoafm-urun: Force scan of systemd units 75/17475/1
José Bollo [Sun, 28 Oct 2018 17:53:37 +0000 (18:53 +0100)]
afm-urun: Force scan of systemd units

It was previously assumed that only launched units
had to be scanned. But it was buggy because the
uninstall/install of application rebuilds the database
without taking care of the running applications.

Nevertheless changing the behaviour of the rebuild
of application's database is not the best solution
for two reasons. The fist is that it will complicates
the code. The second, much better, is that it would
allow to track also applications launched automaticaly
-and/or manually in devel-.

Bug-AGL: SPEC-1836

Change-Id: I5fb2bb712ce43be9c851251be6b794a007b1ea6f
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
5 years agoMerge "afm-unit.conf: Enforce starting after network"
José Bollo [Tue, 23 Oct 2018 09:23:15 +0000 (09:23 +0000)]
Merge "afm-unit.conf: Enforce starting after network"

5 years agoMerge "afm-unit.conf: Restrict service for APIs"
José Bollo [Tue, 23 Oct 2018 09:23:15 +0000 (09:23 +0000)]
Merge "afm-unit.conf: Restrict service for APIs"

5 years agoafm-unit.conf: Enforce starting after network 47/17347/1
Jose Bollo [Thu, 27 Sep 2018 10:42:51 +0000 (12:42 +0200)]
afm-unit.conf: Enforce starting after network

This solves issues encountered when starting
remote services. It delays all services until
completion of network initialisation. Delaying
every services is not selective. Further
optimisation may improve that issue.

Bug-AGL: SPEC-1650

Change-Id: I5742a4cd514c86c724a8e7a86c7e0a5dde6a8c67
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
5 years agoAdd the ability to access binding through tcp 43/17343/1
José Bollo [Fri, 3 Aug 2018 13:10:53 +0000 (15:10 +0200)]
Add the ability to access binding through tcp

This commit introduce "tcp", a new type of
provided/required api. It appears in the config.xml
as below:

  <urn:AGL:widget:provided-api>
    <param "name"="HOST:PORT/API" "value"="tcp">

  <urn:AGL:widget:required-api>
    <param "name"="HOST:PORT/API" "value"="tcp">

This implementation is a draft. The service
exposed can not start automatically. Use it
with the permission urn:AGL:permission::system:run-by-default.

Change-Id: Ic593f0d891692ca0c777c49057ec54c37fc55cc0
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
5 years agoafm-unit.conf: Restrict service for APIs 45/17345/1
Jose Bollo [Thu, 13 Sep 2018 12:02:47 +0000 (14:02 +0200)]
afm-unit.conf: Restrict service for APIs

Forbids exportation of service apis for
apis that are not exported as 'ws' or 'auto'.

Bug-AGL: SPEC-1650

Change-Id: I0681bdb0632d9f331036abc1ff1e1b2bb37933cd
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
5 years agoMerge "docs: Improve documentating 'required-binding'"
Stéphane Desneux [Thu, 11 Oct 2018 08:29:27 +0000 (08:29 +0000)]
Merge "docs: Improve documentating 'required-binding'"

5 years agodocs: Improve documentating 'required-binding' 33/17033/2
Jose Bollo [Tue, 9 Oct 2018 09:37:12 +0000 (11:37 +0200)]
docs: Improve documentating 'required-binding'

The documentation was not clear because the
headers wasn't set correctly.

Bug-AGL: SPEC-1800

Change-Id: Ibb5ecf3becdaad1b560e6718d41b81fdf55fe9df
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
5 years agoafm-unit.conf: force symbolic link on update 59/16959/4
Romain Forlot [Fri, 5 Oct 2018 14:29:51 +0000 (16:29 +0200)]
afm-unit.conf: force symbolic link on update

Forcing symbolic link update ensures that if the value changes
the link will be overwriten. Otherwise the link always
keeps the old path until a system reboot or a manual removal
of the link file.

Change-Id: Ib9d8f267a8665edd75ce04f77eb70c4b0a4b8e9f
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
5 years agodoc: Changed doc to new format 15/16715/1 6.90.0 guppy/6.90.0 guppy_6.90.0
Sebastien Douheret [Thu, 20 Sep 2018 16:43:07 +0000 (18:43 +0200)]
doc: Changed doc to new format

- fixed image width setting
- split book.json to match new format
- changed description in README.md
- remove useless files

Change-Id: I9b0b863715585659f32a9f6c3005c1bbf15009f4
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
5 years agowgtpkg-install: Force uninstall 69/16669/1
Jose Bollo [Mon, 17 Sep 2018 09:06:33 +0000 (11:06 +0200)]
wgtpkg-install: Force uninstall

This commit forces uninstall of the previous installed
version instead of reinstall to get around a bug in
cynara.

Bug-AGL: SPEC-1230

Change-Id: Id29fc59794aed7386e0a32df43f9fbacc25c0863
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
5 years agoCMakeLists: Use AGLVERSION if set 03/16603/1
José Bollo [Wed, 12 Sep 2018 12:32:06 +0000 (14:32 +0200)]
CMakeLists: Use AGLVERSION if set

And default the version to the next version of AGL
pre-guppy: 6.90.0

Change-Id: Ia86295efd42f42dd302aa61f072b325afa60e56c
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
5 years agoVERSION 5.99.FFRC6 77/16477/2 5.99.6 flounder/5.99.6 flounder_5.99.6
Jose Bollo [Thu, 6 Sep 2018 08:55:14 +0000 (10:55 +0200)]
VERSION 5.99.FFRC6

Change-Id: I8239f3e1a81e99b9340865a7c2a468452bab6d94
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
5 years agoSet version to 5.99.FFRC4 27/16227/1 5.99.4 5.99.5 flounder/5.99.4 flounder/5.99.5 flounder_5.99.4 flounder_5.99.5
José Bollo [Wed, 22 Aug 2018 11:52:36 +0000 (13:52 +0200)]
Set version to 5.99.FFRC4

Change-Id: I2c473cf1dbfc5bed738c9733694c833f12312a7b
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
5 years agoAdd the external binding feature 85/15985/3 5.99.3 flounder/5.99.3 flounder_5.99.3
José Bollo [Thu, 2 Aug 2018 16:48:57 +0000 (18:48 +0200)]
Add the external binding feature

This commit introduce two new features:

  <urn:AGL:widget:provided-binding>
    <param "name"="public-name" "value"="relative-path-to-the-binding"/>

  <urn:AGL:widget:required-binding>
    <param "name"="public-name" "value"="extern">
    <param "name"="relative-path-to-the-binding" "value"="local">

TODO: manage security by setting correct Smack label to the exported files

Bugs-AGL: SPEC-1439
Bugs-AGL: SPEC-1663

Change-Id: I70aad7d523ece7a2ae0058b79708a02ef81144e2
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
5 years agoCreates systemd service for APIs 57/15457/3
José Bollo [Thu, 19 Jul 2018 09:29:36 +0000 (11:29 +0200)]
Creates systemd service for APIs

Before this change, APIs were only provided as binder's
exported websockets. This forbade ability to use symbolic
links.

Allowing links is interesting for having platform sockets
and for linked api (not using socket).

The API afm-main is a platform API. It must run at system level
and must be available for all user clients. To achieve it, we
use a link.

Bug-AGL: SPEC-1592

Change-Id: I8753f83373755eb7fc2d2cc50251b8f738b61b03
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
5 years agowgtpkg-digsig: Add flag to accept/refuse a WGT without signature 23/15423/3
José Bollo [Tue, 17 Jul 2018 09:14:06 +0000 (11:14 +0200)]
wgtpkg-digsig: Add flag to accept/refuse a WGT without signature

This flag allows with a single function to check the signature
and the case that a not signed widget is to be refused in the same
way that the signature is wrong.

The CMAKE boolean ALLOW_NO_SIGNATURE can be used to control
the default behavior at compile time. By default its value
is OFF meaning that install will refuse widgets without
signature.

Relates to Bug-AGL: SPEC-1590

Change-Id: I403109272759454696a1e5d9913879aaea7676e6
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
5 years agowgtpkg-digsig: Fix digital signature check 21/15421/2
José Bollo [Tue, 17 Jul 2018 08:42:04 +0000 (10:42 +0200)]
wgtpkg-digsig: Fix digital signature check

The compute of the return code was wrong: it always
returned 0 even in case of error.

Installation of a widget with an error in its signature
was possible due to this error.

Bug-AGL: SPEC-1590

Change-Id: Ibefd74aafd6a00dea32e52d471460cbe08a380ab
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
5 years agoSet version to 5.99.FFRC3 19/15419/2
José Bollo [Tue, 17 Jul 2018 08:35:25 +0000 (10:35 +0200)]
Set version to 5.99.FFRC3

Change-Id: I5866cac1009e1c784c7a59a7892aca6aba14f257
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
5 years agowgtpkg-install: Fix SEGV when no icon in config file 95/15095/1 5.99.2 flounder/5.99.2 flounder_5.99.2
José Bollo [Sat, 7 Jul 2018 16:13:39 +0000 (18:13 +0200)]
wgtpkg-install: Fix SEGV when no icon in config file

Bug-AGL: SPEC-1573

Change-Id: I891c4edc3a7ded7848fe11cbc3ce3fe429650bf8
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
5 years agoUpdate version to 5.99.FFRC2 49/15049/1
José Bollo [Thu, 5 Jul 2018 18:42:59 +0000 (20:42 +0200)]
Update version to 5.99.FFRC2

Change-Id: I387ae7b6dd2e32b8072910e01e615b4cf4247ba3
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
5 years agoMerge changes from topic 'binding-v3' 5.99.1 flounder/5.99.1 flounder_5.99.1
José Bollo [Fri, 15 Jun 2018 07:35:28 +0000 (07:35 +0000)]
Merge changes from topic 'binding-v3'

* changes:
  afm-user-daemon: Update to future version of app-framework-binder
  wrap-json: sync with upstream
  afm-binding: use binding api v3
  gitignore: Ignore NetBean project
  afm-user-daemon: Update to binder changes for bindings v3

5 years agoMerge changes from topic 'binding-v3'
José Bollo [Thu, 14 Jun 2018 13:23:02 +0000 (13:23 +0000)]
Merge changes from topic 'binding-v3'

* changes:
  wrap-json: Update for y/Y
  afm-udb: refactor add_fields_of_content
  afm-udb: split read_unit_file
  afm-udb: improve comment
  afm-binding: fix author

5 years agoafm-user-daemon: Update to future version of app-framework-binder 89/14389/2
José Bollo [Fri, 1 Jun 2018 05:35:02 +0000 (07:35 +0200)]
afm-user-daemon: Update to future version of app-framework-binder

It will become necessarily to perform actions on behlf of the
client, not for its own credentials.

Change-Id: Ie2f50dd84df8b0b673772575f5c21ebec8a317f8
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
5 years agowrap-json: Update for y/Y 79/14379/2
José Bollo [Tue, 15 May 2018 07:25:16 +0000 (09:25 +0200)]
wrap-json: Update for y/Y

Change-Id: Idca99ad19d5b6cee92ee77e7f5583cb83f5c9c53
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
5 years agowrap-json: sync with upstream 87/14387/2
José Bollo [Tue, 29 May 2018 17:39:40 +0000 (19:39 +0200)]
wrap-json: sync with upstream

Change-Id: Ie4e7e759c9bc2a745835b722c9d26e560608aedb
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
5 years agoafm-udb: refactor add_fields_of_content 77/14377/2
jobol [Tue, 3 Apr 2018 13:10:28 +0000 (15:10 +0200)]
afm-udb: refactor add_fields_of_content

Change-Id: Id59c92e18c7d3ed3fdd0df6dc2d46f64d58bdeee
Signed-off-by: jobol <jose.bollo@iot.bzh>
5 years agoafm-binding: use binding api v3 85/14385/2
José Bollo [Thu, 24 May 2018 13:56:44 +0000 (15:56 +0200)]
afm-binding: use binding api v3

Change-Id: Iac5140db95e473dc0954c70b5dc401380450e017
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
5 years agoafm-udb: split read_unit_file 75/14375/2
jobol [Tue, 3 Apr 2018 10:09:36 +0000 (12:09 +0200)]
afm-udb: split read_unit_file

Change-Id: I4189bcc04b0a889d7f83576ea4b535e00a745e22
Signed-off-by: jobol <jose.bollo@iot.bzh>
5 years agogitignore: Ignore NetBean project 83/14383/2
jobol [Wed, 23 May 2018 07:47:09 +0000 (09:47 +0200)]
gitignore: Ignore NetBean project

Change-Id: I22de627ab121fa83ea68896f413d649f2f72d455
Signed-off-by: jobol <jose.bollo@iot.bzh>
5 years agoafm-udb: improve comment 73/14373/2
jobol [Tue, 3 Apr 2018 10:08:03 +0000 (12:08 +0200)]
afm-udb: improve comment

Change-Id: Ibf639ffaccbcbffff367cec6e919cd516064ab9a
Signed-off-by: jobol <jose.bollo@iot.bzh>
5 years agoafm-user-daemon: Update to binder changes for bindings v3 81/14381/2
José Bollo [Tue, 22 May 2018 16:47:22 +0000 (18:47 +0200)]
afm-user-daemon: Update to binder changes for bindings v3

The bindings v3 are now allowed to return an object with
errors. To enforce taking that change into account, the
signature of the object changed. It implies some change
in clients.

Change-Id: I810b625c7e3abec8dcce7fba44e3b4d7ac7f5473
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
5 years agoafm-binding: fix author 71/14371/2
jobol [Tue, 3 Apr 2018 08:27:09 +0000 (10:27 +0200)]
afm-binding: fix author

Change-Id: Iefb2b248b5a9b85b89cd5181b3297fe4390ab149
Signed-off-by: jobol <jose.bollo@iot.bzh>
5 years agoMerge changes from topic 'binding-v3'
José Bollo [Thu, 14 Jun 2018 13:14:02 +0000 (13:14 +0000)]
Merge changes from topic 'binding-v3'

* changes:
  afm-binding: Review of the permissions
  afm-binding: Improve comment and strings

5 years agoMerge "afm-system-daemon.service: Fix a typo"
José Bollo [Thu, 14 Jun 2018 13:12:23 +0000 (13:12 +0000)]
Merge "afm-system-daemon.service: Fix a typo"

5 years agoafm-binding: Review of the permissions 69/14369/1
jobol [Mon, 26 Mar 2018 12:25:02 +0000 (14:25 +0200)]
afm-binding: Review of the permissions

Change-Id: I1d3a36c69768901f205a47385d124b6483e60638
Signed-off-by: jobol <jose.bollo@iot.bzh>
5 years agoafm-binding: Improve comment and strings 67/14367/1
jobol [Mon, 26 Mar 2018 12:24:33 +0000 (14:24 +0200)]
afm-binding: Improve comment and strings

Change-Id: Ic70e2abf1301d11b0a610cdf5cfd783d21a5674f
Signed-off-by: jobol <jose.bollo@iot.bzh>
5 years agoafm-system-daemon.service: Fix a typo 65/14365/1
José Bollo [Thu, 24 May 2018 14:42:10 +0000 (16:42 +0200)]
afm-system-daemon.service: Fix a typo

Change-Id: I30c22bf90242035285ee12f3bc0db73d7fe31595
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
5 years agoafm-system-daemon.service: Fix a typo 85/14085/1
José Bollo [Thu, 24 May 2018 14:42:10 +0000 (16:42 +0200)]
afm-system-daemon.service: Fix a typo

Change-Id: If9dcd49edad5a34ea9c7bdfcba7d7bc44bbafbeb
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
6 years agoCMakeLists: Fix library directories
jobol [Tue, 3 Apr 2018 11:58:13 +0000 (13:58 +0200)]
CMakeLists: Fix library directories

Change-Id: Id9c86eb2385224d657ac69e1b7b5acd07bf6d71d
Signed-off-by: jobol <jose.bollo@iot.bzh>
6 years agoafm-udb: Fix corrupted memory
jobol [Tue, 3 Apr 2018 12:46:15 +0000 (14:46 +0200)]
afm-udb: Fix corrupted memory

Change-Id: Ib78b0843f819f232b05ac45124fe888c784f65d4
Signed-off-by: jobol <jose.bollo@iot.bzh>
6 years agoafm-udb: fix refcounting error
jobol [Tue, 3 Apr 2018 10:09:08 +0000 (12:09 +0200)]
afm-udb: fix refcounting error

Change-Id: Ib5a7c398f9f07a88af05b01e08fdab97e123e374
Signed-off-by: jobol <jose.bollo@iot.bzh>
6 years agoRefactor user session management
José Bollo [Wed, 28 Feb 2018 19:07:23 +0000 (20:07 +0100)]
Refactor user session management

Change-Id: Ib6ba886df110d8a23e3760e1818263ec757b9c7c
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
6 years agoprovided.inc: Fix smack label of sockets
José Bollo [Tue, 27 Feb 2018 18:32:15 +0000 (19:32 +0100)]
provided.inc: Fix smack label of sockets

Change-Id: I53d3cac7136e4d169acd8e3e3de5ea8439dd0192
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
6 years agoafm-user-session: Start target from user session
José Bollo [Tue, 27 Feb 2018 18:15:28 +0000 (19:15 +0100)]
afm-user-session: Start target from user session

Start the afm-user-session@%i.target from the
user session after pam_sytemd session started.

Change-Id: I5aeb8f01426b3cee2cbfad6ba30ecf37fe21abca
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
6 years agoUpdate date of copyright notices
José Bollo [Tue, 27 Feb 2018 14:10:08 +0000 (15:10 +0100)]
Update date of copyright notices

Change-Id: Ia4ef2a6e3c07616ccd756933a82f0806844c4faf
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
6 years agoAdd configuration variables for runtime socket dirs
José Bollo [Tue, 27 Feb 2018 14:07:54 +0000 (15:07 +0100)]
Add configuration variables for runtime socket dirs

2 new configuration variables:

 - afm_platform_rundir  (default /run/platform)

     Path to location of platform runtime sockets

 - afm_users_rundir     (default /run/user)

     Path to location of users runtime sockets

Change-Id: I65007fee1ca2ce6f1247a67ba0b121f97c08f209
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
6 years agoProvision argument for handling language
José Bollo [Tue, 27 Feb 2018 11:02:36 +0000 (12:02 +0100)]
Provision argument for handling language

The requests 'runnables' and 'detail' accept a parameter
'lang' to -in future- get localized data about apps.

Change-Id: I5f1804870c6b3c0d1aedf1a75cde1e2c09a5a605
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
6 years agoafm-user-session: Create afm-user-session
José Bollo [Mon, 22 Jan 2018 09:07:42 +0000 (10:07 +0100)]
afm-user-session: Create afm-user-session

This new executable is the simplest user session
manager: it waits the signal SIGTERM to stop and
thus release the session.

Change-Id: I557f27386c19ca3e2b28b21dd6a58918e9ca47be
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
6 years agoBump version to 5.99-FFRC0
José Bollo [Fri, 19 Jan 2018 09:16:14 +0000 (10:16 +0100)]
Bump version to 5.99-FFRC0

Change-Id: I255b669036672b3728f0e60a62eca90716367178

6 years agoafm-binding: Allow use of appid instead of runid
José Bollo [Mon, 18 Dec 2017 11:26:41 +0000 (12:26 +0100)]
afm-binding: Allow use of appid instead of runid

This facility avoid the double call 'ps', 'kill' and
allow a single call to 'kill' with the application id.

Bug-AGL: SPEC-1189

Change-Id: I71861c06847e855b05dc8294ab1ea6785f555416
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
6 years agoafm-binding: Common code getting application id
José Bollo [Mon, 18 Dec 2017 11:23:35 +0000 (12:23 +0100)]
afm-binding: Common code getting application id

Repeated code is made common to the verbs
detail, start, once.

Change-Id: I9bc15bf22aeb7156d0892e71f56f86f3930866f6
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
6 years agodocs: Add an history
José Bollo [Thu, 14 Dec 2017 11:27:37 +0000 (12:27 +0100)]
docs: Add an history

Change-Id: Ib7ea7aa11c63492fe874368e3a0d539ab613a2a0
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
6 years agowgt-json: Add comments
José Bollo [Thu, 14 Dec 2017 10:59:00 +0000 (11:59 +0100)]
wgt-json: Add comments

Change-Id: If75c3089c9506219601d35b49c132a9b670c026e
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
6 years agoUpdate of src/README.md
José Bollo [Thu, 14 Dec 2017 10:58:25 +0000 (11:58 +0100)]
Update of src/README.md

Change-Id: Id806a36fbc58df8dccb89f02fa86575c2aafd63e
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
6 years agogendocs.sh: Fix tabulations
José Bollo [Thu, 14 Dec 2017 09:48:57 +0000 (10:48 +0100)]
gendocs.sh: Fix tabulations

Change-Id: If9b06695c874f861859793b621264121d2152f11
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
6 years agomkdocs: Restore mkdocs feature
José Bollo [Mon, 11 Dec 2017 17:18:58 +0000 (18:18 +0100)]
mkdocs: Restore mkdocs feature

Change-Id: Iac70ac21a0d88e973aa5859a692515d4e683b2c9
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
6 years agounit.conf: Fix Smack permission on api ws
José Bollo [Mon, 11 Dec 2017 12:55:10 +0000 (13:55 +0100)]
unit.conf: Fix Smack permission on api ws

The Smack permission to write on the websocket of the API
must be set to something that allows the communication!

Here the chosen value is *

Change-Id: Ia276219b232e33bd35353d8feb333513b340e75c
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
6 years agodocs: identify revision file
José Bollo [Fri, 8 Dec 2017 12:37:30 +0000 (13:37 +0100)]
docs: identify revision file

Change-Id: Iae13361c16b056f8619a9a75a08ae63d66f85daf
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
6 years agoClean unused afm-main-binding... files
José Bollo [Fri, 8 Dec 2017 12:05:48 +0000 (13:05 +0100)]
Clean unused afm-main-binding... files

Change-Id: Ifc8da473e3454f10bfd1aad2500db579a732b43e
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
6 years agoRemove deprecated file afm.h
José Bollo [Fri, 8 Dec 2017 09:44:43 +0000 (10:44 +0100)]
Remove deprecated file afm.h

Change-Id: Ie524342b69d386c2d6f667dde7cde0d68a0d29c8
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
6 years agounit.cont: Refactor PATH and LD_LIBRARY_PATH
jobol [Thu, 7 Dec 2017 15:49:03 +0000 (16:49 +0100)]
unit.cont: Refactor PATH and LD_LIBRARY_PATH

Change-Id: Ic6da02c0039421fd5656238f5fa812574af1c268
Signed-off-by: jobol <jose.bollo@iot.bzh>
6 years agosimplify afm-user-session process
José Bollo [Fri, 24 Nov 2017 15:34:42 +0000 (16:34 +0100)]
simplify afm-user-session process

Change-Id: If2739fd2c5a19d7cd31e117e1e79c0b51451552b
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
6 years agoImprove afm-user-session setup
José Bollo [Fri, 24 Nov 2017 08:33:43 +0000 (09:33 +0100)]
Improve afm-user-session setup

Change-Id: I4dfb0939afc871e93874cf021548db2e85d3656c
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
6 years agoAvoid implicit Before socket.target
José Bollo [Thu, 23 Nov 2017 21:52:46 +0000 (22:52 +0100)]
Avoid implicit Before socket.target

Change-Id: I493c49a80ebb1fa85f586d0b0704b5682f0c3613
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
6 years agoConfig for afm-user-session
José Bollo [Thu, 23 Nov 2017 21:30:53 +0000 (22:30 +0100)]
Config for afm-user-session

Change-Id: I6567b58fa0a6dd17deba4c7cccbf3b9f441730eb
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
6 years agoafm-user-startup.service: Fix type
José Bollo [Thu, 23 Nov 2017 16:21:00 +0000 (17:21 +0100)]
afm-user-startup.service: Fix type

Change-Id: I8ecddbc5be346441f002ef8c50dd733fec0e6ef2
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
6 years agounit.conf: Fix target name
José Bollo [Thu, 23 Nov 2017 16:19:36 +0000 (17:19 +0100)]
unit.conf: Fix target name

Change-Id: I144bcd47b65b86dd07ca5de71514a0032166b3a6
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
6 years agoAdd a PAM config file
José Bollo [Thu, 23 Nov 2017 15:14:56 +0000 (16:14 +0100)]
Add a PAM config file

Change-Id: I27f726cd3cec7c0e499086c5ac3de1a736ef108c
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
6 years agoRework on systemd start of user sessions
José Bollo [Thu, 23 Nov 2017 14:44:24 +0000 (15:44 +0100)]
Rework on systemd start of user sessions

Change-Id: Iad46596435eebdc5c521b572fd8320b52a61d197
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
6 years agoafm-binding: Fix bug in evaluation of runid
José Bollo [Thu, 23 Nov 2017 13:38:54 +0000 (14:38 +0100)]
afm-binding: Fix bug in evaluation of runid

Change-Id: I7a87a75d2effb7ad959b7a5c495402701f505529
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
6 years agounit.conf: Bound start to agl-user-session
José Bollo [Tue, 21 Nov 2017 13:58:00 +0000 (14:58 +0100)]
unit.conf: Bound start to agl-user-session

Change-Id: Ic9731dbc9ee71872198ad70995dbaced8a7aa683
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
6 years agounit.conf: Remove unset of capabilities
José Bollo [Tue, 21 Nov 2017 10:39:44 +0000 (11:39 +0100)]
unit.conf: Remove unset of capabilities

Remove the unsetting of capabilities because it
currently breaks the image. To be reworked.

Change-Id: I69a1d9c23f463a36edebb7993aa94fae14fb60e8
Signed-off-by: José Bollo <jose.bollo@iot.bzh>