如何将一个已经编译好的so文件编译进system/lib64目录下

来源:互联网 发布:智能网络推广系统 编辑:程序博客网 时间:2024/05/22 13:24
在proting fingerprint sensor的时候,厂商给出的guide里需要将libvfmClient.so放入
机台的system/lib64目录下


具体的做法如下:
首先在源码中搜寻是否有类似的做法,因为so文件需要编译之后才可以使用,不能直接cp


在frameworks/native/opengl/libs目录下的
Android.mk文件中加入
###############################################################################
include $(CLEAR_VARS)


LOCAL_SRC_FILES:= \
libvfmClient.so \
#




LOCAL_MODULE:= libvfmClient




#


include $(BUILD_SHARED_LIBRARY)
###############################################################################
编译mmm frameworks/native/opengl/libs/之后发现
Export includes file: frameworks/native/opengl/libs/Android.mk -- out/target/product/Z00L/obj/SHARED_LIBRARIES/libvfmClient_intermediates/export_includes
target Strip: libvfmClient (out/target/product/Z00L/obj/lib/libvfmClient.so)
Install: out/target/product/Z00L/system/lib64/libvfmClient.so
这样的编译结果表面编译成功了
0 0
原创粉丝点击