Skip to content

Commit

Permalink
Add CarServiceOverlay rro
Browse files Browse the repository at this point in the history
    Use overlay configuration to update the default configuration

    Test: Flash System image,GSI image, and Test Android CTS CtsCarTestCases

    Tracked-On: OAM-121009
    Signed-off-by: Hongcheng Xie <[email protected]>
    Signed-off-by: Chen,Ninghuix <[email protected]>
  • Loading branch information
NingHuiChen authored and sysopenci committed Jun 20, 2024
1 parent fa2156f commit 28068c5
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 0 deletions.
26 changes: 26 additions & 0 deletions rro_overlays/CarServiceOverlay/Android.bp
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// Copyright (C) 2022 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.
//
//



runtime_resource_overlay {
name: "CarServiceOverlayIntel",
resource_dirs: ["res"],
manifest: "AndroidManifest.xml",
sdk_version: "current",
device_specific: true
}

26 changes: 26 additions & 0 deletions rro_overlays/CarServiceOverlay/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (C) 2022 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.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.car.resources.intel.rro">
<application android:hasCode="false"/>
<overlay android:priority="1001"
android:targetPackage="com.android.car.updatable"
android:targetName="CarServiceCustomization"
android:resourcesMap="@xml/overlays"
android:isStatic="true" />
</manifest>

5 changes: 5 additions & 0 deletions rro_overlays/CarServiceOverlay/res/values/config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<resources>
<string-array translatable="false" name="config_occupant_display_mapping">
<item>displayPort=0,displayType=MAIN,occupantZoneId=0,inputTypes=TOUCH_SCREEN|DPAD_KEYS|NAVIGATE_KEYS|ROTARY_NAVIGATION</item>
</string-array>
</resources>
20 changes: 20 additions & 0 deletions rro_overlays/CarServiceOverlay/res/xml/overlays.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (C) 2022 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.
-->
<overlay>
<item target="array/config_occupant_display_mapping" value="@array/config_occupant_display_mapping" />
</overlay>

0 comments on commit 28068c5

Please sign in to comment.