Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
Magisk
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Magisk
Commits
14eebd58
Commit
14eebd58
authored
Jun 21, 2018
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Source addon.d script from data
parent
9a8eeace
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
build.py
build.py
+1
-1
addon.d.sh
scripts/addon.d.sh
+0
-1
flash_script.sh
scripts/flash_script.sh
+3
-1
No files found.
build.py
View file @
14eebd58
...
...
@@ -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
...
...
scripts/addon.d.sh
View file @
14eebd58
#!/sbin/sh
# ADDOND_VERSION=2
##########################################################################################
#
# Magisk Survival Script for ROMs with addon.d support
...
...
scripts/flash_script.sh
View file @
14eebd58
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment