Avoid duplicate URI references, Favor overly permissive

This commit is contained in:
Ender's Games 2018-09-30 04:47:44 -04:00
parent 6db2f3999f
commit 4a3bec95f8
2 changed files with 3 additions and 2 deletions

View File

@ -265,7 +265,8 @@ public class MainActivity extends AppCompatActivity implements
Intent intent = new Intent("com.reicast.EMULATOR",
uri, getApplicationContext(), GL2JNIActivity.class);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N)
intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION
| Intent.FLAG_GRANT_WRITE_URI_PERMISSION);
startActivity(intent);
}

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<paths>
<files-path name="files_root" path="."/>
<external-path name="external_files" path="."/>
<external-path name="external_root" path="."/>
<root-path name="external_files" path="/storage/" />
</paths>