mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-22 07:57:39 +00:00
Source addon.d script from data
This commit is contained in:
parent
9a8eeacee8
commit
14eebd582f
2
build.py
2
build.py
@ -327,7 +327,7 @@ def zip_main(args):
|
|||||||
zipf.writestr(target, util_func)
|
zipf.writestr(target, util_func)
|
||||||
# addon.d.sh
|
# addon.d.sh
|
||||||
source = os.path.join('scripts', 'addon.d.sh')
|
source = os.path.join('scripts', 'addon.d.sh')
|
||||||
target = os.path.join('common', '99-magisk.sh')
|
target = os.path.join('common', 'addon.d.sh')
|
||||||
zip_with_msg(zipf, source, target)
|
zip_with_msg(zipf, source, target)
|
||||||
|
|
||||||
# Prebuilts
|
# Prebuilts
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
#!/sbin/sh
|
#!/sbin/sh
|
||||||
# ADDOND_VERSION=2
|
|
||||||
##########################################################################################
|
##########################################################################################
|
||||||
#
|
#
|
||||||
# Magisk Survival Script for ROMs with addon.d support
|
# Magisk Survival Script for ROMs with addon.d support
|
||||||
|
@ -103,7 +103,9 @@ chmod -R 755 $MAGISKBIN
|
|||||||
if [ -d /system/addon.d ]; then
|
if [ -d /system/addon.d ]; then
|
||||||
ui_print "- Adding addon.d survival script"
|
ui_print "- Adding addon.d survival script"
|
||||||
mount -o rw,remount /system
|
mount -o rw,remount /system
|
||||||
cp -af $INSTALLER/common/99-magisk.sh /system/addon.d/99-magisk.sh
|
echo "#!/sbin/sh" > /system/addon.d/99-magisk.sh
|
||||||
|
echo "# ADDOND_VERSION=2" >> /system/addon.d/99-magisk.sh
|
||||||
|
echo ". /data/adb/magisk/addon.d.sh" >> /system/addon.d/99-magisk.sh
|
||||||
chmod 755 /system/addon.d/99-magisk.sh
|
chmod 755 /system/addon.d/99-magisk.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user