# # Copyright (C) 2018 The LineageOS 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. # LOCAL_PATH := device/samsung/universal8895-common DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay # Audio PRODUCT_PACKAGES += \ android.hardware.audio.common-util \ android.hardware.audio.common@2.0-util \ android.hardware.audio.common@2.0 \ android.hardware.audio.common@4.0-util \ android.hardware.audio.common@4.0 \ android.hardware.audio.effect@2.0 \ android.hardware.audio.effect@4.0 \ android.hardware.audio@2.0 \ android.hardware.audio@4.0 \ android.hardware.soundtrigger@2.0-core \ android.hardware.soundtrigger@2.0 \ android.hardware.soundtrigger@2.1 \ android.hardware.audio@2.0-service \ android.hardware.audio.effect@2.0-impl \ android.hardware.audio@2.0-impl \ android.hardware.soundtrigger@2.0-impl \ libalsautils \ libeffects \ libspeexresampler \ libaudioutils \ audio.a2dp.default \ libtinycompress PRODUCT_COPY_FILES += \ frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \ frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \ frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml # Boot animation TARGET_BOOTANIMATION_PRELOAD := true TARGET_BOOTANIMATION_TEXTURE_CACHE := true TARGET_SCREEN_HEIGHT := 2560 TARGET_SCREEN_WIDTH := 1440 # Graphics # Device uses high-density artwork where available PRODUCT_AAPT_CONFIG := xlarge PRODUCT_AAPT_PREF_CONFIG := xxxhdpi # A list of dpis to select prebuilt apk, in precedence order. PRODUCT_AAPT_PREBUILT_DPI := xxxhdpi xxhdpi xhdpi hdpi # Camera PRODUCT_PACKAGES += \ android.hardware.camera.provider@2.4-impl \ android.hardware.camera.provider@2.4-service \ android.hardware.camera.common@1.0 \ android.hardware.camera.device@1.0 \ android.hardware.camera.device@3.2 \ android.hardware.camera.device@3.3 \ android.hardware.camera.device@3.4 \ android.hardware.camera.provider@2.4 \ Snap # Camera configurations PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/configs/external_camera_config.xml:$(TARGET_COPY_OUT_VENDOR)/etc/external_camera_config.xml # Configstore PRODUCT_PACKAGES += \ android.hardware.configstore@1.0-impl \ android.hardware.configstore@1.0-service # DRM PRODUCT_PACKAGES += \ android.hardware.drm@1.0 \ android.hardware.drm@1.1 \ libfwdlockengine \ libdrmclearkeyplugin \ android.hardware.drm@1.0-service \ android.hardware.drm@1.1-service.clearkey \ android.hardware.drm@1.0-impl # Fingerprint PRODUCT_PACKAGES += \ android.hardware.biometrics.fingerprint@2.1-service.samsung # Flat device tree for boot image PRODUCT_PACKAGES += \ dtbhtoolExynos # Gatekeeper PRODUCT_PACKAGES += \ android.hardware.gatekeeper@1.0-service \ android.hardware.gatekeeper@1.0-impl # Graphics PRODUCT_PACKAGES += \ android.hardware.graphics.allocator@2.0-impl \ android.hardware.graphics.allocator@2.0-service \ android.hardware.graphics.composer@2.2-service \ android.hardware.graphics.mapper@2.0-impl # Health PRODUCT_PACKAGES += \ android.hardware.health@2.0-impl \ android.hardware.health@2.0-service # HIDL Manifest PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/manifest.xml:$(TARGET_COPY_OUT_VENDOR)/manifest.xml # HotwordEnrollement app permissions PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/configs/privapp-permissions-hotword.xml:system/etc/permissions/privapp-permissions-hotword.xml # Keylayout PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/keylayout/gpio_keys.kl:system/usr/keylayout/gpio_keys.kl # keymaster PRODUCT_PACKAGES += \ android.hardware.keymaster@3.0 \ android.hardware.keymaster@3.0-service \ android.hardware.keymaster@3.0-impl \ libkeymaster3device # Lights PRODUCT_PACKAGES += \ android.hardware.light@2.0-service.samsung # Livedisplay PRODUCT_PACKAGES += \ vendor.lineage.livedisplay@2.0-service.universal8895 # Media PRODUCT_COPY_FILES += \ frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \ frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml \ frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml # Memory PRODUCT_PACKAGES += \ android.hardware.memtrack@1.0-impl # NFC PRODUCT_PACKAGES += \ libnfc-nci \ libnfc_nci_jni \ NfcNci \ Tag \ com.android.nfc_extras # Power PRODUCT_PACKAGES += \ power.universal8895 \ android.hardware.power@1.0-service \ android.hardware.power@1.0-impl # Permissions PRODUCT_COPY_FILES += \ frameworks/native/data/etc/android.hardware.audio.low_latency.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.low_latency.xml \ frameworks/native/data/etc/android.hardware.audio.pro.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.pro.xml \ frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \ frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml \ frameworks/native/data/etc/android.hardware.camera.ar.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.ar.xml \ frameworks/native/data/etc/android.hardware.camera.autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.autofocus.xml \ frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.flash-autofocus.xml \ frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \ frameworks/native/data/etc/android.hardware.camera.full.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.full.xml \ frameworks/native/data/etc/android.hardware.camera.raw.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.raw.xml \ frameworks/native/data/etc/android.hardware.camera.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.xml \ frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml \ frameworks/native/data/etc/android.hardware.location.gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.location.gps.xml \ frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \ frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \ frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \ frameworks/native/data/etc/android.hardware.opengles.aep.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.opengles.aep.xml \ frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \ frameworks/native/data/etc/android.hardware.sensor.barometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.barometer.xml \ frameworks/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.compass.xml \ frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.gyroscope.xml \ frameworks/native/data/etc/android.hardware.sensor.hifi_sensors.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.hifi_sensors.xml \ frameworks/native/data/etc/android.hardware.sensor.light.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.light.xml \ frameworks/native/data/etc/android.hardware.sensor.proximity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.proximity.xml \ frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepcounter.xml \ frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepdetector.xml \ frameworks/native/data/etc/android.hardware.telephony.gsm.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.gsm.xml \ frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \ frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \ frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \ frameworks/native/data/etc/android.hardware.vr.high_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vr.high_performance.xml \ frameworks/native/data/etc/android.hardware.vulkan.compute-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.compute.xml \ frameworks/native/data/etc/android.hardware.vulkan.level-1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.level.xml \ frameworks/native/data/etc/android.hardware.vulkan.version-1_0_3.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.version.xml \ frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \ frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \ frameworks/native/data/etc/com.android.nfc_extras.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.android.nfc_extras.xml \ frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \ frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml # ramdisk PRODUCT_PACKAGES += \ fstab.samsungexynos8895 \ init.baseband.rc \ init.samsung.rc \ init.samsungexynos8895.rc \ init.samsungexynos8895.usb.rc \ ueventd.samsungexynos8895.rc # RenderScript PRODUCT_PACKAGES += \ android.hardware.renderscript@1.0-impl # RIL PRODUCT_PACKAGES += \ android.hardware.radio@1.2 \ libxml2 # SamsungDoze PRODUCT_PACKAGES += \ SamsungDoze # Seccomp filters PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/seccomp/mediaextractor-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaextractor.policy \ $(LOCAL_PATH)/seccomp/mediacodec-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy # Sensors PRODUCT_PACKAGES += \ android.hardware.sensors@1.0 \ android.hardware.sensors@1.0-impl \ android.hardware.sensors@1.0-service # Shims PRODUCT_PACKAGES += \ libexynoscamera_shim # stagefright PRODUCT_PACKAGES += \ libgui_vendor # s-pen PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/configs/samsung-sec_e-pen.idc:system/usr/idc/sec_e-pen.idc # TextClassifier PRODUCT_PACKAGES += \ textclassifier.bundle1 # Trust HAL PRODUCT_PACKAGES += \ vendor.lineage.trust@1.0-service # USB PRODUCT_PACKAGES += \ android.hardware.usb@1.0-service.basic # Vendor security patch level PRODUCT_PROPERTY_OVERRIDES += \ ro.lineage.build.vendor_security_patch=2019-08-01 # Vibrator PRODUCT_PACKAGES += \ android.hardware.vibrator@1.0-service.universal8895 # Wifi PRODUCT_PACKAGES += \ macloader \ wifiloader \ hostapd \ wificond \ wifilogd \ wlutil \ libwpa_client \ wpa_supplicant \ wpa_supplicant.conf \ android.hardware.wifi@1.0-service \ android.hardware.wifi@1.0 \ android.hardware.wifi@1.0-impl # Properties -include $(LOCAL_PATH)/system_prop.mk # call the proprietary setup $(call inherit-product, vendor/samsung/universal8895-common/universal8895-common-vendor.mk)