Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Kingsman44 committed Jan 18, 2022
1 parent a612552 commit 21a0d80
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 29 deletions.
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ sed -i -e "s/DEVICE_USES_VOLUME_KEY=1/DEVICE_USES_VOLUME_KEY=0/g" module.prop
7z a Pixelify-v$version-no_VK.zip $(ls | grep -v *.zip)
mkdir -p out
rm -rf out/*
mv Pixelify-V$version.zip out
mv Pixelify-V$version-no_VK.zip out
mv Pixelify-v$version.zip out
mv Pixelify-v$version-no_VK.zip out
cp -f no-VK.prop out/no-VK.prop
53 changes: 28 additions & 25 deletions customize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ rm -rf $pix/app2.txt
touch $pix/app2.txt

DPVERSIONP=1
NGAVERSIONP=1.1
NGAVERSIONP=1.2
LWVERSIONP=1.4
PLVERSIONP=1
NGASIZE="13.6 Mb"
Expand All @@ -75,9 +75,9 @@ if [ $API -eq 31 ]; then
WSIZE="2.0 Mb"
WNEED=1
if [ $NEW_PL -eq 1 ]; then
PLVERSIONP=1.2
PLVERSIONP=2.0
else
PLVERSIONP=1.1
PLVERSIONP=1.2
fi
PLSIZE="12 Mb"
elif [ $API -eq 30 ]; then
Expand Down Expand Up @@ -132,7 +132,7 @@ if [ $internet -eq 1 ]; then
echo "$LWVERSION" >> $pix/pixel.txt
echo "$DPVERSION" >> $pix/dp.txt
echo "$PLVERSION" >> $pix/pl-$API.txt
NGASIZE="$($MODPATH/addon/curl -sI https://gitlab.com/Kingsman-z/pixelify-files/-/raw/master/NgaResources.apk | grep -i Content-Length | cut -d':' -f2 | sed 's/ //g' | tr -d '\r' | online_mb) Mb"
NGASIZE="$($MODPATH/addon/curl -sI https://gitlab.com/Kingsman-z/pixelify-files/-/raw/master/nga.tar.xz | grep -i Content-Length | cut -d':' -f2 | sed 's/ //g' | tr -d '\r' | online_mb) Mb"
LWSIZE="$($MODPATH/addon/curl -sI https://gitlab.com/Kingsman-z/pixelify-files/-/raw/master/pixel.tar.xz | grep -i Content-Length | cut -d':' -f2 | sed 's/ //g' | tr -d '\r' | online_mb) Mb"
DPSSIZE1="$($MODPATH/addon/curl -sI https://gitlab.com/Kingsman-z/pixelify-files/-/raw/master/dp-net-$API.tar.xz | grep -i Content-Length | cut -d':' -f2 | sed 's/ //g' | tr -d '\r' | online_mb)"
DPSIZE="$($MODPATH/addon/curl -sI https://gitlab.com/Kingsman-z/pixelify-files/-/raw/master/dp-$API.tar.xz | grep -i Content-Length | cut -d':' -f2 | sed 's/ //g' | tr -d '\r' | online_mb)"
Expand Down Expand Up @@ -359,6 +359,9 @@ no_vksel() {
# Have user option to skip vol keys
if [ "$(grep 'DEVICE_USES_VOLUME_KEY=' $MODPATH/module.prop | cut -d= -f2)" -eq 0 ]; then
ui_print "- Skipping Vol Keys -"
print ""
print " Using config: $vk_loc"
print ""
VKSEL=no_vksel
else
if keytest; then
Expand Down Expand Up @@ -651,8 +654,7 @@ if [ -d /data/data/$DIALER ]; then
print " "
print "- Enabling Call Recording (Working is device dependent)"
lang=$(getprop persist.sys.locale | cut -d'-' -f1)
dialerflag="G__enable_call_recording G__force_within_call_recording_geofence_value G__use_call_recording_geofence_overrides G__force_within_crosby_geofence_value G__enable_atlas G__speak_easy_enabled G__enable_speakeasy_details G__speak_easy_bypass_locale_check G__speak_easy_enable_listen_in_button G__bypass_revelio_roaming_check G__enable_revelio G__enable_revelio_r_api enable_revelio_transcript enable_xatu enable_xatu_music_detection"
for i in $dialerflag; do
for i in "G__enable_call_recording" "G__force_within_call_recording_geofence_value" "G__use_call_recording_geofence_overrides" "G__force_within_crosby_geofence_value" "G__enable_atlas" "G__speak_easy_enabled" "G__enable_speakeasy_details" "G__speak_easy_bypass_locale_check" "G__speak_easy_enable_listen_in_button" "G__bypass_revelio_roaming_check" "G__enable_revelio" "G__enable_revelio_r_api" "enable_revelio_transcript" "enable_xatu" "enable_xatu_music_detection"; do
$sqlite $gms "DELETE FROM FlagOverrides WHERE packageName='com.google.android.dialer' AND name='$i'"
$sqlite $gms "INSERT INTO FlagOverrides(packageName, user, name, flagType, boolVal, committed) VALUES('com.google.android.dialer', '', '$i', 0, 1, 0)"
$sqlite $gms "INSERT INTO FlagOverrides(packageName, user, name, flagType, boolVal, committed) VALUES('com.google.android.dialer', '', '$i', 0, 1, 0)"
Expand Down Expand Up @@ -860,7 +862,7 @@ if [ -d /data/data/com.google.android.googlequicksearchbox ] && [ $API -ge 29 ];
no_vk "ENABLE_NGA"
if $VKSEL; then
echo " - Installing Next generation assistant" >> $logfile
if [ -f /sdcard/Pixelify/backup/NgaResources.apk ]; then
if [ -f /sdcard/Pixelify/backup/nga.tar.xz ] || [ -f /sdcard/Pixelify/backup/NgaResources.apk ]; then
if [ "$(cat /sdcard/Pixelify/version/nga.txt)" != "$NGAVERSION" ]; then
echo " - New Version Detected for NGA Resources" >> $logfile
echo " - Installed version: $(cat /sdcard/Pixelify/version/nga.txt) , New Version: $NGAVERSION " >> $logfile
Expand All @@ -877,15 +879,15 @@ if [ -d /data/data/com.google.android.googlequicksearchbox ] && [ $API -ge 29 ];
if [ $internet -eq 1 ]; then
echo " - Downloading, Installing and creating backup NGA Resources" >> $logfile
rm -rf /sdcard/Pixelify/backup/NgaResources.apk
rm -rf /sdcard/Pixelify/backup/nga.tar.xz
rm -rf /sdcard/Pixelify/version/nga.txt
mkdir $MODPATH/system/product/app/NgaResources
cd $MODPATH/system/product/app/NgaResources
$MODPATH/addon/curl https://gitlab.com/Kingsman-z/pixelify-files/-/raw/master/NgaResources.apk -O &> /proc/self/fd/$OUTFD
cd $MODPATH/files
$MODPATH/addon/curl https://gitlab.com/Kingsman-z/pixelify-files/-/raw/master/nga.tar.xz -O &> /proc/self/fd/$OUTFD
cd /
print ""
print "- Creating Backup"
print ""
cp -Tf $MODPATH/system/product/app/NgaResources/NgaResources.apk /sdcard/Pixelify/backup/NgaResources.apk
cp -Tf $MODPATH/files/nga.tar.xz /sdcard/Pixelify/backup/nga.tar.xz
echo "$NGAVERSION" >> /sdcard/Pixelify/version/nga.txt
else
print "!! Warning !!"
Expand All @@ -901,8 +903,7 @@ if [ -d /data/data/com.google.android.googlequicksearchbox ] && [ $API -ge 29 ];
fi
print "- Installing NgaResources from backups"
print ""
mkdir $MODPATH/system/product/app/NgaResources
cp -f /sdcard/Pixelify/backup/NgaResources.apk $MODPATH/system/product/app/NgaResources/NgaResources.apk
tar -xf /sdcard/Pixelify/backup/nga.tar.xz -C $MODPATH/system/product
else
print " (Network Connection Needed)"
print " Do you want to install and Download NGA Resources"
Expand All @@ -915,10 +916,10 @@ if [ -d /data/data/com.google.android.googlequicksearchbox ] && [ $API -ge 29 ];
if [ $internet -eq 1 ]; then
echo " - Downloading and Installing NGA Resources" >> $logfile
print " Downloading NGA Resources"
mkdir $MODPATH/system/product/app/NgaResources
cd $MODPATH/system/product/app/NgaResources
$MODPATH/addon/curl https://gitlab.com/Kingsman-z/pixelify-files/-/raw/master/NgaResources.apk -O &> /proc/self/fd/$OUTFD
cd $MODPATH/files
$MODPATH/addon/curl https://gitlab.com/Kingsman-z/pixelify-files/-/raw/master/nga.tar.xz -O &> /proc/self/fd/$OUTFD
cd /
tar -xf $MODPATH/files/nga.tar.xz -C $MODPATH/system/product
ui_print ""
print " Do you want to create backup of NGA Resources"
print " so that you don't need redownload it everytime."
Expand All @@ -927,11 +928,11 @@ if [ -d /data/data/com.google.android.googlequicksearchbox ] && [ $API -ge 29 ];
if $VKSEL; then
echo " - Creating backup for NGA Resources" >> $logfile
print "- Creating Backup"
mkdir /sdcard/Pixelify
mkdir /sdcard/Pixelify/backup
mkdir -p /sdcard/Pixelify/backup
rm -rf /sdcard/Pixelify/backup/NgaResources.apk
cp -f $MODPATH/system/product/app/NgaResources/NgaResources.apk /sdcard/Pixelify/backup/NgaResources.apk
mkdir /sdcard/Pixelify/version
rm -rf /sdcard/Pixelify/backup/nga.tar.xz
cp -f $MODPATH/files/nga.tar.xz /sdcard/Pixelify/backup/nga.tar.xz
mkdir -p /sdcard/Pixelify/version
echo "$NGAVERSION" >> /sdcard/Pixelify/version/nga.txt
ui_print ""
print "- NGA Resources installation complete"
Expand Down Expand Up @@ -1012,6 +1013,11 @@ install_wallpaper() {
print "- Installing Styles and Wallpapers"
print ""
tar -xf $MODPATH/files/wpg-$API.tar.xz -C $MODPATH/system$product/priv-app
if [ $API -ge 31 ]; then
mkdir -p $MODPATH/system/product/app/PixelThemesStub
rm -rf $MODPATH/system/product/app/PixelThemesStub/PixelThemesStub.apk
mv $MODPATH/files/PixelThemesStub.apk $MODPATH/system/product/app/PixelThemesStub/PixelThemesStub.apk
fi
WREM=0
fi
fi
Expand Down Expand Up @@ -1069,11 +1075,6 @@ if [ $API -ge 28 ]; then
tar -xf /sdcard/Pixelify/backup/pixel.tar.xz -C $MODPATH/system$product
pm install $MODPATH/system$product/priv-app/PixelLiveWallpaperPrebuilt/*.apk

if [ $API -ge 31 ]; then
rm -rf $MODPATH/system/product/app/PixelThemesStub/PixelThemesStub.apk
mv $MODPATH/files/PixelThemesStub.apk $MODPATH/system/product/app/PixelThemesStub/PixelThemesStub.apk
fi

if [ $API -le 28 ]; then
mv $MODPATH/system/overlay/Breel*.apk $MODPATH/vendor/overlay
rm -rf $MODPATH/system/overlay
Expand Down Expand Up @@ -1462,6 +1463,8 @@ if [ $API -le 27 ]; then
rm -rf $MODPATH/system/vendor/overlay/PixeliflyPixelS.apk
fi

rm -rf $MODPATH/system/product/data

rm -rf $pix/apps_temp.txt
mv $pix/app2.txt $pix/app.txt

Expand Down
Binary file modified files/system.tar.xz
Binary file not shown.
4 changes: 2 additions & 2 deletions module.prop
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
id=Pixelify
name=Pixelify
version=1.9-test
versionCode=20220110
version=1.9-beta
versionCode=20220117
author=Kingsman44
description=Enables pixel exclusive features :- Call Screening, Live Translate, Direct Call, Google Dialer Call Recording, Extreme Battery Saver, Hold For Me, Gboard Smart Compose, Adaptive Connectivity, Adaptive Sound, Next generation assistant, Pixel LiveWallpapers, Google Fit Heart rate and many more...
# 0 - Disable, 1 - Enable
Expand Down

0 comments on commit 21a0d80

Please sign in to comment.