Rearchitect logging

This commit is contained in:
topjohnwu
2022-07-06 01:16:08 -07:00
parent 2e52875b50
commit 70fd03d5fc
14 changed files with 172 additions and 154 deletions
+2 -3
View File
@@ -6,8 +6,7 @@ using namespace std;
void sepolicy::magisk_rules() {
// Temp suppress warnings
auto bak = log_cb.w;
log_cb.w = nop_log;
set_log_level_state(LogLevel::Warn, false);
// This indicates API 26+
bool new_rules = exists("untrusted_app_25");
@@ -196,5 +195,5 @@ void sepolicy::magisk_rules() {
impl->strip_dontaudit();
#endif
log_cb.w = bak;
set_log_level_state(LogLevel::Warn, true);
}