Skip to content

Commit

Permalink
Temporarily remove Clock fonts from beign patched.
Browse files Browse the repository at this point in the history
Also some changes in install.sh for descripton of the
overlay/framework changes.
  • Loading branch information
lazerl0rd committed Mar 21, 2019
1 parent 8e77c34 commit f5298f8
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 18 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ As a Mi A1 user, I was stuck with Stock Oreo 8.0.0 without Oreo custom ROMs when
- Currently the choices are FULL, SLIM, OVER, and BOOT.
- FULL = The full module not including overlay/accent and boot animation
- SLIM = No additional apps, wellbeing scripts, fonts, sounds, and all overlays except pix3lify.
- OVER = Install pixel overlays
- OVER = Install pixel framework changes ( a lot of the main features is in this, inc. Night Light)
- ACC = Install pixel accent
- BOOT = Install pixel boot animation
- FONT = Install pixel fonts
- FONT = Replace stock font with Product Sans
- To use the basename zip feature all you need to do is add the options to the zipname and only flash the zip in recovery. Magisk renames all zips to install.zip so flashing in magisk manager will NOT work. Heres an example of using basename to install full and overlays ( Pix3lify-2.6-full-over.zip )
- The options can either be full, Full, or FULL ( applies to all options )

Expand All @@ -46,7 +46,7 @@ As a Mi A1 user, I was stuck with Stock Oreo 8.0.0 without Oreo custom ROMs when
- Adds Pixel alarms/media/ringtones/UI sounds
- Adds Pixel Stand app (wireless charging stand)
- Adds Pixel Sounds app ([mileage may vary](https://github.com/Magisk-Modules-Repo/Pix3lify/wiki/Sounds))
- Adds Google Markup app (mileage may vary)
- Adds Google Markup app (Android 5+)
- Adds Pixel exclusive wallpapers
- Enables Google Dialer install via Playstore
- Enables Google Dialer's Call Screening ([mileage may vary](https://github.com/Magisk-Modules-Repo/Pix3lify/wiki/Call-Screening))
Expand All @@ -57,6 +57,10 @@ As a Mi A1 user, I was stuck with Stock Oreo 8.0.0 without Oreo custom ROMs when

## ⭐ Changelog

### v2.9.3
- Fix clock fonts on LockScreen
- Better installation descriptons

### v2.9.2

- Add dynamic Product Sans font installation
Expand Down
28 changes: 15 additions & 13 deletions common/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,13 @@ if [ "$SLIM" == false -a "$FULL" == false -a "$OVER" == false -a "$BOOT" == fals
fi
ui_print " "
log_print " - Font Options -"
log_print " Do you want to install custom fonts?"
log_print " Do you want to replace fonts with Product Sans?"
log_print " Vol Up = Yes, Vol Down = No"
if $VKSEL; then
FONT=true >> $INSTLOG 2>&1
ui_print " "
log_print " - Overlay Options -"
log_print " Do you want the Res overlays enabled?"
log_print " - Framework Options -"
log_print " Do you want the Pixel framework enabled?"
log_print " Vol Up = Yes, Vol Down = No"
if $VKSEL; then
OVER=true >> $INSTLOG 2>&1
Expand Down Expand Up @@ -195,10 +195,10 @@ if $FULL; then
prop_process $INSTALLER/common/full.prop
if $OVER; then
ui_print " "
log_print " Enabling overlay features..."
log_print " Enabling Pixel framework..."
else
ui_print " "
log_print " Disabling overlay features..."
log_print " Disabling Pixel framework..."
rm -f $INSTALLER/system/vendor/overlay/Pix3lify.apk >> $INSTLOG 2>&1
rm -rf /data/resource-cache >> $INSTLOG 2>&1
rm -rf /data/dalvik-cache >> $INSTLOG 2>&1
Expand Down Expand Up @@ -228,20 +228,22 @@ fi

if $FONT; then
ui_print " "
log_print " Enabling fonts..."
log_print " Enabling fonts replacement..."
cp -rf /system/etc/fonts.xml $INSTALLER/system/etc/fonts.xml
for i in $(find $INSTALLER/system/fonts/GoogleSans-* | sed 's|.*-||'); do
sed -i "s|Roboto-$i|GoogleSans-$i|" $INSTALLER/system/etc/fonts.xml
done
for i in $(find /system/fonts/Clock* | sed 's|.*-||'); do
sed -i "s|Clock$i|GoogleSans-Regular|" $INSTALLER/system/etc/fonts.xml
ui_print " "
log_print " Replacing LockScreen Font.."
done
# Disabled temporarily until I remember the fix for this.
#
# for i in $(find /system/fonts/Clock* | sed 's|.*-||'); do
# sed -i "s|Clock$i|GoogleSans-Regular|" $INSTALLER/system/etc/fonts.xml
# ui_print " "
# log_print " Replacing LockScreen Font.."
# done
else
ui_print " "
log_print " Disabling fonts..."
rm -rf $INSTALLER/system/fonts >> $INSTLOG 2>&1
log_print " Disabling fonts replacement..."
rm -rf $INSTALLER/system/etc/fonts.xml >> $INSTLOG 2>&1
fi

if [ $API -ge 27 ]; then
Expand Down
4 changes: 2 additions & 2 deletions module.prop
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
id=Pix3lify
name=Pix3lify
version=v2.9.2
versionCode=292
version=v2.9.3
versionCode=293
author=Joey Huab, Aidan Holland, Pika, JohnFawkes, Laster K. (lazerl0rd)
description=Ports Pixel-range exclusive features; Pixel Blue theme accent, Product Sans font, Alarms, Notification sounds, Ringtones, UI audio; enables Pixel Wallpapers, enables Google Call Screening, enables Night Light (device dependent), Daydream VR support, adds Device Gestures to Settings, enables Camera2 API and EIS support (varies per device)
support=https://t.me/Pix3lify
Expand Down

0 comments on commit f5298f8

Please sign in to comment.