blob: 0e8336f299280e245edfd5bba5604fc0150b211f
1 | $(call inherit-product, device/amlogic/common/core_amlogic.mk) |
2 | |
3 | |
4 | #TV input HAL |
5 | #PRODUCT_PACKAGES += \ |
6 | # android.hardware.tv.input@1.0-impl \ |
7 | # android.hardware.tv.input@1.0-service \ |
8 | # tv_input.amlogic |
9 | |
10 | # TV |
11 | #PRODUCT_PACKAGES += \ |
12 | # libtv \ |
13 | # libtv_linker \ |
14 | # libtvbinder \ |
15 | # libtv_jni \ |
16 | # tvserver \ |
17 | # libtvplay \ |
18 | # libTVaudio \ |
19 | # libntsc_decode \ |
20 | # libtinyxml \ |
21 | # libzvbi \ |
22 | # tv_input.amlogic \ |
23 | # droidlogic-tv \ |
24 | # TvProvider \ |
25 | # DroidLogicTvInput \ |
26 | # DroidLogicTvSource \ |
27 | # libhpeq.so \ |
28 | # libjnidtvsubtitle \ |
29 | # libjnidtvepgscanner |
30 | # |
31 | ## DTV |
32 | #PRODUCT_PACKAGES += \ |
33 | # libam_adp \ |
34 | # libam_mw \ |
35 | # libam_ver \ |
36 | # libam_sysfs |
37 | |
38 | PRODUCT_PACKAGES += \ |
39 | imageserver \ |
40 | busybox \ |
41 | utility_busybox |
42 | |
43 | # DLNA |
44 | ifneq ($(TARGET_BUILD_GOOGLE_ATV), true) |
45 | PRODUCT_PACKAGES += \ |
46 | DLNA |
47 | endif |
48 | |
49 | PRODUCT_PACKAGES += \ |
50 | remotecfg |
51 | |
52 | USE_CUSTOM_AUDIO_POLICY := 1 |
53 | |
54 | ifneq ($(TARGET_BUILD_GOOGLE_ATV), true) |
55 | # NativeImagePlayer |
56 | PRODUCT_PACKAGES += \ |
57 | NativeImagePlayer |
58 | |
59 | #MboxLauncher |
60 | PRODUCT_PACKAGES += \ |
61 | MboxLauncher |
62 | endif |
63 | |
64 | #droid vold |
65 | PRODUCT_PACKAGES += \ |
66 | droidvold |
67 | |
68 | # Camera Hal |
69 | PRODUCT_PACKAGES += \ |
70 | camera.amlogic |
71 | |
72 | PRODUCT_PROPERTY_OVERRIDES += ro.hdmi.device_type=0 |
73 | |
74 | #Tvsettings |
75 | PRODUCT_PACKAGES += \ |
76 | TvSettings |
77 | |
78 | |
79 | #USB PM |
80 | PRODUCT_PACKAGES += \ |
81 | usbtestpm \ |
82 | usbpower |
83 | |
84 | PRODUCT_COPY_FILES += \ |
85 | frameworks/native/data/etc/android.software.live_tv.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.live_tv.xml \ |
86 | frameworks/native/data/etc/android.software.app_widgets.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.app_widgets.xml \ |
87 | frameworks/native/data/etc/android.software.backup.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.backup.xml \ |
88 | frameworks/native/data/etc/android.hardware.audio.output.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.output.xml \ |
89 | frameworks/native/data/etc/android.hardware.location.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.location.xml \ |
90 | device/amlogic/common/android.software.leanback.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.leanback.xml \ |
91 | frameworks/native/data/etc/android.hardware.hdmi.cec.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.hdmi.cec.xml |
92 | #copy lowmemorykiller.txt |
93 | ifeq ($(BUILD_WITH_LOWMEM_COMMON_CONFIG),true) |
94 | PRODUCT_COPY_FILES += \ |
95 | device/amlogic/common/config/lowmemorykiller_2G.txt:$(TARGET_COPY_OUT_VENDOR)/etc/lowmemorykiller_2G.txt \ |
96 | device/amlogic/common/config/lowmemorykiller.txt:$(TARGET_COPY_OUT_VENDOR)/etc/lowmemorykiller.txt \ |
97 | device/amlogic/common/config/lowmemorykiller_512M.txt:$(TARGET_COPY_OUT_VENDOR)/etc/lowmemorykiller_512M.txt |
98 | endif |
99 | |
100 | #DDR LOG |
101 | PRODUCT_COPY_FILES += \ |
102 | device/amlogic/common/ddrtest.sh:$(TARGET_COPY_OUT_VENDOR)/bin/ddrtest.sh |
103 | |
104 | # USB |
105 | PRODUCT_COPY_FILES += \ |
106 | frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \ |
107 | frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml |
108 | |
109 | custom_keylayouts := $(wildcard device/amlogic/common/keyboards/*.kl) |
110 | PRODUCT_COPY_FILES += $(foreach file,$(custom_keylayouts),\ |
111 | $(file):$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/$(notdir $(file))) |
112 | |
113 | # hdcp_tx22 |
114 | PRODUCT_COPY_FILES += \ |
115 | $(LOCAL_PATH)/../../hdcp_tx22/hdcp_tx22:$(TARGET_COPY_OUT_VENDOR)/bin/hdcp_tx22 |
116 | |
117 | # bootanimation |
118 | PRODUCT_COPY_FILES += \ |
119 | $(LOCAL_PATH)/bootanimation.zip:system/media/bootanimation.zip |
120 | |
121 | |
122 | PRODUCT_COPY_FILES += \ |
123 | $(LOCAL_PATH)/tv.mp4:$(TARGET_COPY_OUT_VENDOR)/etc/bootvideo |
124 | |
125 | # default wallpaper for mbox to fix bug 106225 |
126 | PRODUCT_COPY_FILES += \ |
127 | $(LOCAL_PATH)/default_wallpaper.png:$(TARGET_COPY_OUT_VENDOR)/etc/default_wallpaper.png |
128 | |
129 | # Include BUILD_NUMBER if defined |
130 | VERSION_ID=$(shell find device/*/$(TARGET_PRODUCT) -name version_id.mk) |
131 | $(call inherit-product, $(VERSION_ID)) |
132 | |
133 | DISPLAY_BUILD_NUMBER := true |
134 | |
135 | # default timezone |
136 | PRODUCT_PROPERTY_OVERRIDES += \ |
137 | persist.sys.timezone=Asia/Shanghai |
138 |