Merge "[MTE] Allow to specify default MTE mode on system property."
This commit is contained in:
committed by
Android (Google) Code Review
commit
2e2ab6f10d
@@ -1723,6 +1723,12 @@ public final class ProcessList {
|
||||
return Zygote.MEMORY_TAG_LEVEL_TBI;
|
||||
}
|
||||
|
||||
String defaultLevel = SystemProperties.get("persist.arm64.memtag.app_default");
|
||||
if ("sync".equals(defaultLevel)) {
|
||||
return Zygote.MEMORY_TAG_LEVEL_SYNC;
|
||||
} else if ("async".equals(defaultLevel)) {
|
||||
return Zygote.MEMORY_TAG_LEVEL_ASYNC;
|
||||
}
|
||||
return Zygote.MEMORY_TAG_LEVEL_NONE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user