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
8f7d6dfb
Commit
8f7d6dfb
authored
Jan 12, 2023
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup unused functions
parent
2839978c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
21 deletions
+0
-21
utils.cpp
native/src/zygisk/utils.cpp
+0
-18
zygisk.hpp
native/src/zygisk/zygisk.hpp
+0
-3
No files found.
native/src/zygisk/utils.cpp
View file @
8f7d6dfb
...
@@ -17,24 +17,6 @@ static vector<lsplt::MapInfo> find_maps(const char *name) {
...
@@ -17,24 +17,6 @@ static vector<lsplt::MapInfo> find_maps(const char *name) {
return
maps
;
return
maps
;
}
}
std
::
pair
<
void
*
,
size_t
>
find_map_range
(
const
char
*
name
,
unsigned
long
inode
)
{
auto
maps
=
find_maps
(
name
);
uintptr_t
start
=
0u
;
uintptr_t
end
=
0u
;
for
(
const
auto
&
map
:
maps
)
{
if
(
map
.
inode
==
inode
)
{
if
(
start
==
0
)
{
start
=
map
.
start
;
end
=
map
.
end
;
}
else
if
(
map
.
start
==
end
)
{
end
=
map
.
end
;
}
}
}
LOGD
(
"found map %s with start = %zx, end = %zx
\n
"
,
name
,
start
,
end
);
return
make_pair
(
reinterpret_cast
<
void
*>
(
start
),
end
-
start
);
}
void
unmap_all
(
const
char
*
name
)
{
void
unmap_all
(
const
char
*
name
)
{
auto
maps
=
find_maps
(
name
);
auto
maps
=
find_maps
(
name
);
for
(
auto
&
info
:
maps
)
{
for
(
auto
&
info
:
maps
)
{
...
...
native/src/zygisk/zygisk.hpp
View file @
8f7d6dfb
...
@@ -34,9 +34,6 @@ enum : int {
...
@@ -34,9 +34,6 @@ enum : int {
#define HIJACK_BIN HIJACK_BIN32
#define HIJACK_BIN HIJACK_BIN32
#endif
#endif
// Find the memory address + size of the pages matching name + inode
std
::
pair
<
void
*
,
size_t
>
find_map_range
(
const
char
*
name
,
unsigned
long
inode
);
// Unmap all pages matching the name
// Unmap all pages matching the name
void
unmap_all
(
const
char
*
name
);
void
unmap_all
(
const
char
*
name
);
...
...
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