Android nfc编译,【Android编译】各个模块编译方法
一、如何編譯出vendor.img
1. 首先找到產(chǎn)品對(duì)應(yīng)BoardConfig.mk
路徑:LINUX/android/
device/項(xiàng)目/產(chǎn)品/BoardConfig.mk
2. 修改BoardConfig.mk
設(shè)置下面代碼中的ENABLE_VENDOR_IMAGE為true。
#Enable split vendor image
ENABLE_VENDOR_IMAGE := true
#ENABLE_VENDOR_IMAGE := false
ifeq ($(ENABLE_VENDOR_IMAGE), true)
BOARD_VENDORIMAGE_PARTITION_SIZE := 838860800
BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4
TARGET_COPY_OUT_VENDOR := vendor
BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true
endif
3. 編譯
make vendorimage -j4
二、如何編譯packages/apps/Settings并進(jìn)行push
1)進(jìn)入packages/apps/Settings 執(zhí)行mm;
2)執(zhí)行
adb root;
adb disable-verity;
adb remount;
adb push out/target/product/***/system/priv-app/Settings/Settings.apk system/priv-app/Settings/
三、如何編譯frameworks/base/packages/SettingsLib
1. 修改frameworks/base/packages/SettingsLib/Android.mk
屏蔽Android.mk里面的最后一行,如下
# For the test package.
#include $(call all-makefiles-under, $(LOCAL_PATH))
2.?編譯
source ./build/envsetup.sh
lunch ***
進(jìn)入frameworks/base/packages/SettingsLib目錄下
執(zhí)行mm
3.?【注意】
frameworks/base/packages/SettingsLib下的修改如何編譯后進(jìn)行push到手機(jī)?
解決方案:
1)進(jìn)入packages/apps/Settings 執(zhí)行mm;
2)執(zhí)行
adb root;
adb disable-verity;
adb remount;
adb push out/target/product/***/system/priv-app/Settings/Settings.apk system/priv-app/Settings/
3)如果
有l(wèi)ib文件生成,則也要進(jìn)行adb push操作。
四、編譯boot.img
make bootimage
五、編譯package/app/Nfc
make?NfcNci
總結(jié)
以上是生活随笔為你收集整理的Android nfc编译,【Android编译】各个模块编译方法的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 试卷8449c 语言,二级C语言上机题库
- 下一篇: keil C对lib封装库反汇编成C语言