forked from NovaFusion/android_device_samsung_golden
-
Notifications
You must be signed in to change notification settings - Fork 0
/
device.mk
105 lines (91 loc) · 5.39 KB
/
device.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
#
# Copyright (C) 2014 NovaFusion http://novafusion.pl
#
# 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.
#
# Add overlay
DEVICE_PACKAGE_OVERLAYS += device/samsung/golden/overlay
# Define kind of DPI
PRODUCT_AAPT_CONFIG := normal hdpi
PRODUCT_AAPT_PREF_CONFIG := hdpi
# Hold precise GC data
PRODUCT_TAGS += dalvik.gc.type-precise
# Wi-Fi packages
PRODUCT_PACKAGES += \
libwpa_client \
hostapd \
dhcpcd.conf \
wpa_supplicant \
wpa_supplicant.conf
# Open-source HALs
PRODUCT_PACKAGES += \
audio.a2dp.default \
audio.r_submix.default \
lights.montblanc
# Misc packages
PRODUCT_PACKAGES += \
make_ext4fs \
setup_fs \
Stk
#F2FS
PRODUCT_PACKAGES += \
genfstab
# Prebuilt kernel
PRODUCT_COPY_FILES += \
device/samsung/golden/ramdisk/zImage:kernel
# Initial ramdisk
PRODUCT_COPY_FILES += \
device/samsung/golden/ramdisk/init.samsunggolden.rc:root/init.samsunggolden.rc \
device/samsung/golden/ramdisk/init.samsunggolden.usb.rc:root/init.samsunggolden.usb.rc \
device/samsung/golden/ramdisk/ueventd.samsunggolden.rc:root/ueventd.samsunggolden.rc \
device/samsung/golden/ramdisk/lpm.rc:root/lpm.rc \
device/samsung/golden/ramdisk/sbin/charger:root/sbin/charger \
device/samsung/golden/ramdisk/res/images/charger/battery_0.png:root/res/images/charger/battery_0.png \
device/samsung/golden/ramdisk/res/images/charger/battery_1.png:root/res/images/charger/battery_1.png \
device/samsung/golden/ramdisk/res/images/charger/battery_2.png:root/res/images/charger/battery_2.png \
device/samsung/golden/ramdisk/res/images/charger/battery_3.png:root/res/images/charger/battery_3.png \
device/samsung/golden/ramdisk/res/images/charger/battery_4.png:root/res/images/charger/battery_4.png \
device/samsung/golden/ramdisk/res/images/charger/battery_5.png:root/res/images/charger/battery_5.png \
device/samsung/golden/ramdisk/res/images/charger/battery_charge.png:root/res/images/charger/battery_charge.png \
device/samsung/golden/ramdisk/res/images/charger/battery_fail.png:root/res/images/charger/battery_fail.png
# Permissions
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_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.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-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.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \
frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.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.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.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.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \
frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
frameworks/native/data/etc/android.software.sip.xml:system/etc/permissions/android.software.sip.xml \
packages/wallpapers/LivePicker/android.software.live_wallpaper.xml:system/etc/permissions/android.software.live_wallpaper.xml
# Codec config files
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
# Every single binary blob
PRODUCT_COPY_FILES += \
$(call find-copy-subdir-files,*,device/samsung/golden/prebuilt,system)
# Wi-Fi config
$(call inherit-product-if-exists, hardware/broadcom/wlan/bcmdhd/config/config-bcm.mk)
# Dalvik config
$(call inherit-product, frameworks/native/build/phone-xhdpi-1024-dalvik-heap.mk)