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
d9fc5650
Commit
d9fc5650
authored
Oct 06, 2016
by
Pierre-Hugues Husson
Committed by
topjohnwu
Oct 29, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Oops, MTK rootfs/recovery detection had wrong offset
parent
9ea028f5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
extract.c
jni/extract.c
+2
-2
No files found.
jni/extract.c
View file @
d9fc5650
...
...
@@ -27,9 +27,9 @@ void dump_ramdisk(uint8_t *ptr, size_t size) {
dump
(
ptr
,
size
,
"ramdisk.gz"
);
//MTK header
}
else
if
(
memcmp
(
ptr
,
"
\x88\x16\x88\x58
"
,
4
)
==
0
)
{
if
(
memcmp
(
ptr
+
4
,
"RECOVERY"
,
8
)
==
0
)
{
if
(
memcmp
(
ptr
+
8
,
"RECOVERY"
,
8
)
==
0
)
{
dump
(
ptr
,
0
,
"ramdisk-mtk-recovery"
);
}
else
if
(
memcmp
(
ptr
+
4
,
"ROOTFS
\0\0
"
,
8
)
==
0
)
{
}
else
if
(
memcmp
(
ptr
+
8
,
"ROOTFS
\0\0
"
,
8
)
==
0
)
{
dump
(
ptr
,
0
,
"ramdisk-mtk-boot"
);
}
else
{
exit
(
1
);
...
...
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