summaryrefslogtreecommitdiffstats
path: root/gta04.mk
blob: 3876a8a0072d6c67b5be845087030196eebdd260 (plain)
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
# Copyright (C) 2012-2014 Paul Kocialkowski <contact@paulk.fr>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

# Overlay
DEVICE_PACKAGE_OVERLAYS := device/goldelico/gta04/overlay

# Install script
PRODUCT_COPY_FILES += \
	device/goldelico/gta04/replicant_gta04_install.sh:replicant_gta04_install.sh

# Ramdisk
PRODUCT_COPY_FILES += \
	device/goldelico/gta04/rootdir/init.gta04.rc:root/init.gta04.rc \
	device/goldelico/gta04/rootdir/init.gta04.usb.rc:root/init.gta04.usb.rc \
	device/goldelico/gta04/rootdir/ueventd.gta04.rc:root/ueventd.gta04.rc \
	device/goldelico/gta04/rootdir/fstab.gta04:root/fstab.gta04

# Recovery
PRODUCT_COPY_FILES += \
	device/goldelico/gta04/recovery/init.recovery.gta04.rc:root/init.recovery.gta04.rc

PRODUCT_PROPERTY_OVERRIDES += \
	ro.cwm.forbid_format=/boot

# USB
PRODUCT_PROPERTY_OVERRIDES += \
	persist.sys.usb.config=mtp

# Storage
PRODUCT_COPY_FILES += \
	device/goldelico/gta04/configs/vold.fstab:system/etc/vold.fstab

# Input
PRODUCT_COPY_FILES += \
	device/goldelico/gta04/usr/idc/TSC2007_Touchscreen.idc:system/usr/idc/TSC2007_Touchscreen.idc \
	device/goldelico/gta04/usr/keylayout/twl4030_pwrbutton.kl:system/usr/keylayout/twl4030_pwrbutton.kl \
	device/goldelico/gta04/usr/keylayout/Phone_button.kl:system/usr/keylayout/Phone_button.kl \
	device/goldelico/gta04/usr/keylayout/gta04_Headset_Jack.kl:system/usr/keylayout/gta04_Headset_Jack.kl

# Graphics
PRODUCT_LOCALES := hdpi

# Media
PRODUCT_COPY_FILES += \
	device/goldelico/gta04/configs/media_codecs.xml:system/etc/media_codecs.xml

# Audio
PRODUCT_PACKAGES += \
	audio.primary.omap3

PRODUCT_COPY_FILES += \
	device/goldelico/gta04/configs/tinyalsa-audio.xml:system/etc/tinyalsa-audio.xml \
	device/goldelico/gta04/configs/audio_policy.conf:system/etc/audio_policy.conf

# Lights
PRODUCT_PACKAGES += \
	lights.gta04

# GPS
PRODUCT_PACKAGES += \
	gps.gta04

# Permissions
PRODUCT_COPY_FILES += \
	frameworks/native/data/etc/android.hardware.bluetooth.xml:system/etc/permissions/android.hardware.bluetooth.xml \
	frameworks/native/data/etc/android.hardware.touchscreen.xml:system/etc/permissions/android.hardware.touchscreen.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.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
	frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
	frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml

# Wi-Fi
PRODUCT_COPY_FILES += \
	device/goldelico/gta04/configs/wpa_supplicant.conf:system/etc/wifi/wpa_supplicant.conf

PRODUCT_PROPERTY_OVERRIDES += \
	wifi.interface=wlan0

# Bluetooth
PRODUCT_PACKAGES += \
	libbt-vendor

# Dalvik
PRODUCT_PROPERTY_OVERRIDES += \
	dalvik.vm.dexopt-data-only=1 \
	dalvik.vm.checkjni=false \
	ro.kernel.android.checkjni=0

PRODUCT_TAGS += dalvik.gc.type-precise

include frameworks/native/build/phone-hdpi-512-dalvik-heap.mk