@@ -15,6 +15,7 @@ export_location NgaResources '/system/product/app/NgaResources.tar.gz'
1515export_location PixelWallpapers2021 ' /system/product/app/PixelWallpapers2021.tar.gz'
1616export_location Audio ' /system/product/media/audio.tar.gz'
1717export_location Fonts ' /system/product/fonts.tar.gz'
18+ export_location PixelProps ' /system/system.prop.tar.gz'
1819
1920# Boot Animation
2021download_size " $BootAnimation_download " file_size
@@ -32,27 +33,29 @@ if [ -f "$BootAnimation_location" ] && selector 'Do you want to install the Pixe
3233 rm " $BootAnimation_location "
3334
3435 # Black or White
35- if selector " Animation Theme" " Black" " White" ; then
36- ui_print " [+] Installing [Black] Pixel Boot Animation"
36+ if selector " Animation Theme" " Black/Monet " " White" ; then
37+ ui_print " [+] Installing [Black/Monet ] Pixel Boot Animation"
3738 ui_print ' '
39+
3840 rm -rf " $MODPATH /system/product/media/bootanimation.zip"
3941 mv " $MODPATH /system/product/media/bootanimation-dark.zip" " $MODPATH /system/product/media/bootanimation.zip"
4042 else
41- ui_print " [+] Installing [White] Pixel Boot Animation"
43+ ui_print " [+] Installing [White] Pixel Boot Animation"
4244 ui_print ' '
4345 rm -rf " $MODPATH /system/product/media/bootanimation-dark.zip"
4446 fi
4547else
46- ui_print " [-] Removing Pixel Boot Animation"
48+ ui_print " [-] Removing Pixel Boot Animation"
4749 ui_print ' '
4850 rm -rf $MODPATH /system/product/media/bootanimation* .zip
4951fi
5052
5153# Ambient Display
5254download_size " $AmbientDisplay_download " file_size
5355if [ -f " $AmbientDisplay_location " ] && selector ' Do you want to install the Pixel Ambient Display ?' || selector " Do you want to download the Pixel Ambient Display ? ($file_size )" ; then
54- ui_print ' After installation please get the app "Pixel Ambient Services" from the Play Store'
55- ui_print ' > "https://play.google.com/store/apps/details?id=com.google.intelligence.sense"'
56+ ui_print ' [?] After installation please get the app "Pixel Ambient Services" from the Play Store'
57+ ui_print ' [?>] "https://play.google.com/store/apps/details?id=com.google.intelligence.sense"'
58+
5659 [ -f " $AmbientDisplay_location " ] && ui_print ' Installing...' || ui_print ' Downloading...'
5760 ui_print ' '
5861
@@ -65,7 +68,7 @@ if [ -f "$AmbientDisplay_location" ] && selector 'Do you want to install the Pix
6568 # Remove archive
6669 rm " $AmbientDisplay_location "
6770else
68- ui_print " [-] Removing Pixel Ambient Display"
71+ ui_print " [-] Removing Pixel Ambient Display"
6972 ui_print ' '
7073 rm -rf $MODPATH /system/product/etc/ambient*
7174fi
@@ -85,7 +88,7 @@ if [ -f "$MusicDetector_location" ] && selector 'Do you want to install the Pixe
8588 # Remove archive
8689 rm " $MusicDetector_location "
8790else
88- ui_print " [-] Removing Pixel Adaptive Audio Firmware"
91+ ui_print " [-] Removing Pixel Adaptive Audio Firmware"
8992 ui_print ' '
9093 rm -rf $MODPATH /system/product/etc/firmware*
9194 rm -rf $MODPATH /service.sh
@@ -106,7 +109,7 @@ if [ -f "$NgaResources_location" ] && selector 'Do you want to install NgaResour
106109 # Remove archive
107110 rm " $NgaResources_location "
108111else
109- ui_print " [-] Removing NgaResources"
112+ ui_print " [-] Removing NgaResources"
110113 ui_print ' '
111114 rm -rf $MODPATH /system/product/app/NgaResources*
112115fi
@@ -126,9 +129,9 @@ if [ -f "$PixelWallpapers2021_location" ] && selector 'Do you want to install Pi
126129 # Remove archive
127130 rm " $PixelWallpapers2021_location "
128131else
129- ui_print " [-] Removing PixelWallpapers2021"
132+ ui_print " [-] Removing PixelWallpapers2021"
130133 ui_print ' '
131- rm -rf " $MODPATH /system/product/app/PixelWallpapers2021"
134+ rm -rf $MODPATH /system/product/app/PixelWallpapers2021*
132135fi
133136
134137# Audio/Sounds
@@ -146,9 +149,9 @@ if [ -f "$Audio_location" ] && selector 'Do you want to install Default Pixel Au
146149 # Remove archive
147150 rm " $Audio_location "
148151else
149- ui_print " [-] Removing Default Pixel Audio/Sounds"
152+ ui_print " [-] Removing Default Pixel Audio/Sounds"
150153 ui_print ' '
151- rm -rf " $MODPATH /system/product/media/audio.tar.gz "
154+ rm -rf " $Audio_location "
152155fi
153156
154157# Fonts
@@ -166,20 +169,44 @@ if [ -f "$Fonts_location" ] && selector 'Do you want to install Default Pixel Fo
166169 # Remove archive
167170 rm " $Fonts_location "
168171else
169- ui_print " [-] Removing Default Pixel Fonts"
172+ ui_print " [-] Removing Default Pixel Fonts"
170173 ui_print ' '
171- rm -rf " $MODPATH /system/product/fonts.tar.gz "
174+ rm -rf " $Fonts_location "
172175fi
173176
174177# Unlimited GPhoto
175178ui_print " [?+] Keeping 2020 and later pixel experience xml *breaks* Unlimited GPhoto."
176179ui_print " [?-] Removing 2020 and later pixel experience xml *removes* some new features."
177180if selector " Do you want to keep 2020 and later XML's ?" " Keep" " Remove" ; then
178- ui_print " [+] Keeping 2020 and later pixel experience xml"
181+ ui_print " [+] Keeping 2020 and later pixel experience xml"
179182 ui_print ' '
180183else
181- ui_print " [-] Removing 2020 and later pixel experience xml"
184+ ui_print " [-] Removing 2020 and later pixel experience xml"
182185 ui_print ' '
186+
183187 rm -rf $MODPATH /system/product/etc/sysconfig/pixel_experience_202* .xml
184188 rm -rf /system/product/etc/sysconfig/pixel_experience_202* .xml
189+
190+ # Pixel Props
191+ ui_print " [?+] Installing Pixel Props might help getting Unlimited GPhoto at Original Quality."
192+ download_size " $PixelProps_download " file_size
193+ if [ -f " $PixelProps_location " ] && selector ' Do you want to install Pixel Props (sailfish) as well?' || selector " Do you want to download Pixel Props (sailfish) as well? ($file_size )" ; then
194+ [ -f " $PixelProps_location " ] && ui_print ' Installing...' || ui_print ' Downloading...'
195+ ui_print " [?] Make sure you have no other module that changes your system props."
196+ ui_print " [?>] https://t.me/PixelProps/105"
197+ ui_print ' '
198+
199+ # Download file
200+ [ -f " $PixelProps_location " ] || wget -O " $PixelProps_location " " $PixelProps_download "
201+
202+ # Extract archive
203+ tar -xf " $PixelProps_location " -C " $MODPATH /"
204+
205+ # Remove archive
206+ rm " $PixelProps_location "
207+ else
208+ ui_print " [-] Removing Pixel Props"
209+ ui_print ' '
210+ rm -rf " $PixelProps_location "
211+ fi
185212fi
0 commit comments