惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Blog — PlanetScale
Blog — PlanetScale
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
The Last Watchdog
The Last Watchdog
AI
AI
Recent Announcements
Recent Announcements
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Stack Overflow Blog
Stack Overflow Blog
V
Visual Studio Blog
J
Java Code Geeks
TaoSecurity Blog
TaoSecurity Blog
L
LangChain Blog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Project Zero
Project Zero
Microsoft Security Blog
Microsoft Security Blog
量子位
T
Threatpost
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
博客园 - Franky
博客园 - 聂微东
L
LINUX DO - 最新话题
Security Archives - TechRepublic
Security Archives - TechRepublic
Hugging Face - Blog
Hugging Face - Blog
T
The Blog of Author Tim Ferriss
P
Proofpoint News Feed
The GitHub Blog
The GitHub Blog
C
Check Point Blog
宝玉的分享
宝玉的分享
G
Google Developers Blog
Spread Privacy
Spread Privacy
Cloudbric
Cloudbric
SecWiki News
SecWiki News
有赞技术团队
有赞技术团队
www.infosecurity-magazine.com
www.infosecurity-magazine.com
W
WeLiveSecurity
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
美团技术团队
V
Vulnerabilities – Threatpost
Cyberwarzone
Cyberwarzone
A
Arctic Wolf
P
Privacy & Cybersecurity Law Blog
P
Palo Alto Networks Blog
H
Help Net Security
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Cisco Talos Blog
Cisco Talos Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
A
About on SuperTechFans
N
Netflix TechBlog - Medium
罗磊的独立博客
月光博客
月光博客

C++

小孩马上高一,但是想学信奥赛 c++,有什么学 c++的书推荐? - V2EX 真是意想不到的操作:有好几个人一起协作向 C++库 fmtlib 加上了 C11 包装接口,确实能用 - V2EX 基于 C++20 协程编写 gRPC 客户端与服务端 似乎在 C 的领域,让一个新程序“为未来准备好”是一件很麻烦的事 - V2EX 请教各位 centos 7.9 通过 devtoolset 启用 c++14/17 时遇到的链接问题 - V2EX 求大佬指点:Windows 上 c++部署最新 Paddleocr,无法通过内存识字 - V2EX 为 c++ 提供模式匹配 - V2EX 分享一下我个人开源的 C++23 协程网络框架 - V2EX 为什么写 C++的人年龄偏大? - V2EX 大型 c++项目,在 ai 帮助下完成 Linux 平台移植,可行性多大? - V2EX 少用 auto - V2EX 再一次感觉到 C++的恶心 - V2EX 分布式存储 - V2EX [求助] Linux 有什么好的引入 c++ 第三方库的方案 - V2EX [求助]请教一个 C++多线程的性能问题 - V2EX 2026 年找 C++的开发工作,应该学习 C++的哪个版本? - V2EX 分布式系统 - V2EX 使用匿名结构体指针作为常量来杜绝魔数,是否合理/值得? - V2EX 有没有什么工具可以统计 C++项目里标识符的使用情况? - V2EX 看到一些 C++ 或者 C#项目 驼峰和下划线一块用,为啥泥? - V2EX [求助] Linux 系统下动态库卸载后全局变量未重置的问题 - V2EX [有偿] 小白, Windows UI Automation TextPattern 检测问题求助 - V2EX 小白问个 vcpkg 相关的问题 - V2EX 记录一次踩坑过程(clion + cmake + vcpkg) - V2EX 用智能指针管理 ffmpeg 中的数据结构是有必要的吗? - V2EX 定位重载的插件或者 IDE - V2EX 想系统的学习 Modern C++,麻烦大佬们推荐一些书籍 - V2EX 困扰几天的问题,这是被 gcc 优化了吗? - V2EX 好的 c++代码是什么样的 - V2EX 为什么 C/C++ 语言的标准库不做成 Java 那样可安装的运行时? - V2EX CLion 提供非商业免费使用了 - V2EX MFC c++对话框项目使用 httplib 创建静态资源服务, Debug 时每次访问都会被断下是什么原因 - V2EX c++调试遇到奇怪问题 - V2EX 求推荐 C++ 高性能的 web 框架, curd 用 - V2EX 一个项目下有多个 cpp 程序的源文件以及多个程序共用的源文件与头文件, vscode 的 clangd 插件与 compile_commands.json 该如何配置 - V2EX C++库脚手架项目及思考 - V2EX 有人遇到过 vs2022 c++代码高亮不生效的问题吗? - V2EX 使用 C++20 协程与 ASIO 库写了个 Socks5 Server 的跨平台 Demo 程序,几乎全功能,单文件源码少于一千行 - V2EX 小众论坛问个好奇的问题关于 c++ - V2EX 市面上大部分 c++程序员都在 c++98 水平吧? - V2EX cpp 一个隐式转换奇怪的现象 - V2EX C++入门书籍,我是不是被坑了? - V2EX mac clion 调试怎么才能看到 stl 容器的值 - V2EX 有没有合适开源的 C++项目可以快速实现一些功能 - V2EX 用 c++实现 bluez 对于 31 个字节蓝牙广播限制的问题 - V2EX 寻找一个在线运行 c++的方案 - V2EX 这种情况如何消除几百个 if/else - V2EX cmake + googletest 的目录结构最佳实践是? - V2EX 为什么打印模板元编程计算阶乘结果,比打印 for 循环计算阶乘结果更耗时 - V2EX Asio 异步模型 - V2EX 求教, mac 下 cmake c++工程编译后 elf 里面还有很多路径字符串 - V2EX C 怎么进阶学 C++呀
交叉编译 asop android adb 最新版的问题 - V2EX
ChainLock · 2025-09-05 · via C++

