Giter Club home page Giter Club logo

Comments (5)

tiann avatar tiann commented on August 22, 2024

你可能需要自行构建 x86_64 的 image,Android 模拟器里面的 ndk_translation 会把 arm 指令转译成 x86 的,但很可能在 chroot 出来的 debian 系统不生效

from eadb.

tiann avatar tiann commented on August 22, 2024

你可以试下这个 https://github.com/tiann/eadb/actions/runs/2541671847

from eadb.

StarHeartHunt avatar StarHeartHunt commented on August 22, 2024

你可以试下这个 https://github.com/tiann/eadb/actions/runs/2541671847

使用这个版本后可以成功进入 SSH了,感谢大佬。

不过没有找到演示视频里一样的 vmlinux 路径,可能需要出厂 Android 12 的真机才有完整的 eBPF 支持?

from eadb.

SeeFlowerX avatar SeeFlowerX commented on August 22, 2024

可能需要一些内核头文件?

内核是4.19,我编译通过后,执行报错,提示没有开启CONFIG_IKHEADERS

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文档,可以在编译前设置BCC_KERNEL_SOURCE环境变量指定内核源代码目录

下载了手机内核的源代码,指定了重新编译测试,还是会找不到部分头文件,后来确认是结构不一样

然后发现安卓内核源代码一般都有个kernel_headers.py,感觉有办法生成bcc需要的一致的源代码结构

这样的话可能可以适配更多4.x系列内核的手机

from eadb.

tiann avatar tiann commented on August 22, 2024

不过没有找到演示视频里一样的 vmlinux 路径,可能需要出厂 Android 12 的真机才有完整的 eBPF 支持?

我看过 Android 12 模拟器的内核配置,从参数上看是可以的;如果有问题,可以把日志或者输出啥的贴出来。

from eadb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.