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
4dc0d136
Commit
4dc0d136
authored
Feb 17, 2020
by
YU-YEN HSU
Committed by
John Wu
Mar 09, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Xiaomi cross region flash hacks
parent
541fa5cb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
hide_policy.cpp
native/jni/magiskhide/hide_policy.cpp
+10
-0
No files found.
native/jni/magiskhide/hide_policy.cpp
View file @
4dc0d136
...
...
@@ -28,6 +28,16 @@ void hide_sensitive_props() {
if
(
!
value
.
empty
()
&&
value
!=
prop_value
[
i
])
setprop
(
prop_key
[
i
],
prop_value
[
i
],
false
);
}
// Xiaomi cross region flash
auto
hwc
=
getprop
(
"ro.boot.hwc"
);
if
(
!
hwc
.
empty
()
&&
hwc
.
find
(
"China"
)
!=
string
::
npos
)
{
setprop
(
"ro.boot.hwc"
,
"GLOBAL"
,
false
);
}
auto
hwcountry
=
getprop
(
"ro.boot.hwcountry"
);
if
(
!
hwcountry
.
empty
()
&&
hwcountry
.
find
(
"CN"
)
!=
string
::
npos
)
{
setprop
(
"ro.boot.hwcountry"
,
"GLOBAL"
,
false
);
}
}
static
inline
void
lazy_unmount
(
const
char
*
mountpoint
)
{
...
...
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