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

Commit 280aa67

Browse files
committed
Use v3.3.5 for android 12
1 parent 5aa3b88 commit 280aa67

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

app.apk

-5.44 MB
Binary file not shown.

app/335.apk

9.5 MB
Binary file not shown.

app/336p.apk

18.5 MB
Binary file not shown.

common/functions.sh

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,8 @@ fi
164164
# Remove files outside of module directory
165165
ui_print "- Removing old files"
166166

167-
su -c '/system/bin/pm uninstall com.guoshi.httpcanary.premium' 2>/dev/null
167+
su -c '/system/bin/pm uninstall com.guoshi.httpcanary.premium' >/dev/null
168+
su -c '/system/bin/pm uninstall com.guoshi.httpcanary' >/dev/null
168169

169170
if [ -f $INFO ]; then
170171
while read LINE; do
@@ -184,11 +185,20 @@ if [ -f $INFO ]; then
184185
fi
185186

186187
### Install
188+
187189
ui_print "- Installing app"
188-
mv $MODPATH/app.apk "/data/local/tmp"
190+
if [ $API -lt 30 ]; then
191+
APP_VER=336p
192+
else
193+
mv $MODPATH/data/data/com.guoshi.httpcanary.premium/ $MODPATH/data/data/com.guoshi.httpcanary/
194+
APP_VER=335
195+
fi
196+
mv $MODPATH/app/$APP_VER.apk "/data/local/tmp/app.apk"
197+
189198
set_perm "/data/local/tmp/app.apk" 0 0 0660
190199
su -c '/system/bin/pm install -r /data/local/tmp/app.apk'
191200
rm /data/local/tmp/app.apk
201+
192202
cp -r $MODPATH/data /
193203

194204
ui_print " Installing for $ARCH SDK $API device..."

0 commit comments

Comments
 (0)