将预构建的APK添加到Android AOSP system.img [英] Add prebuilt APKs to Android AOSP system.img

查看:91
本文介绍了将预构建的APK添加到Android AOSP system.img的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在从源代码构建AOSP.我想做的是在生成过程中,在生成的system.img中包含一些预构建的文件.我正在尝试查找创建system.img的实际文件,并在其中添加几行.有什么主意吗?

I'm building AOSP from source. What I would like to do is to include a few prebuilt files in the generated system.img as part of the make process. I'm trying to find the actual file that creates the system.img and add a few lines there. Any idea?

谢谢.

推荐答案

将自定义文件添加到system.img的一种好方法是将它们添加到vendor/your_name/product_you_want_to_add_them/proprietary/your_files_go_here下,并添加一个名为device-product_name.mk的自定义生成文件.

A good way of adding custom files to the system.img is to add them under vendor/your_name/product_you_want_to_add_them/proprietary/your_files_go_here and add a custom make file called device-product_name.mk.

完成此操作后,只需定义要从专有文件夹及其内部复制哪些文件即可(例如,vendor/samsung/crespo/device-vendor.mk add以调用您的设备制造文件).

After that's done, just define which files are to be copied from the proprietary folder and inside (e.g. vendor/samsung/crespo/device-vendor.mk add to call your device make file).

这篇关于将预构建的APK添加到Android AOSP system.img的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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