Skip to content

Commit

Permalink
update to v2.1-beta-3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Kingsman44 committed Aug 12, 2022
1 parent af49967 commit 49e02b3
Show file tree
Hide file tree
Showing 9 changed files with 373 additions and 382 deletions.
428 changes: 214 additions & 214 deletions customize.sh

Large diffs are not rendered by default.

Binary file modified lib/zygisk/arm64-v8a.so
Binary file not shown.
Binary file modified lib/zygisk/armeabi-v7a.so
Binary file not shown.
Binary file modified lib/zygisk/x86.so
Binary file not shown.
Binary file modified lib/zygisk/x86_64.so
Binary file not shown.
7 changes: 3 additions & 4 deletions module.prop
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
id=Pixelify
name=Pixelify
version=2.1-beta-3
versionCode=20220716
version=2.1-beta-3.1
versionCode=20220812
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
DEVICE_USES_VOLUME_KEY=0
#updateJson=https://raw.githubusercontent.com/Kingsman44/Pixelify/master/update-no-vk.json
MODULE_TYPE=riru
#updateJson=https://raw.githubusercontent.com/Kingsman44/Pixelify/master/update-no-vk.json
32 changes: 12 additions & 20 deletions service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ TARGET_LOGGING=1
temp=""

pm_enable() {
pm enable $1 > /dev/null 2>&1
pm enable $1 >/dev/null 2>&1
log "Enabling $1"
}

Expand All @@ -35,13 +35,13 @@ set_prop() {
}

bootlooped() {
echo -n >> $MODDIR/disable
echo -n >>$MODDIR/disable
log "- Bootloop detected"
#echo "$temp" >> /sdcard/Pixelify/logs.txt
#logcat -d >> /sdcard/Pixelify/boot_logs.txt
rip="$(logcat -d)"
rm -rf $MODDIR/boot_logs.txt
echo "$rip" >> $MODDIR/boot_logs.txt
echo "$rip" >>$MODDIR/boot_logs.txt
cp -Tf $MODDIR/boot_logs.txt /sdcard/Pixelify/boot_logs.txt
#echo "$rip" >> /sdcard/Pixelify/boot_logs.txt
sleep .5
Expand Down Expand Up @@ -81,21 +81,6 @@ log "Service Started"
# Call Screening
cp -Tf $MODDIR/com.google.android.dialer /data/data/com.google.android.dialer/files/phenotype/com.google.android.dialer

# GBoard
patch_gboard

# GoogleFit
bool_patch DeviceStateFeature $FIT
bool_patch TestingFeature $FIT
bool_patch Sync__sync_after_promo_shown $FIT
bool_patch Sync__use_experiment_flag_from_promo $FIT
bool_patch Promotions $FIT
bool_patch googler $FIT
bool_patch dasher $FIT

# Turbo
bool_patch AdaptiveCharging__v1_enabled $TURBO

# Wellbeing
pm_enable com.google.android.apps.wellbeing/com.google.android.apps.wellbeing.walkingdetection.ui.WalkingDetectionActivity

Expand Down Expand Up @@ -134,17 +119,21 @@ CPU_ABI=$(getprop ro.product.cpu.api)
sleep 5
ZYGOTE_PID1=$(pidof "$MAIN_ZYGOTE_NICENAME")
echo "1z is $ZYGOTE_PID1"
device_config put privacy location_accuracy_enabled true

# Wait for SystemUI to start
sleep 10
SYSUI_PID1=$(pidof "$MAIN_SYSUI_NICENAME")
echo "1s is $SYSUI_PID1"
device_config put privacy location_accuracy_enabled true

sleep 15
ZYGOTE_PID2=$(pidof "$MAIN_ZYGOTE_NICENAME")
SYSUI_PID2=$(pidof "$MAIN_SYSUI_NICENAME")
echo "2z is $ZYGOTE_PID2"
echo "2s is $SYSUI_PID2"
device_config put privacy location_accuracy_enabled true
cp -Tf $MODDIR/com.google.android.dialer /data/data/com.google.android.dialer/files/phenotype/com.google.android.dialer

if check "$ZYGOTE_PID1" "$ZYGOTE_PID2"; then
echo "No zygote error on step 1, ok!"
Expand All @@ -163,6 +152,9 @@ ZYGOTE_PID3=$(pidof "$MAIN_ZYGOTE_NICENAME")
SYSUI_PID3=$(pidof "$MAIN_SYSUI_NICENAME")
echo "3z is $ZYGOTE_PID3"
echo "3s is $SYSUI_PID3"
device_config put privacy location_accuracy_enabled true
cp -Tf $MODDIR/com.google.android.dialer /data/data/com.google.android.dialer/files/phenotype/com.google.android.dialer
am force-stop com.google.android.dialer

if check "$ZYGOTE_PID2" "$ZYGOTE_PID3"; then
echo "No zygote error on step 2, ok!"
Expand All @@ -181,7 +173,7 @@ else
fi

# Set device config
#set_device_config
set_device_config

# Temporary Workaround for Precise Location
device_config put privacy location_accuracy_enabled true
Expand All @@ -202,4 +194,4 @@ sleep 30
device_config put privacy location_accuracy_enabled true

log "Service Finished"
echo "$temp" >> /sdcard/Pixelify/logs.txt
echo "$temp" >>/sdcard/Pixelify/logs.txt
Loading

0 comments on commit 49e02b3

Please sign in to comment.