Service App Takes 5 Hours to Auto Restart After Overheating

Original Created Jun 19, 2017 | Regeneration Apr 22, 2026

After a recent software update, my Service App that previously restarted immediately after overheating now takes 5 hours to restart.

Before the update:

  • When overheating occurred and the cooling system terminated the app
  • The service would restart immediately due to auto-restart="true" in tizen-manifest.xml

After the update:

  • Same overheating scenario occurs
  • Service takes 5 hours to restart
  • Environment: Gear S3 LTE (SM-R765K) with poor network connectivity (weak signal or shielded areas)
  • Tizen version: 2.3.2.4
  • SW version: R765KOU2BQE2

The update notes mentioned battery optimization for disconnected network situations. Could this be causing the delayed restart? If so, what's the solution to make the service restart immediately again?

Problem Understanding

The issue appears to be related to battery optimization changes in the recent update, particularly affecting service restart behavior in poor network conditions.

Solution Methods

  1. Add background-category to manifest:

    • This helps maintain network connectivity for background services
    • Works even on Tizen 2.3 despite being officially introduced in 2.4
  2. Update manifest with the following addition:

<service-application ...>
    ...
    <background-category value="background-network"/>
</service-application>

Code Examples

Here's the complete manifest example with the solution:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<manifest xmlns="http://tizen.org/ns/packages" api-version="2.3.2" package="your.package" version="1.0.0">
    <profile name="wearable"/>
    <service-application 
        appid="your.app.id" 
        auto-restart="true" 
        exec="your.service" 
        multiple="false" 
        nodisplay="true" 
        on-boot="true" 
        taskmanage="false" 
        type="capp">
        <label>Your Service</label>
        <icon>service.png</icon>
        <background-category value="background-network"/>
    </service-application>
    <privileges>
        <!-- Your existing privileges -->
    </privileges>
</manifest>

Additional Tips

  • The background-category tag works in Tizen 2.3 despite being officially documented for 2.4+
  • Monitor battery usage after implementing this solution
  • Consider testing in various network conditions to ensure consistent behavior

Customize your cookie preferences

You can enable or disable non-essential cookies. Essential cookies are always on to ensure the site works properly and to keep you signed in.

Necessary

These cookies are necessary for the website to function properly and cannot be switched off. They help with things like logging in and setting your privacy preferences.

Always on

Analytics

These cookies help us improve the site by tracking which pages are most popular and how visitors move around the site.

Enable analytics cookies
Public Forum Public Forum
Employees only. Please sign in with your company account.