update stuff

This commit is contained in:
j-hc 2022-07-28 23:03:26 +03:00
parent 9ba67f84ae
commit 19d56a1b64
No known key found for this signature in database
GPG Key ID: 242B44D16774A2ED

View File

@ -212,10 +212,9 @@ service_sh() {
local s='while [ "$(getprop sys.boot_completed)" != 1 ]; do local s='while [ "$(getprop sys.boot_completed)" != 1 ]; do
sleep 1 sleep 1
done done
BASEPATH=$(pm path PACKAGE | grep base | sed "s/package://g")
YTPATH=$(pm path PACKAGE | grep base | sed "s/package://g; s/\/base.apk//g") if [ "$BASEPATH" ]; then
if [ "$YTPATH" ]; then su -c mount $MODDIR/base.apk $BASEPATH
su -c mount $MODDIR/base.apk $YTPATH/base.apk
fi' fi'
echo "${s//PACKAGE/$1}" >"${MODULE_TEMPLATE_DIR}/service.sh" echo "${s//PACKAGE/$1}" >"${MODULE_TEMPLATE_DIR}/service.sh"
} }