Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC-Android
Manage
Activity
Members
Labels
Plan
Issues
529
Issue boards
Milestones
Wiki
Code
Merge requests
15
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC-Android
Commits
4a5f8f76
Commit
4a5f8f76
authored
8 years ago
by
Geoffrey Métais
Browse files
Options
Downloads
Patches
Plain Diff
Util getExternalStorageDirectories
parent
956fe544
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vlc-android/src/org/videolan/vlc/util/AndroidDevices.java
+6
-5
6 additions, 5 deletions
vlc-android/src/org/videolan/vlc/util/AndroidDevices.java
with
6 additions
and
5 deletions
vlc-android/src/org/videolan/vlc/util/AndroidDevices.java
+
6
−
5
View file @
4a5f8f76
...
...
@@ -113,10 +113,9 @@ public class AndroidDevices {
return
showInternalStorage
;
}
public
static
ArrayList
<
String
>
getStorageDirectories
()
{
public
static
ArrayList
<
String
>
get
External
StorageDirectories
()
{
BufferedReader
bufReader
=
null
;
ArrayList
<
String
>
list
=
new
ArrayList
<
String
>();
list
.
add
(
EXTERNAL_PUBLIC_DIRECTORY
);
ArrayList
<
String
>
list
=
new
ArrayList
<>();
List
<
String
>
typeWL
=
Arrays
.
asList
(
"vfat"
,
"exfat"
,
"sdcardfs"
,
"fuse"
,
"ntfs"
,
"fat32"
,
"ext3"
,
"ext4"
,
"esdfs"
);
List
<
String
>
typeBL
=
Arrays
.
asList
(
"tmpfs"
);
...
...
@@ -133,7 +132,8 @@ public class AndroidDevices {
String
[]
deviceWL
=
{
"/dev/block/vold"
,
"/dev/fuse"
,
"/mnt/media_rw"
};
"/mnt/media_rw"
};
try
{
bufReader
=
new
BufferedReader
(
new
FileReader
(
"/proc/mounts"
));
...
...
@@ -183,7 +183,8 @@ public class AndroidDevices {
public
static
String
[]
getMediaDirectories
()
{
ArrayList
<
String
>
list
=
new
ArrayList
<
String
>();
list
.
addAll
(
getStorageDirectories
());
list
.
add
(
EXTERNAL_PUBLIC_DIRECTORY
);
list
.
addAll
(
getExternalStorageDirectories
());
list
.
addAll
(
Arrays
.
asList
(
CustomDirectories
.
getCustomDirectories
()));
return
list
.
toArray
(
new
String
[
list
.
size
()]);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment