Update Android.mk
This commit is contained in:
13
Android.mk
13
Android.mk
@@ -2,7 +2,6 @@ LOCAL_PATH := $(call my-dir)
|
|||||||
|
|
||||||
include $(CLEAR_VARS)
|
include $(CLEAR_VARS)
|
||||||
|
|
||||||
|
|
||||||
# Determine the target architecture directory and pattern
|
# Determine the target architecture directory and pattern
|
||||||
ifeq ($(TARGET_ARCH),arm64)
|
ifeq ($(TARGET_ARCH),arm64)
|
||||||
ARCH_DIR := arm64
|
ARCH_DIR := arm64
|
||||||
@@ -17,6 +16,7 @@ else
|
|||||||
$(warning Unsupported architecture $(TARGET_ARCH) for VivladiBrowser)
|
$(warning Unsupported architecture $(TARGET_ARCH) for VivladiBrowser)
|
||||||
APK_PATTERN :=
|
APK_PATTERN :=
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($(APK_PATTERN),)
|
ifneq ($(APK_PATTERN),)
|
||||||
APK_FILE := $(firstword $(wildcard $(LOCAL_PATH)/prebuilt/$(ARCH_DIR)/$(APK_PATTERN)))
|
APK_FILE := $(firstword $(wildcard $(LOCAL_PATH)/prebuilt/$(ARCH_DIR)/$(APK_PATTERN)))
|
||||||
|
|
||||||
@@ -28,21 +28,14 @@ ifneq ($(APK_PATTERN),)
|
|||||||
LOCAL_MODULE := VivladiBrowser
|
LOCAL_MODULE := VivladiBrowser
|
||||||
LOCAL_MODULE_TAGS := optional
|
LOCAL_MODULE_TAGS := optional
|
||||||
LOCAL_MODULE_CLASS := APPS
|
LOCAL_MODULE_CLASS := APPS
|
||||||
LOCAL_MODULE_PATH := $(TARGET_OUT_PRIV_APPS)/VivladiBrowser
|
|
||||||
LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX)
|
LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX)
|
||||||
LOCAL_SRC_FILES := prebuilt/$(ARCH_DIR)/$(notdir $(APK_FILE))
|
LOCAL_SRC_FILES := prebuilt/$(ARCH_DIR)/$(notdir $(APK_FILE))
|
||||||
LOCAL_CERTIFICATE := PRESIGNED
|
LOCAL_CERTIFICATE := PRESIGNED
|
||||||
|
|
||||||
# Override stock browser(s)
|
# Override stock browsers
|
||||||
LOCAL_OVERRIDES_PACKAGES := Browser Browser2
|
LOCAL_OVERRIDES_PACKAGES := Browser Browser2
|
||||||
|
|
||||||
LOCAL_OPTIONAL_USES_LIBRARIES := \
|
# No preopt to avoid build-time dex issues
|
||||||
android.car \
|
|
||||||
androidx.window.extensions \
|
|
||||||
com.android.extensions.xr \
|
|
||||||
android.ext.adservices \
|
|
||||||
androidx.window.sidecar
|
|
||||||
|
|
||||||
LOCAL_DEX_PREOPT := false
|
LOCAL_DEX_PREOPT := false
|
||||||
|
|
||||||
include $(BUILD_PREBUILT)
|
include $(BUILD_PREBUILT)
|
||||||
|
Reference in New Issue
Block a user