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
f894e6b4
Commit
f894e6b4
authored
Dec 21, 2016
by
Paulo d'Castro
Committed by
topjohnwu
Dec 22, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Uninstaller bump support
parent
e33f5996
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
update-binary
uninstaller/META-INF/com/google/android/update-binary
+23
-0
No files found.
uninstaller/META-INF/com/google/android/update-binary
View file @
f894e6b4
...
...
@@ -131,6 +131,11 @@ repack_boot() {
echo
-n
"SEANDROIDENFORCE"
>>
new-boot.img
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
}
...
...
@@ -188,6 +193,19 @@ if [ $? -eq 0 ]; then
SAMSUNG
=
true
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
)
ABI
=
$(
grep_prop ro.product.cpu.abi |
cut
-c-3
)
ABI2
=
$(
grep_prop ro.product.cpu.abi2 |
cut
-c-3
)
...
...
@@ -228,6 +246,11 @@ if (is_mounted /data); then
if
[
-f
"/data/stock_boot.img"
]
;
then
ui_print
"- Boot image backup found!"
NEWBOOT
=
/data/stock_boot.img
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"
>>
$NEWBOOT
fi
else
ui_print
"! Boot image backup unavalible, try using ramdisk backup"
revert_boot
...
...
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