summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrant Yoshida <gyoshida@google.com>2019-08-07 18:55:41 -0700
committerGrant Yoshida <gyoshida@google.com>2019-08-07 18:55:41 -0700
commitfe8d732e4049f9ec967638d18ac1e80bebbf4df8 (patch)
treed5b812eb44865d70dd63890834380101f0594b5f
parent7efa63a551cab166b540548555acc486395a6385 (diff)
downloaddevice_google_vrservices-fe8d732e4049f9ec967638d18ac1e80bebbf4df8.tar.gz
device_google_vrservices-fe8d732e4049f9ec967638d18ac1e80bebbf4df8.tar.bz2
device_google_vrservices-fe8d732e4049f9ec967638d18ac1e80bebbf4df8.zip
Add experimental_google_xr.mk to device/google/vrservices/xr/products.
This is copied from /vendor/google/products. Bug: 139089383 Test: N/A Change-Id: I2ea0c11588de863ee739ded72021ea7f06326c69
-rw-r--r--xr/products/experimental_google_xr.mk47
1 files changed, 47 insertions, 0 deletions
diff --git a/xr/products/experimental_google_xr.mk b/xr/products/experimental_google_xr.mk
new file mode 100644
index 0000000..f05c35b
--- /dev/null
+++ b/xr/products/experimental_google_xr.mk
@@ -0,0 +1,47 @@
+PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
+ ro.dvr.lens_metrics=vendor/etc/hmd_config
+
+# SELinux permissions
+BOARD_SEPOLICY_DIRS += device/google/vrservices/xr/sepolicy
+
+# Remove non-critical and non-XR packages from PRODUCT_PACKAGES.
+#
+# Overrides (i.e. removes) packages that are bundled into the system/product
+# image for smartphone use cases. We are removing those packages for two
+# reasons:
+# 1) Pixel devices' system/product image are almost out of disk spaces. It has
+# been hard for us to bundle the AIO flavored VrCore into the their system
+# image. Removing some of the packages free up enough disk spaces for XR use
+# cases.
+# 2) Removing those packages won't impact the functionality of the device. More
+# specifically, those package meet the following requirements:
+# i) they are not critical packages for XR use cases; and ii) can still be
+# install from Play Store if ever needed.
+# For certain packages, removing those packages are actually beneficial. For
+# example, the WallpapersBReel201* packages introduced unnecessary GPU load
+# for the system. Disabling those packages frees some GPU resources to XR use
+# cases and improves the accuracy of our GPU performance profiling.
+
+# External camera libraries.
+# There is no need to add extra SELinux policy for external cameras
+# because our devices do not run Trebel passthrough mode.
+PRODUCT_PACKAGES += android.hardware.camera.provider@2.4-impl
+PRODUCT_PACKAGES += android.hardware.camera.provider@2.4-external-service
+# Use webcam camera device@3.5
+PRODUCT_PROPERTY_OVERRIDES += ro.vendor.camera.external.hal3TrebleMinorVersion=5
+
+PRODUCT_PACKAGES += NonXrProductPackagesRemover
+
+PRODUCT_COPY_FILES += \
+ vendor/unbundled_google/packages/PrebuiltGoogleVr/configs/daydream_viewer_config:$(TARGET_COPY_OUT_VENDOR)/etc/hmd_config \
+ vendor/unbundled_google/packages/PrebuiltGoogleVr/scripts/boot-to-vr.sh:$(TARGET_COPY_OUT_VENDOR)/bin/boot-to-vr.sh \
+ device/google/vrservices/xr/init/init.xr.rc:$(TARGET_COPY_OUT_SYSTEM)/etc/init/init.xr.rc \
+
+# XR/VR prebuilt packages
+PRODUCT_PACKAGES += \
+ SetupWizardOverlay \
+ VrHome \
+ VrInputMethodIme \
+ VrHeadsetPowerPolicy \
+ pps-tool.sh \
+