增加写入拨号,读取数据,优化无障碍

This commit is contained in:
2025-07-08 02:35:26 +08:00
parent 4b86e4fd02
commit 4ad7351a58
11 changed files with 402 additions and 28 deletions

View File

@@ -0,0 +1,15 @@
package com.ttstd.elderlyassistant.utils;
public class HexUtils {
// 字节数组转16进制字符串优化版
public static String bytesToHexString(byte[] bytes) {
if (bytes == null) return "";
StringBuilder sb = new StringBuilder();
for (byte b : bytes) {
sb.append(String.format("%02X", b)); // 直接格式化为大写16进制
}
return sb.toString();
}
}