blob: e65dc53b09b8af722c596440fd0b1d6dc04d0c87 [file] [log] [blame]
bohu268c72f2018-06-09 08:19:08 -07001#
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
bohu50ac1e22019-06-07 09:41:23 -070020ifeq ($(QEMU_DISABLE_AVB),true)
21PRODUCT_COPY_FILES += \
22 device/generic/goldfish/data/etc/dummy.vbmeta.img:$(PRODUCT_OUT)/vbmeta.img \
23 device/generic/goldfish/fstab.ranchu.initrd.noavb:$(TARGET_COPY_OUT_RAMDISK)/fstab.ranchu \
24 device/generic/goldfish/fstab.ranchu.noavb:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.ranchu
25endif
26
Steven Moreland38439882019-08-22 12:44:25 -070027DISABLE_RILD_OEM_HOOK := true
28
bohu268c72f2018-06-09 08:19:08 -070029# Device modules
30PRODUCT_PACKAGES += \
Lingfeng Yange835ecc2019-02-02 20:46:23 -080031 vulkan.ranchu \
bohu268c72f2018-06-09 08:19:08 -070032 gralloc.goldfish \
33 gralloc.goldfish.default \
34 gralloc.ranchu \
35 libGLESv1_CM_emulation \
36 lib_renderControl_enc \
37 libEGL_emulation \
38 libGLESv2_enc \
Lingfeng Yang46856d12018-11-02 11:24:29 -070039 libvulkan_enc \
Lingfeng Yang48d30292018-09-28 15:53:24 -070040 libOpenglCodecCommon \
bohu268c72f2018-06-09 08:19:08 -070041 libOpenglSystemCommon \
42 libGLESv2_emulation \
43 libGLESv1_enc \
44 libEGL_swiftshader \
45 libGLESv1_CM_swiftshader \
46 libGLESv2_swiftshader \
Bjoern Johanssonfda217c2018-06-14 16:02:30 -070047 libgoldfish-ril \
bohu268c72f2018-06-09 08:19:08 -070048 qemu-props \
49 camera.goldfish \
50 camera.goldfish.jpeg \
51 camera.ranchu \
52 camera.ranchu.jpeg \
bohu268c72f2018-06-09 08:19:08 -070053 gps.goldfish \
54 gps.ranchu \
55 fingerprint.goldfish \
bohu268c72f2018-06-09 08:19:08 -070056 audio.primary.goldfish \
57 audio.primary.goldfish_legacy \
bohu268c72f2018-06-09 08:19:08 -070058 power.goldfish \
59 power.ranchu \
60 fingerprint.ranchu \
61 sensors.ranchu \
62 android.hardware.graphics.composer@2.1-impl \
63 android.hardware.graphics.composer@2.1-service \
64 android.hardware.graphics.allocator@2.0-service \
65 android.hardware.graphics.allocator@2.0-impl \
66 android.hardware.graphics.mapper@2.0-impl \
67 hwcomposer.goldfish \
68 hwcomposer.ranchu \
69 toybox_vendor \
70 android.hardware.audio@2.0-service \
71 android.hardware.wifi@1.0-service \
72 android.hardware.biometrics.fingerprint@2.1-service \
73 sh_vendor \
Bjoern Johanssonc6712aa2019-06-24 14:23:48 -070074 ip_vendor \
bohu8d693282018-11-28 09:19:40 -080075 iw_vendor \
bohu268c72f2018-06-09 08:19:08 -070076 audio.r_submix.default \
77 local_time.default \
78 SdkSetup
79
80PRODUCT_PACKAGES += \
huans64eca142018-06-18 14:45:46 -070081 android.hardware.audio@4.0-impl:32 \
82 android.hardware.audio.effect@4.0-impl:32 \
bohu268c72f2018-06-09 08:19:08 -070083 android.hardware.broadcastradio@1.1-service \
84 android.hardware.broadcastradio@1.0-impl \
85 android.hardware.soundtrigger@2.0-impl
86
87PRODUCT_PACKAGES += \
huans4772b3d2018-06-15 10:56:16 -070088 android.hardware.health@2.0-service.goldfish
89
90PRODUCT_PACKAGES += \
bohu268c72f2018-06-09 08:19:08 -070091 android.hardware.keymaster@3.0-impl \
92 android.hardware.keymaster@3.0-service
93
94PRODUCT_PACKAGES += \
Jim Kayeb8f47812018-06-18 16:24:10 -070095 DisplayCutoutEmulationEmu01Overlay
96
bohud69c26b2018-06-20 08:45:13 -070097ifneq ($(EMULATOR_VENDOR_NO_GNSS),true)
bohu268c72f2018-06-09 08:19:08 -070098PRODUCT_PACKAGES += \
99 android.hardware.gnss@1.0-service \
100 android.hardware.gnss@1.0-impl
bohud69c26b2018-06-20 08:45:13 -0700101endif
bohu268c72f2018-06-09 08:19:08 -0700102
bohud0fb8a42019-03-07 22:41:54 -0800103
bohu268c72f2018-06-09 08:19:08 -0700104PRODUCT_PACKAGES += \
105 android.hardware.sensors@1.0-impl \
106 android.hardware.sensors@1.0-service
107
108PRODUCT_PACKAGES += \
109 android.hardware.drm@1.0-service \
huans85d26b82018-06-13 16:14:28 -0700110 android.hardware.drm@1.0-impl \
bohue7064d72019-01-17 17:16:18 -0800111 android.hardware.drm@1.2-service.clearkey \
112 android.hardware.drm@1.2-service.widevine
bohu268c72f2018-06-09 08:19:08 -0700113
114PRODUCT_PACKAGES += \
Haitao Shand9689ef2018-08-17 11:58:33 -0700115 android.hardware.power@1.1-service.ranchu \
116
Matt Wachowskif6bb9232018-11-28 09:34:45 -0800117PRODUCT_PROPERTY_OVERRIDES += ro.control_privapp_permissions=enforce
Haitao Shand9689ef2018-08-17 11:58:33 -0700118PRODUCT_PROPERTY_OVERRIDES += ro.hardware.power=ranchu
bohu268c72f2018-06-09 08:19:08 -0700119
Lingfeng Yang1655dc72019-04-05 12:08:25 -0700120PRODUCT_PROPERTY_OVERRIDES += persist.sys.zram_enabled=1 \
121
bohu22893682019-07-25 07:33:01 -0700122PRODUCT_PROPERTY_OVERRIDES += ro.crypto.volume.filenames_mode=aes-256-cts
123
124
bohu268c72f2018-06-09 08:19:08 -0700125PRODUCT_PACKAGES += \
126 camera.device@1.0-impl \
127 android.hardware.camera.provider@2.4-service \
128 android.hardware.camera.provider@2.4-impl \
129
130PRODUCT_PACKAGES += \
Janis Danisevskisa08300a2019-06-06 20:01:50 -0700131 android.hardware.gatekeeper@1.0-service.software
bohu268c72f2018-06-09 08:19:08 -0700132
133# WiFi: vendor side
134PRODUCT_PACKAGES += \
135 createns \
136 dhcpclient \
bohu268c72f2018-06-09 08:19:08 -0700137 execns \
138 hostapd \
Bjoern Johansson880e7082018-05-15 15:04:53 -0700139 hostapd_nohidl \
Bjoern Johansson873eee62018-09-06 15:39:12 -0700140 netmgr \
bohu268c72f2018-06-09 08:19:08 -0700141 wpa_supplicant \
142
Roman Kiryanovb6889742019-04-15 11:13:57 -0700143PRODUCT_PACKAGES += android.hardware.thermal@2.0-service.mock
144
Bowgo Tsai825e1102018-07-16 17:58:40 +0800145# Needed for /system/priv-app/SdkSetup/SdkSetup.apk to pass CTS android.permission2.cts.PrivappPermissionsTest.
146PRODUCT_COPY_FILES += \
147 device/generic/goldfish/data/etc/permissions/privapp-permissions-goldfish.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/privapp-permissions-goldfish.xml
148
bohua0427212019-05-20 15:22:48 -0700149# Goldfish does not support ION needed for Codec 2.0
150PRODUCT_PROPERTY_OVERRIDES += \
151 debug.stagefright.ccodec=0
152
Janis Danisevskise1ee3622019-06-14 15:41:27 -0700153DEVICE_MANIFEST_FILE := device/generic/goldfish/manifest.xml
bohue8304eb2018-09-04 11:56:42 -0700154
bohu268c72f2018-06-09 08:19:08 -0700155PRODUCT_COPY_FILES += \
bohud0fb8a42019-03-07 22:41:54 -0800156 device/generic/goldfish/fstab.ranchu.initrd:$(TARGET_COPY_OUT_RAMDISK)/fstab.ranchu \
bohu268c72f2018-06-09 08:19:08 -0700157 device/generic/goldfish/data/etc/apns-conf.xml:data/misc/apns/apns-conf.xml \
bohu7e987592019-03-03 15:44:41 -0800158 device/generic/goldfish/data/etc/local.prop:data/local.prop \
bohu268c72f2018-06-09 08:19:08 -0700159 device/generic/goldfish/init.ranchu-core.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.ranchu-core.sh \
160 device/generic/goldfish/init.ranchu-net.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.ranchu-net.sh \
161 device/generic/goldfish/wifi/init.wifi.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.wifi.sh \
162 device/generic/goldfish/init.ranchu.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.ranchu.rc \
163 device/generic/goldfish/fstab.ranchu:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.ranchu \
164 device/generic/goldfish/ueventd.ranchu.rc:$(TARGET_COPY_OUT_VENDOR)/ueventd.rc \
165 device/generic/goldfish/input/goldfish_rotary.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/goldfish_rotary.idc \
Weilun Du70d41852019-08-15 10:59:46 -0700166 device/generic/goldfish/input/qwerty2.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/qwerty2.idc \
167 device/generic/goldfish/input/qwerty.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/qwerty.kl \
Weilun Du41c6d922019-04-01 20:41:56 -0700168 device/generic/goldfish/input/virtio_input_multi_touch_1.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_1.idc \
169 device/generic/goldfish/input/virtio_input_multi_touch_2.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_2.idc \
Weilun Du75c4d532019-05-14 15:10:25 -0700170 device/generic/goldfish/input/virtio_input_multi_touch_3.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_3.idc \
171 device/generic/goldfish/input/virtio_input_multi_touch_4.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_4.idc \
172 device/generic/goldfish/input/virtio_input_multi_touch_5.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_5.idc \
173 device/generic/goldfish/input/virtio_input_multi_touch_6.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_6.idc \
174 device/generic/goldfish/input/virtio_input_multi_touch_7.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_7.idc \
175 device/generic/goldfish/input/virtio_input_multi_touch_8.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_8.idc \
176 device/generic/goldfish/input/virtio_input_multi_touch_9.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_9.idc \
177 device/generic/goldfish/input/virtio_input_multi_touch_10.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_10.idc \
178 device/generic/goldfish/input/virtio_input_multi_touch_11.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/virtio_input_multi_touch_11.idc \
bohu268c72f2018-06-09 08:19:08 -0700179 device/generic/goldfish/data/etc/config.ini:config.ini \
180 device/generic/goldfish/wifi/simulated_hostapd.conf:$(TARGET_COPY_OUT_VENDOR)/etc/simulated_hostapd.conf \
181 device/generic/goldfish/wifi/wpa_supplicant.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant.conf \
182 device/generic/goldfish/wifi/WifiConfigStore.xml:data/misc/wifi/WifiConfigStore.xml \
183 frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \
Bjoern Johansson836f41d2018-06-13 10:57:09 -0700184 frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \
bohu268c72f2018-06-09 08:19:08 -0700185 device/generic/goldfish/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml \
186 device/generic/goldfish/camera/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml \
187 frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \
188 frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml \
Joshua Duong08343242019-06-27 12:02:42 -0700189 device/generic/goldfish/camera/media_codecs_google_video_default.xml:data/vendor/etc/media_codecs_google_video_default.xml \
190 device/generic/goldfish/camera/media_codecs_google_video_v2.xml:data/vendor/etc/media_codecs_google_video_v2.xml \
bohu268c72f2018-06-09 08:19:08 -0700191 device/generic/goldfish/camera/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
192 device/generic/goldfish/camera/media_codecs_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \
193 frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
Jeff McGlynn52d25632018-07-10 15:45:24 -0700194 frameworks/native/data/etc/android.hardware.camera.ar.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.ar.xml \
bohu268c72f2018-06-09 08:19:08 -0700195 frameworks/native/data/etc/android.hardware.camera.autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.autofocus.xml \
196 frameworks/native/data/etc/android.hardware.camera.full.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.full.xml \
197 frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml \
198 frameworks/native/data/etc/android.software.autofill.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.autofill.xml \
Matt Wachowski09896e12018-11-06 14:47:23 -0800199 frameworks/native/data/etc/android.software.verified_boot.xml:system/etc/permissions/android.software.verified_boot.xml \
huans64eca142018-06-18 14:45:46 -0700200 frameworks/av/media/libeffects/data/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
201 device/generic/goldfish/audio_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy.conf \
202 frameworks/av/services/audiopolicy/config/audio_policy_configuration_generic.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
203 frameworks/av/services/audiopolicy/config/primary_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/primary_audio_policy_configuration.xml \
204 frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
205 frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
206 frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
Eric Laurent6405e782019-02-23 12:29:08 -0800207 frameworks/av/services/audiopolicy/config/surround_sound_configuration_5_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/surround_sound_configuration_5_0.xml \