Loading a custom kernel module

青春壹個敷衍的年華 提交于 2019-12-08 05:16:14

问题


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).

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.


回答1:


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.



来源:https://stackoverflow.com/questions/6368995/loading-a-custom-kernel-module

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!