mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-08-20 08:47:32 +00:00
Make db settings constructor more readable
This commit is contained in:
@@ -26,10 +26,10 @@ int db_strings::getKeyIdx(string_view key) const {
|
|||||||
|
|
||||||
db_settings::db_settings() {
|
db_settings::db_settings() {
|
||||||
// Default settings
|
// Default settings
|
||||||
data[0] = ROOT_ACCESS_APPS_AND_ADB;
|
data[ROOT_ACCESS] = ROOT_ACCESS_APPS_AND_ADB;
|
||||||
data[1] = MULTIUSER_MODE_OWNER_ONLY;
|
data[SU_MULTIUSER_MODE] = MULTIUSER_MODE_OWNER_ONLY;
|
||||||
data[2] = NAMESPACE_MODE_REQUESTER;
|
data[SU_MNT_NS] = NAMESPACE_MODE_REQUESTER;
|
||||||
data[3] = 1;
|
data[HIDE_CONFIG] = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
int db_settings::getKeyIdx(string_view key) const {
|
int db_settings::getKeyIdx(string_view key) const {
|
||||||
|
Reference in New Issue
Block a user