언어 설정

Menu
Sites
Language
Start on boot native service app on Gear S2

In the tizen-manifest.xml file, the documentation describes on-boot and auto-restart attributes for the service-application element.  However, it also indicates that these elements are not available on a wearable device such as the Gear S2 and not available at all in Tizen 2.4.  Is there another way to make sure my service application is started at boot time and is automatically restarted should it quit?

Here is the documentation I am referring to:

https://developer.tizen.org/development/tools/native-tools/manifest-text-editor#service

Responses

7 댓글
Shaswati Saha

Hi,

You can make it sure by following the steps below:

1. Create a service app in Tizen 2.4 and write the code below in the service_app_create() function.

dlog_print(DLOG_INFO, TAG, MESSAGE);

2. Keep the On boot True in the manifest file.

3. Install the app in Tizen 2.4 device.

4. Look at the Log, it'll print a log with that message there.

5. Clear the log and reboot the device, It'll not print any log as it isn't supposed to do that since Tizen 2.4.

After that try the same procedure for Tizen 2.3.1. Now you'll get log after a reboot.

Michael Harper

So you're saying that this functionality is going away in Tizen 2.4?  Is there any way at all going forward to have my service started at boot time?

Steven Merel

I think Samsung now only allows services to start on boot for official "partners"

Steven Merel

That's my understanding, unfortunately... though I'd also be interested in learning if anyone else has found out a way around this :-)

Shaswati Saha

I also agree with Steven Merel's finding. You'll be able to use the on boot functionality in Tizen 2.4 with partner certificate.

Michael Harper

How would one go about obtaining a "partner certificate?"

Shaswati Saha

Select the option Partner for privilege field while creating Distributor Certificate(step 4). But as far I know, you can use the partner certificate patch only in the Emulator and reference binary target. You cannot use the partner certificate patch on commercial devices. Hence, applications signed with this certificate cannot be installed on commercial devices.

Have a look in the link below:

http://developer.samsung.com/forum/thread/a/201/259040