Background: I'm currently developing an app which save user settings in "setting.cnfg" file. The file is original saved in internal storage /data/data/package_name. The Kitkat tablet Restricted Profile nolonger give me permission to write/read in that directory (non-rooted device), so I have to move the setting file to external storage. But I still want other normal user to save file in the internal storage.
Question: Is there any methood to detect a user is Restricted Profile or detect a user have permission to access internal storage at runtime?
edit: I'm using native c++ and NDK to access file. But it may be not the problem.