This repository has been archived by the owner on Feb 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathanbox.mk
96 lines (82 loc) · 2.67 KB
/
anbox.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
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