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
f387378b
Commit
f387378b
authored
Dec 21, 2016
by
Paulo d'Castro
Committed by
topjohnwu
Dec 22, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bump support
parent
f894e6b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
flash_script.sh
scripts/flash_script.sh
+18
-0
No files found.
scripts/flash_script.sh
View file @
f387378b
...
@@ -180,6 +180,11 @@ repack_boot() {
...
@@ -180,6 +180,11 @@ repack_boot() {
echo
-n
"SEANDROIDENFORCE"
>>
new-boot.img
echo
-n
"SEANDROIDENFORCE"
>>
new-boot.img
fi
fi
fi
fi
if
(
$LGE_G
)
;
then
# Prevent secure boot error on LG G2/G3.
# Just for know, It's a pattern which bootloader verifies at boot. Thanks to LG hackers.
echo
-n
-e
"
\x
41
\x
a9
\x
e4
\x
67
\x
74
\x
4d
\x
1d
\x
1b
\x
a4
\x
29
\x
f2
\x
ec
\x
ea
\x
65
\x
52
\x
79"
>>
new-boot.img
fi
mv
new-boot.img
$NEWBOOT
mv
new-boot.img
$NEWBOOT
LD_LIBRARY_PATH
=
$SYSTEMLIB
$BINDIR
/bootimgtools
--hexpatch
$NEWBOOT
\
LD_LIBRARY_PATH
=
$SYSTEMLIB
$BINDIR
/bootimgtools
--hexpatch
$NEWBOOT
\
49010054011440B93FA00F71E9000054010840B93FA00F7189000054001840B91FA00F7188010054
\
49010054011440B93FA00F71E9000054010840B93FA00F7189000054001840B91FA00F7188010054
\
...
@@ -236,6 +241,19 @@ if [ $? -eq 0 ]; then
...
@@ -236,6 +241,19 @@ if [ $? -eq 0 ]; then
SAMSUNG
=
true
SAMSUNG
=
true
fi
fi
LGE_G
=
false
RBRAND
=
$(
grep_prop ro.product.brand
)
RMODEL
=
$(
grep_prop ro.product.device
)
if
[
"
$RBRAND
"
=
"lge"
]
||
[
"
$RBRAND
"
=
"LGE"
]
;
then
if
[
"
$RMODEL
"
=
"*D80*"
]
||
[
"
$RMODEL
"
=
"*S98*"
]
||
[
"
$RMODEL
"
=
"*D85*"
]
||
[
"
$RMODEL
"
=
"*F40*"
]
;
then
LGE_G
=
true
ui_print
"! Bump device detected"
fi
fi
API
=
$(
grep_prop ro.build.version.sdk
)
API
=
$(
grep_prop ro.build.version.sdk
)
ABI
=
$(
grep_prop ro.product.cpu.abi |
cut
-c-3
)
ABI
=
$(
grep_prop ro.product.cpu.abi |
cut
-c-3
)
ABI2
=
$(
grep_prop ro.product.cpu.abi2 |
cut
-c-3
)
ABI2
=
$(
grep_prop ro.product.cpu.abi2 |
cut
-c-3
)
...
...
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