Hlo Guys,
I have Vivo phone (V2027). I am facing problem with Vivo theme app.
Before Update - I downgrade theme app to a lower version because in lower version we can custom theme (.itz).
recently Vivo push new update and after that I am unable to downgrade theme app anymore. So no more custom theme and I don't like Vivo official theme.
is there any way to use old version theme app
Important - before Update I
Am using this Script in adb to downgrade app and then install lower version -
( echo "######################################"
echo "# iTheme Downgrader [By zFont] #"
echo "# Developed By Khun Htetz Naing #"
echo "# t.me/HtetzNaing || fb.com/iamHtetz #"
echo "######################################"
echo ""
# check if android or not
if ! command -v getprop &> /dev/null; then
echo "This is not Android platform!"
exit 1
fi
TARGET_DIR="/data/local/tmp"
TARGET_NAME="z.apk"
INPUT_APK_NAME=$TARGET_NAME
success="success"
important_note="\n‼ IMPORTANT ‼\nIf a dialog appears, you must click \"INSTALL ANYWAY\"

.\n"
tolowercase(){
echo "$1" | tr '[:upper:]' '[:lower:]'
}
check_device(){
target_package="com.bbk.theme"
target_brand="vivo"
echo "- Checking device..."
brand="$(getprop ro.product.manufacturer)"
if [[ "$(tolowercase "$brand")" == *"$target_brand"* ]]; then
itheme="$(dumpsys package $target_package | grep versionName)"
if test "$itheme" != ""; then
echo "- Uninstall $target_package..."
uninstall="$(service call package 134 s16 $target_package i32 0 i32 0)"
else
echo "- $target_package is not installed!"
exit 1
fi
else
echo "- This is a $brand phone

"
echo "- the script only works on $target_brand phone

"
exit 1
fi
}
prepare(){
if [ $# -eq 0 ] || [ "$1" == "" ]; then
echo "Requires APK path

"
exit 1
else
if [ -f "$1" ]; then
INPUT_APK_NAME="$(basename "$1")"
if cp "$1" "$TARGET_DIR/$TARGET_NAME"; then
echo "- Copy $INPUT_APK_NAME to $TARGET_DIR

"
else
echo "- Copy $INPUT_APK_NAME to $TARGET_DIR

"
exit 1
fi
else
echo "$1 | Not exist

"
exit 1
fi
fi
}
install(){
echo "\n[1]"
echo "- Creating a session

"
session="$(pm install-create -r -d --user 0)"
session="${session//[!0-9]/}"
echo "- Getting APK size

"
# get apk file size
file="$TARGET_DIR/$TARGET_NAME"
filesize="$(du $file)"
filesize=($filesize)
filesize="${filesize[0]}"
echo "- Preparing for installation

"
# pm install-write -S APK_FILE_SIZE SESSION_ID INDEX FILE_PATH
write="$(pm install-write -S $filesize $session 0 $file)"
if [[ "$(tolowercase "$write")" == *"$success"* ]]; then
echo "- Installing $INPUT_APK_NAME

"
echo "$important_note"
install="$(pm install-commit $session)"
if [[ "$(tolowercase "$install")" == *"$success"* ]]; then
echo "- Success

"
exit 0
else
echo "- Failed

"
echo $install
fi
else
echo "- Failed

"
echo $write
fi
}
install_r(){
echo "\n[2]"
file="$TARGET_DIR/$TARGET_NAME"
echo "- Installing $INPUT_APK_NAME

"
echo "$important_note"
install="$(pm install -r -d $file)"
if [[ "$(tolowercase "$install")" == *"$success"* ]]; then
echo "- Success

"
exit 0
else
echo "- Failed

"
echo $install
fi
}
check_device
prepare "$1"
install
install_r )
Pls help


Thanks in advance