This repository was archived by the owner on Feb 6, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +12
-2
lines changed Expand file tree Collapse file tree 4 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 164
164
# Remove files outside of module directory
165
165
ui_print " - Removing old files"
166
166
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
168
169
169
170
if [ -f $INFO ]; then
170
171
while read LINE; do
@@ -184,11 +185,20 @@ if [ -f $INFO ]; then
184
185
fi
185
186
186
187
# ## Install
188
+
187
189
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
+
189
198
set_perm " /data/local/tmp/app.apk" 0 0 0660
190
199
su -c ' /system/bin/pm install -r /data/local/tmp/app.apk'
191
200
rm /data/local/tmp/app.apk
201
+
192
202
cp -r $MODPATH /data /
193
203
194
204
ui_print " Installing for $ARCH SDK $API device..."
You can’t perform that action at this time.
0 commit comments