summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2012-05-19 11:00:16 +0200
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2012-05-19 11:01:45 +0200
commit6eebdb3bc952b37da9a36b5addfe7e7527bd16c2 (patch)
treeed72bfa5cba27d05887a09b218b7ae54fec97906
parent63a48fa9b09c21de69bcaacc54d17977ee877b3d (diff)
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
-rwxr-xr-xtools/buildzip.pl8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/buildzip.pl b/tools/buildzip.pl
index 82074016f3..e2341f4252 100755
--- a/tools/buildzip.pl
+++ b/tools/buildzip.pl
@@ -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");