Giter VIP home page Giter VIP logo

Comments (13)

cfc4n avatar cfc4n commented on June 7, 2024 2

Good suggestion, I will evaluate it.

from ecapture.

cfc4n avatar cfc4n commented on June 7, 2024 1

@hongyang51 在你的开发板设备上, config的路径是什么呢?

from ecapture.

XiaoliChan avatar XiaoliChan commented on June 7, 2024

Can confirm /sys/kernel/btf/vmlinux is existed in redroid
image

from ecapture.

cfc4n avatar cfc4n commented on June 7, 2024

Not all androids will have /sys/kernel/btf/vmlinux present. I intend to be compatible with both cases.

from ecapture.

XiaoliChan avatar XiaoliChan commented on June 7, 2024

Not all androids will have /sys/kernel/btf/vmlinux present. I intend to be compatible with both cases.

Sweet, I'm looking forward to using it with redroid👍

from ecapture.

cfc4n avatar cfc4n commented on June 7, 2024

Can you check where the '/proc/config.gz' file has been changed on your Redroid device?

from ecapture.

XiaoliChan avatar XiaoliChan commented on June 7, 2024

Can you check where the '/proc/config.gz' file has been changed on your Redroid device?

I have tried many times with the Redroid (with Android 12-13), but it looks like /proc/config.gz has been removed and I can't find where it is.
image

So, I think maybe Redroid has done something like cleaning when building the image.

Reference:

from ecapture.

XiaoliChan avatar XiaoliChan commented on June 7, 2024

Okay, I know what happens now, so the IsContainer function in bpf_androidgki.go is not done yet

Force return true in IsContainer function to make it work
image

from ecapture.

cfc4n avatar cfc4n commented on June 7, 2024

The IsContainer function does not return true directly, and some features need to be detected. What are the characteristics of Redroid that are different from Android? Like a file? A configuration?

from ecapture.

XiaoliChan avatar XiaoliChan commented on June 7, 2024

What are the characteristics of Redroid that are different from Android? Like a file? A configuration?

TBH, I also don't know what the difference between them XD.
The reason why I use Redroid is it just a docker container and it is easy to deploy it. One thing I can confirm is ecapture can work properly on redroid.

from ecapture.

cfc4n avatar cfc4n commented on June 7, 2024

Well, it looks like a niche need. I'm not going to fix it to the project, what do you think?

from ecapture.

XiaoliChan avatar XiaoliChan commented on June 7, 2024

Well, it looks like a niche need. I'm not going to fix it to the project, what do you think?

Well, maybe need a --force arg and don't need to fix the IsContainer function

from ecapture.

hongyang51 avatar hongyang51 commented on June 7, 2024

@hongyang51 在你的开发板设备上, config的路径是什么呢?

/boot/config* , 但是我只是修改了检索的路径,修改为/data/local/config.gz 可以手动push上去。
校验与否对我来说实际不太重要

from ecapture.

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.