Android 设备开机时是否可以安装 HAL 驱动程序?
我认为这个任务对于 Android 模拟器来说更容易。我们只需创建新图像并重新启动模拟器。虽然启动模拟器需要较长的周期,但很安全。但我想知道,我们可以在设备上上传几个 .so 文件并测试 HAL 驱动程序吗?如果是这样,最好测试一下驱动程序,因为在模拟器上我们没有足够的硬件来玩。
谢谢!
I think this task is easier for Android emulator. We just create new images and reboot emulator. Though it takes a long cycle to boot emulator, it is safe. But I am wondering, can we just upload several .so files on device and test the HAL driver? If so, it would be great to test the driver since on emulator we do not have enough hardware to play with.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不确定这是否适用于所有情况,但在开发相机 HAL 时绝对适用于我们。
是的,您可以上传so文件。
设备必须已root。
使用
我建议备份原始文件。这样,当设备由于您的更改而重新启动并且未出现时,您可能有机会 adb 到它,用原始文件替换文件并使设备恢复生机。
您还可以备份主机上的文件,并在出现问题时将其推回原处,但我没有使用此选项。
重新启动使用此 HAL 的服务。
如果是相机,它就是媒体
问候
Not sure if this works in all cases but definitely works for us while developing camera HAL.
Yes, you can upload so files.
Device must be rooted.
Use
I suggest to backup original files. This way when device reboots due to your changes and does not come up you may have a chance to adb to it, replace the files with originals and bring device back to life.
You can also backup the files on your host pc and push them back in case of trouble but I did not use this option.
Restart the service which uses this HAL.
In case of camera it is media
Regards
这可能是一个很好的参考。
http://www.androidenea.com/2009/09 /starting-android-service-after-boot.html
This might be a good reference.
http://www.androidenea.com/2009/09/starting-android-service-after-boot.html