mirror of
https://github.com/topjohnwu/Magisk
synced 2025-08-31 03:55:11 +00:00
Source addon.d script from data
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user