mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-21 23:47: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)
|
||||
# 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)
|
||||
|
||||
# Prebuilts
|
||||
|
@ -1,5 +1,4 @@
|
||||
#!/sbin/sh
|
||||
# ADDOND_VERSION=2
|
||||
##########################################################################################
|
||||
#
|
||||
# Magisk Survival Script for ROMs with addon.d support
|
||||
|
@ -103,7 +103,9 @@ chmod -R 755 $MAGISKBIN
|
||||
if [ -d /system/addon.d ]; then
|
||||
ui_print "- Adding addon.d survival script"
|
||||
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
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user