mirror of
https://github.com/j-hc/revanced-magisk-module.git
synced 2025-05-28 12:30:14 +02:00
update pm install cmd
This commit is contained in:
parent
4ef2a5e3a9
commit
7c83c3ed56
@ -5,7 +5,7 @@ MUSIC_PATCHER_ARGS="-e music-microg-support"
|
||||
|
||||
BUILD_YT=true
|
||||
BUILD_MUSIC_ARM64_V8A=true
|
||||
BUILD_MUSIC_ARM_V7A=true
|
||||
BUILD_MUSIC_ARM_V7A=false
|
||||
BUILD_TWITTER=true
|
||||
BUILD_REDDIT=true
|
||||
BUILD_WARN_WETTER=false
|
||||
|
@ -24,11 +24,9 @@ if [ -n "$BASEPATH" ] && $MODPATH/bin/cmp -s $BASEPATH $MODPATH/stock.apk; then
|
||||
ui_print "* Installed __PKGNAME and module stock.apk are identical"
|
||||
ui_print "* Skipping stock APK installation"
|
||||
else
|
||||
ui_print "* Uninstalling current __PKGNAME"
|
||||
pm uninstall __PKGNAME >/dev/null
|
||||
ui_print "* Installing stock __PKGNAME APK"
|
||||
ui_print "* Installing/Updating stock __PKGNAME"
|
||||
set_perm $MODPATH/stock.apk 1000 1000 644 u:object_r:apk_data_file:s0
|
||||
if ! op=$(pm install -r -g $MODPATH/stock.apk 2>&1); then
|
||||
if ! op=$(pm install -r -d $MODPATH/stock.apk 2>&1); then
|
||||
ui_print "ERROR: APK installation failed!"
|
||||
abort "${op}"
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user