Commit | Line | Data |
---|---|---|
f3fa1980 S |
1 | LOCAL_PATH := device/alcatel/ttab |
2 | ||
3 | $(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk) | |
4 | ||
5 | # Device overlay | |
6 | DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay | |
7 | ||
8 | # Device uses high-density artwork where available | |
9 | PRODUCT_AAPT_CONFIG := normal mdpi | |
10 | PRODUCT_AAPT_PREF_CONFIG := mdpi | |
11 | # A list of dpis to select prebuilt apk, in precedence order. | |
12 | PRODUCT_AAPT_PREBUILT_DPI := hdpi mdpi | |
13 | ||
14 | # Boot animation | |
15 | TARGET_SCREEN_HEIGHT := 1280 | |
16 | TARGET_SCREEN_WIDTH := 800 | |
17 | ||
18 | ifeq ($(TARGET_BUILD_VARIANT),eng) | |
19 | ||
20 | PRODUCT_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 | ||
28 | endif | |
29 | ||
30 | # no RIL | |
31 | PRODUCT_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 | |
40 | PRODUCT_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 \ | |
f3fa1980 S |
44 | frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \ |
45 | frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \ | |
46 | frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \ | |
47 | frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \ | |
f3fa1980 S |
48 | frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \ |
49 | frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \ | |
50 | frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \ | |
51 | frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \ | |
f3fa1980 S |
52 | frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \ |
53 | frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \ | |
54 | frameworks/native/data/etc/android.hardware.touchscreen.xml:system/etc/permissions/android.hardware.touchscreen.xml \ | |
55 | frameworks/native/data/etc/android.hardware.touchscreen.multitouch.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.xml \ | |
56 | frameworks/native/data/etc/android.hardware.touchscreen.multitouch.distinct.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.distinct.xml \ | |
57 | frameworks/native/data/etc/android.software.webview.xml:system/etc/permissions/android.software.webview.xml \ | |
f3fa1980 | 58 | frameworks/native/data/etc/android.hardware.bluetooth.xml:system/etc/permissions/android.hardware.bluetooth.xml \ |
5eaabb8a S |
59 | frameworks/native/data/etc/android.hardware.location.xml:system/etc/permissions/android.hardware.location.xml \ |
60 | frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml | |
f3fa1980 | 61 | |
1bd08f23 | 62 | # Media |
f3fa1980 | 63 | PRODUCT_COPY_FILES += \ |
f3fa1980 S |
64 | frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:system/etc/media_codecs_google_audio.xml \ |
65 | frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:system/etc/media_codecs_google_telephony.xml \ | |
1bd08f23 S |
66 | frameworks/av/media/libstagefright/data/media_codecs_google_video_le.xml:system/etc/media_codecs_google_video_le.xml \ |
67 | $(LOCAL_PATH)/configs/media/media_codecs.xml:system/etc/media_codecs.xml \ | |
68 | $(LOCAL_PATH)/configs/media/media_codecs_mediatek_video.xml:system/etc/media_codecs_mediatek_video.xml \ | |
69 | $(LOCAL_PATH)/configs/media/media_codecs_performance.xml:system/etc/media_codecs_performance.xml \ | |
9f243930 S |
70 | $(LOCAL_PATH)/configs/media/media_profiles.xml:system/etc/media_profiles.xml \ |
71 | $(LOCAL_PATH)/seccomp/mediacodec-seccomp.policy:system/vendor/etc/seccomp_policy/mediacodec.policy | |
f3fa1980 S |
72 | |
73 | # Bluetooth config files | |
74 | PRODUCT_COPY_FILES += \ | |
75 | $(LOCAL_PATH)/configs/bluetooth/bt_did.conf:system/etc/bluetooth/bt_did.conf \ | |
76 | $(LOCAL_PATH)/configs/bluetooth/btconfig.xml:system/etc/bluetooth/btconfig.xml | |
77 | ||
78 | # Wifi config files | |
79 | PRODUCT_COPY_FILES += \ | |
80 | $(LOCAL_PATH)/configs/wifi/p2p_supplicant_overlay.conf:system/etc/wifi/p2p_supplicant_overlay.conf \ | |
81 | $(LOCAL_PATH)/configs/wifi/wpa_supplicant.conf:system/etc/wifi/wpa_supplicant.conf \ | |
82 | $(LOCAL_PATH)/configs/wifi/wpa_supplicant_overlay.conf:system/etc/wifi/wpa_supplicant_overlay.conf | |
83 | ||
84 | # Audio policy | |
85 | PRODUCT_COPY_FILES += \ | |
86 | $(LOCAL_PATH)/configs/audio_policy.conf:system/etc/audio_policy.conf | |
87 | ||
88 | # ramdisk | |
89 | PRODUCT_COPY_FILES += $(call find-copy-subdir-files,*,$(LOCAL_PATH)/ramdisk,root) | |
90 | ||
91 | # Audio | |
92 | PRODUCT_PACKAGES += \ | |
93 | audio.a2dp.default | |
94 | ||
95 | # Bluetooth | |
96 | PRODUCT_PACKAGES += \ | |
97 | bluetooth.default | |
98 | ||
99 | # Charger | |
100 | # Use cm images if available, aosp ones otherwise | |
101 | PRODUCT_PACKAGES += \ | |
102 | charger_res_images \ | |
103 | cm_charger_res_images \ | |
104 | charger | |
105 | ||
106 | # Power | |
107 | PRODUCT_PACKAGES += \ | |
108 | power.default | |
109 | ||
918f39cd S |
110 | # Sensor |
111 | PRODUCT_COPY_FILES += \ | |
112 | $(LOCAL_PATH)/configs/sensors/_hals.conf:system/vendor/etc/sensors/_hals.conf | |
113 | ||
114 | PRODUCT_PACKAGES += \ | |
115 | sensors.mt8127 | |
116 | ||
b6c7db9a S |
117 | # Misc |
118 | PRODUCT_PACKAGES += \ | |
bd70999b S |
119 | libcurl \ |
120 | libboringssl-compat | |
b6c7db9a | 121 | |
f3fa1980 S |
122 | # network |
123 | PRODUCT_PACKAGES += \ | |
124 | netd | |
125 | ||
126 | PRODUCT_PACKAGES += \ | |
127 | Camera2 | |
128 | ||
129 | # IPv6 tethering | |
130 | PRODUCT_PACKAGES += \ | |
131 | ebtables \ | |
132 | ethertypes | |
133 | ||
134 | # libxlog | |
135 | PRODUCT_PACKAGES += \ | |
136 | libxlog \ | |
137 | libmtk_symbols \ | |
138 | libstlport \ | |
139 | lights.mt8127 | |
140 | ||
f3fa1980 | 141 | PRODUCT_PACKAGES += \ |
dc4356ba | 142 | android.hardware.wifi@1.0-service \ |
f3fa1980 S |
143 | lib_driver_cmd_mt66xx \ |
144 | libwifi-hal-mt66xx \ | |
145 | wifi_hal \ | |
146 | libwpa_client \ | |
147 | hostapd \ | |
dc4356ba S |
148 | hostapd_cli \ |
149 | dhcpcd.conf \ | |
150 | wificond \ | |
151 | wifilogd \ | |
f3fa1980 S |
152 | wpa_supplicant |
153 | ||
154 | PRODUCT_COPY_FILES += \ | |
155 | $(LOCAL_PATH)/configs/hostapd/hostapd_default.conf:system/etc/hostapd/hostapd_default.conf \ | |
156 | $(LOCAL_PATH)/configs/hostapd/hostapd.accept:system/etc/hostapd/hostapd.accept \ | |
157 | $(LOCAL_PATH)/configs/hostapd/hostapd.deny:system/etc/hostapd/hostapd.deny | |
158 | ||
159 | ||
160 | # libbt-vendor | |
161 | PRODUCT_PACKAGES += \ | |
162 | libbt-vendor | |
163 | ||
74b8a20c S |
164 | # Common Android Go configurations |
165 | $(call inherit-product, build/target/product/go_defaults.mk) | |
166 | ||
5b7d0bae S |
167 | # hidl packages |
168 | $(call inherit-product, $(LOCAL_PATH)/hidl.mk) | |
169 | ||
f3fa1980 S |
170 | # Get non-open-source specific aspects |
171 | $(call inherit-product-if-exists, vendor/alcatel/ttab/ttab-vendor.mk) |