diff options
author | Andrew Cheng <chengandrew@google.com> | 2023-01-18 15:07:36 -0800 |
---|---|---|
committer | Andrew Cheng <chengandrew@google.com> | 2023-01-20 15:59:31 -0800 |
commit | bccb9451472cbd397e4fdb7816a05520ba2474ec (patch) | |
tree | 5df85bec6adef483351eeb4aecb36587da36ae48 | |
parent | c7a3523365d8e0533dd6aabce469e5e6fad3ae72 (diff) | |
download | google_car-bccb9451472cbd397e4fdb7816a05520ba2474ec.tar.gz |
Add support for cheetah_car and panther_car builds
bug: 253279350
Test: Local build and boot
Change-Id: I29c2b3bd078fcbe357a4760a35f1d1dbf0c70249
-rw-r--r-- | AndroidProducts.mk | 4 | ||||
-rw-r--r-- | cheetah_car/aosp_cheetah_car.mk | 33 | ||||
-rw-r--r-- | cheetah_car/device-cheetah-car.mk | 27 | ||||
-rw-r--r-- | cheetah_car/displayconfig/display_id_4619827677550801152.xml | 599 | ||||
-rw-r--r-- | cheetah_car/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml | 21 | ||||
-rw-r--r-- | panther_car/BoardConfig.mk | 22 | ||||
-rw-r--r-- | panther_car/aosp_panther_car.mk | 30 | ||||
-rw-r--r-- | panther_car/device-panther-car.mk | 29 | ||||
-rw-r--r-- | panther_car/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml | 21 |
9 files changed, 786 insertions, 0 deletions
diff --git a/AndroidProducts.mk b/AndroidProducts.mk index c0701df..5044b69 100644 --- a/AndroidProducts.mk +++ b/AndroidProducts.mk @@ -17,9 +17,11 @@ PRODUCT_MAKEFILES := \ $(LOCAL_DIR)/bluejay_car/aosp_bluejay_car.mk \ $(LOCAL_DIR)/bramble_car/aosp_bramble_car.mk \ + $(LOCAL_DIR)/cheetah_car/aosp_cheetah_car.mk \ $(LOCAL_DIR)/coral_car/aosp_coral_car.mk \ $(LOCAL_DIR)/flame_car/aosp_flame_car.mk \ $(LOCAL_DIR)/oriole_car/aosp_oriole_car.mk \ + $(LOCAL_DIR)/panther_car/aosp_panther_car.mk \ $(LOCAL_DIR)/raven_car/aosp_raven_car.mk \ $(LOCAL_DIR)/redfin_car/aosp_redfin_car.mk \ $(LOCAL_DIR)/sunfish_car/aosp_sunfish_car.mk @@ -28,9 +30,11 @@ PRODUCT_MAKEFILES := \ COMMON_LUNCH_CHOICES := \ aosp_bluejay_car-userdebug \ aosp_bramble_car-userdebug \ + aosp_cheetah_car-userdebug \ aosp_coral_car-userdebug \ aosp_flame_car-userdebug \ aosp_oriole_car-userdebug \ + aosp_panther_car-userdebug \ aosp_raven_car-userdebug \ aosp_redfin_car-userdebug \ aosp_sunfish_car-userdebug diff --git a/cheetah_car/aosp_cheetah_car.mk b/cheetah_car/aosp_cheetah_car.mk new file mode 100644 index 0000000..73df691 --- /dev/null +++ b/cheetah_car/aosp_cheetah_car.mk @@ -0,0 +1,33 @@ +# +# 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. +# + +DEVICE_IS_64BIT_ONLY := true + +PRODUCT_PACKAGE_OVERLAYS += device/google_car/cheetah_car/overlay + +PRODUCT_COPY_FILES += \ + device/google_car/cheetah_car/displayconfig/display_id_4619827677550801152.xml:$(TARGET_COPY_OUT_VENDOR)/etc/displayconfig/display_id_4619827677550801152.xml + +$(call inherit-product, device/google_car/common/pre_google_car.mk) +$(call inherit-product, device/google_car/cheetah_car/device-cheetah-car.mk) +$(call inherit-product-if-exists, vendor/google_devices/pantah/proprietary/cheetah/device-vendor-cheetah.mk) +$(call inherit-product, device/google_car/common/post_google_car.mk) + +PRODUCT_NAME := aosp_cheetah_car +PRODUCT_DEVICE := cheetah +PRODUCT_MODEL := AOSP on Cheetah +PRODUCT_BRAND := Android +PRODUCT_MANUFACTURER := Google diff --git a/cheetah_car/device-cheetah-car.mk b/cheetah_car/device-cheetah-car.mk new file mode 100644 index 0000000..abcddeb --- /dev/null +++ b/cheetah_car/device-cheetah-car.mk @@ -0,0 +1,27 @@ +# +# 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. +# + +$(call inherit-product, packages/services/Car/car_product/build/car.mk) + +$(call inherit-product, device/google/pantah/device-cheetah.mk) + +include device/google/gs101/uwb/uwb.mk + +PRODUCT_PRODUCT_PROPERTIES+= \ + ro.adb.secure=0 + +PRODUCT_PACKAGES += \ + librs_jni diff --git a/cheetah_car/displayconfig/display_id_4619827677550801152.xml b/cheetah_car/displayconfig/display_id_4619827677550801152.xml new file mode 100644 index 0000000..0318cde --- /dev/null +++ b/cheetah_car/displayconfig/display_id_4619827677550801152.xml @@ -0,0 +1,599 @@ +<?xml version='1.0' encoding='utf-8' standalone='yes' ?> + +<!-- Copyright (C) 2023 Google Inc. + + 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. +--> + +<!-- This overrides <height> from 1440 to 2520 and <width> from 3120 to 5460 for phone_car + configuration. The original file is located at: + + vendor/google_devices/pantah/proprietary/cheetah/vendor/etc/displayconfig/display_id_4619827677550801152.xml +--> + +<displayConfiguration> + <screenBrightnessMap> + <point> + <value>0.0</value> + <nits>2.0</nits> + </point> + <point> + <value>0.6</value> + <nits>600.0</nits> + </point> + <point> + <value>1.0</value> + <nits>1000.0</nits> + </point> + </screenBrightnessMap> + + <highBrightnessMode enabled="true"> + <transitionPoint>0.6</transitionPoint> + <minimumLux>5724.62401237</minimumLux> + <timing> + <!-- allow for 5 minutes out of every 30 minutes --> + <timeWindowSecs>1800</timeWindowSecs> + <timeMaxSecs>300</timeMaxSecs> + <timeMinSecs>60</timeMinSecs> + </timing> + <thermalStatusLimit>light</thermalStatusLimit> + <allowInLowPowerMode>false</allowInLowPowerMode> + <minimumHdrPercentOfScreen>0</minimumHdrPercentOfScreen> + <!--sdrHdrRatioMap, backed by spline, must have at least two entries --> + <sdrHdrRatioMap> + <point> + <sdrNits>2.000</sdrNits> + <hdrRatio>8.000</hdrRatio> + </point> + <point> + <sdrNits>75.000</sdrNits> + <hdrRatio>7.987</hdrRatio> + </point> + <point> + <sdrNits>78.859</sdrNits> + <hdrRatio>7.596</hdrRatio> + </point> + <point> + <sdrNits>82.717</sdrNits> + <hdrRatio>7.242</hdrRatio> + </point> + <point> + <sdrNits>86.576</sdrNits> + <hdrRatio>6.919</hdrRatio> + </point> + <point> + <sdrNits>90.434</sdrNits> + <hdrRatio>6.624</hdrRatio> + </point> + <point> + <sdrNits>94.293</sdrNits> + <hdrRatio>6.353</hdrRatio> + </point> + <point> + <sdrNits>98.152</sdrNits> + <hdrRatio>6.103</hdrRatio> + </point> + <point> + <sdrNits>102.010</sdrNits> + <hdrRatio>5.872</hdrRatio> + </point> + <point> + <sdrNits>105.869</sdrNits> + <hdrRatio>5.658</hdrRatio> + </point> + <point> + <sdrNits>109.727</sdrNits> + <hdrRatio>5.459</hdrRatio> + </point> + <point> + <sdrNits>113.586</sdrNits> + <hdrRatio>5.274</hdrRatio> + </point> + <point> + <sdrNits>117.444</sdrNits> + <hdrRatio>5.100</hdrRatio> + </point> + <point> + <sdrNits>121.303</sdrNits> + <hdrRatio>4.938</hdrRatio> + </point> + <point> + <sdrNits>125.162</sdrNits> + <hdrRatio>4.786</hdrRatio> + </point> + <point> + <sdrNits>129.020</sdrNits> + <hdrRatio>4.643</hdrRatio> + </point> + <point> + <sdrNits>132.879</sdrNits> + <hdrRatio>4.508</hdrRatio> + </point> + <point> + <sdrNits>136.737</sdrNits> + <hdrRatio>4.381</hdrRatio> + </point> + <point> + <sdrNits>140.596</sdrNits> + <hdrRatio>4.260</hdrRatio> + </point> + <point> + <sdrNits>144.455</sdrNits> + <hdrRatio>4.147</hdrRatio> + </point> + <point> + <sdrNits>148.313</sdrNits> + <hdrRatio>4.039</hdrRatio> + </point> + <point> + <sdrNits>152.172</sdrNits> + <hdrRatio>3.936</hdrRatio> + </point> + <point> + <sdrNits>156.030</sdrNits> + <hdrRatio>3.839</hdrRatio> + </point> + <point> + <sdrNits>159.889</sdrNits> + <hdrRatio>3.746</hdrRatio> + </point> + <point> + <sdrNits>163.747</sdrNits> + <hdrRatio>3.658</hdrRatio> + </point> + <point> + <sdrNits>167.606</sdrNits> + <hdrRatio>3.574</hdrRatio> + </point> + <point> + <sdrNits>171.465</sdrNits> + <hdrRatio>3.493</hdrRatio> + </point> + <point> + <sdrNits>175.323</sdrNits> + <hdrRatio>3.417</hdrRatio> + </point> + <point> + <sdrNits>179.182</sdrNits> + <hdrRatio>3.343</hdrRatio> + </point> + <point> + <sdrNits>183.040</sdrNits> + <hdrRatio>3.273</hdrRatio> + </point> + <point> + <sdrNits>186.899</sdrNits> + <hdrRatio>3.205</hdrRatio> + </point> + <point> + <sdrNits>190.758</sdrNits> + <hdrRatio>3.140</hdrRatio> + </point> + <point> + <sdrNits>194.616</sdrNits> + <hdrRatio>3.078</hdrRatio> + </point> + <point> + <sdrNits>198.475</sdrNits> + <hdrRatio>3.018</hdrRatio> + </point> + <point> + <sdrNits>202.333</sdrNits> + <hdrRatio>2.960</hdrRatio> + </point> + <point> + <sdrNits>206.192</sdrNits> + <hdrRatio>2.905</hdrRatio> + </point> + <point> + <sdrNits>210.051</sdrNits> + <hdrRatio>2.852</hdrRatio> + </point> + <point> + <sdrNits>213.909</sdrNits> + <hdrRatio>2.800</hdrRatio> + </point> + <point> + <sdrNits>217.768</sdrNits> + <hdrRatio>2.751</hdrRatio> + </point> + <point> + <sdrNits>221.626</sdrNits> + <hdrRatio>2.703</hdrRatio> + </point> + <point> + <sdrNits>225.485</sdrNits> + <hdrRatio>2.656</hdrRatio> + </point> + <point> + <sdrNits>229.343</sdrNits> + <hdrRatio>2.612</hdrRatio> + </point> + <point> + <sdrNits>233.202</sdrNits> + <hdrRatio>2.569</hdrRatio> + </point> + <point> + <sdrNits>237.061</sdrNits> + <hdrRatio>2.527</hdrRatio> + </point> + <point> + <sdrNits>240.919</sdrNits> + <hdrRatio>2.486</hdrRatio> + </point> + <point> + <sdrNits>244.778</sdrNits> + <hdrRatio>2.447</hdrRatio> + </point> + <point> + <sdrNits>248.636</sdrNits> + <hdrRatio>2.409</hdrRatio> + </point> + <point> + <sdrNits>252.495</sdrNits> + <hdrRatio>2.372</hdrRatio> + </point> + <point> + <sdrNits>256.354</sdrNits> + <hdrRatio>2.337</hdrRatio> + </point> + <point> + <sdrNits>260.212</sdrNits> + <hdrRatio>2.302</hdrRatio> + </point> + <point> + <sdrNits>264.071</sdrNits> + <hdrRatio>2.268</hdrRatio> + </point> + <point> + <sdrNits>267.929</sdrNits> + <hdrRatio>2.236</hdrRatio> + </point> + <point> + <sdrNits>271.788</sdrNits> + <hdrRatio>2.204</hdrRatio> + </point> + <point> + <sdrNits>275.646</sdrNits> + <hdrRatio>2.173</hdrRatio> + </point> + <point> + <sdrNits>279.505</sdrNits> + <hdrRatio>2.143</hdrRatio> + </point> + <point> + <sdrNits>283.364</sdrNits> + <hdrRatio>2.114</hdrRatio> + </point> + <point> + <sdrNits>287.222</sdrNits> + <hdrRatio>2.085</hdrRatio> + </point> + <point> + <sdrNits>291.081</sdrNits> + <hdrRatio>2.058</hdrRatio> + </point> + <point> + <sdrNits>294.939</sdrNits> + <hdrRatio>2.031</hdrRatio> + </point> + <point> + <sdrNits>298.798</sdrNits> + <hdrRatio>2.005</hdrRatio> + </point> + <point> + <sdrNits>302.657</sdrNits> + <hdrRatio>1.979</hdrRatio> + </point> + <point> + <sdrNits>306.515</sdrNits> + <hdrRatio>1.954</hdrRatio> + </point> + <point> + <sdrNits>310.374</sdrNits> + <hdrRatio>1.930</hdrRatio> + </point> + <point> + <sdrNits>314.232</sdrNits> + <hdrRatio>1.906</hdrRatio> + </point> + <point> + <sdrNits>318.091</sdrNits> + <hdrRatio>1.883</hdrRatio> + </point> + <point> + <sdrNits>321.949</sdrNits> + <hdrRatio>1.861</hdrRatio> + </point> + <point> + <sdrNits>325.808</sdrNits> + <hdrRatio>1.839</hdrRatio> + </point> + <point> + <sdrNits>329.667</sdrNits> + <hdrRatio>1.817</hdrRatio> + </point> + <point> + <sdrNits>333.525</sdrNits> + <hdrRatio>1.796</hdrRatio> + </point> + <point> + <sdrNits>337.384</sdrNits> + <hdrRatio>1.775</hdrRatio> + </point> + <point> + <sdrNits>341.242</sdrNits> + <hdrRatio>1.755</hdrRatio> + </point> + <point> + <sdrNits>345.101</sdrNits> + <hdrRatio>1.736</hdrRatio> + </point> + <point> + <sdrNits>348.960</sdrNits> + <hdrRatio>1.717</hdrRatio> + </point> + <point> + <sdrNits>352.818</sdrNits> + <hdrRatio>1.698</hdrRatio> + </point> + <point> + <sdrNits>356.677</sdrNits> + <hdrRatio>1.679</hdrRatio> + </point> + <point> + <sdrNits>360.535</sdrNits> + <hdrRatio>1.661</hdrRatio> + </point> + <point> + <sdrNits>364.394</sdrNits> + <hdrRatio>1.644</hdrRatio> + </point> + <point> + <sdrNits>368.253</sdrNits> + <hdrRatio>1.627</hdrRatio> + </point> + <point> + <sdrNits>372.111</sdrNits> + <hdrRatio>1.610</hdrRatio> + </point> + <point> + <sdrNits>375.970</sdrNits> + <hdrRatio>1.593</hdrRatio> + </point> + <point> + <sdrNits>379.828</sdrNits> + <hdrRatio>1.577</hdrRatio> + </point> + <point> + <sdrNits>383.687</sdrNits> + <hdrRatio>1.561</hdrRatio> + </point> + <point> + <sdrNits>387.545</sdrNits> + <hdrRatio>1.546</hdrRatio> + </point> + <point> + <sdrNits>391.404</sdrNits> + <hdrRatio>1.530</hdrRatio> + </point> + <point> + <sdrNits>395.263</sdrNits> + <hdrRatio>1.515</hdrRatio> + </point> + <point> + <sdrNits>399.121</sdrNits> + <hdrRatio>1.501</hdrRatio> + </point> + <point> + <sdrNits>402.980</sdrNits> + <hdrRatio>1.486</hdrRatio> + </point> + <point> + <sdrNits>406.838</sdrNits> + <hdrRatio>1.472</hdrRatio> + </point> + <point> + <sdrNits>410.697</sdrNits> + <hdrRatio>1.458</hdrRatio> + </point> + <point> + <sdrNits>414.556</sdrNits> + <hdrRatio>1.445</hdrRatio> + </point> + <point> + <sdrNits>418.414</sdrNits> + <hdrRatio>1.432</hdrRatio> + </point> + <point> + <sdrNits>422.273</sdrNits> + <hdrRatio>1.419</hdrRatio> + </point> + <point> + <sdrNits>426.131</sdrNits> + <hdrRatio>1.406</hdrRatio> + </point> + <point> + <sdrNits>429.990</sdrNits> + <hdrRatio>1.393</hdrRatio> + </point> + <point> + <sdrNits>433.848</sdrNits> + <hdrRatio>1.381</hdrRatio> + </point> + <point> + <sdrNits>437.707</sdrNits> + <hdrRatio>1.368</hdrRatio> + </point> + <point> + <sdrNits>441.566</sdrNits> + <hdrRatio>1.357</hdrRatio> + </point> + <point> + <sdrNits>445.424</sdrNits> + <hdrRatio>1.345</hdrRatio> + </point> + <point> + <sdrNits>449.283</sdrNits> + <hdrRatio>1.333</hdrRatio> + </point> + <point> + <sdrNits>453.141</sdrNits> + <hdrRatio>1.322</hdrRatio> + </point> + <point> + <sdrNits>457.000</sdrNits> + <hdrRatio>1.311</hdrRatio> + </point> + <point> + <sdrNits>464.526</sdrNits> + <hdrRatio>1.335</hdrRatio> + </point> + <point> + <sdrNits>472.053</sdrNits> + <hdrRatio>1.358</hdrRatio> + </point> + <point> + <sdrNits>479.579</sdrNits> + <hdrRatio>1.381</hdrRatio> + </point> + <point> + <sdrNits>487.105</sdrNits> + <hdrRatio>1.403</hdrRatio> + </point> + <point> + <sdrNits>494.632</sdrNits> + <hdrRatio>1.424</hdrRatio> + </point> + <point> + <sdrNits>502.158</sdrNits> + <hdrRatio>1.445</hdrRatio> + </point> + <point> + <sdrNits>509.684</sdrNits> + <hdrRatio>1.465</hdrRatio> + </point> + <point> + <sdrNits>517.211</sdrNits> + <hdrRatio>1.485</hdrRatio> + </point> + <point> + <sdrNits>524.737</sdrNits> + <hdrRatio>1.504</hdrRatio> + </point> + <point> + <sdrNits>532.263</sdrNits> + <hdrRatio>1.522</hdrRatio> + </point> + <point> + <sdrNits>539.789</sdrNits> + <hdrRatio>1.540</hdrRatio> + </point> + <point> + <sdrNits>547.316</sdrNits> + <hdrRatio>1.557</hdrRatio> + </point> + <point> + <sdrNits>554.842</sdrNits> + <hdrRatio>1.574</hdrRatio> + </point> + <point> + <sdrNits>562.368</sdrNits> + <hdrRatio>1.591</hdrRatio> + </point> + <point> + <sdrNits>569.895</sdrNits> + <hdrRatio>1.607</hdrRatio> + </point> + <point> + <sdrNits>577.421</sdrNits> + <hdrRatio>1.622</hdrRatio> + </point> + <point> + <sdrNits>584.947</sdrNits> + <hdrRatio>1.637</hdrRatio> + </point> + <point> + <sdrNits>592.474</sdrNits> + <hdrRatio>1.652</hdrRatio> + </point> + <point> + <sdrNits>600.000</sdrNits> + <hdrRatio>1.667</hdrRatio> + </point> + </sdrHdrRatioMap> + </highBrightnessMode> + + <densityMapping> + <density> + <height>2520</height> + <width>5460</width> + <density>560</density> + </density> + </densityMapping> + + <screenBrightnessRampIncreaseMaxMillis>2000</screenBrightnessRampIncreaseMaxMillis> + + <ambientBrightnessChangeThresholds> + <brighteningThresholds> + <minimum>10</minimum> + </brighteningThresholds> + <darkeningThresholds> + <minimum>0</minimum> + </darkeningThresholds> + </ambientBrightnessChangeThresholds> + + <ambientLightHorizonLong>5000</ambientLightHorizonLong> + <ambientLightHorizonShort>50</ambientLightHorizonShort> + + <thermalThrottling> + <brightnessThrottlingMap> + <brightnessThrottlingPoint> + <thermalStatus>light</thermalStatus> + <!-- Throttling to 465 nits: (465-2.0)/(600-2.0)*(0.6-0.0)+0.0 = 0.464548495 --> + <brightness>0.464548495</brightness> + </brightnessThrottlingPoint> + <brightnessThrottlingPoint> + <thermalStatus>moderate</thermalStatus> + <!-- Throttling to 297 nits: (297-2.0)/(600-2.0)*(0.6-0.0)+0.0 = 0.295986622 --> + <brightness>0.295986622</brightness> + </brightnessThrottlingPoint> + <brightnessThrottlingPoint> + <thermalStatus>severe</thermalStatus> + <!-- Throttling to 213 nits: (213-2.0)/(600-2.0)*(0.6-0.0)+0.0 = 0.211705686 --> + <brightness>0.211705686</brightness> + </brightnessThrottlingPoint> + <brightnessThrottlingPoint> + <thermalStatus>critical</thermalStatus> + <!-- Throttling to 150 nits: (150-2.0)/(600-2.0)*(0.6-0.0)+0.0 = 0.148494983 --> + <brightness>0.148494983</brightness> + </brightnessThrottlingPoint> + </brightnessThrottlingMap> + </thermalThrottling> + + <screenBrightnessRampFastDecrease>0.7047244</screenBrightnessRampFastDecrease> + <screenBrightnessRampFastIncrease>0.7047244</screenBrightnessRampFastIncrease> + <screenBrightnessRampSlowDecrease>0.05</screenBrightnessRampSlowDecrease> + <screenBrightnessRampSlowIncrease>0.05</screenBrightnessRampSlowIncrease> + + <screenOffBrightnessSensor> + <type>com.google.sensor.binned_brightness</type> + </screenOffBrightnessSensor> + <screenOffBrightnessSensorValueToLux> + <item>-1</item> <!-- 0: OFF --> + <item>0</item> <!-- 1: NIGHT --> + <item>5</item> <!-- 2: LOW --> + <item>80</item> <!-- 3: HIGH --> + <item>1500</item> <!-- 4: SUN --> + </screenOffBrightnessSensorValueToLux> +</displayConfiguration> diff --git a/cheetah_car/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml b/cheetah_car/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml new file mode 100644 index 0000000..971d192 --- /dev/null +++ b/cheetah_car/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/** + * 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. + */ +--> +<resources> + <integer name="def_user_rotation">1</integer> +</resources> diff --git a/panther_car/BoardConfig.mk b/panther_car/BoardConfig.mk new file mode 100644 index 0000000..6dd51ec --- /dev/null +++ b/panther_car/BoardConfig.mk @@ -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. +# + +# Contents of this file were copied from device/google/pantah/panther/BoardConfig.mk, +# except for: +# +# * TARGET_SCREEN_DENSITY is scaled down by 1.75x + +TARGET_SCREEN_DENSITY := 240 diff --git a/panther_car/aosp_panther_car.mk b/panther_car/aosp_panther_car.mk new file mode 100644 index 0000000..cb121cb --- /dev/null +++ b/panther_car/aosp_panther_car.mk @@ -0,0 +1,30 @@ +# +# 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. +# + +DEVICE_IS_64BIT_ONLY := true + +PRODUCT_PACKAGE_OVERLAYS += device/google_car/panther_car/overlay + +$(call inherit-product, device/google_car/common/pre_google_car.mk) +$(call inherit-product, device/google_car/panther_car/device-panther-car.mk) +$(call inherit-product-if-exists, vendor/google_devices/pantah/proprietary/panther/device-vendor-panther.mk) +$(call inherit-product, device/google_car/common/post_google_car.mk) + +PRODUCT_NAME := aosp_panther_car +PRODUCT_DEVICE := panther +PRODUCT_MODEL := AOSP on panther +PRODUCT_BRAND := Android +PRODUCT_MANUFACTURER := Google diff --git a/panther_car/device-panther-car.mk b/panther_car/device-panther-car.mk new file mode 100644 index 0000000..740d7ac --- /dev/null +++ b/panther_car/device-panther-car.mk @@ -0,0 +1,29 @@ +# +# 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. +# + +PHONE_CAR_BOARD_PRODUCT := panther_car + +$(call inherit-product, packages/services/Car/car_product/build/car.mk) + +$(call inherit-product, device/google/pantah/device-panther.mk) + +include device/google/gs101/uwb/uwb.mk + +PRODUCT_PRODUCT_PROPERTIES+= \ + ro.adb.secure=0 + +PRODUCT_PACKAGES += \ + librs_jni diff --git a/panther_car/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml b/panther_car/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml new file mode 100644 index 0000000..971d192 --- /dev/null +++ b/panther_car/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/** + * 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. + */ +--> +<resources> + <integer name="def_user_rotation">1</integer> +</resources> |