Add .nomedia on Android.
Prevent Android from adding theme files to its media database by putting a .nomedia file in the rockbox folder. Change-Id: I76ee3381a6599b9d1ecfe34d15a4fdd35da80336
This commit is contained in:
parent
63a48fa9b0
commit
6eebdb3bc9
1 changed files with 7 additions and 1 deletions
|
@ -429,7 +429,13 @@ sub buildzip {
|
|||
if ($modelname =~ /samsungypr0/) {
|
||||
glob_copy("$ROOT/utils/ypr0tools/rockbox.sh", "$temp_dir/");
|
||||
}
|
||||
|
||||
# add .nomedia on Android
|
||||
# in the zip.
|
||||
if ($modelname =~ /android/) {
|
||||
open(NOMEDIA, ">$temp_dir/.nomedia") || die "can't open .nomedia";
|
||||
close(NOMEDIA);
|
||||
}
|
||||
|
||||
glob_mkdir("$temp_dir/langs");
|
||||
glob_mkdir("$temp_dir/rocks");
|
||||
glob_mkdir("$temp_dir/rocks/games");
|
||||
|
|
Loading…
Reference in a new issue