forked from Kingsman44/Pixelify
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e2623d2
commit baa4ad1
Showing
22 changed files
with
285 additions
and
263 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
id=PixelifyUninstaller | ||
name=Pixelify Uninstaller | ||
version=1 | ||
versionCode=1 | ||
author=Kingsman44 | ||
description=Don't Remove it. It is required to completly uninstall Pixelify. It will automatically when unistalling Pixelify. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
#!/system/bin/sh | ||
# Do NOT assume where your module will be located. | ||
# ALWAYS use $MODDIR if you need to know where this script | ||
# and module is placed. | ||
# This will make sure your module will still work | ||
# if Magisk change its mount point in the future | ||
MODDIR=${0%/*} | ||
|
||
# This script will be executed in late_start service mode | ||
|
||
sqlite=/data/adb/modules/PixelifyUninstaller/addon/sqlite3 | ||
chmod 0755 $sqlite | ||
|
||
gms=/data/data/com.google.android.gms/databases/phenotype.db | ||
gser=/data/data/com.google.android.gsf/databases/gservices.db | ||
|
||
set_device_config() { | ||
while read p; do | ||
if [ ! -z "$(echo $p)" ]; then | ||
if [ "$(echo $p | head -c 1)" != "#" ]; then | ||
name="$(echo $p | cut -d= -f1)" | ||
namespace="$(echo $name | cut -d/ -f1)" | ||
key="$(echo $name | cut -d/ -f2)" | ||
value="$(echo $p | cut -d= -f2)" | ||
device_config put $namespace $key $value | ||
fi | ||
fi | ||
done <$MODDIR/deviceconfig.txt | ||
} | ||
|
||
# Wait for the boot | ||
while true; do | ||
boot=$(getprop sys.boot_completed) | ||
if [ "$boot" -eq 1 ]; then | ||
sleep 5 | ||
break | ||
fi | ||
done | ||
|
||
# Uninstall if Pixelify is not detected. | ||
if [ ! -d /data/adb/modules/Pixelify ]; then | ||
#Remove XML patches and let app to regenrate without them. | ||
rm -rf /data/data/com.google.android.dialer/shared_prefs/dialer_phenotype_flags.xml | ||
rm -rf /data/data/com.google.android.inputmethod.latin/shared_prefs/flag_value.xml | ||
rm -rf /data/data/com.google.android.inputmethod.latin/shared_prefs/flag_override.xml | ||
rm -rf /data/data/com.google.android.apps.fitness/shared_prefs/growthkit_phenotype_prefs.xml | ||
rm -rf /data/data/com.google.android.googlequicksearchbox/shared_prefs/GEL.GSAPrefs.xml | ||
rm -rf /data/data/com.google.android.apps.turbo/shared_prefs/phenotypeFlags.xml | ||
|
||
#Remove Pixelify version store data | ||
rm -rf /data/pixelify | ||
|
||
#Remove callscreening patch | ||
chmod 0755 /data/data/com.google.android.dialer/files/phenotype | ||
rm -rf chmod 0755 /data/data/com.google.android.dialer/files/phenotype/* | ||
|
||
#Remove GMS patches | ||
$sqlite $gms "DELETE FROM FlagOverrides" | ||
$sqlite $gser "DELETE FROM overrides" | ||
|
||
# Fixes Nexus Launcher gone | ||
rm -rf /data/system/package_cache/* | ||
|
||
# Uninstall packages of they are not system app. | ||
[ -z $(pm list packages -s | grep com.google.android.as) ] && pm uninstall com.google.android.as | ||
[ -z $(pm list packages -s | grep com.google.pixel.livewallpaper) ] && pm uninstall com.google.pixel.livewallpaper | ||
|
||
# Disable Pickachu Wallpaper if device on Pixel 4 or XL | ||
[[ "$(getprop ro.product.vendor.model)" != "Pixel 4" || "$(getprop ro.product.vendor.model)" != "Pixel 4 XL" ]] && pm disable -n com.google.pixel.livewallpaper/com.google.pixel.livewallpaper.pokemon.wallpapers.PokemonWallpaper -a android.intent.action.MAIN | ||
|
||
echo "- Uninstalled Completed" >>/sdcard/Pixelify/logs.txt | ||
|
||
# Remove Unistaller itself | ||
rm -rf /data/adb/modules/PixelifyUninstaller | ||
fi | ||
|
||
# copy bootlogs to Pixelify folder if bootloop happened. | ||
[ -f /data/adb/modules/Pixelify/boot_logs.txt ] && rm -rf /sdcard/Pixelify/boot_logs.txt && mv /data/adb/modules/Pixelify/boot_logs.txt /sdcard/Pixelify/boot_logs.txt | ||
|
||
while true | ||
do | ||
set_device_config | ||
if ps -Ao CMD | grep -q ndroid.systemui; then | ||
break | ||
fi | ||
sleep 0.1 | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters