Skip to content
This repository was archived by the owner on Dec 6, 2025. It is now read-only.

Commit 1d99c03

Browse files
authored
Revert "feat: Add Rish-based installer with signature verification and downgr…" (#162)
This reverts commit 3b7c563.
1 parent 3b7c563 commit 1d99c03

11 files changed

Lines changed: 6 additions & 350 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
!install.sh
66
!sources.json
77
!modules/**
8-
!system/**
8+
!root/**

main.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ main() {
5454

5555
tput civis
5656
ROOT_ACCESS="$1"
57-
RISH_ACCESS="$2"
5857

5958
for MODULE in $(find modules -type f -name "*.sh"); do
6059
source "$MODULE"

modules/patch.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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" \

modules/system/install.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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//:/}

modules/system/rish.sh

Lines changed: 0 additions & 207 deletions
This file was deleted.

modules/system/root.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,12 @@
33
getInstalledVersion() {
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

129
mountApp() {
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
}

revancify

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff 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

167163
if [ "$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
173165
else
174166
ROOT_ACCESS=false
175-
RISH_ACCESS=false
176167
fi
177168

178169
cd "$SRC" &> /dev/null || terminate
179170

180-
bash main.sh "$ROOT_ACCESS" "$RISH_ACCESS"
171+
bash main.sh "$ROOT_ACCESS"
181172
EXIT_CODE=$?
182173

183174
exit "$EXIT_CODE"
File renamed without changes.
File renamed without changes.

system/rish-install.sh

Lines changed: 0 additions & 74 deletions
This file was deleted.

0 commit comments

Comments
 (0)