Skip to content

Commit

Permalink
session fixes for buggy roms
Browse files Browse the repository at this point in the history
  • Loading branch information
nift4 committed Apr 14, 2023
1 parent b0b2ae7 commit 9d7ee9f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions customize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,23 @@ else
fi

pm_install() {
tmplocapk=/data/local/tmp/microg_revived_TMP_DELETE_ME.apk
which sed >/dev/null 2>&1
if [ $? -eq 0 ]; then
sessionRaw=$(pm install-create --dont-kill "$1")
if [ $? -eq 0 ]; then
session=$(echo "$sessionRaw" | sed -E 's/.*\[(.*)\].*/\1/g')
if [ $? -eq 0 ]; then
pm install-write "$session" "$1"
cp "$1" "$tmplocapk"
pm install-write "$session" "$tmplocapk"
if [ $? -eq 0 ]; then
pm install-commit "$session"
return $?
else
pm install-abandon "$session"
fi
newretval=$?
rm "$tmplocapk"
return $newretval
fi
fi
fi
Expand Down

0 comments on commit 9d7ee9f

Please sign in to comment.