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
754e6902
Commit
754e6902
authored
Jun 13, 2022
by
石松洲
Committed by
John Wu
Jun 14, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix config backup for legacy SAR
parent
6f74ed6c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
twostage.cpp
native/jni/init/twostage.cpp
+1
-1
No files found.
native/jni/init/twostage.cpp
View file @
754e6902
...
@@ -64,7 +64,7 @@ void LegacySARInit::first_stage_prep() {
...
@@ -64,7 +64,7 @@ void LegacySARInit::first_stage_prep() {
xmkdir
(
"/data/.backup"
,
0
);
xmkdir
(
"/data/.backup"
,
0
);
xmkdir
(
"/data/overlay.d"
,
0
);
xmkdir
(
"/data/overlay.d"
,
0
);
restore_folder
(
"/data/overlay.d"
,
overlays
);
restore_folder
(
"/data/overlay.d"
,
overlays
);
int
cfg
=
xopen
(
"/data/.backup/
config
"
,
O_WRONLY
|
O_CREAT
,
0
);
int
cfg
=
xopen
(
"/data/.backup/
.magisk
"
,
O_WRONLY
|
O_CREAT
,
0
);
xwrite
(
cfg
,
magisk_cfg
.
buf
,
magisk_cfg
.
sz
);
xwrite
(
cfg
,
magisk_cfg
.
buf
,
magisk_cfg
.
sz
);
close
(
cfg
);
close
(
cfg
);
}
}
...
...
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