这是一个创建于 282 天前的主题,其中的信息可能已经有所发展或是发生改变。

目标:交叉编译 android adb,放到嵌入式板子上面执行

android 源码已经下载好

mkdir -p ~/.bin
PATH="${HOME}/.bin:${PATH}"
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/.bin/repo
chmod a+rx ~/.bin/repo

repo init --partial-clone -b android-latest-release -u https://android.googlesource.com/platform/manifest

repo sync -c -j8

packages/modules/adb 目录下面新版的 asop 已经没有 Android.mk,只有 Android.bp

已经跟 chatgpt 对线了 3 天,依旧没有搞出来,望搞过来的大佬指点一下,必须得用新版来编译,我在 csdn 参考了这编文章 aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2Rpc2FwcGVhcnNfbmljay9hcnRpY2xlL2RldGFpbHMvMTE3MDMxNzQz

可以交叉编译成功,版本是 1.0.31,最新版本已经是 1.0.41,将编译好 adb 放到板子上面运行时

adb connect 128.0.12.109:5555
connected to 128.0.12.109:5555

adb devices
List of devices attached
128.0.12.109:5555  offline  一直是离线状态,导致不可用
CFM880

1

CFM880      2025 年 9 月 5 日

https://github.com/lzhiyong/android-sdk-tools

这个试试看看,这个里面的 release 正好是 1.0.41 的,先用用看

其实 google 搜索 android tools aarch64 应该就有

```shell
[cfm880@alarm ~]$ cd Downloads/android-sdk-tools-static-aarch64
[cfm880@alarm android-sdk-tools-static-aarch64]$ ls
build-tools others platform-tools
[cfm880@alarm android-sdk-tools-static-aarch64]$ cd platform-tools/
[cfm880@alarm platform-tools]$ file adb
adb: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), statically linked, for Android 30, built by NDK r27b (0), not stripped
[cfm880@alarm platform-tools]$ ./adb
Android Debug Bridge version 1.0.41
Version 35.0.2-
Installed as /home/cfm880/Downloads/android-sdk-tools-static-aarch64/platform-tools/adb
Running on Linux 6.14.0-1-nabu-gdefb39db31e6-dirty (aarch64)

```

ChainLock

2

ChainLock      2025 年 9 月 5 日

@CFM880 我试了一下,将可执行程序上传到板子上面,运行不了

adb start-server
* daemon not running; starting now at tcp:5037
ADB server didn't ACK
Full server startup log: /tmp/adb.0.log
Server had pid: 21740
--- adb starting (pid 21740) ---
01-02 20:03:58.717 21740 21740 I adb : main.cpp:63 Android Debug Bridge version 1.0.41
01-02 20:03:58.717 21740 21740 I adb : main.cpp:63 Version 35.0.2-
01-02 20:03:58.717 21740 21740 I adb : main.cpp:63 Installed as /home/input/adb
01-02 20:03:58.717 21740 21740 I adb : main.cpp:63 Running on Linux 5.10.0 (aarch64)
01-02 20:03:58.717 21740 21740 I adb : main.cpp:63
01-02 20:03:58.719 21740 21740 I adb : auth.cpp:416 adb_auth_init...
01-02 20:03:58.720 21740 21740 I adb : auth.cpp:220 User key '/root/.android/adbkey' does not exist...
01-02 20:03:58.720 21740 21740 I adb : auth.cpp:64 generate_key(/root/.android/adbkey)...
01-02 20:03:59.108 21740 21740 I adb : auth.cpp:152 loaded new key from '/root/.android/adbkey' with fingerprint B9D47D55AB7EC3441039C376A8805FF3170D1A212B7DB9DE36680EF93CA5D7AC
01-02 20:03:59.108 21740 21740 I adb : auth.cpp:391 adb_auth_inotify_init...
fdsan: failed to exchange ownership of file descriptor: fd 11 is owned by unique_fd 0x7e4e407e78, was expected to be unowned
libc: fdsan: failed to exchange ownership of file descriptor: fd 11 is owned by unique_fd 0x7e4e407e78, was expected to be unowned

