This repository was archived by the owner on Dec 6, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55! install.sh
66! sources.json
77! modules /**
8- ! system /**
8+ ! root /**
Original file line number Diff line number Diff line change @@ -54,7 +54,6 @@ main() {
5454
5555tput civis
5656ROOT_ACCESS=" $1 "
57- RISH_ACCESS=" $2 "
5857
5958for MODULE in $( find modules -type f -name " *.sh" ) ; do
6059 source " $MODULE "
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ patchApp() {
6262 '
6363 )
6464
65- echo -e " Root Access: $ROOT_ACCESS \n Rish Access: $RISH_ACCESS \ nArchitecture: $ARCH \nApp: $APP_NAME v$APP_VER \nCLI: $CLI_FILE \nPatches: $PATCHES_FILE \nArguments: ${ARGUMENTS[*]} \n\nLogs:\n" > " $STORAGE /patch_log.txt"
65+ echo -e " Root Access: $ROOT_ACCESS \nArchitecture: $ARCH \nApp: $APP_NAME v$APP_VER \nCLI: $CLI_FILE \nPatches: $PATCHES_FILE \nArguments: ${ARGUMENTS[*]} \n\nLogs:\n" > " $STORAGE /patch_log.txt"
6666
6767 java -jar " $CLI_FILE " patch \
6868 --force --exclusive --purge --patches=" $PATCHES_FILE " \
Original file line number Diff line number Diff line change @@ -4,8 +4,6 @@ installApp() {
44 local CANONICAL_VER
55 if [ " $ROOT_ACCESS " == true ]; then
66 mountApp
7- elif [ " $RISH_ACCESS " == true ]; then
8- installAppRish
97 else
108 notify info " Copying patched $APP_NAME apk to Internal Storage..."
119 CANONICAL_VER=${APP_VER//:/ }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 33getInstalledVersion () {
44 if [ " $ROOT_ACCESS " == true ] && su -c " pm list packages | grep -q $PKG_NAME " ; then
55 INSTALLED_VERSION=$( su -c dumpsys package " $PKG_NAME " | sed -n ' /versionName/s/.*=//p' | sed -n ' 1p' )
6- # We use pm list and dumpsys as fallback.
7- elif [ " $RISH_ACCESS " = true ] && ( rish -c " pm list packages --user current | grep -q $PKG_NAME " || ! rish -c " dumpsys package $PKG_NAME " 2>&1 | grep -q " Unable to find package:" ); then
8- INSTALLED_VERSION=$( rish -c " dumpsys package $PKG_NAME " | sed -n ' /versionName/s/.*=//p' | sed -n ' 1p' )
96 fi
107}
118
129mountApp () {
1310 notify info " Please Wait !!\nMounting $APP_NAME ..."
14- if su -mm -c " /system/bin/sh system /mount.sh $PKG_NAME $APP_NAME $APP_VER $SOURCE " & > /dev/null; then
11+ if su -mm -c " /system/bin/sh root /mount.sh $PKG_NAME $APP_NAME $APP_VER $SOURCE " & > /dev/null; then
1512 notify msg " $APP_NAME Mounted Successfully !!"
1613 else
1714 notify msg " Installation Failed !!\nShare logs to developer."
@@ -42,7 +39,7 @@ umountApp() {
4239 ) ; then
4340 return
4441 fi
45- su -mm -c " /system/bin/sh system /umount.sh $PKG_NAME " & > /dev/null
42+ su -mm -c " /system/bin/sh root /umount.sh $PKG_NAME " & > /dev/null
4643 notify msg " Unmount Successful !!"
4744 unset MOUNTED_PKGS PKG_NAME
4845}
Original file line number Diff line number Diff line change @@ -10,11 +10,10 @@ Options:
1010-f: Force re-install Revancify
1111-u: Disable Update Check
1212-r: Disable Root access
13- -R: Disable Rish access
1413-v: Print current version
1514-h: Print help statement"
1615
17- while getopts " :furRvh " OPT 2> /dev/null; do
16+ while getopts " :furvh " OPT 2> /dev/null; do
1817 case $OPT in
1918 f)
2019 rm " $SRC /.info" & > /dev/null
@@ -25,9 +24,6 @@ while getopts ":furRvh" OPT 2> /dev/null; do
2524 r)
2625 ROOT_ACCESS=false
2726 ;;
28- R)
29- RISH_ACCESS=false
30- ;;
3127 v)
3228 if [ -e " $SRC " ]; then
3329 source " $SRC /.info"
@@ -166,18 +162,13 @@ fetchSrc
166162
167163if [ " $ROOT_ACCESS " != false ] && su -c ' exit' & > /dev/null; then
168164 ROOT_ACCESS=true
169- RISH_ACCESS=false
170- elif [ " $RISH_ACCESS " != false ] && rish -c ' exit' & > /dev/null; then
171- ROOT_ACCESS=false
172- RISH_ACCESS=true
173165else
174166 ROOT_ACCESS=false
175- RISH_ACCESS=false
176167fi
177168
178169cd " $SRC " & > /dev/null || terminate
179170
180- bash main.sh " $ROOT_ACCESS " " $RISH_ACCESS "
171+ bash main.sh " $ROOT_ACCESS "
181172EXIT_CODE=$?
182173
183174exit " $EXIT_CODE "
File renamed without changes.
File renamed without changes.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments