我在建設AOSP 4.2 Jelly Bean
。 當我構建默認full-eng
配置並在仿真器上運行它時,一切正常。AOSP建立在自定義設備上
我需要構建自定義設備並運行它(在emulator
上 - 用於測試它是否真的在真實設備上運行)。 當我創建定製的設備基礎上full_base.mk
文件,並在emulator
運行 - emulator
剛剛掛斷了Android文本第一個屏幕上,並不會加載。 我有system.img, userdata.img, ramdisk.img
建在進出目錄後。這是我所需要的用於構建自定義AOSP並在設備上運行的嗎?我可以在模擬器上運行我的構建還是僅在真實設備上運行?
我應該有一些額外的建設AOSP真正的設備:內核,設備驅動程序等?
定製設備的文件夾的文件(設備/ 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
logcat中的任何東西?通常有一些系統服務在這種情況下死亡。 – StarPinkER
你說你正在爲這個設備建造http://www.alibaba.com/product-gs/721860794/7_capacitive_screen_multi_touch_tablet.html你能告訴我你在哪裏找到這個設備的驅動程序? – Rom098
驅動程序由廠方提供。如果您爲特定設備創建自定義ROM(而不是谷歌。谷歌設備驅動程序是免費提供的),然後您聯繫供應商並請求設備特定的驅動程序。 –