drop custom density patch

This commit is contained in:
Guillaume Castagnino 2021-06-11 09:29:04 +02:00
parent 0e68c6d252
commit e518e7e764
2 changed files with 0 additions and 78 deletions

View file

@ -1,54 +0,0 @@
#!/sbin/sh
#
# ADDOND_VERSION=3
#
# /system/addon.d/99-perso-pioneer.sh
#
# we partially use the script at install, if so, $SYSTEM, $PRODUCT, $SYSTEM_EXT are defined
if [ -z $SYSTEM ]; then
. /tmp/backuptool.functions
# build missing $PRODUCT and $SYSTEM_EXT from $S
PRODUCT="$S/product"
SYSTEM_EXT="$S/system_ext"
else
S=$SYSTEM
fi
if [ -z $backuptool_ab ]; then
SYS=$S
TMP="/tmp"
else
SYS="/postinstall/$S"
PRODUCT="/postinstall/$PRODUCT"
SYSTEM_EXT="/postinstall/$SYSTEM_EXT"
TMP="/postinstall/tmp"
fi
# path is needed when running from recovery (at install)
export PATH="${PATH}:$S/bin:$S/xbin"
case "$1" in
backup)
# Stub
;;
restore)
# Stub
;;
pre-backup)
# Stub
;;
post-backup)
# Stub
;;
pre-restore)
# Stub
;;
post-restore)
MYPROP=$SYS/build.prop
if [ -f $PRODUCT/build.prop ] ; then
MYPROP=$PRODUCT/build.prop
# ensure there is a new line before appending our config
echo "" >> $MYPROP
echo "ro.sf.lcd_density=361" >> $MYPROP
;;
esac

View file

@ -1,24 +0,0 @@
#!/sbin/sh
set -e
# $SYSTEM set by the caller
# $PRODUCT set by the caller
# $SYSTEM_EXT set by the caller
cd "$(dirname $0)"
export PATH="${PATH}:${SYSTEM}/bin:${SYSTEM}/xbin"
# install restore script
echo "Installing restore script"
cp cm-data/99-perso-pioneer.sh.addon ${SYSTEM}/addon.d/99-perso-pioneer.sh
chown root:root ${SYSTEM}/addon.d/99-perso-pioneer.sh
chmod 755 ${SYSTEM}/addon.d/99-perso-pioneer.sh
# call restore script post to run
export SYSTEM
${SYSTEM}/addon.d/99-perso-pioneer.sh post-restore
echo "Done"