mirror of
https://github.com/j-hc/revanced-magisk-module.git
synced 2025-05-30 21:40:22 +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_YT=true
|
||||||
BUILD_MUSIC_ARM64_V8A=true
|
BUILD_MUSIC_ARM64_V8A=true
|
||||||
BUILD_MUSIC_ARM_V7A=true
|
BUILD_MUSIC_ARM_V7A=false
|
||||||
BUILD_TWITTER=true
|
BUILD_TWITTER=true
|
||||||
BUILD_REDDIT=true
|
BUILD_REDDIT=true
|
||||||
BUILD_WARN_WETTER=false
|
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 "* Installed __PKGNAME and module stock.apk are identical"
|
||||||
ui_print "* Skipping stock APK installation"
|
ui_print "* Skipping stock APK installation"
|
||||||
else
|
else
|
||||||
ui_print "* Uninstalling current __PKGNAME"
|
ui_print "* Installing/Updating stock __PKGNAME"
|
||||||
pm uninstall __PKGNAME >/dev/null
|
|
||||||
ui_print "* Installing stock __PKGNAME APK"
|
|
||||||
set_perm $MODPATH/stock.apk 1000 1000 644 u:object_r:apk_data_file:s0
|
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!"
|
ui_print "ERROR: APK installation failed!"
|
||||||
abort "${op}"
|
abort "${op}"
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user