-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathdevice_base.mk
171 lines (140 loc) · 6.52 KB
/
device_base.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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
# Copyright (C) 2010 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.
# These is the hardware-specific overlay, which points to the location
# of hardware-specific resource overrides, typically the frameworks and
# application settings that are stored in resourced.
DEVICE_PACKAGE_OVERLAYS := device/samsung/p1-common/overlay
# Bootanimation
TARGET_BOOTANIMATION_NAME := vertical-600x1024
# These are the hardware-specific configuration files
PRODUCT_COPY_FILES := \
device/samsung/p1-common/prebuilt/etc/asound.conf:system/etc/asound.conf \
device/samsung/p1-common/prebuilt/etc/bluetooth/main.conf:system/etc/bluetooth/main.conf
# Init files
PRODUCT_COPY_FILES += \
device/samsung/p1-common/init.p1-common.rc:root/init.p1-common.rc \
device/samsung/p1-common/usb.rc:root/usb.rc \
device/samsung/p1-common/usb.rc:recovery/root/usb.rc \
device/samsung/p1-common/lpm.rc:root/lpm.rc
# Prebuilt kl keymaps
PRODUCT_COPY_FILES += \
device/samsung/p1-common/prebuilt/usr/keylayout/sec_jack.kl:system/usr/keylayout/sec_jack.kl \
device/samsung/p1-common/prebuilt/usr/keylayout/p1_keyboard.kl:system/usr/keylayout/p1_keyboard.kl \
device/samsung/p1-common/prebuilt/usr/keylayout/AT42QT602240_Touchscreen.kl:system/usr/keylayout/AT42QT602240_Touchscreen.kl
# Filesystem management tools
PRODUCT_PACKAGES := \
make_ext4fs \
bml_over_mtd
# Lights
PRODUCT_PACKAGES += \
lights.s5pc110
# Audio
PRODUCT_PACKAGES += \
audio.a2dp.default \
audio.primary.s5pc110 \
audio_policy.s5pc110
# Camera
PRODUCT_PACKAGES += \
camera.s5pc110 \
libs3cjpeg
# These are the OpenMAX IL configuration files
PRODUCT_COPY_FILES += \
device/samsung/p1-common/sec_mm/sec_omx/sec_omx_core/secomxregistry:system/etc/secomxregistry \
device/samsung/p1-common/prebuilt/etc/media_profiles.xml:system/etc/media_profiles.xml
# These are the OpenMAX IL modules
PRODUCT_PACKAGES += \
libSEC_OMX_Core.s5pc110 \
libOMX.SEC.AVC.Decoder.s5pc110 \
libOMX.SEC.M4V.Decoder.s5pc110 \
libOMX.SEC.M4V.Encoder.s5pc110 \
libOMX.SEC.AVC.Encoder.s5pc110
# Libs
PRODUCT_PACKAGES += \
hwcomposer.s5pc110 \
libstagefrighthw
# tvout
PRODUCT_PACKAGES += \
P1Parts \
tvouthack
# Usb accessory
PRODUCT_PACKAGES += \
com.android.future.usb.accessory
# script to set bluetooth and wlan MAC addresses
PRODUCT_COPY_FILES += \
device/samsung/p1-common/prebuilt/bin/set-macaddr:system/vendor/bin/set-macaddr
# Touchscreen
PRODUCT_COPY_FILES += \
device/samsung/p1-common/prebuilt/usr/idc/AT42QT602240_Touchscreen.idc:system/usr/idc/AT42QT602240_Touchscreen.idc
# These are the hardware-specific features
PRODUCT_COPY_FILES += \
frameworks/base/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \
frameworks/base/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
frameworks/base/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \
frameworks/base/data/etc/android.hardware.location.xml:system/etc/permissions/android.hardware.location.xml \
frameworks/base/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
frameworks/base/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
frameworks/base/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \
frameworks/base/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
frameworks/base/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
frameworks/base/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
frameworks/base/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
frameworks/base/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
frameworks/base/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml
# The OpenGL ES API level that is natively supported by this device.
# This is a 16.16 fixed point number
PRODUCT_PROPERTY_OVERRIDES := \
ro.opengles.version=131072
# rotation
PRODUCT_PROPERTY_OVERRIDES += \
ro.sf.hwrotation=90
# radio
PRODUCT_PROPERTY_OVERRIDES += \
ro.telephony.ril_class=SamsungRIL
# These are the hardware-specific settings that are stored in system properties.
# Note that the only such settings should be the ones that are too low-level to
# be reachable from resources or other mechanisms.
PRODUCT_PROPERTY_OVERRIDES += \
wifi.interface=wlan0 \
wifi.supplicant_scan_interval=45
# enable Google-specific location features,
# like NetworkLocationProvider and LocationCollector
PRODUCT_PROPERTY_OVERRIDES += \
ro.com.google.locationfeatures=1 \
ro.com.google.networklocation=1
# Extended JNI checks
# The extended JNI checks will cause the system to run more slowly, but they can spot a variety of nasty bugs
# before they have a chance to cause problems.
# Default=true for development builds, set by android buildsystem.
PRODUCT_PROPERTY_OVERRIDES += \
ro.kernel.android.checkjni=0 \
dalvik.vm.checkjni=false
# Override /proc/sys/vm/dirty_ratio on UMS
PRODUCT_PROPERTY_OVERRIDES += \
ro.vold.umsdirtyratio=20
# we have enough storage space to hold precise GC data
PRODUCT_TAGS += dalvik.gc.type-precise
# dalvik
include frameworks/base/build/phone-hdpi-512-dalvik-heap.mk
# Set default USB interface
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
persist.sys.usb.config=mass_storage
# installer
PRODUCT_COPY_FILES += \
device/samsung/p1-common/updater.sh:updater.sh
# bml_over_mtd
PRODUCT_COPY_FILES += \
device/samsung/p1-common/bml_over_mtd.sh:bml_over_mtd.sh
$(call inherit-product-if-exists, hardware/broadcom/wlan/bcmdhd/firmware/bcm4329/device-bcm.mk)
# Set product characteristic to tablet, needed for some ui elements
PRODUCT_CHARACTERISTICS := tablet