2
0
mirror of https://gitlab.com/Nanolx/NanoDroid synced 2024-10-31 09:20:23 +00:00

update Haystack patches

This commit is contained in:
Christopher Roy Bratusek 2019-03-01 14:23:44 +01:00
parent 45aeac1239
commit c31e0896a2
6 changed files with 24 additions and 0 deletions

View File

@ -136,6 +136,10 @@ for opt in ${@}; do
check_nanodroid
;;
u-patch )
update_patches
;;
check )
check_nanodroid
;;

View File

@ -21,6 +21,12 @@ check_nanodroid () {
fi
}
update_patches () {
grab_patches sigspoof-core/services.jar.dex core_services.jar.dex
grab_patches sigspoof-hook-4.1-6.0/services.jar.dex hook_4.1-6.0_services.jar.dex
grab_patches sigspoof-hook-7.0-9.0/services.jar.dex hook_7.0-9.0_services.jar.dex
}
progress () {
sleep 0.5
while [ -d "/proc/${1}" ];do

View File

@ -272,3 +272,17 @@ grab_lib_from_ogapps () {
wget -q -O "${LIB_DEST}" "${LIB_URL}" || \
rm -f "${LIB_DEST}"
}
grab_patches () {
BASE_URL="https://github.com/Lanchon/haystack/blob/master/patches"
PATCH_URL="${BASE_URL}/${1}?raw=true"
PATCH_DST="${CWD}/patcher/dexpatcher/${2}"
echo -e "\nUpdating from Haystack : ${2}"
echo " Checking SHA256 hash not (yet) supported"
wget -q -O "${PATCH_DST}" "${PATCH_URL}" || \
rm -f "${PATCH_DST}"
}