[Service] Make application.getCurrentApplication work 82/245382/7
authorYoungsoo Choi <kenshin.choi@samsung.com>
Thu, 8 Oct 2020 04:43:49 +0000 (21:43 -0700)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Mon, 12 Oct 2020 04:22:54 +0000 (21:22 -0700)
commitde7f2584aaeca8fa264bd539a5be2cb938fe83d9
tree7cdf4802aaff844e023ffd734639fd5bb8d02590
parent01d19cab2e3a12bea61796dcadbddb6092ccc5cc
[Service] Make application.getCurrentApplication work

The appInfo.id of application.getCurrentApplication()
should be its own service id, not 'org.tizen.chromium-efl.wrt-service'.

The object returned from application.getCurrentApplication()
is non re-writable. So, new object is needed to modify the id.

Btw, broadcast APIs need to have daemon id because they are working
on app id of current process.

Change-Id: I71a62f9dc0bccd68fa7e2b9269a2543e651ec64a
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
wrt_app/service/device_api_router.ts