sepolicy: address cameraserver denials
[GitHub/mt8127/android_device_alcatel_ttab.git] / device.mk
CommitLineData
f3fa1980
S
1LOCAL_PATH := device/alcatel/ttab
2
3$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)
4
5# Device overlay
6DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
7
8# Device uses high-density artwork where available
9PRODUCT_AAPT_CONFIG := normal mdpi
10PRODUCT_AAPT_PREF_CONFIG := mdpi
11# A list of dpis to select prebuilt apk, in precedence order.
12PRODUCT_AAPT_PREBUILT_DPI := hdpi mdpi
13
14# Boot animation
15TARGET_SCREEN_HEIGHT := 1280
16TARGET_SCREEN_WIDTH := 800
17
18ifeq ($(TARGET_BUILD_VARIANT),eng)
19
20PRODUCT_PROPERTY_OVERRIDES += \
21 ro.secure=0 \
22 ro.adb.secure=0 \
23 persist.service.adb.enable=1 \
24 persist.service.debuggable=1 \
25 persist.sys.usb.config=adb \
26 ro.securestorage.support=false
27
28endif
29
30# no RIL
31PRODUCT_PROPERTY_OVERRIDES += \
32 keyguard.no_require_sim=1 \
33 ro.radio.use-ppp=no \
34 ro.config.nocheckin=yes \
35 ro.radio.noril=1 \
36 ro.carrier=wifi-only \
37 persist.radio.noril=1
38
39# Permissions
40PRODUCT_COPY_FILES += \
41 frameworks/native/data/etc/android.hardware.camera.xml:system/etc/permissions/android.hardware.camera.xml \
42 frameworks/native/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml \
43 frameworks/native/data/etc/tablet_core_hardware.xml:system/etc/permissions/tablet_core_hardware.xml \
44 frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
45 frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \
46 frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
47 frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \
48 frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \
49 frameworks/native/data/etc/android.hardware.sensor.barometer.xml:system/etc/permissions/android.hardware.sensor.barometer.xml \
50 frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.compass.xml \
51 frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
52 frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
53 frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
54 frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \
55 frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
56 frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
57 frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
58 frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:system/etc/permissions/android.hardware.sensor.stepcounter.xml \
59 frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:system/etc/permissions/android.hardware.sensor.stepdetector.xml \
60 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \
61 frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \
62 frameworks/native/data/etc/android.hardware.touchscreen.xml:system/etc/permissions/android.hardware.touchscreen.xml \
63 frameworks/native/data/etc/android.hardware.touchscreen.multitouch.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.xml \
64 frameworks/native/data/etc/android.hardware.touchscreen.multitouch.distinct.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.distinct.xml \
65 frameworks/native/data/etc/android.software.webview.xml:system/etc/permissions/android.software.webview.xml \
66 frameworks/native/data/etc/android.software.sip.xml:system/etc/permissions/android.software.sip.xml \
67 frameworks/native/data/etc/android.hardware.bluetooth.xml:system/etc/permissions/android.hardware.bluetooth.xml \
68 frameworks/native/data/etc/android.hardware.location.xml:system/etc/permissions/android.hardware.location.xml \
69 frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml
70
71# media codecs files that are not copied from stock rom
72PRODUCT_COPY_FILES += \
73 $(LOCAL_PATH)/configs/media_codecs.xml:system/etc/media_codecs.xml \
74 $(LOCAL_PATH)/configs/media_profiles.xml:system/etc/media_profiles.xml \
75 frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:system/etc/media_codecs_google_audio.xml \
76 frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:system/etc/media_codecs_google_telephony.xml \
77 frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:system/etc/media_codecs_google_video.xml
78
79# Bluetooth config files
80PRODUCT_COPY_FILES += \
81 $(LOCAL_PATH)/configs/bluetooth/bt_did.conf:system/etc/bluetooth/bt_did.conf \
82 $(LOCAL_PATH)/configs/bluetooth/btconfig.xml:system/etc/bluetooth/btconfig.xml
83
84# Wifi config files
85PRODUCT_COPY_FILES += \
86 $(LOCAL_PATH)/configs/wifi/p2p_supplicant_overlay.conf:system/etc/wifi/p2p_supplicant_overlay.conf \
87 $(LOCAL_PATH)/configs/wifi/wpa_supplicant.conf:system/etc/wifi/wpa_supplicant.conf \
88 $(LOCAL_PATH)/configs/wifi/wpa_supplicant_overlay.conf:system/etc/wifi/wpa_supplicant_overlay.conf
89
90# Audio policy
91PRODUCT_COPY_FILES += \
92 $(LOCAL_PATH)/configs/audio_policy.conf:system/etc/audio_policy.conf
93
94# ramdisk
95PRODUCT_COPY_FILES += $(call find-copy-subdir-files,*,$(LOCAL_PATH)/ramdisk,root)
96
97# Audio
98PRODUCT_PACKAGES += \
99 audio.a2dp.default
100
101# Bluetooth
102PRODUCT_PACKAGES += \
103 bluetooth.default
104
105# Charger
106# Use cm images if available, aosp ones otherwise
107PRODUCT_PACKAGES += \
108 charger_res_images \
109 cm_charger_res_images \
110 charger
111
112# Power
113PRODUCT_PACKAGES += \
114 power.default
115
116# network
117PRODUCT_PACKAGES += \
118 netd
119
120PRODUCT_PACKAGES += \
121 Camera2
122
123# IPv6 tethering
124PRODUCT_PACKAGES += \
125 ebtables \
126 ethertypes
127
128# libxlog
129PRODUCT_PACKAGES += \
130 libxlog \
131 libmtk_symbols \
132 libstlport \
133 lights.mt8127
134
135# Wifi
136PRODUCT_PACKAGES += \
137 lib_driver_cmd_mt66xx \
138 libwifi-hal-mt66xx \
139 wifi_hal \
140 libwpa_client \
141 hostapd \
142 wpa_supplicant
143
144PRODUCT_COPY_FILES += \
145 $(LOCAL_PATH)/configs/hostapd/hostapd_default.conf:system/etc/hostapd/hostapd_default.conf \
146 $(LOCAL_PATH)/configs/hostapd/hostapd.accept:system/etc/hostapd/hostapd.accept \
147 $(LOCAL_PATH)/configs/hostapd/hostapd.deny:system/etc/hostapd/hostapd.deny
148
149
150# libbt-vendor
151PRODUCT_PACKAGES += \
152 libbt-vendor
153
154# Get non-open-source specific aspects
155$(call inherit-product-if-exists, vendor/alcatel/ttab/ttab-vendor.mk)