File access problems

File access problems

BY 05 Feb 2018 Native Application Development

I’m new to Tizen and working on a media app. I’m experiencing several file access problems when working on a Gear S3 device and emulator:

  1. The path given by app_get_data_path() is not accessible. Not even when using ‘sdb shell’. It exists but ‘ls -l’ shows question marks for the access info and I can not ‘cd’ to it.
  2. I can’t fprint() to a new file in ‘/opt/usr/home/owner/apps_rw/<app_id>’, but the Recorder API can save it recodings without problem.
  3. Using the Device manager I can pull files created by the Recorder API in the app. But in code I can’t fread() it nor remove() it.

The manifest file has the recorder and mediatstorage privileges. Am I using the wrong api’s or missing some other privileges?

 

Written by