-
Notifications
You must be signed in to change notification settings - Fork 3
/
device-common.mk
111 lines (96 loc) · 4.54 KB
/
device-common.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
#
# Copyright (C) 2014 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
PRODUCT_CHARACTERISTICS := tablet
PRODUCT_TAGS += dalvik.gc.type-precise
DEVICE_PACKAGE_OVERLAYS += device/bq/rk3188-common/overlay
COMMON_PATH := device/bq/rk3188-common
# Hardware-specific features
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/tablet_core_hardware.xml:system/etc/permissions/tablet_core_hardware.xml \
frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \
frameworks/native/data/etc/android.hardware.camera.autofocus.xml:system/etc/permissions/android.hardware.camera.autofocus.xml \
frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \
frameworks/native/data/etc/android.hardware.faketouch.xml:system/etc/permissions/android.hardware.faketouch.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.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.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
# Prebuilt
PRODUCT_COPY_FILES += \
$(COMMON_PATH)/prebuilt/audio_policy.conf:system/etc/audio_policy.conf \
$(COMMON_PATH)/prebuilt/config.txt:system/vendor/firmware/config.txt \
$(COMMON_PATH)/prebuilt/media_codecs.xml:system/etc/media_codecs.xml \
$(COMMON_PATH)/prebuilt/media_profiles.xml:system/etc/media_profiles.xml \
$(COMMON_PATH)/prebuilt/nvram_RK903_26M.cal:system/vendor/firmware/nvram_RK903_26M.cal \
$(COMMON_PATH)/prebuilt/rk29-keypad.kl:/system/usr/keylayout/rk29-keypad.kl \
$(COMMON_PATH)/prebuilt/rk3x:system/bin/rk3x
# Rootdir
PRODUCT_COPY_FILES += \
$(COMMON_PATH)/rootdir/fstab.rk30board:root/fstab.rk30board \
$(COMMON_PATH)/rootdir/init.rk30board.rc:root/init.rk30board.rc \
$(COMMON_PATH)/rootdir/init.recovery.rk30board.rc:root/init.recovery.rk30board.rc \
$(COMMON_PATH)/rootdir/init.rk30board.usb.rc:root/init.rk30board.usb.rc \
$(COMMON_PATH)/rootdir/ueventd.rk30board.rc:root/ueventd.rk30board.rc
# Rootdir blobs
PRODUCT_COPY_FILES += \
$(COMMON_PATH)/rootdir/drmboot.ko:root/drmboot.ko \
$(COMMON_PATH)/rootdir/init:root/init \
$(COMMON_PATH)/rootdir/resize2fs:root/sbin/resize2fs \
$(COMMON_PATH)/rootdir/rk30xxnand_ko.ko.3.0.36+:root/rk30xxnand_ko.ko.3.0.36+
# Charger
PRODUCT_PACKAGES += \
charger \
charger_res_images
# HAL
PRODUCT_PACKAGES += \
lights.rk30board \
power.rk3188 \
sensors.rk30board
# Audio
PRODUCT_PACKAGES += \
audio.alsa_usb.rk30board \
audio.primary.rk30board \
audio_policy.rk30board \
audio.a2dp.default \
audio.r_submix.default \
audio.usb.default
# Other
PRODUCT_PACKAGES += \
make_ext4fs \
resize2fs \
setup_fs \
librs_jni \
libnetcmdiface \
com.android.future.usb.accessory
# Default props
PRODUCT_PROPERTY_OVERRIDES += \
cm.updater.uri=http://bokerones.noip.me/CyanogenModOTA/api \
ro.opengles.version=131072 \
debug.hwui.render_dirty_regions=false \
ro.config.facelock=enable_facelock \
persist.facelock.detect_cutoff=5000 \
persist.facelock.recog_cutoff=5000 \
ro.audio.flinger_standbytime_ms=1000 \
wifi.interface=wlan0 \
wifi.supplicant_scan_interval=15 \
dalvik.vm.debug.alloc=0
# Broadcom firmware
WIFI_BAND := 802_11_BG
$(call inherit-product-if-exists, hardware/broadcom/wlan/bcmdhd/firmware/bcm4330/device-bcm.mk)
# Dalvik heap
$(call inherit-product, frameworks/native/build/tablet-7in-hdpi-1024-dalvik-heap.mk)