mirror of
https://github.com/j-hc/revanced-magisk-module.git
synced 2025-05-01 15:14:25 +02:00
fix installing of stub apk
This commit is contained in:
parent
891a6def20
commit
bbd6f6a1c6
@ -37,10 +37,13 @@ fi
|
|||||||
if [ $INS = true ]; then
|
if [ $INS = true ]; then
|
||||||
ui_print "* Updating __PKGNAME (v__PKGVER)"
|
ui_print "* Updating __PKGNAME (v__PKGVER)"
|
||||||
set_perm $MODPATH/__PKGNAME.apk 1000 1000 644 u:object_r:apk_data_file:s0
|
set_perm $MODPATH/__PKGNAME.apk 1000 1000 644 u:object_r:apk_data_file:s0
|
||||||
|
ADBV=$(settings get global verifier_verify_adb_installs)
|
||||||
|
[ $ADBV = 1 ] && settings put global verifier_verify_adb_installs 0
|
||||||
if ! op=$(pm install --user 0 -i com.android.vending -r -d $MODPATH/__PKGNAME.apk 2>&1); then
|
if ! op=$(pm install --user 0 -i com.android.vending -r -d $MODPATH/__PKGNAME.apk 2>&1); then
|
||||||
ui_print "ERROR: APK installation failed!"
|
ui_print "ERROR: APK installation failed!"
|
||||||
abort "$op"
|
abort "$op"
|
||||||
fi
|
fi
|
||||||
|
[ $ADBV = 1 ] && settings put global verifier_verify_adb_installs $ADBV
|
||||||
BASEPATH=$(pm path __PKGNAME | grep base)
|
BASEPATH=$(pm path __PKGNAME | grep base)
|
||||||
BASEPATH=${BASEPATH#*:}
|
BASEPATH=${BASEPATH#*:}
|
||||||
if [ -z "$BASEPATH" ]; then
|
if [ -z "$BASEPATH" ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user