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
cf2d02c0
Commit
cf2d02c0
authored
Sep 22, 2019
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't wipe ramdisk when A-only SAR
parent
0fcd0de0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
boot_patch.sh
scripts/boot_patch.sh
+1
-7
No files found.
scripts/boot_patch.sh
View file @
cf2d02c0
...
@@ -115,13 +115,7 @@ case $((STATUS & 3)) in
...
@@ -115,13 +115,7 @@ case $((STATUS & 3)) in
# Find SHA1 of stock boot image
# Find SHA1 of stock boot image
[
-z
$SHA1
]
&&
SHA1
=
`
./magiskboot cpio ramdisk.cpio sha1 2>/dev/null
`
[
-z
$SHA1
]
&&
SHA1
=
`
./magiskboot cpio ramdisk.cpio sha1 2>/dev/null
`
./magiskboot cpio ramdisk.cpio restore
./magiskboot cpio ramdisk.cpio restore
if
./magiskboot cpio ramdisk.cpio
"exists init.rc"
;
then
# Normal boot image
cp
-af
ramdisk.cpio ramdisk.cpio.orig
cp
-af
ramdisk.cpio ramdisk.cpio.orig
else
# A only system-as-root
rm
-f
ramdisk.cpio
fi
;;
;;
2
)
# Unsupported
2
)
# Unsupported
ui_print
"! Boot image patched by unsupported programs"
ui_print
"! Boot image patched by unsupported programs"
...
...
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