diff options
-rw-r--r-- | permissions/com.google.android.tv.live_channels.xml | 18 | ||||
-rw-r--r-- | permissions/tv_core_hardware.xml (renamed from tv_core_hardware.xml) | 0 | ||||
-rw-r--r-- | products/atv_base.mk | 9 |
3 files changed, 26 insertions, 1 deletions
diff --git a/permissions/com.google.android.tv.live_channels.xml b/permissions/com.google.android.tv.live_channels.xml new file mode 100644 index 0000000..de0dc98 --- /dev/null +++ b/permissions/com.google.android.tv.live_channels.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright 2015 Google Inc. All rights reserved. + + 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. +--> +<permissions> + <feature name="com.google.android.tv.live_channels" /> +</permissions> diff --git a/tv_core_hardware.xml b/permissions/tv_core_hardware.xml index 7ea515f..7ea515f 100644 --- a/tv_core_hardware.xml +++ b/permissions/tv_core_hardware.xml diff --git a/products/atv_base.mk b/products/atv_base.mk index 12ec75d..d85c40a 100644 --- a/products/atv_base.mk +++ b/products/atv_base.mk @@ -22,7 +22,7 @@ PRODUCT_PACKAGES := \ tv_input.default PRODUCT_COPY_FILES := \ - device/google/atv/tv_core_hardware.xml:system/etc/permissions/tv_core_hardware.xml + device/google/atv/permissions/tv_core_hardware.xml:system/etc/permissions/tv_core_hardware.xml DEVICE_PACKAGE_OVERLAYS := \ device/google/atv/overlay @@ -100,6 +100,13 @@ EXTENDED_FONT_FOOTPRINT := true # Use full NotoSans font FONT_NOTOSANS_FULL := true +# A feature com.google.android.tv.live_channels is used to whitelist +# devices which can support Live Channels app +ifeq ($(USE_GMS_LIVECHANNELS),true) + PRODUCT_COPY_FILES += \ + device/google/atv/permissions/com.google.android.tv.live_channels.xml:system/etc/permissions/com.google.android.tv.live_channels.xml +endif + $(call inherit-product-if-exists, frameworks/base/data/sounds/AllAudio.mk) $(call inherit-product-if-exists, external/svox/pico/lang/all_pico_languages.mk) $(call inherit-product-if-exists, frameworks/base/data/fonts/fonts.mk) |