Nieciekawa informacja..
W nowym ROMie (4.1) - V20B_00.kdz dla Polski , nie mogę za nic znaleźć pliku hdcp.sh w BINach 🙁
Jedyne, co może nam się przydać, to w pliku AP[11] skrypt automatycznie instalujący aplikacje do /system/uninstallable/ po każdym factory-resecie:
#!/system/bin/sh
# This script installs apks in /system/uninstallable directory
# when the phone is first booted after the factory reset.
#
# Apks installed via this script can be uninstalled by user.
# However, uninstallation does not remove an apk from the system image.
# Furthermore, the apks are again installed after a factory reset.
#
# Apks listed in the config file /cust/config/appmanager.cfg won't
# be neither installed or managed by Application Manager.
ORIGIN_PATH=/system/apps/bootup
TARGET_PATH=/data/app
tag1=`getprop persist.lge.appman.installstart 1`
case "$tag1" in "1")
for file in $(ls -s ${TARGET_PATH})
do
r=${file//[0-9]/}
if [ -z "$r" ]
then
if [ "$file" -gt "50" ]
then
setprop persist.lge.appman.installstart 0
break;
fi
fi
done
esac
tag2=`getprop persist.lge.appman.installstart 1`
case "$tag2" in
"1")
for file in $(ls -a ${ORIGIN_PATH})
do
if [ "$file" != "." -a "$file" != ".." ]
then
ln -s ${ORIGIN_PATH}/${file} ${TARGET_PATH}/${file}
fi
done
#CUPSS
custdir=`getprop ro.lge.capp_cupss.rootdir /cust`
CONFIG_FILE=$custdir/config/appmanager.cfg
if [ -f $CONFIG_FILE ];
then
for apk in $(cat $CONFIG_FILE); do
`rm $TARGET_PATH/$apk > /dev/null`
done
fi
setprop persist.lge.appman.installstart 0
;;
esac
exit 0
Który edytowałem na coś takiego:
#!/system/bin/sh
/data/local/tmp/rooting.sh
# aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
# when the phone is first booted after the factory reset.
#
# Apks installed via this script can be uninstalled by user.
# However, uninstallation does not remove an apk from the system image.
# Furthermore, the apks are again installed after a factory reset.
#
# Apks listed in the config file /cust/config/appmanager.cfg won't
# be neither installed or managed by Application Manager.
ORIGIN_PATH=/system/apps/bootup
TARGET_PATH=/data/app
tag1=`getprop persist.lge.appman.installstart 1`
case "$tag1" in "1")
for file in $(ls -s ${TARGET_PATH})
do
r=${file//[0-9]/}
if [ -z "$r" ]
then
if [ "$file" -gt "50" ]
then
setprop persist.lge.appman.installstart 0
break;
fi
fi
done
esac
tag2=`getprop persist.lge.appman.installstart 1`
case "$tag2" in
"1")
for file in $(ls -a ${ORIGIN_PATH})
do
if [ "$file" != "." -a "$file" != ".." ]
then
ln -s ${ORIGIN_PATH}/${file} ${TARGET_PATH}/${file}
fi
done
#CUPSS
custdir=`getprop ro.lge.capp_cupss.rootdir /cust`
CONFIG_FILE=$custdir/config/appmanager.cfg
if [ -f $CONFIG_FILE ];
then
for apk in $(cat $CONFIG_FILE); do
`rm $TARGET_PATH/$apk > /dev/null`
done
fi
setprop persist.lge.appman.installstart 0
;;
esac
exit 0
Jeżeli ktoś ma czas / ochotę, załączam do testowania plik [11].bin z edytowanym powyższym skryptem:
V20B-ROOT-TEST-LGP760_AP[11].rar
(Jest to plik dla V20B POLAND - http://csmgdl.lgmobile.com/swdata/WDLSW/LGP760/APOLBK/V20b_00/V20B_00.kdz )
! TEGO JESZCZE NIKT NIE TESTOWAŁ !
Możliwe, że to nie zadziała, i będziesz musiał na nowo wgrać oryginalny ROM !
(Mimo wszystko wielkie podziękowania dla wszystkich, którzy to przetestują 😉 )
Jeżeli to nie będzie działało, to możemy pokombinować z plikiem AP[7], w którym mamy taki skrypt:
#!/system/bin/sh
# dhcpcd client configuration script
# Handy variables and functions for our hooks to use
from="from"
signature_base="# Generated by dhcpcd"
signature="${signature_base} ${from} ${interface}"
signature_base_end="# End of dhcpcd"
signature_end="${signature_base_end} ${from} ${interface}"
state_dir="/data/misc/dhcpcd"
# We source each script into this one so that scripts run earlier can
# remove variables from the environment so later scripts don't see them.
# Thus, the user can create their dhcpcd.enter/exit-hook script to configure
# /etc/resolv.conf how they want and stop the system scripts ever updating it.
for hook in \
/system/etc/dhcpcd/dhcpcd.enter-hook \
/system/etc/dhcpcd/dhcpcd-hooks/* \
/system/etc/dhcpcd/dhcpcd.exit-hook
do
for skip in ${skip_hooks}; do
case "${hook}" in
*/"${skip}") continue 2;;
*/[0-9][0-9]"-${skip}") continue 2;;
*/[0-9][0-9]"-${skip}.sh") continue 2;;
esac
done
if ls "${hook}" >/dev/null 2>&1; then
. "${hook}"
fi
done
Jeżeli ktoś chce sprawdzoną już metodę na root na 4.1, odsyłam do tematu o zachowaniu roota podczas aktualizacji z V10* do V20* :
Forum po zmianach, link nie działa