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

Commit

Permalink
Use v3.3.5 for android 12
Browse files Browse the repository at this point in the history
  • Loading branch information
mingww64 committed Aug 31, 2022
1 parent 5aa3b88 commit 280aa67
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
Binary file removed app.apk
Binary file not shown.
Binary file added app/335.apk
Binary file not shown.
Binary file added app/336p.apk
Binary file not shown.
14 changes: 12 additions & 2 deletions common/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,8 @@ fi
# Remove files outside of module directory
ui_print "- Removing old files"

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

if [ -f $INFO ]; then
while read LINE; do
Expand All @@ -184,11 +185,20 @@ if [ -f $INFO ]; then
fi

### Install

ui_print "- Installing app"
mv $MODPATH/app.apk "/data/local/tmp"
if [ $API -lt 30 ]; then
APP_VER=336p
else
mv $MODPATH/data/data/com.guoshi.httpcanary.premium/ $MODPATH/data/data/com.guoshi.httpcanary/
APP_VER=335
fi
mv $MODPATH/app/$APP_VER.apk "/data/local/tmp/app.apk"

set_perm "/data/local/tmp/app.apk" 0 0 0660
su -c '/system/bin/pm install -r /data/local/tmp/app.apk'
rm /data/local/tmp/app.apk

cp -r $MODPATH/data /

ui_print " Installing for $ARCH SDK $API device..."
Expand Down

0 comments on commit 280aa67

Please sign in to comment.