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
89ff3c65
Commit
89ff3c65
authored
Jun 08, 2022
by
石松洲
Committed by
John Wu
Jun 08, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't backup ramdisk created by Magisk
Fix topjohnwu#5938, fix topjohnwu#5944
parent
7bf9c742
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
ramdisk.cpp
native/jni/boot/ramdisk.cpp
+8
-0
No files found.
native/jni/boot/ramdisk.cpp
View file @
89ff3c65
...
...
@@ -115,6 +115,14 @@ char *magisk_cpio::sha1() {
for (str = (char *) buf; str < (char *) buf + size; str = str += strlen(str) + 1)
void
magisk_cpio
::
restore
()
{
// If the backup init is missing, this means that the boot ramdisk
// was created from scratch by us. Nothing needs to be restored.
if
(
exists
(
".backup"
)
&&
!
exists
(
".backup/init"
))
{
fprintf
(
stderr
,
"Remove all in ramdisk
\n
"
);
entries
.
clear
();
return
;
}
if
(
auto
it
=
entries
.
find
(
".backup/.rmlist"
);
it
!=
entries
.
end
())
{
char
*
file
;
for_each_str
(
file
,
it
->
second
->
data
,
it
->
second
->
filesize
)
{
...
...
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