base
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
// This file is intentionally left empty for Soong build system compatibility
|
||||
// The actual build is handled by Android.mk for prebuilt apps
|
||||
@@ -0,0 +1,5 @@
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
# Include the browser makefile
|
||||
include $(CLEAR_VARS)
|
||||
include $(LOCAL_PATH)/browser.mk
|
||||
@@ -0,0 +1,7 @@
|
||||
# Vivladi Browser prebuilt app
|
||||
PRODUCT_PACKAGES += VivladiBrowser
|
||||
|
||||
# Override all stock browser packages
|
||||
PRODUCT_PACKAGE_OVERRIDES += \
|
||||
Browser2 \
|
||||
Browser
|
||||
@@ -0,0 +1,46 @@
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
# Determine the target architecture directory
|
||||
ifeq ($(TARGET_ARCH),arm64)
|
||||
ARCH_DIR := arm64
|
||||
APK_PATTERN := *arm64*.apk
|
||||
else ifeq ($(TARGET_ARCH),arm)
|
||||
ARCH_DIR := armhf
|
||||
APK_PATTERN := *arm*.apk
|
||||
else ifeq ($(TARGET_ARCH),x86_64)
|
||||
ARCH_DIR := x86_64
|
||||
APK_PATTERN := *x86_64*.apk
|
||||
else
|
||||
# Default to arm64 if architecture not specified
|
||||
ARCH_DIR := arm64
|
||||
APK_PATTERN := *arm64*.apk
|
||||
endif
|
||||
|
||||
# Find the APK file using wildcard pattern
|
||||
APK_FILE := $(wildcard $(LOCAL_PATH)/prebuilt/$(ARCH_DIR)/$(APK_PATTERN))
|
||||
|
||||
# Prebuilt Vivladi Browser APK - Regular user app (not system app)
|
||||
LOCAL_MODULE := VivladiBrowser
|
||||
LOCAL_MODULE_STEM := VivladiBrowser.apk
|
||||
LOCAL_SRC_FILES := prebuilt/$(ARCH_DIR)/$(notdir $(APK_FILE))
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_CLASS := APPS
|
||||
LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX)
|
||||
LOCAL_CERTIFICATE := PRESIGNED
|
||||
|
||||
# Install as regular user app (not privileged)
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT)/app/VivladiBrowser
|
||||
|
||||
# Override stock browser packages
|
||||
LOCAL_OVERRIDES_PACKAGES := Browser2 Browser
|
||||
|
||||
# Check if the architecture-specific APK exists
|
||||
ifneq ($(APK_FILE),)
|
||||
include $(BUILD_PREBUILT)
|
||||
else
|
||||
$(warning No VivladiBrowser APK found for architecture $(TARGET_ARCH) at $(LOCAL_PATH)/prebuilt/$(ARCH_DIR)/)
|
||||
$(warning Pattern used: $(APK_PATTERN))
|
||||
$(warning Skipping VivladiBrowser build)
|
||||
endif
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
||||
The version of VivladiBrowser included in this package is: 7.5.3737.177
|
||||
Binary file not shown.
Reference in New Issue
Block a user