forked from Kahlo007/android_device_lenovo_kai
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdevice_a2109.mk
120 lines (98 loc) · 5.4 KB
/
device_a2109.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
PRODUCT_AAPT_CONFIG := normal
PRODUCT_AAPT_PREF_CONFIG := mdpi
# Build characteristics setting
PRODUCT_CHARACTERISTICS := tablet
# Dalvik VM config
include frameworks/native/build/tablet-7in-hdpi-1024-dalvik-heap.mk
# we have enough storage space to hold precise GC data
PRODUCT_TAGS += dalvik.gc.type-precise
$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)
# Init files
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/rootdir/fstab.kai:root/fstab.kai \
$(LOCAL_PATH)/rootdir/init.kai.rc:root/init.kai.rc \
$(LOCAL_PATH)/rootdir/init.IdeaTabA2109A_board.usb.rc:root/init.IdeaTabA2109A_board.usb.rc \
$(LOCAL_PATH)/rootdir/ueventd.kai.rc:root/ueventd.kai.rc
# Nvidia hardware, vendor blobs
$(call inherit-product, vendor/nvidia/tegra3/nvidia-vendor.mk)
$(call inherit-product-if-exists, vendor/lenovo/a2109/device-vendor.mk)
$(call inherit-product, hardware/nvidia/tegra3/tegra3.mk)
# Set default USB interface
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
persist.sys.usb.config=mtp
# Wifi
PRODUCT_PACKAGES += \
libwpa_client \
hostapd \
dhcpcd.conf \
wpa_supplicant \
wpa_supplicant.conf
WIFI_BAND := 802_11_BG
$(call inherit-product-if-exists, hardware/broadcom/wlan/bcmdhd/firmware/bcm4330/device-bcm.mk)
# HALs
PRODUCT_PACKAGES += \
audio.primary.tegra3 \
audio.a2dp.default \
audio.usb.default \
audio.r_submix.default \
lights.kai
# Filesystem management tools
PRODUCT_PACKAGES += \
make_ext4fs \
e2fsck \
setup_fs
# USB
PRODUCT_PACKAGES += com.android.future.usb.accessory
# GPS
PRODUCT_PACKAGES += \
libgpsd-compat \
libstlport
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/gps/gps.xml:system/etc/gps/gps.xml
# The gps config appropriate for this device
$(call inherit-product, device/common/gps/gps_us_supl.mk)
# A2109A specific config files
# Audio config
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/audio/tiny_hw.xml:system/etc/tiny_hw.xml \
$(LOCAL_PATH)/audio/audio_policy.conf:system/etc/audio_policy.conf
# Media
PRODUCT_COPY_FILES += \
frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:system/etc/media_codecs_google_audio.xml \
frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:system/etc/media_codecs_google_telephony.xml \
frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:system/etc/media_codecs_google_video.xml \
$(LOCAL_PATH)/media/media_profiles.xml:system/etc/media_profiles.xml \
$(LOCAL_PATH)/media/media_codecs.xml:system/etc/media_codecs.xml
# Touchscreen
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/touchscreen/ft5x0x_ts.idc:system/usr/idc/ft5x0x_ts.idc \
# Input devices
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/keylayouts/Bluetooth_00_06_66_42.kl:system/usr/keylayout/Bluetooth_00_06_66_42.kl \
$(LOCAL_PATH)/keylayouts/Vendor_044f_Product_d007.kl:system/usr/keylayout/Vendor_044f_Product_d007.kl \
$(LOCAL_PATH)/keylayouts/Vendor_046d_Product_c21e.kl:system/usr/keylayout/Vendor_046d_Product_c21e.kl \
$(LOCAL_PATH)/keylayouts/Vendor_057e_Product_0306.kl:system/usr/keylayout/Vendor_057e_Product_0306.kl \
$(LOCAL_PATH)/keylayouts/gpio-keys.kl:system/usr/keylayout/gpio-keys.kl \
$(LOCAL_PATH)/keylayouts/tegra-kbc.kl:system/usr/keylayout/tegra-kbc.kl
# Bluetooth
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/bluetooth/bt_vendor.conf:system/etc/bluetooth/bt_vendor.conf
# Add permissions, copied straight from grouper, a long time ago...
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/tablet_core_hardware.xml:system/etc/permissions/tablet_core_hardware.xml \
frameworks/native/data/etc/android.hardware.camera.xml:system/etc/permissions/android.hardware.camera.xml \
frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \
frameworks/native/data/etc/android.hardware.camera.autofocus.xml:system/etc/permissions/android.hardware.camera.autofocus.xml \
frameworks/native/data/etc/android.hardware.ethernet.xml:system/etc/permissions/android.hardware.ethernet.xml \
frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \
frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \
frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \
frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml