-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android 模拟器运行问题 #6
Comments
你可能需要自行构建 x86_64 的 image,Android 模拟器里面的 ndk_translation 会把 arm 指令转译成 x86 的,但很可能在 chroot 出来的 debian 系统不生效 |
使用这个版本后可以成功进入 SSH了,感谢大佬。 不过没有找到演示视频里一样的 vmlinux 路径,可能需要出厂 Android 12 的真机才有完整的 eBPF 支持? |
可能需要一些内核头文件? 内核是4.19,我编译通过后,执行报错,提示没有开启 Unable to find kernel headers. Try rebuilding kernel with CONFIG_IKHEADERS=m (module) or installing the kernel development package for your running kernel version. 不过提示可以指定内核源代码目录,根据bcc文档,可以在编译前设置 下载了手机内核的源代码,指定了重新编译测试,还是会找不到部分头文件,后来确认是结构不一样 然后发现安卓内核源代码一般都有个 这样的话可能可以适配更多4.x系列内核的手机 |
我看过 Android 12 模拟器的内核配置,从参数上看是可以的;如果有问题,可以把日志或者输出啥的贴出来。 |
环境为 AVD 启动的 Android 12.0 Pixel 2,使用 63e6e2e 的 Actions 构建版本。
在
eadb prepare
后执行eadb shell
,产生如下报错后连接被关闭The text was updated successfully, but these errors were encountered: