• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Copyright (C) 2018 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8#      http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16#
17# This file is to configure vendor/data partitions of emulator-related products
18#
19
20# Device modules
21PRODUCT_PACKAGES += \
22    vulkan.ranchu \
23    gralloc.goldfish \
24    gralloc.goldfish.default \
25    gralloc.ranchu \
26    libGLESv1_CM_emulation \
27    lib_renderControl_enc \
28    libEGL_emulation \
29    libGLESv2_enc \
30    libvulkan_enc \
31    libOpenglCodecCommon \
32    libOpenglSystemCommon \
33    libGLESv2_emulation \
34    libGLESv1_enc \
35    libEGL_swiftshader \
36    libGLESv1_CM_swiftshader \
37    libGLESv2_swiftshader \
38    libgoldfish-ril \
39    qemu-props \
40    camera.goldfish \
41    camera.goldfish.jpeg \
42    camera.ranchu \
43    camera.ranchu.jpeg \
44    gatekeeper.ranchu \
45    gps.goldfish \
46    gps.ranchu \
47    fingerprint.goldfish \
48    audio.primary.goldfish \
49    audio.primary.goldfish_legacy \
50    power.goldfish \
51    power.ranchu \
52    fingerprint.ranchu \
53    sensors.ranchu \
54    android.hardware.graphics.composer@2.1-impl \
55    android.hardware.graphics.composer@2.1-service \
56    android.hardware.graphics.allocator@2.0-service \
57    android.hardware.graphics.allocator@2.0-impl \
58    android.hardware.graphics.mapper@2.0-impl \
59    hwcomposer.goldfish \
60    hwcomposer.ranchu \
61    toybox_vendor \
62    android.hardware.audio@2.0-service \
63    android.hardware.wifi@1.0-service \
64    android.hardware.biometrics.fingerprint@2.1-service \
65    sh_vendor \
66    iw_vendor \
67    audio.r_submix.default \
68    local_time.default \
69    SdkSetup
70
71PRODUCT_PACKAGES += \
72    android.hardware.audio@4.0-impl:32 \
73    android.hardware.audio.effect@4.0-impl:32 \
74    android.hardware.broadcastradio@1.1-service \
75    android.hardware.broadcastradio@1.0-impl \
76    android.hardware.soundtrigger@2.0-impl
77
78PRODUCT_PACKAGES += \
79    android.hardware.health@2.0-service.goldfish
80
81PRODUCT_PACKAGES += \
82    android.hardware.keymaster@3.0-impl \
83    android.hardware.keymaster@3.0-service
84
85PRODUCT_PACKAGES += \
86    DisplayCutoutEmulationEmu01Overlay
87
88ifneq ($(EMULATOR_VENDOR_NO_GNSS),true)
89PRODUCT_PACKAGES += \
90    android.hardware.gnss@1.0-service \
91    android.hardware.gnss@1.0-impl
92endif
93
94
95PRODUCT_PACKAGES += \
96    android.hardware.sensors@1.0-impl \
97    android.hardware.sensors@1.0-service
98
99PRODUCT_PACKAGES += \
100    android.hardware.drm@1.0-service \
101    android.hardware.drm@1.0-impl \
102    android.hardware.drm@1.2-service.clearkey \
103    android.hardware.drm@1.2-service.widevine
104
105PRODUCT_PACKAGES += \
106    android.hardware.power@1.1-service.ranchu \
107
108PRODUCT_PROPERTY_OVERRIDES += ro.control_privapp_permissions=enforce
109PRODUCT_PROPERTY_OVERRIDES += ro.hardware.power=ranchu
110
111PRODUCT_PROPERTY_OVERRIDES += persist.sys.zram_enabled=1 \
112
113PRODUCT_PACKAGES += \
114    camera.device@1.0-impl \
115    android.hardware.camera.provider@2.4-service \
116    android.hardware.camera.provider@2.4-impl \
117
118PRODUCT_PACKAGES += \
119    android.hardware.gatekeeper@1.0-impl \
120    android.hardware.gatekeeper@1.0-service
121
122# WiFi: vendor side
123PRODUCT_PACKAGES += \
124	createns \
125	dhcpclient \
126	dhcpserver \
127	execns \
128	hostapd \
129	hostapd_nohidl \
130	ipv6proxy \
131	netmgr \
132	wpa_supplicant \
133
134PRODUCT_PACKAGES += android.hardware.thermal@2.0-service.mock
135
136# Needed for /system/priv-app/SdkSetup/SdkSetup.apk to pass CTS android.permission2.cts.PrivappPermissionsTest.
137PRODUCT_COPY_FILES += \
138    device/generic/goldfish/data/etc/permissions/privapp-permissions-goldfish.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/privapp-permissions-goldfish.xml
139
140# Goldfish does not support ION needed for Codec 2.0
141PRODUCT_PROPERTY_OVERRIDES += \
142    debug.stagefright.ccodec=0
143
144
145PRODUCT_COPY_FILES += \
146    device/generic/goldfish/fstab.ranchu.initrd:$(TARGET_COPY_OUT_RAMDISK)/fstab.ranchu \
147    device/generic/goldfish/data/etc/apns-conf.xml:data/misc/apns/apns-conf.xml \
148    device/generic/goldfish/data/etc/local.prop:data/local.prop \
149    device/generic/goldfish/init.ranchu-core.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.ranchu-core.sh \
150    device/generic/goldfish/init.ranchu-net.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.ranchu-net.sh \
151    device/generic/goldfish/wifi/init.wifi.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.wifi.sh \
152    device/generic/goldfish/init.ranchu.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.ranchu.rc \
153    device/generic/goldfish/fstab.ranchu:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.ranchu \
154    device/generic/goldfish/ueventd.ranchu.rc:$(TARGET_COPY_OUT_VENDOR)/ueventd.rc \
155    device/generic/goldfish/input/goldfish_rotary.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/goldfish_rotary.idc \
156    device/generic/goldfish/manifest.xml:$(TARGET_COPY_OUT_VENDOR)/manifest.xml \
157    device/generic/goldfish/data/etc/config.ini:config.ini \
158    device/generic/goldfish/wifi/simulated_hostapd.conf:$(TARGET_COPY_OUT_VENDOR)/etc/simulated_hostapd.conf \
159    device/generic/goldfish/wifi/wpa_supplicant.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant.conf \
160    device/generic/goldfish/wifi/WifiConfigStore.xml:data/misc/wifi/WifiConfigStore.xml \
161    frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \
162    frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \
163    device/generic/goldfish/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml \
164    device/generic/goldfish/camera/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml \
165    frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \
166    frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml \
167    device/generic/goldfish/camera/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml \
168    device/generic/goldfish/camera/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
169    device/generic/goldfish/camera/media_codecs_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \
170    frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
171    frameworks/native/data/etc/android.hardware.camera.ar.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.ar.xml \
172    frameworks/native/data/etc/android.hardware.camera.autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.autofocus.xml \
173    frameworks/native/data/etc/android.hardware.camera.full.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.full.xml \
174    frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml \
175    frameworks/native/data/etc/android.software.autofill.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.autofill.xml \
176    frameworks/native/data/etc/android.software.verified_boot.xml:system/etc/permissions/android.software.verified_boot.xml \
177    frameworks/av/media/libeffects/data/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
178    device/generic/goldfish/audio_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy.conf \
179    frameworks/av/services/audiopolicy/config/audio_policy_configuration_generic.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
180    frameworks/av/services/audiopolicy/config/primary_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/primary_audio_policy_configuration.xml \
181    frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
182    frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
183    frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
184    frameworks/av/services/audiopolicy/config/surround_sound_configuration_5_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/surround_sound_configuration_5_0.xml \
185