android - 写安卓驱动?

标签 android kernel device-driver

我需要开发一些适用于 Android4SAM 评估板的 android 驱动程序。 我开始在 Linux 内核中将驱动程序编写为普通字符驱动程序,并且它们按计划工作。下一步是什么?,我没有找到任何有关设备驱动程序移植到 android 以及为这些驱动程序扩展 android API 的信息。 任何人都有这方面的经验,也许是一个小教程或指南?

最佳答案

根据我的经验(4.0 之前),您需要查看制造商安装在设备上的内核(可以在他们的网站上找到它 - 通常他们会提供源代码)。然后你可以将你的模块(驱动程序)编译成这个并用它刷新手机或者在第一次运行时安装模块,这需要 root 权限才能完成。

关于android - 写安卓驱动?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7036435/

相关文章:

linux - 对 "kernel process"的疑问

c - Linux 内核模块中 x87 内联汇编中的操作数类型不匹配

gdb - 如何从 uImage (arm) 中提取内核符号?

linux - 如何学习Linux无线驱动(mac80211)的结构?

c# - 以编程方式启用/禁用硬件设备

android - NetworkOnMainThread 与 Scheduler.io()

android - 移动应用 : restful api or sdk dynamodb

android - 将应用程序发布到 Google Play 商店时的库许可

android - 我需要从原始文件夹动态添加通知声音 - Android

linux-kernel - Linux函数class_device_create改为?