摘要: # 配置区域 $TargetMac = "00-55-7B-B5-7D-F7" # Android设备的MAC地址,用减号分隔 $TargetIP = "172.20.20.111" # Android设备的IP(用于检测何时关机) $BroadcastIP = "172.20.20.255" # 阅读全文
posted @ 2025-11-26 19:11 jarico 阅读(3) 评论(0) 推荐(0)
摘要: 针对您的情况(AOSP 代码量巨大、离线环境、无 root 权限、需安装在用户目录),我强烈推荐使用 GNU GLOBAL (Gtags) 配合 Universal Ctags。 为什么选择 GNU GLOBAL (Gtags)? 比 Ctags 强大:Ctags 只能跳到定义(Definition 阅读全文
posted @ 2025-11-24 18:43 jarico 阅读(11) 评论(0) 推荐(0)
摘要: export FW_PATH="$HOME/mydev/code/aosp13" cd $FW_PATH 阅读全文
posted @ 2025-11-23 19:39 jarico 阅读(4) 评论(0) 推荐(0)
摘要: 推荐一种改动最小,且不影响其他用户的 Vim 跳转 AOSP 代码的方法。我们会使用 ctags 工具,它能生成代码索引,而不需要互联网连接,也不会影响其他用户。 步骤:使用 ctags 生成索引并在 Vim 中跳转 1. 安装 ctags 首先确保你的环境中安装了 ctags。可以运行以下命令来检 阅读全文
posted @ 2025-11-23 19:18 jarico 阅读(7) 评论(0) 推荐(0)
摘要: vscode 配置 c/c++ [!CAUTION] 使用本文的配置需要预装cmake,msvc,拥有cmake、CMake Tools插件 工程目录 D:. │ CMakeLists.txt │ ├─.vscode │ CMakePresets.json │ c_cpp_properties.js 阅读全文
posted @ 2024-09-30 16:09 jarico 阅读(72) 评论(0) 推荐(0)
摘要: def binary_to_decimal(binary_str): return int(binary_str, 2) def octal_to_decimal(octal_str): return int(octal_str, 8) def decimal_to_decimal(decimal_ 阅读全文
posted @ 2024-09-29 14:14 jarico 阅读(19) 评论(0) 推荐(0)
摘要: python 使用 pyinstaller 打包 1、下载pyinstaller pip install pyinstaller 2、在当前目录下生成 .spec 文件 注意,这行命令在生成文件的时候,也打包了输出物 pyinstaller --name=pytasker main.py --one 阅读全文
posted @ 2024-09-29 11:40 jarico 阅读(222) 评论(0) 推荐(0)
摘要: Windows 使用 tree 命令 基本语法 tree [drive:][path] [/F] [/A] 参数说明 [drive:][path]:指定要显示树结构的驱动器和目录。如果未指定路径,则使用当前目录。 /F:显示每个文件夹中的文件名。 /A:使用ASCII字符而不是扩展字符来显示链接子目 阅读全文
posted @ 2024-09-26 19:05 jarico 阅读(1220) 评论(0) 推荐(1)
摘要: 读取文本十六进制,保存为图片 目录结构 D:\SFW\PY_TOOLS\PNGPY main.py mhex.txt output.png main.py def hex_to_png(hex_file, output_file): # 从文件中读取十六进制数据 with open(hex_file 阅读全文
posted @ 2024-09-26 18:49 jarico 阅读(380) 评论(0) 推荐(0)
摘要: 在 Python 中,json.dumps() 函数会将 Python 对象序列化为 JSON 字符串,并默认使用 UTF-8 编码来处理非 ASCII 字符。虽然在 Python 3 中,字符串是默认以 Unicode 形式存储的,但是当 json.dumps() 将 Python 字符串转换为 阅读全文
posted @ 2024-09-09 11:09 jarico 阅读(676) 评论(0) 推荐(0)