加载定制的内核模块 [英] Loading a custom kernel module

查看:197
本文介绍了加载定制的内核模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我公司正在研究我们的Linux应用程序到Android的一个可能的端口。其中该应用程序的关键部分是我们的内核模块。我不知道有关Android设备的工作原理和手头没有设备,但我有一个广泛的Linux内核的经验。我能想象的方式来构建Android的LKM,但我完全不知道它实际上是可能的Andr​​oid应用程序设置其自定义内核模块加载在Android设备上。难道Android设备实际运行启用的模块的内核?如果是的话有可能是一个Android应用程序以某种方式直接加载内核模块(通过insmod的)或间接(通过删除内核模块和修改引导脚本加载它,例如设备启动)?

My company is researching a possible port of our Linux application to Android. One of the key parts of this application is our kernel module. I have no idea about how Android devices work and no device at hand, but i have an extensive Linux kernel experience. I can imagine a way to build an LKM for Android but i have absolutely no idea is it actually possible for an Android application to setup its custom kernel module for loading on an Android device. Do Android devices actually run module-enabled kernels? If yes is it possible for an Android application to somehow load a kernel module directly (via insmod) or indirectly (by dropping a kernel module and modifying boot scripts to load it on device startup for example)?

这是没有必要的应用程序本身要能够加载模块,但一次修改系统在启动时加载我的模块(通过一种安装程序,如果你愿意)。

It is not necessary for the app itself to be able to load modules but to modify the system once to load my module on startup (by a kind of installer application if you will).

我知道与模块的支持来构建自己的Andr​​oid内核和设备上成像它的可能性,但是,这不是一个最终用户应用的选项。

I am aware of the possibility to build your own Android kernel with module support and imaging it on the device but this is not an option for an end-user application.

推荐答案

我不认为这是可能的一个无根的设备上。加载自定义内核模块意味着你必须对系统的完全控制,而Android第三方应用程序不应该有这样的控制。

I don't think this is possible on an unrooted device. Loading custom kernel modules means you have full control over the system, and Android 3rd party apps are not supposed to have such control.

这篇关于加载定制的内核模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