summaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
Diffstat (limited to 'target')
-rw-r--r--target/board/generic/BoardConfig.mk4
-rw-r--r--target/board/generic/device.mk3
-rw-r--r--target/board/generic_x86/BoardConfig.mk5
-rw-r--r--target/board/sim/BoardConfig.mk6
-rw-r--r--target/board/vbox_x86/AndroidBoard.mk6
-rw-r--r--target/board/vbox_x86/BoardConfig.mk11
-rw-r--r--target/board/vbox_x86/device.mk9
-rw-r--r--target/board/vbox_x86/init.vbox_x86.rc52
-rw-r--r--target/product/core.mk20
-rw-r--r--target/product/full_base.mk3
-rw-r--r--target/product/full_base_telephony.mk3
-rw-r--r--target/product/generic_no_telephony.mk9
-rw-r--r--target/product/large_emu_hw.mk2
-rw-r--r--target/product/telephony.mk1
-rw-r--r--target/product/vbox_x86.mk6
15 files changed, 110 insertions, 30 deletions
diff --git a/target/board/generic/BoardConfig.mk b/target/board/generic/BoardConfig.mk
index 26bf6ab..2b05f79 100644
--- a/target/board/generic/BoardConfig.mk
+++ b/target/board/generic/BoardConfig.mk
@@ -13,5 +13,5 @@ BOARD_USES_GENERIC_AUDIO := true
# no hardware camera
USE_CAMERA_STUB := true
-# Set /system/bin/sh to mksh, not ash, to test the transition.
-TARGET_SHELL := mksh
+# Set /system/bin/sh to ash, not mksh, to make sure we can switch back.
+TARGET_SHELL := ash
diff --git a/target/board/generic/device.mk b/target/board/generic/device.mk
index 0b4dc27..f57a0dc 100644
--- a/target/board/generic/device.mk
+++ b/target/board/generic/device.mk
@@ -24,3 +24,6 @@ PRODUCT_PROPERTY_OVERRIDES := \
PRODUCT_COPY_FILES := \
development/data/etc/apns-conf.xml:system/etc/apns-conf.xml \
development/data/etc/vold.conf:system/etc/vold.conf
+
+PRODUCT_PACKAGES := \
+ audio.primary.goldfish
diff --git a/target/board/generic_x86/BoardConfig.mk b/target/board/generic_x86/BoardConfig.mk
index 1bad20d..7277908 100644
--- a/target/board/generic_x86/BoardConfig.mk
+++ b/target/board/generic_x86/BoardConfig.mk
@@ -18,6 +18,5 @@ BOARD_USES_GENERIC_AUDIO := true
# no hardware camera
USE_CAMERA_STUB := true
-# Set /system/bin/sh to mksh, not ash, to test the transition.
-TARGET_SHELL := mksh
-
+# Set /system/bin/sh to ash, not mksh, to make sure we can switch back.
+TARGET_SHELL := ash
diff --git a/target/board/sim/BoardConfig.mk b/target/board/sim/BoardConfig.mk
index ba25c18..ba55b92 100644
--- a/target/board/sim/BoardConfig.mk
+++ b/target/board/sim/BoardConfig.mk
@@ -3,13 +3,11 @@
# Product-specific compile-time definitions.
#
-# Don't try prelinking or compressing the shared libraries
-# used by the simulator. The host OS won't know what to do
-# with them, and they may not even be ELF files.
+# Don't try compressing the shared libraries used by the simulator. The host
+# OS won't know what to do with them, and they may not even be ELF files.
#
# These definitions override the defaults in config/config.make.
TARGET_COMPRESS_MODULE_SYMBOLS := false
-TARGET_PRELINK_MODULE := false
# Don't try to build a bootloader.
TARGET_NO_BOOTLOADER := true
diff --git a/target/board/vbox_x86/AndroidBoard.mk b/target/board/vbox_x86/AndroidBoard.mk
index 2af7dcd..8b13789 100644
--- a/target/board/vbox_x86/AndroidBoard.mk
+++ b/target/board/vbox_x86/AndroidBoard.mk
@@ -1,7 +1 @@
-LOCAL_PATH := $(call my-dir)
-LOCAL_KERNEL := prebuilt/android-x86/kernel/kernel-vbox
-
-PRODUCT_COPY_FILES += \
- $(LOCAL_KERNEL):kernel \
- $(LOCAL_PATH)/init.rc:root/init.rc
diff --git a/target/board/vbox_x86/BoardConfig.mk b/target/board/vbox_x86/BoardConfig.mk
index 525074e..94df57c 100644
--- a/target/board/vbox_x86/BoardConfig.mk
+++ b/target/board/vbox_x86/BoardConfig.mk
@@ -5,7 +5,6 @@
TARGET_ARCH=x86
DISABLE_DEXPREOPT := true
TARGET_COMPRESS_MODULE_SYMBOLS := false
-TARGET_PRELINK_MODULE := false
TARGET_NO_RECOVERY := true
TARGET_HARDWARE_3D := false
BOARD_USES_GENERIC_AUDIO := true
@@ -18,16 +17,20 @@ TARGET_BOOTIMAGE_USE_EXT2 := true
# For VirtualBox and likely other emulators
BOARD_INSTALLER_CMDLINE := init=/init console=ttyS0 console=tty0 vga=788 verbose
-BOARD_KERNEL_CMDLINE := init=/init console=ttyS0 console=tty0 vga=788 verbose androidboot.hardware=generic_x86 androidboot.console=ttyS0
+BOARD_KERNEL_CMDLINE := init=/init qemu=1 console=ttyS0 console=tty0 vga=788 verbose androidboot.hardware=vbox_x86 androidboot.console=ttyS0 android.qemud=ttyS1
TARGET_USE_DISKINSTALLER := true
TARGET_DISK_LAYOUT_CONFIG := build/target/board/vbox_x86/disk_layout.conf
BOARD_BOOTIMAGE_MAX_SIZE := 8388608
BOARD_SYSLOADER_MAX_SIZE := 7340032
BOARD_FLASH_BLOCK_SIZE := 512
-BOARD_USERDATAIMAGE_PARTITION_SIZE := 50M
-BOARD_INSTALLERIMAGE_PARTITION_SIZE := 500M
+# 50M
+BOARD_USERDATAIMAGE_PARTITION_SIZE := 52428800
+# 500M
+BOARD_INSTALLERIMAGE_PARTITION_SIZE := 524288000
TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true
+# Reserve 265M for the system partition
+BOARD_SYSTEMIMAGE_PARTITION_SIZE := 268435456
# The eth0 device should be started with dhcp on boot.
diff --git a/target/board/vbox_x86/device.mk b/target/board/vbox_x86/device.mk
index 0b4dc27..a028b98 100644
--- a/target/board/vbox_x86/device.mk
+++ b/target/board/vbox_x86/device.mk
@@ -17,10 +17,17 @@
# This is a build configuration for the product aspects that
# are specific to the emulator.
+LOCAL_PATH := $(call my-dir)
+
PRODUCT_PROPERTY_OVERRIDES := \
ro.ril.hsxpa=1 \
ro.ril.gprsclass=10
+LOCAL_KERNEL := prebuilt/android-x86/kernel/kernel-vbox
+
PRODUCT_COPY_FILES := \
development/data/etc/apns-conf.xml:system/etc/apns-conf.xml \
- development/data/etc/vold.conf:system/etc/vold.conf
+ development/data/etc/vold.conf:system/etc/vold.conf \
+ build/target/board/vbox_x86/init.rc:root/init.rc \
+ build/target/board/vbox_x86/init.vbox_x86.rc:root/init.vbox_x86.rc \
+ $(LOCAL_KERNEL):kernel
diff --git a/target/board/vbox_x86/init.vbox_x86.rc b/target/board/vbox_x86/init.vbox_x86.rc
new file mode 100644
index 0000000..4c5d55c
--- /dev/null
+++ b/target/board/vbox_x86/init.vbox_x86.rc
@@ -0,0 +1,52 @@
+on boot
+ setprop ARGH ARGH
+ setprop net.eth0.dns1 10.0.2.3
+ setprop net.gprs.local-ip 10.0.2.15
+ setprop ro.radio.use-ppp no
+ setprop ro.build.product generic
+ setprop ro.product.device generic
+
+# fake some battery state
+ setprop status.battery.state Slow
+ setprop status.battery.level 5
+ setprop status.battery.level_raw 50
+ setprop status.battery.level_scale 9
+
+# disable some daemons the emulator doesn't want
+ stop dund
+ stop akmd
+
+ setprop ro.setupwizard.mode EMULATOR
+
+# enable Google-specific location features,
+# like NetworkLocationProvider and LocationCollector
+ setprop ro.com.google.locationfeatures 1
+
+# For the emulator, which bypasses Setup Wizard, you can specify
+# account info for the device via these two properties. Google
+# Login Service will insert these accounts into the database when
+# it is created (ie, after a data wipe).
+#
+# setprop ro.config.hosted_account username@hosteddomain.org:password
+# setprop ro.config.google_account username@gmail.com:password
+#
+# You MUST have a Google account on the device, and you MAY
+# additionally have a hosted account. No other configuration is
+# supported, and arbitrary breakage may result if you specify
+# something else.
+
+service goldfish-setup /system/etc/init.goldfish.sh
+ oneshot
+
+service qemud /system/bin/qemud
+ socket qemud stream 666
+ oneshot
+
+# -Q is a special logcat option that forces the
+# program to check wether it runs on the emulator
+# if it does, it redirects its output to the device
+# named by the androidboot.console kernel option
+# if not, is simply exit immediately
+
+service goldfish-logcat /system/bin/logcat -Q
+ oneshot
diff --git a/target/product/core.mk b/target/product/core.mk
index 3eb72d3..7b4c3cd 100644
--- a/target/product/core.mk
+++ b/target/product/core.mk
@@ -25,6 +25,8 @@ PRODUCT_PROPERTY_OVERRIDES := \
PRODUCT_PACKAGES := \
apache-xml \
bouncycastle \
+ bu \
+ cacerts \
com.android.location.provider \
com.android.location.provider.xml \
core \
@@ -55,16 +57,26 @@ PRODUCT_PACKAGES := \
libOpenSLES \
libsqlite_jni \
libssl \
+ libstagefright_soft_aacdec \
+ libstagefright_soft_amrdec \
+ libstagefright_soft_avcdec \
+ libstagefright_soft_g711dec \
+ libstagefright_soft_mp3dec \
+ libstagefright_soft_mpeg4dec \
+ libstagefright_soft_vorbisdec \
+ libstagefright_soft_vpxdec \
libwilhelm \
+ libfilterfw \
libz \
- sqlite-jdbc \
wpa_supplicant.conf \
Browser \
Contacts \
Home \
HTMLViewer \
ApplicationsProvider \
+ BackupRestoreConfirmation \
ContactsProvider \
+ VoicemailProvider \
DownloadProvider \
DownloadProviderUi \
MediaProvider \
@@ -78,12 +90,14 @@ PRODUCT_PACKAGES := \
DefaultContainerService \
Bugreport \
ip \
- screencap
+ screencap \
+ sensorservice
# host-only dependencies
ifeq ($(WITH_HOST_DALVIK),true)
PRODUCT_PACKAGES += \
bouncycastle-hostdex \
core-hostdex \
- libjavacore-host
+ libjavacore-host \
+ dalvik
endif
diff --git a/target/product/full_base.mk b/target/product/full_base.mk
index 19f94ee..a41a76d 100644
--- a/target/product/full_base.mk
+++ b/target/product/full_base.mk
@@ -21,11 +21,12 @@
PRODUCT_PACKAGES := \
OpenWnn \
+ PhotoEditor \
PinyinIME \
- VoiceDialer \
libWnnEngDic \
libWnnJpnDic \
libwnndict \
+ VideoEditor \
WAPPushManager
# Additional settings used in all AOSP builds
diff --git a/target/product/full_base_telephony.mk b/target/product/full_base_telephony.mk
index 932ba95..c376314 100644
--- a/target/product/full_base_telephony.mk
+++ b/target/product/full_base_telephony.mk
@@ -19,6 +19,9 @@
# build quite specifically for the emulator, and might not be
# entirely appropriate to inherit from for on-device configurations.
+PRODUCT_PACKAGES := \
+ VoiceDialer
+
PRODUCT_PROPERTY_OVERRIDES := \
keyguard.no_require_sim=true \
ro.com.android.dataroaming=true
diff --git a/target/product/generic_no_telephony.mk b/target/product/generic_no_telephony.mk
index 2a3aae7..d44d918 100644
--- a/target/product/generic_no_telephony.mk
+++ b/target/product/generic_no_telephony.mk
@@ -31,7 +31,7 @@ PRODUCT_PACKAGES := \
DrmProvider \
Email \
Exchange \
- Gallery3D \
+ GalleryNew3D \
LatinIME \
Launcher2 \
Music \
@@ -55,14 +55,17 @@ PRODUCT_PACKAGES += \
libvideoeditorplayer \
libvideoeditor_core
+PRODUCT_PACKAGES += \
+ audio.primary.default \
+ audio_policy.default
PRODUCT_COPY_FILES := \
system/bluetooth/data/audio.conf:system/etc/bluetooth/audio.conf \
system/bluetooth/data/auto_pairing.conf:system/etc/bluetooth/auto_pairing.conf \
system/bluetooth/data/blacklist.conf:system/etc/bluetooth/blacklist.conf \
system/bluetooth/data/input.conf:system/etc/bluetooth/input.conf \
- system/bluetooth/data/main.nonsmartphone.conf:system/etc/bluetooth/main.conf \
- system/bluetooth/data/network.conf:system/etc/bluetooth/network.conf
+ system/bluetooth/data/network.conf:system/etc/bluetooth/network.conf \
+ frameworks/base/media/libeffects/data/audio_effects.conf:system/etc/audio_effects.conf
$(call inherit-product-if-exists, frameworks/base/data/fonts/fonts.mk)
$(call inherit-product-if-exists, frameworks/base/data/keyboards/keyboards.mk)
diff --git a/target/product/large_emu_hw.mk b/target/product/large_emu_hw.mk
index 139a9da..f38ef61 100644
--- a/target/product/large_emu_hw.mk
+++ b/target/product/large_emu_hw.mk
@@ -32,7 +32,7 @@ PRODUCT_PACKAGES := \
DrmProvider \
Email \
Exchange \
- Gallery3D \
+ GalleryNew3D \
LatinIME \
Launcher2 \
Music \
diff --git a/target/product/telephony.mk b/target/product/telephony.mk
index d557887..a0220de 100644
--- a/target/product/telephony.mk
+++ b/target/product/telephony.mk
@@ -21,4 +21,3 @@ PRODUCT_PACKAGES := \
Mms
PRODUCT_COPY_FILES := \
- system/bluetooth/data/main.conf:system/etc/bluetooth/main.conf
diff --git a/target/product/vbox_x86.mk b/target/product/vbox_x86.mk
index c32b1eb..f0d4232 100644
--- a/target/product/vbox_x86.mk
+++ b/target/product/vbox_x86.mk
@@ -18,8 +18,12 @@
# Open-Source part of the tree. It's geared toward a US-centric
# build quite specifically for the emulator, and might not be
# entirely appropriate to inherit from for on-device configurations.
+ifdef NET_ETH0_STARTONBOOT
+ PRODUCT_PROPERTY_OVERRIDES += net.eth0.startonboot=1
+endif
-$(call inherit-product, $(SRC_TARGET_DIR)/product/full_x86.mk)
+$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk)
+$(call inherit-product, $(SRC_TARGET_DIR)/board/vbox_x86/device.mk)
PRODUCT_NAME := vbox_x86
PRODUCT_DEVICE := vbox_x86