Android.mk 写法

目录放在odm/bundled_uninstall_back-app/VantronMdm/VantronMdm.apk

LOCAL_PATH := $(my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE := VantronMdm

LOCAL_MODULE_CLASS := APPS

LOCAL_MODULE_PATH := $(TARGET_OUT_ODM)/bundled_uninstall_back-app

LOCAL_SRC_FILES := (LOCAL_MODULE)(COMMON_ANDROID_PACKAGE_SUFFIX)

LOCAL_CERTIFICATE := platform

#LOCAL_DEX_PREOPT := false

LOCAL_MODULE_TAGS := optional

LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX)

LOCAL_JNI_SHARED_LIBRARIES_ABI := arm64

MY_LOCAL_PREBUILT_JNI_LIBS := \

lib/arm64/libaria2c.so\

lib/arm64/libjingle_peerconnection_so.so\

lib/arm64/libliteavsdk.so\

lib/arm64/libtxffmpeg.so\

lib/arm64/libtxsoundtouch.so

MY_APP_LIB_PATH := (TARGET_OUT_ODM)/bundled_uninstall_back-app/(LOCAL_MODULE)/lib/$(LOCAL_JNI_SHARED_LIBRARIES_ABI)

ifneq ($(LOCAL_JNI_SHARED_LIBRARIES_ABI), None)

(warning MY_APP_LIB_PATH=(MY_APP_LIB_PATH))

LOCAL_POST_INSTALL_CMD := mkdir -p $(MY_APP_LIB_PATH) $(foreach lib, $(MY_LOCAL_PREBUILT_JNI_LIBS), ; cp -f (LOCAL_PATH)/(lib) (MY_APP_LIB_PATH)/(notdir $(lib)))

endif

include $(BUILD_PREBUILT)

目录放在system/app/VantronMdm/VantronMdm.apk

###############################################################################

WifiDisplay

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE := VantronMdm

LOCAL_MODULE_CLASS := APPS

LOCAL_MODULE_TAGS := optional

LOCAL_BUILT_MODULE_STEM := package.apk

LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX)

LOCAL_PRIVILEGED_MODULE := false

#LOCAL_CERTIFICATE := PRESIGNED

LOCAL_CERTIFICATE := platform

#LOCAL_OVERRIDES_PACKAGES :=

LOCAL_SRC_FILES := $(LOCAL_MODULE).apk

#LOCAL_REQUIRED_MODULES :=

LOCAL_PREBUILT_JNI_LIBS := \

lib/arm64/libaria2c.so\

lib/arm64/libjingle_peerconnection_so.so\

lib/arm64/libliteavsdk.so\

lib/arm64/libtxffmpeg.so\

lib/arm64/libtxsoundtou

相关推荐
Winston Wood2 小时前
Android Parcelable和Serializable的区别与联系
android·序列化
清风徐来辽2 小时前
Android 项目模型配置管理
android
帅得不敢出门2 小时前
Gradle命令编译Android Studio工程项目并签名
android·ide·android studio·gradlew
problc3 小时前
Flutter中文字体设置指南:打造个性化的应用体验
android·javascript·flutter
帅得不敢出门13 小时前
安卓设备adb执行AT指令控制电话卡
android·adb·sim卡·at指令·电话卡
我又来搬代码了15 小时前
【Android】使用productFlavors构建多个变体
android
德育处主任16 小时前
Mac和安卓手机互传文件(ADB)
android·macos
芦半山16 小时前
Android“引用们”的底层原理
android·java
迃-幵17 小时前
力扣:225 用队列实现栈
android·javascript·leetcode
大风起兮云飞扬丶17 小时前
Android——从相机/相册获取图片
android