From 39b59502c7b253a43cab1d4a0583b49f2741a125 Mon Sep 17 00:00:00 2001 From: Miroslav Tisma Date: Mon, 15 Jun 2015 15:53:39 +0200 Subject: [PATCH] Add android.hardware.ethernet.xml for ranchu targets This commit adds android.hardware.ethernet.xml file for ethernet permission to PRODUCT_COPY_FILES which will be copied to /system/etc/permission folder on the target. Reason for adding this permission file is for enabling the ethernet and having functional networking until RIL backend support in ranchu is implemented. This requires dhcpcd_eth0 service definition in init.ranchu.rc. Architectures that use goldfish emulator do not need ethernet support, because networking is provided by RIL. Change-Id: I7972f80cf78c0fdecf3fde45bf018230bbcefd38 --- target/product/aosp_arm64.mk | 6 ++++++ target/product/aosp_mips64.mk | 6 ++++++ target/product/aosp_x86_64.mk | 6 ++++++ 3 files changed, 18 insertions(+) diff --git a/target/product/aosp_arm64.mk b/target/product/aosp_arm64.mk index ea8ec06eb4..6232295235 100644 --- a/target/product/aosp_arm64.mk +++ b/target/product/aosp_arm64.mk @@ -19,6 +19,12 @@ # build quite specifically for the emulator, and might not be # entirely appropriate to inherit from for on-device configurations. +# This is for enabling ethernet support for ranchu. +# Consider removing this after RIL support is provided in ranchu. +# Having this permission file on the target requires additional +# dhcpcd_eth0 service defined in the init.ranchu.rc. +PRODUCT_COPY_FILES += frameworks/native/data/etc/android.hardware.ethernet.xml:system/etc/permissions/android.hardware.ethernet.xml + $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base_telephony.mk) $(call inherit-product, $(SRC_TARGET_DIR)/board/generic_arm64/device.mk) diff --git a/target/product/aosp_mips64.mk b/target/product/aosp_mips64.mk index 723c59f434..d485677fd6 100644 --- a/target/product/aosp_mips64.mk +++ b/target/product/aosp_mips64.mk @@ -19,6 +19,12 @@ # mips64 build quite specifically for the emulator, and might not be # entirely appropriate to inherit from for on-device configurations. +# This is for enabling ethernet support for ranchu. +# Consider removing this after RIL support is provided in ranchu. +# Having this permission file on the target requires additional +# dhcpcd_eth0 service defined in the init.ranchu.rc. +PRODUCT_COPY_FILES += frameworks/native/data/etc/android.hardware.ethernet.xml:system/etc/permissions/android.hardware.ethernet.xml + $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base_telephony.mk) $(call inherit-product, $(SRC_TARGET_DIR)/board/generic_mips64/device.mk) diff --git a/target/product/aosp_x86_64.mk b/target/product/aosp_x86_64.mk index a14508f7b7..6c01e5aef2 100644 --- a/target/product/aosp_x86_64.mk +++ b/target/product/aosp_x86_64.mk @@ -23,6 +23,12 @@ # that isn't a wifi connection. This will instruct init.rc to enable the # network connection so that you can use it with ADB +# This is for enabling ethernet support for ranchu. +# Consider removing this after RIL support is provided in ranchu. +# Having this permission file on the target requires additional +# dhcpcd_eth0 service defined in the init.ranchu.rc. +PRODUCT_COPY_FILES += frameworks/native/data/etc/android.hardware.ethernet.xml:system/etc/permissions/android.hardware.ethernet.xml + $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base_telephony.mk) $(call inherit-product, $(SRC_TARGET_DIR)/board/generic_x86_64/device.mk)