How to save files that persist after app reinstall and are visible in Tizen Device Manager

Original Created May 14, 2018 | Regeneration Apr 22, 2026

I need to save files in the Tizen file system that meet two requirements:

  1. The files should persist after app reinstallation
  2. The files should be visible and accessible through Tizen Device Manager

I've tried using app_get_data_path(), but it returns /opt/usr/home/owner/apps_rw/org.example.app/data/ which gets deleted on reinstall and isn't visible in Device Manager. I also tried /opt/usr/media/Others/ but this location isn't visible in Device Manager either.

What is the proper directory to use for files that persist through app reinstalls and are accessible via Device Manager?

Problem Understanding

The user needs to store files that:

  • Persist after app reinstallation
  • Are visible in Tizen Device Manager
  • Can be accessed by other applications

Solution Methods

  1. Using app_get_shared_data_path()

    • Returns path: /opt/usr/home/owner/apps_rw/[app_id]/shared/data/
    • Files can be read by other apps
    • Not visible in Device Manager
    • Not persistent after uninstall
  2. Using Media Storage Directories

    • Recommended path: /opt/usr/home/owner/media/Documents/
    • Files persist after app reinstallation
    • Visible in Device Manager
    • Accessible by other apps
  3. Alternative Media Paths

    • For Tizen 3.0+: /home/owner/media/
    • For older versions: /opt/usr/home/owner/media/

Code Examples

// To get shared data path (not persistent)
char* shared_path = NULL;
app_get_shared_data_path(&shared_path);

// To use persistent media directory
const char* persistent_path = "/opt/usr/home/owner/media/Documents/";

Additional Tips

  • Device Manager requires directories to have Write permission for Other users
  • For file operations, use proper error handling
  • Consider security implications when storing files in shared locations
  • Test paths on different Tizen versions as directory structures may vary

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.