retrieve security and network logs

This commit is contained in:
BinTianqi
2024-02-11 20:24:03 +08:00
parent 119222fdfe
commit 1ea203d331
13 changed files with 138 additions and 105 deletions

View File

@@ -42,11 +42,11 @@ fun SysUpdatePolicy(){
Text(text = "Update first available: ${Date(sysUpdateInfo.receivedTime)}", style = bodyTextStyle)
Text(text = "Hash code: ${sysUpdateInfo.hashCode()}", style = bodyTextStyle)
val securityStateDesc = when(sysUpdateInfo.securityPatchState){
SystemUpdateInfo.SECURITY_PATCH_STATE_UNKNOWN->"SECURITY_PATCH_STATE_UNKNOWN"
SystemUpdateInfo.SECURITY_PATCH_STATE_TRUE->"SECURITY_PATCH_STATE_TRUE"
else->"SECURITY_PATCH_STATE_FALSE"
SystemUpdateInfo.SECURITY_PATCH_STATE_UNKNOWN->"未知"
SystemUpdateInfo.SECURITY_PATCH_STATE_TRUE->""
else->""
}
Text(text = "Security patch state: $securityStateDesc", style = bodyTextStyle)
Text(text = "安全补丁: $securityStateDesc", style = bodyTextStyle)
}else{
Text(text = "暂无系统更新", style = bodyTextStyle)
}