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
942c8709
Commit
942c8709
authored
Dec 06, 2017
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Properly handle KEEPVERITY and HIGHCOMP
parent
baff9256
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
app
app
+1
-1
boot_patch.sh
scripts/boot_patch.sh
+7
-3
flash_script.sh
scripts/flash_script.sh
+1
-1
No files found.
app
@
c461fc6d
Subproject commit
96eaa833f561e645ba99f87ec9d376fc338b0861
Subproject commit
c461fc6daa7096398f9227a10bcb4cec271cb5e7
scripts/boot_patch.sh
View file @
942c8709
...
@@ -88,7 +88,6 @@ case $? in
...
@@ -88,7 +88,6 @@ case $? in
;;
;;
2
)
2
)
ui_print
"! Insufficient boot partition size detected"
ui_print
"! Insufficient boot partition size detected"
ui_print
"- Enable high compression mode"
HIGHCOMP
=
true
HIGHCOMP
=
true
;;
;;
3
)
3
)
...
@@ -104,6 +103,13 @@ case $? in
...
@@ -104,6 +103,13 @@ case $? in
abort
"! Stock kernel cannot be patched, please use a custom kernel"
abort
"! Stock kernel cannot be patched, please use a custom kernel"
esac
esac
if
[
-f
/sdcard/ramdisk-recovery.img
]
;
then
HIGHCOMP
=
true
ui_print
"- Detected ramdisk-recovery.img"
fi
$HIGHCOMP
&&
ui_print
"- Enable high compression mode"
##########################################################################################
##########################################################################################
# Ramdisk restores
# Ramdisk restores
##########################################################################################
##########################################################################################
...
@@ -139,8 +145,6 @@ esac
...
@@ -139,8 +145,6 @@ esac
ui_print
"- Patching ramdisk"
ui_print
"- Patching ramdisk"
[
-f
/sdcard/ramdisk-recovery.img
]
&&
HIGHCOMP
=
true
./magiskboot
--cpio-add
ramdisk.cpio 750 init magiskinit
./magiskboot
--cpio-add
ramdisk.cpio 750 init magiskinit
./magiskboot
--cpio-backup
ramdisk.cpio ramdisk.cpio.orig
$HIGHCOMP
$KEEPVERITY
$KEEPFORCEENCRYPT
$SHA1
./magiskboot
--cpio-backup
ramdisk.cpio ramdisk.cpio.orig
$HIGHCOMP
$KEEPVERITY
$KEEPFORCEENCRYPT
$SHA1
...
...
scripts/flash_script.sh
View file @
942c8709
...
@@ -123,7 +123,7 @@ if [ -f stock_boot* ]; then
...
@@ -123,7 +123,7 @@ if [ -f stock_boot* ]; then
is_mounted /data
&&
mv
stock_boot
*
/data
is_mounted /data
&&
mv
stock_boot
*
/data
fi
fi
patch_dtbo_image
$KEEPVERITY
||
patch_dtbo_image
if
[
-f
stock_dtbo
*
]
;
then
if
[
-f
stock_dtbo
*
]
;
then
rm
-f
/data/stock_dtbo
*
2>/dev/null
rm
-f
/data/stock_dtbo
*
2>/dev/null
...
...
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