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
195d8858
Commit
195d8858
authored
Jan 20, 2022
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduce log spamming
parent
519bd2f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
getinfo.cpp
native/jni/init/getinfo.cpp
+3
-7
No files found.
native/jni/init/getinfo.cpp
View file @
195d8858
...
...
@@ -204,7 +204,6 @@ if (access(file_name, R_OK) == 0) { \
string data = full_read(file_name); \
if (!data.empty()) { \
data.pop_back(); \
LOGD(name "=[%s]\n", data.data()); \
strlcpy(config->key, data.data(), sizeof(config->key)); \
} \
}
...
...
@@ -223,12 +222,7 @@ void load_kernel_info(BootConfig *config) {
setup_klog
();
config
->
set
(
parse_cmdline
(
full_read
(
"/proc/cmdline"
)));
LOGD
(
"Kernel cmdline info:
\n
"
);
config
->
print
();
config
->
set
(
parse_bootconfig
(
full_read
(
"/proc/bootconfig"
)));
LOGD
(
"Boot config info:
\n
"
);
config
->
print
();
parse_prop_file
(
"/.backup/.magisk"
,
[
=
](
auto
key
,
auto
value
)
->
bool
{
if
(
key
==
"RECOVERYMODE"
&&
value
==
"true"
)
{
...
...
@@ -242,11 +236,13 @@ void load_kernel_info(BootConfig *config) {
if
(
config
->
dt_dir
[
0
]
==
'\0'
)
strlcpy
(
config
->
dt_dir
,
DEFAULT_DT_DIR
,
sizeof
(
config
->
dt_dir
));
LOGD
(
"Device tree:
\n
"
);
char
file_name
[
128
];
read_dt
(
"fstab_suffix"
,
fstab_suffix
)
read_dt
(
"hardware"
,
hardware
)
read_dt
(
"hardware.platform"
,
hardware_plat
)
LOGD
(
"Device config:
\n
"
);
config
->
print
();
}
bool
check_two_stage
()
{
...
...
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