Import product definition from separate repository

This commit is contained in:
Simon Fels 2017-08-29 11:20:47 +02:00
commit 7ffc88225b
15 changed files with 414 additions and 0 deletions

96
android/products/anbox.mk Normal file
View file

@ -0,0 +1,96 @@
#
# Copyright (C) 2013 The Android 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.
# 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.
#
PRODUCT_PACKAGES += \
egl.cfg \
gralloc.goldfish \
libGLESv1_CM_emulation \
lib_renderControl_enc \
libEGL_emulation \
libGLES_android \
libGLESv2_enc \
libOpenglSystemCommon \
libGLESv2_emulation \
libGLESv1_enc \
qemu-props \
qemud \
camera.goldfish \
camera.goldfish.jpeg \
lights.goldfish \
gps.goldfish \
fingerprint.goldfish \
sensors.goldfish \
audio.primary.goldfish \
vibrator.goldfish \
power.goldfish \
fingerprintd
PRODUCT_COPY_FILES += \
anbox/android/fstab.goldfish:root/fstab.goldfish \
anbox/android/init.goldfish.rc:root/init.goldfish.rc \
anbox/android/init.goldfish.sh:system/etc/init.goldfish.sh \
anbox/android/ueventd.goldfish.rc:root/ueventd.goldfish.rc \
anbox/android/camera/media_profiles.xml:system/etc/media_profiles.xml \
anbox/android/camera/media_codecs.xml:system/etc/media_codecs.xml \
hardware/libhardware_legacy/audio/audio_policy.conf:system/etc/audio_policy.conf
PRODUCT_CHARACTERISTICS := emulator
# Include drawables for all densities
PRODUCT_AAPT_CONFIG := normal
PRODUCT_COPY_FILES += \
anbox/scripts/anbox-init.sh:root/anbox-init.sh \
device/anbox/anbox.xml:system/etc/permissions/anbox.xml
PRODUCT_PACKAGES += \
anboxd \
hwcomposer.anbox \
AnboxAppMgr
PRODUCT_PROPERTY_OVERRIDES += \
ro.hardware=goldfish \
ro.hardware.hwcomposer=anbox \
ro.kernel.qemu.gles=1 \
ro.kernel.qemu=1
ro.adb.qemud=1
# Disable any software key elements in the UI
PRODUCT_PROPERTY_OVERRIDES += \
qemu.hw.mainkeys=1
# Let everything know we're running inside a container
PRODUCT_PROPERTY_OVERRIDES += \
ro.anbox=1 \
ro.boot.container=1
# We don't want telephony support for now
PRODUCT_PROPERTY_OVERRIDES += \
ro.radio.noril=yes
# Disable boot-animation permanently
PRODUCT_PROPERTY_OVERRIDES += \
debug.sf.nobootanimation=1
DEVICE_PACKAGE_OVERLAYS += \
device/anbox/overlay
$(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base.mk)
# Extend heap size we use for dalvik/art runtime
$(call inherit-product, frameworks/native/build/tablet-10in-xhdpi-2048-dalvik-heap.mk)
PRODUCT_COPY_FILES += \
device/anbox/anbox.xml:system/etc/permissions/anbox.xml