-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreplaceVisualId.sh
More file actions
executable file
·41 lines (34 loc) · 1.55 KB
/
replaceVisualId.sh
File metadata and controls
executable file
·41 lines (34 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash -e
if [ -z ${cmHome+x} ]; then
while true; do
read -p "Enter the path to the build dir: " -e cmHome;
if ( [[ -d $cmHome/build ]]; [[ -d $cmHome/android ]]; [[ -d $cmHome/.repo ]] ) then
break;
fi
echo "Not a build dir. Try again."
done
fi
securegen="$(dirname "$(pwd)")"
cmWallpaper=$cmHome/vendor/cm/overlay/common/frameworks/base/core/res/res
securegenWallpaper=visualId/wallpapers
echo "Replacing wallpapers..."
yes | cp -rf $securegenWallpaper/default_wallpaper.png $cmWallpaper/drawable-sw720dp-nodpi/
yes | cp -rf $securegenWallpaper/default_wallpaper.png $cmWallpaper/drawable-hdpi/
yes | cp -rf $securegenWallpaper/default_wallpaper.png $cmWallpaper/drawable-xhdpi/
yes | cp -rf $securegenWallpaper/default_wallpaper.png $cmWallpaper/drawable-xxxhdpi/
yes | cp -rf $securegenWallpaper/default_wallpaper.png $cmWallpaper/drawable-xxhdpi/
yes | cp -rf $securegenWallpaper/default_wallpaper.png $cmWallpaper/drawable-sw600dp-nodpi/
yes | cp -rf $securegenWallpaper/default_wallpaper.png $cmWallpaper/drawable-nodpi/
echo "Done."
cmAnimation=$cmHome/vendor/cm/bootanimation
securegenAnimation=visualId/bootanimation
echo "Replacing boot anination..."
yes | cp -rf $securegenAnimation/bootanimation.tar $cmAnimation
yes | cp -rf $securegenAnimation/desc.txt $cmAnimation
yes | cp -rf $securegenAnimation/generate-bootanimation.sh $cmAnimation
echo "Done."
cmTrebuchet=$cmHome/packages/apps/Trebuchet
securegenTrebuchet=visualId/trebuchet
echo "Adjusting Trebuchet..."
yes | cp -rf $securegenTrebuchet/res/xml/*.xml $cmTrebuchet/res/xml
echo "Done."