* failed to start daemon
error: cannot connect to daemon
/home/input # cat /tmp/adb.0.log
--- adb starting (pid 13449) ---
01-02 19:59:30.372 13449 13449 I adb : main.cpp:63 Android Debug Bridge version 1.0.41
01-02 19:59:30.372 13449 13449 I adb : main.cpp:63 Version 35.0.2-
01-02 19:59:30.372 13449 13449 I adb : main.cpp:63 Installed as /home/input/adb
01-02 19:59:30.372 13449 13449 I adb : main.cpp:63 Running on Linux 5.10.0 (aarch64)
01-02 19:59:30.372 13449 13449 I adb : main.cpp:63
01-02 19:59:30.374 13449 13449 I adb : auth.cpp:416 adb_auth_init...
01-02 19:59:30.375 13449 13449 I adb : auth.cpp:152 loaded new key from '/root/.android/adbkey' with fingerprint 92B5D8B6EA2917C3776C2AFDE0BF27B4DE42B88990FE0E5B10C74497111E43ED
01-02 19:59:30.375 13449 13449 I adb : auth.cpp:391 adb_auth_inotify_init...
fdsan: failed to exchange ownership of file descriptor: fd 11 is owned by unique_fd 0x7f161cf158, was expected to be unowned
libc: fdsan: failed to exchange ownership of file descriptor: fd 11 is owned by unique_fd 0x7f161cf158, was expected to be unowned
--- adb starting (pid 1247) ---
01-02 20:00:21.829 1247 1247 I adb : main.cpp:63 Android Debug Bridge version 1.0.41
01-02 20:00:21.829 1247 1247 I adb : main.cpp:63 Version 35.0.2-
01-02 20:00:21.829 1247 1247 I adb : main.cpp:63 Installed as /home/input/adb
01-02 20:00:21.829 1247 1247 I adb : main.cpp:63 Running on Linux 5.10.0 (aarch64)
01-02 20:00:21.829 1247 1247 I adb : main.cpp:63
01-02 20:00:21.831 1247 1247 I adb : auth.cpp:416 adb_auth_init...
01-02 20:00:21.832 1247 1247 I adb : auth.cpp:152 loaded new key from '/root/.android/adbkey' with fingerprint 92B5D8B6EA2917C3776C2AFDE0BF27B4DE42B88990FE0E5B10C74497111E43ED
01-02 20:00:21.832 1247 1247 I adb : auth.cpp:391 adb_auth_inotify_init...
fdsan: failed to exchange ownership of file descriptor: fd 11 is owned by unique_fd 0x7f63825398, was expected to be unowned
libc: fdsan: failed to exchange ownership of file descriptor: fd 11 is owned by unique_fd 0x7f63825398, was expected to be unowned
--- adb starting (pid 21740) ---
01-02 20:03:58.717 21740 21740 I adb : main.cpp:63 Android Debug Bridge version 1.0.41
01-02 20:03:58.717 21740 21740 I adb : main.cpp:63 Version 35.0.2-
01-02 20:03:58.717 21740 21740 I adb : main.cpp:63 Installed as /home/input/adb
01-02 20:03:58.717 21740 21740 I adb : main.cpp:63 Running on Linux 5.10.0 (aarch64)
01-02 20:03:58.717 21740 21740 I adb : main.cpp:63
01-02 20:03:58.719 21740 21740 I adb : auth.cpp:416 adb_auth_init...
01-02 20:03:58.720 21740 21740 I adb : auth.cpp:220 User key '/root/.android/adbkey' does not exist...
01-02 20:03:58.720 21740 21740 I adb : auth.cpp:64 generate_key(/root/.android/adbkey)...
01-02 20:03:59.108 21740 21740 I adb : auth.cpp:152 loaded new key from '/root/.android/adbkey' with fingerprint B9D47D55AB7EC3441039C376A8805FF3170D1A212B7DB9DE36680EF93CA5D7AC
01-02 20:03:59.108 21740 21740 I adb : auth.cpp:391 adb_auth_inotify_init...
fdsan: failed to exchange ownership of file descriptor: fd 11 is owned by unique_fd 0x7e4e407e78, was expected to be unowned
libc: fdsan: failed to exchange ownership of file descriptor: fd 11 is owned by unique_fd 0x7e4e407e78, was expected to be unowned

CFM880

5

CFM880      2025 年 9 月 8 日

小米平板 5 的 archlinuxarm

ChainLock

6

ChainLock      2025 年 9 月 11 日

@CFM880 #5 佬,可以加 wx 聊一下吗,b3dpX2NpdHk=

还是有点问题想请教一下