diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-10-03 23:07:16 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-10-03 23:07:16 +0000 |
commit | 97f061b008278c3d9b6f077f1b5af883bf1ef82d (patch) | |
tree | b529eea7b892848e78a537f2231dcea10bc0200e | |
parent | aa3f38147fa33a8f25821e54988d05466459739f (diff) | |
parent | c5da306e22683067f26724e8e1861cbd4dcc3dc3 (diff) | |
download | cuttlefish-97f061b008278c3d9b6f077f1b5af883bf1ef82d.tar.gz |
Snap for 9133013 from c5da306e22683067f26724e8e1861cbd4dcc3dc3 to tm-qpr2-release
Change-Id: I92dcefd2e19bb527855860489af34c6db8ab378b
-rw-r--r-- | host/commands/assemble_cvd/flags.cc | 9 | ||||
-rw-r--r-- | host/libs/vm_manager/crosvm_manager.cpp | 6 | ||||
-rw-r--r-- | host/libs/vm_manager/qemu_manager.cpp | 10 | ||||
-rw-r--r-- | shared/auto/preinstalled-packages-product-car-cuttlefish.xml | 7 | ||||
-rw-r--r-- | shared/config/init.vendor.rc | 1 | ||||
-rw-r--r-- | shared/device.mk | 19 | ||||
-rw-r--r-- | shared/foldable/overlay/frameworks/base/core/res/res/values/config.xml | 9 | ||||
-rw-r--r-- | shared/permissions/cuttlefish_excluded_hardware.xml | 1 | ||||
-rw-r--r-- | shared/sepolicy/vendor/genfs_contexts | 4 | ||||
-rw-r--r-- | shared/sepolicy/vendor/property_contexts | 1 |
10 files changed, 28 insertions, 39 deletions
diff --git a/host/commands/assemble_cvd/flags.cc b/host/commands/assemble_cvd/flags.cc index 08c2b68a2..5d01c80bc 100644 --- a/host/commands/assemble_cvd/flags.cc +++ b/host/commands/assemble_cvd/flags.cc @@ -597,15 +597,6 @@ CuttlefishConfig InitializeCuttlefishConfiguration( } } - // The device needs to avoid having both hwcomposer2.4 and hwcomposer3 - // services running at the same time so warn the user to manually build - // in drm_hwcomposer when needed. - if (tmp_config_obj.hwcomposer() == kHwComposerAuto) { - LOG(WARNING) << "In order to run with --hwcomposer=drm. Please make sure " - "Cuttlefish was built with " - "TARGET_ENABLE_DRMHWCOMPOSER=true."; - } - tmp_config_obj.set_enable_gpu_udmabuf(FLAGS_enable_gpu_udmabuf); tmp_config_obj.set_enable_gpu_angle(FLAGS_enable_gpu_angle); diff --git a/host/libs/vm_manager/crosvm_manager.cpp b/host/libs/vm_manager/crosvm_manager.cpp index bf95250f5..8c6c58599 100644 --- a/host/libs/vm_manager/crosvm_manager.cpp +++ b/host/libs/vm_manager/crosvm_manager.cpp @@ -77,9 +77,11 @@ std::vector<std::string> CrosvmManager::ConfigureGraphics( return { "androidboot.cpuvulkan.version=0", "androidboot.hardware.gralloc=minigbm", - "androidboot.hardware.hwcomposer=drm", + "androidboot.hardware.hwcomposer=ranchu", + "androidboot.hardware.hwcomposer.mode=client", "androidboot.hardware.egl=mesa", - }; + // No "hardware" Vulkan support, yet + "androidboot.opengles.version=196608"}; // OpenGL ES 3.0 } if (config.gpu_mode() == kGpuModeGfxStream) { std::string gles_impl = config.enable_gpu_angle() ? "angle" : "emulation"; diff --git a/host/libs/vm_manager/qemu_manager.cpp b/host/libs/vm_manager/qemu_manager.cpp index adedf0499..4efb0532b 100644 --- a/host/libs/vm_manager/qemu_manager.cpp +++ b/host/libs/vm_manager/qemu_manager.cpp @@ -131,21 +131,23 @@ std::vector<std::string> QemuManager::ConfigureGraphics( // with properities lead to non-deterministic behavior while loading the // HALs. return { - "androidboot.cpuvulkan.version=" + std::to_string(VK_API_VERSION_1_1), + "androidboot.cpuvulkan.version=" + std::to_string(VK_API_VERSION_1_2), "androidboot.hardware.gralloc=minigbm", "androidboot.hardware.hwcomposer=" + config.hwcomposer(), "androidboot.hardware.egl=angle", "androidboot.hardware.vulkan=pastel", - }; + "androidboot.opengles.version=196609"}; // OpenGL ES 3.1 } if (config.gpu_mode() == kGpuModeDrmVirgl) { return { "androidboot.cpuvulkan.version=0", "androidboot.hardware.gralloc=minigbm", - "androidboot.hardware.hwcomposer=drm", + "androidboot.hardware.hwcomposer=ranchu", + "androidboot.hardware.hwcomposer.mode=client", "androidboot.hardware.egl=mesa", - }; + // No "hardware" Vulkan support, yet + "androidboot.opengles.version=196608"}; // OpenGL ES 3.0 } return {}; diff --git a/shared/auto/preinstalled-packages-product-car-cuttlefish.xml b/shared/auto/preinstalled-packages-product-car-cuttlefish.xml index 9f22200fc..0aca16bac 100644 --- a/shared/auto/preinstalled-packages-product-car-cuttlefish.xml +++ b/shared/auto/preinstalled-packages-product-car-cuttlefish.xml @@ -94,10 +94,6 @@ <install-in-user-type package="com.android.cameraextensions"> <install-in user-type="SYSTEM" /> <install-in user-type="FULL" /> - </install-in-user-type> - <install-in-user-type package="com.android.car.messenger"> - <install-in user-type="FULL" /> - <install-in user-type="SYSTEM" /> </install-in-user-type> <install-in-user-type package="com.android.apps.tag"> <install-in user-type="FULL" /> @@ -124,9 +120,6 @@ <install-in-user-type package="com.android.car.datacenter"> <install-in user-type="FULL" /> </install-in-user-type> - <install-in-user-type package="com.android.car.dialer"> - <install-in user-type="FULL" /> - </install-in-user-type> <install-in-user-type package="com.android.car.goldilocks"> <install-in user-type="FULL" /> </install-in-user-type> diff --git a/shared/config/init.vendor.rc b/shared/config/init.vendor.rc index 8861ca3c9..cb702a02d 100644 --- a/shared/config/init.vendor.rc +++ b/shared/config/init.vendor.rc @@ -6,6 +6,7 @@ on early-init setprop debug.sf.vsync_reactor_ignore_present_fences true setprop ro.hardware.gralloc ${ro.boot.hardware.gralloc} setprop ro.hardware.hwcomposer ${ro.boot.hardware.hwcomposer} + setprop ro.vendor.hwcomposer.display_finder_mode ${ro.boot.hardware.hwcomposer.display_finder_mode} setprop ro.vendor.hwcomposer.mode ${ro.boot.hardware.hwcomposer.mode} setprop ro.hardware.vulkan ${ro.boot.hardware.vulkan} setprop ro.cpuvulkan.version ${ro.boot.cpuvulkan.version} diff --git a/shared/device.mk b/shared/device.mk index 42af5f2be..834416371 100644 --- a/shared/device.mk +++ b/shared/device.mk @@ -66,7 +66,6 @@ PRODUCT_REQUIRES_INSECURE_EXECMEM_FOR_SWIFTSHADER := true AB_OTA_UPDATER := true AB_OTA_PARTITIONS += \ boot \ - init_boot \ odm \ odm_dlkm \ product \ @@ -79,6 +78,11 @@ AB_OTA_PARTITIONS += \ vendor_boot \ vendor_dlkm \ +TARGET_USES_INITBOOT ?= true +ifeq ($(TARGET_USES_INITBOOT),true) +AB_OTA_PARTITIONS += init_boot +endif + # Enable Virtual A/B $(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota/android_t_baseline.mk) PRODUCT_VIRTUAL_AB_COMPRESSION_METHOD := gz @@ -403,7 +407,6 @@ PRODUCT_PACKAGES += \ ifeq ($(TARGET_ENABLE_DRMHWCOMPOSER),true) DEVICE_MANIFEST_FILE += \ device/google/cuttlefish/shared/config/manifest_android.hardware.graphics.composer@2.4-service.xml - PRODUCT_PACKAGES += \ android.hardware.graphics.composer@2.4-service \ hwcomposer.drm @@ -829,18 +832,6 @@ PRODUCT_VENDOR_PROPERTIES += \ PRODUCT_VENDOR_PROPERTIES += \ ro.surface_flinger.supports_background_blur 1 -# Set support one-handed mode -PRODUCT_PRODUCT_PROPERTIES += \ - ro.support_one_handed_mode=true - -# Set one_handed_mode screen translate offset percentage -PRODUCT_PRODUCT_PROPERTIES += \ - persist.debug.one_handed_offset_percentage=50 - -# Set one_handed_mode translate animation duration milliseconds -PRODUCT_PRODUCT_PROPERTIES += \ - persist.debug.one_handed_translate_animation_duration=300 - # Vendor Dlkm Locader PRODUCT_PACKAGES += \ dlkm_loader diff --git a/shared/foldable/overlay/frameworks/base/core/res/res/values/config.xml b/shared/foldable/overlay/frameworks/base/core/res/res/values/config.xml index b0b42ab7e..c93ab5afa 100644 --- a/shared/foldable/overlay/frameworks/base/core/res/res/values/config.xml +++ b/shared/foldable/overlay/frameworks/base/core/res/res/values/config.xml @@ -41,4 +41,13 @@ <bool name="config_supportsSplitScreenMultiWindow">true</bool> <!-- Radius of the software rounded corners. --> <dimen name="rounded_corner_radius">34px</dimen> + + <!-- List of the labels of requestable device state config values --> + <string-array name="config_deviceStatesAvailableForAppRequests"> + <item>config_deviceStateRearDisplay</item> + </string-array> + + <!-- Device state that corresponds to rear display mode, feature provided + through Jetpack WindowManager --> + <integer name="config_deviceStateRearDisplay">0</integer> </resources> diff --git a/shared/permissions/cuttlefish_excluded_hardware.xml b/shared/permissions/cuttlefish_excluded_hardware.xml index c3d03d597..3fba9f64c 100644 --- a/shared/permissions/cuttlefish_excluded_hardware.xml +++ b/shared/permissions/cuttlefish_excluded_hardware.xml @@ -15,5 +15,4 @@ --> <permissions> <unavailable-feature name="android.software.print" /> - <unavailable-feature name="android.software.voice_recognizers" /> </permissions> diff --git a/shared/sepolicy/vendor/genfs_contexts b/shared/sepolicy/vendor/genfs_contexts index 542db04a6..cbbd88f30 100644 --- a/shared/sepolicy/vendor/genfs_contexts +++ b/shared/sepolicy/vendor/genfs_contexts @@ -65,7 +65,7 @@ cf_rtc_wakeup_alarmtimer(/devices/pnp0/00:04, 0, 19) # qemu (arm64) cf_pci_block_device(/devices/platform/4010000000.pcie/pci0000:00, 0xa, 9) -cf_pci_gpu_device(/devices/platform/4010000000.pcie/pci0000:00, 0x2) +cf_pci_gpu_device(/devices/platform/4010000000.pcie/pci0000:00, 0x1) ## find /sys/devices/platform/* -type d -name 'rtc[0-9]' | sed 's,/rtc[0-9],,' genfscon sysfs /devices/platform/9010000.pl031/rtc u:object_r:sysfs_rtc:s0 ## find /sys/devices/platform/* -type d -name 'wakeup[0-9]' @@ -73,7 +73,7 @@ cf_rtc_wakeup_alarmtimer(/devices/platform/9010000.pl031, 0, 0) # qemu (arm) cf_pci_block_device(/devices/platform/3f000000.pcie/pci0000:00, 0xa, 9) -cf_pci_gpu_device(/devices/platform/3f000000.pcie/pci0000:00, 0x2) +cf_pci_gpu_device(/devices/platform/3f000000.pcie/pci0000:00, 0x1) genfscon sysfs /devices/platform/rtc-test.1/wakeup/wakeup2 u:object_r:sysfs_wakeup:s0 genfscon sysfs /devices/platform/rtc-test.2/wakeup/wakeup3 u:object_r:sysfs_wakeup:s0 diff --git a/shared/sepolicy/vendor/property_contexts b/shared/sepolicy/vendor/property_contexts index 9b98ed1a4..235b35abe 100644 --- a/shared/sepolicy/vendor/property_contexts +++ b/shared/sepolicy/vendor/property_contexts @@ -14,6 +14,7 @@ ro.vendor.wifi_impl u:object_r:vendor_wifi_impl:s0 exact string ro.vendor.boot_security_patch u:object_r:vendor_boot_security_patch_level_prop:s0 vendor.bt.rootcanal_mac_address u:object_r:vendor_bt_rootcanal_prop:s0 vendor.bt.rootcanal_test_console u:object_r:vendor_bt_rootcanal_prop:s0 +ro.vendor.hwcomposer.display_finder_mode u:object_r:vendor_hwcomposer_prop:s0 exact string ro.vendor.hwcomposer.mode u:object_r:vendor_hwcomposer_prop:s0 exact string ro.vendor.hwcomposer.pmem u:object_r:vendor_hwcomposer_prop:s0 exact string vendor.wlan.firmware.version u:object_r:vendor_wlan_versions_prop:s0 exact string |