Samsung Accessory Protocol – Transferred files from phone to gear 2 device were set incorrectly permission

Samsung Accessory Protocol – Transferred files from phone to gear 2 device were set incorrectly permission

BY 02 Oct 2014 Web Application Development

I transfer files form Samsung smart phone (SM-G7102 with Android 4.3) to gear2 by Accessory Protocol (AccessorySDK_v2.0.19 and Tizen wearable SDK 1.0.0.0.b3). These files were transferred to /opt/usr/media/Sounds successfully.

However, these permissions of transferred files seem to be set incorrectly so that gear2 can’t read them. I use the ./sdb shell to check permissions. The permissions of these files which are transferred by Accessory Protocol are -rw-------, but the file transferred by USB is set to -rw-r--r--. It seems that only root can access these files which are transferred by Accessory Protocol. How can I set these permission of files transferred by Accessory Protocol to be -rw-r--r-- so that gear2 can read them?

Written by