Add assignable devices xml
This XML's schema is defined as assignable_devices.xsd in packages/modules/Virtualization, and contains a list of devices which can be assigned to a VM. Virtualization Service will read this file and return the list to users. Bug: 297313212 Test: vm info Change-Id: I894df4804cdfd1251871c7f2b1ac903c9f1ea55d
This commit is contained in:
parent
ce991e6468
commit
a89fc30a72
4 changed files with 49 additions and 0 deletions
22
avf/Android.bp
Normal file
22
avf/Android.bp
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
//
|
||||||
|
// Copyright (C) 2023 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.
|
||||||
|
|
||||||
|
prebuilt_etc {
|
||||||
|
name: "shusky_assignable_devices.xml",
|
||||||
|
src: "assignable_devices.xml",
|
||||||
|
filename: "assignable_devices.xml",
|
||||||
|
vendor: true,
|
||||||
|
relative_install_path: "avf",
|
||||||
|
}
|
21
avf/assignable_devices.xml
Normal file
21
avf/assignable_devices.xml
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Copyright 2023 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.
|
||||||
|
-->
|
||||||
|
<devices>
|
||||||
|
<device>
|
||||||
|
<kind>eh</kind>
|
||||||
|
<sysfs_path>/sys/bus/platform/devices/16d00000.eh</sysfs_path>
|
||||||
|
</device>
|
||||||
|
</devices>
|
|
@ -401,3 +401,6 @@ PRODUCT_PRODUCT_PROPERTIES += \
|
||||||
# Enable camera exif model/make reporting
|
# Enable camera exif model/make reporting
|
||||||
PRODUCT_VENDOR_PROPERTIES += \
|
PRODUCT_VENDOR_PROPERTIES += \
|
||||||
persist.vendor.camera.exif_reveal_make_model=true
|
persist.vendor.camera.exif_reveal_make_model=true
|
||||||
|
|
||||||
|
# AVF assignable devices xml
|
||||||
|
PRODUCT_PACKAGES += shusky_assignable_devices.xml
|
||||||
|
|
|
@ -376,3 +376,6 @@ PRODUCT_PRODUCT_PROPERTIES += \
|
||||||
# Enable camera exif model/make reporting
|
# Enable camera exif model/make reporting
|
||||||
PRODUCT_VENDOR_PROPERTIES += \
|
PRODUCT_VENDOR_PROPERTIES += \
|
||||||
persist.vendor.camera.exif_reveal_make_model=true
|
persist.vendor.camera.exif_reveal_make_model=true
|
||||||
|
|
||||||
|
# AVF assignable devices xml
|
||||||
|
PRODUCT_PACKAGES += shusky_assignable_devices.xml
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue