我正在构建 AOSP 4.2 Jelly Bean。
当我构建默认的 full-eng 配置并在模拟器上运行时,一切正常。
我需要构建自定义设备并运行它(在模拟器上进行测试以确保其真正工作,并在实际设备上运行)。 当我基于 full_base.mk 文件创建自定义设备并在模拟器上运行时,模拟器会卡在带有 ANDROID 文本的第一个屏幕上,并且根本无法加载。我已经在 out 目录中构建出 system.img、userdata.img 和 ramdisk.img。这是我构建自定义 AOSP 并在设备上运行所需的全部内容吗?我可以在模拟器上运行我的构建版本还是只能在实际设备上运行?
我为实际设备构建 AOSP 是否需要其他额外的东西:内核、设备驱动程序等?
自定义设备文件夹文件(device/my_company/my_product):
Android.mk
我需要构建自定义设备并运行它(在模拟器上进行测试以确保其真正工作,并在实际设备上运行)。 当我基于 full_base.mk 文件创建自定义设备并在模拟器上运行时,模拟器会卡在带有 ANDROID 文本的第一个屏幕上,并且根本无法加载。我已经在 out 目录中构建出 system.img、userdata.img 和 ramdisk.img。这是我构建自定义 AOSP 并在设备上运行所需的全部内容吗?我可以在模拟器上运行我的构建版本还是只能在实际设备上运行?
我为实际设备构建 AOSP 是否需要其他额外的东西:内核、设备驱动程序等?
自定义设备文件夹文件(device/my_company/my_product):
Android.mk
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
ifneq ($(filter my_product,$(TARGET_DEVICE)),)
include $(call all-makefiles-under,$(LOCAL_PATH))
endif
AndroidProducts.mk
PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/full_myproduct.mk
BoardConfig.mk
TARGET_NO_BOOTLOADER := true
TARGET_NO_KERNEL := true
TARGET_ARCH := arm
TARGET_ARCH_VARIANT := armv7-a
TARGET_CPU_VARIANT := generic
TARGET_CPU_ABI := armeabi-v7a
TARGET_CPU_ABI2 := armeabi
HAVE_HTC_AUDIO_DRIVER := true
BOARD_USES_GENERIC_AUDIO := true
# no hardware camera
USE_CAMERA_STUB := true
# Enable dex-preoptimization to speed up the first boot sequence
# of an SDK AVD. Note that this operation only works on Linux for now
ifeq ($(HOST_OS),linux)
ifeq ($(WITH_DEXPREOPT),)
WITH_DEXPREOPT := true
endif
endif
# Build OpenGLES emulation guest and host libraries
BUILD_EMULATOR_OPENGL := true
# Build and enable the OpenGL ES View renderer. When running on the emulator,
# the GLES renderer disables itself if host GL acceleration isn't available.
USE_OPENGL_RENDERER := true
full_myproduct.mk
$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk)
#DEVICE_PACKAGE_OVERLAYS :=
#PRODUCT_PACKAGES +=
#PRODUCT_COPY_FILES +=
PRODUCT_NAME := full_myproduct
PRODUCT_DEVICE := myproduct
PRODUCT_MODEL := Customized Android
PRODUCT_BRAND := Android
vendorsetup.sh
add_lunch_combo full_myproduct-userdebug