X-Git-Url: http://git.osdn.net/view?p=android-x86%2Fdevice-generic-common.git;a=blobdiff_plain;f=device.mk;h=55c03d06214afdcb512071d140045ce191e00846;hp=1b809973a16c98e38c36272348297209bc2a6617;hb=4a7414386af24ddd9b25d4614547c4b03ae80339;hpb=3b1393ca4cd6095031d28ceec30ba6ca24a93740 diff --git a/device.mk b/device.mk index 1b80997..55c03d0 100644 --- a/device.mk +++ b/device.mk @@ -1,5 +1,5 @@ # -# Copyright (C) 2014 The Android-x86 Open Source Project +# Copyright (C) 2014-2016 The Android-x86 Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -20,11 +20,14 @@ PRODUCT_PROPERTY_OVERRIDES := \ ro.ril.hsxpa=1 \ ro.ril.gprsclass=10 \ keyguard.no_require_sim=true \ - ro.com.android.dataroaming=true + ro.com.android.dataroaming=true \ + media.sf.hwaccel=1 \ + media.sf.omx-plugin=libffmpeg_omx.so \ + media.sf.extractor-plugin=libffmpeg_extractor.so PRODUCT_DEFAULT_PROPERTY_OVERRIDES := \ ro.arch=x86 \ - ro.rtc_local_time=1 \ + persist.rtc_local_time=1 \ PRODUCT_COPY_FILES := \ $(if $(wildcard $(PRODUCT_DIR)init.rc),$(PRODUCT_DIR)init.rc:root/init.rc) \ @@ -32,6 +35,7 @@ PRODUCT_COPY_FILES := \ $(if $(wildcard $(PRODUCT_DIR)modules.blacklist),$(PRODUCT_DIR),$(LOCAL_PATH)/)modules.blacklist:system/etc/modules.blacklist \ $(if $(wildcard $(PRODUCT_DIR)fstab.$(TARGET_PRODUCT)),$(PRODUCT_DIR)fstab.$(TARGET_PRODUCT),$(LOCAL_PATH)/fstab.x86):root/fstab.$(TARGET_PRODUCT) \ $(if $(wildcard $(PRODUCT_DIR)wpa_supplicant.conf),$(PRODUCT_DIR),$(LOCAL_PATH)/)wpa_supplicant.conf:system/etc/wifi/wpa_supplicant.conf \ + $(if $(wildcard $(PRODUCT_DIR)wpa_supplicant_overlay.conf),$(PRODUCT_DIR),$(LOCAL_PATH)/)wpa_supplicant_overlay.conf:system/etc/wifi/wpa_supplicant_overlay.conf \ $(if $(wildcard $(PRODUCT_DIR)excluded-input-devices.xml),$(PRODUCT_DIR),$(LOCAL_PATH)/)excluded-input-devices.xml:system/etc/excluded-input-devices.xml \ $(if $(wildcard $(PRODUCT_DIR)init.$(TARGET_PRODUCT).rc),$(PRODUCT_DIR)init.$(TARGET_PRODUCT).rc,$(LOCAL_PATH)/init.x86.rc):root/init.$(TARGET_PRODUCT).rc \ $(if $(wildcard $(PRODUCT_DIR)ueventd.$(TARGET_PRODUCT).rc),$(PRODUCT_DIR)ueventd.$(TARGET_PRODUCT).rc,$(LOCAL_PATH)/ueventd.x86.rc):root/ueventd.$(TARGET_PRODUCT).rc \ @@ -43,8 +47,10 @@ PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/media_codecs.xml:system/etc/media_codecs.xml \ $(LOCAL_PATH)/media_profiles.xml:system/etc/media_profiles.xml \ device/sample/etc/apns-full-conf.xml:system/etc/apns-conf.xml \ + device/sample/etc/old-apns-conf.xml:system/etc/old-apns-conf.xml \ 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_video.xml:system/etc/media_codecs_google_video.xml \ + frameworks/base/config/compiled-classes-phone:system/etc/compiled-classes \ frameworks/native/data/etc/tablet_core_hardware.xml:system/etc/permissions/tablet_core_hardware.xml \ frameworks/native/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml \ frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \ @@ -54,16 +60,18 @@ PRODUCT_COPY_FILES += \ frameworks/native/data/etc/android.hardware.ethernet.xml:system/etc/permissions/android.hardware.ethernet.xml \ frameworks/native/data/etc/android.hardware.location.xml:system/etc/permissions/android.hardware.location.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.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \ - frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.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.barometer.xml:system/etc/permissions/android.hardware.sensor.barometer.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.barometer.xml:system/etc/permissions/android.hardware.sensor.barometer.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.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \ + frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \ frameworks/native/data/etc/android.hardware.touchscreen.multitouch.distinct.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.distinct.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.xml:system/etc/permissions/android.hardware.wifi.xml \ + frameworks/native/data/etc/android.software.freeform_window_management.xml:system/etc/permissions/android.software.freeform_window_management.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 \ $(foreach f,$(wildcard $(LOCAL_PATH)/alsa/*),$(f):$(subst $(LOCAL_PATH),system/etc,$(f))) \ @@ -78,8 +86,11 @@ PRODUCT_AAPT_PREF_CONFIG := mdpi DEVICE_PACKAGE_OVERLAYS := $(LOCAL_PATH)/overlay +# Get Android 8.0 HIDL HALs +$(call inherit-product,$(LOCAL_PATH)/treble.mk) + # Get the firmwares -$(call inherit-product,$(LOCAL_PATH)/firmware.mk) +$(call inherit-product,device/generic/firmware/firmware.mk) # Get the touchscreen calibration tool $(call inherit-product-if-exists,external/tslib/tslib.mk) @@ -100,7 +111,10 @@ $(call inherit-product-if-exists,hardware/libsensors/sensors.mk) $(call inherit-product,frameworks/native/build/tablet-10in-xhdpi-2048-dalvik-heap.mk) # Get GMS -$(call inherit-product-if-exists,vendor/google/products/gms.mk) +GAPPS_VARIANT ?= pico +$(call inherit-product-if-exists,$(if $(wildcard vendor/google/products/gms.mk),vendor/google/products/gms.mk,vendor/opengapps/build/opengapps-packages.mk)) + +# Get native bridge settings +$(call inherit-product-if-exists,$(LOCAL_PATH)/nativebridge/nativebridge.mk) -# Get Arm translator -$(call inherit-product-if-exists,vendor/intel/houdini/houdini.mk) +$(call inherit-product,$(if $(wildcard $(PRODUCT_DIR)packages.mk),$(PRODUCT_DIR),$(LOCAL_PATH)/)packages.mk)