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
4de51d93
Commit
4de51d93
authored
Jul 04, 2018
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tweak info when installing
parent
e7a2144d
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
11 deletions
+11
-11
addon.d.sh
scripts/addon.d.sh
+3
-3
boot_patch.sh
scripts/boot_patch.sh
+2
-2
flash_script.sh
scripts/flash_script.sh
+4
-4
util_functions.sh
scripts/util_functions.sh
+2
-2
No files found.
scripts/addon.d.sh
View file @
4de51d93
...
...
@@ -40,9 +40,9 @@ show_logo() {
detection
()
{
find_boot_image
find_dtbo_image
[
-z
$BOOTIMAGE
]
&&
abort
"! Unable to detect
boo
t image"
ui_print
"-
Found boot/ramdisk
image:
$BOOTIMAGE
"
[
-z
$DTBOIMAGE
]
||
ui_print
"-
Found dtbo
image:
$DTBOIMAGE
"
[
-z
$BOOTIMAGE
]
&&
abort
"! Unable to detect
targe
t image"
ui_print
"-
Target
image:
$BOOTIMAGE
"
[
-z
$DTBOIMAGE
]
||
ui_print
"-
DTBO
image:
$DTBOIMAGE
"
get_flags
}
...
...
scripts/boot_patch.sh
View file @
4de51d93
...
...
@@ -155,8 +155,8 @@ rm -f ramdisk.cpio.orig
##########################################################################################
if
!
$KEEPVERITY
;
then
[
-f
dtb
]
&&
./magiskboot
--dtb-patch
dtb
&&
ui_print
"- Removing dm(avb)-verity
from fstab
in dtb"
[
-f
extra
]
&&
./magiskboot
--dtb-patch
extra
&&
ui_print
"- Removing dm(avb)-verity
from fstab
in extra-dtb"
[
-f
dtb
]
&&
./magiskboot
--dtb-patch
dtb
&&
ui_print
"- Removing dm(avb)-verity in dtb"
[
-f
extra
]
&&
./magiskboot
--dtb-patch
extra
&&
ui_print
"- Removing dm(avb)-verity in extra-dtb"
fi
if
[
-f
kernel
]
;
then
...
...
scripts/flash_script.sh
View file @
4de51d93
...
...
@@ -53,14 +53,14 @@ find_dtbo_image
get_flags
[
-z
$BOOTIMAGE
]
&&
abort
"! Unable to detect
boo
t image"
ui_print
"-
Found boot/ramdisk
image:
$BOOTIMAGE
"
[
-z
$DTBOIMAGE
]
||
ui_print
"-
Found dtbo
image:
$DTBOIMAGE
"
[
-z
$BOOTIMAGE
]
&&
abort
"! Unable to detect
targe
t image"
ui_print
"-
Target
image:
$BOOTIMAGE
"
[
-z
$DTBOIMAGE
]
||
ui_print
"-
DTBO
image:
$DTBOIMAGE
"
# Detect version and architecture
api_level_arch_detect
[
$API
-lt
21
]
&&
abort
"! Magisk is only for
Android higher than Lollipop
(5.0+) (SDK 21+)"
[
$API
-lt
21
]
&&
abort
"! Magisk is only for
Lollipop and above
(5.0+) (SDK 21+)"
ui_print
"- Device platform:
$ARCH
"
...
...
scripts/util_functions.sh
View file @
4de51d93
...
...
@@ -219,9 +219,9 @@ find_dtbo_image() {
patch_dtbo_image
()
{
if
[
!
-z
$DTBOIMAGE
]
;
then
if
$MAGISKBIN
/magiskboot
--dtb-test
$DTBOIMAGE
;
then
ui_print
"- Backing up stock
dtbo
image"
ui_print
"- Backing up stock
DTBO
image"
$MAGISKBIN
/magiskboot
--compress
$DTBOIMAGE
$MAGISKBIN
/stock_dtbo.img.gz
ui_print
"- Patching
fstab in dtbo
to remove avb-verity"
ui_print
"- Patching
DTBO
to remove avb-verity"
$MAGISKBIN
/magiskboot
--dtb-patch
$DTBOIMAGE
return
0
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