0 votes
by (120 points)

Hello, I am trying to write files to an external SD card from code with File.Create(path), but I alwas get System.UnauthorizedAccessException. I can read files from the SD card, so the path should be correct. Those permissions are in my manifest:

uses-permission android:name="android.permission.WRITEEXTERNALSTORAGE"
uses-permission android:name="android.permission.READEXTERNALSTORAGE"

1 Answer

0 votes
by (37.7k points)

Dear developer,
Pico G2 4K is based on Android 8.
For the external SD card, Android device can only read and write existing files, but cannot create new files into the external SD card, which is a rule of Android system.

by (120 points)

Hello Pico Support, thank you very much for the reply, do you know if there is a way around this?

by (37.7k points)

Dear developer,
You can send an email to pico_devanswers@bytedance.com
And write your user name information, we will create a system signature for you.
Please use the title of your forum question as the subject of your email.

After obtaining the system signature, you can create new files into the external SD card.

...