Loading AndroidProducts.mk +1 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ PRODUCT_MAKEFILES := \ $(LOCAL_DIR)/aosp_redfin.mk \ $(LOCAL_DIR)/vf/aosp_redfin_vf.mk \ $(LOCAL_DIR)/aosp_redfin_hwasan.mk \ COMMON_LUNCH_CHOICES := \ aosp_redfin-userdebug \ Loading aosp_redfin_hwasan.mk 0 → 100644 +23 −0 Original line number Diff line number Diff line # # Copyright 2020 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, device/google/redfin/aosp_redfin.mk) PRODUCT_NAME := aosp_redfin_hwasan # Add "hwaddress" as a global sanitizer if it's missing. ifeq ($(filter hwaddress,$(SANITIZE_TARGET)),) SANITIZE_TARGET := $(strip $(SANITIZE_TARGET) hwaddress) endif device-redfin.mk +7 −0 Original line number Diff line number Diff line Loading @@ -219,3 +219,10 @@ PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/bluetooth_power_limits_redfin_us.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_US.csv \ $(LOCAL_PATH)/bluetooth_power_limits_redfin_eu.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_EU.csv \ $(LOCAL_PATH)/bluetooth_power_limits_redfin_jp.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_JP.csv # Set support hide display cutout feature PRODUCT_PRODUCT_PROPERTIES += \ ro.support_hide_display_cutout=true PRODUCT_PACKAGES += \ NoCutoutOverlay redfin/overlay/packages/apps/NoCutoutOverlay/Android.bp 0 → 100644 +21 −0 Original line number Diff line number Diff line // // Copyright 2020, 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: "NoCutoutOverlay", theme: "DisplayCutoutNoCutout", product_specific: true, } redfin/overlay/packages/apps/NoCutoutOverlay/AndroidManifest.xml 0 → 100644 +26 −0 Original line number Diff line number Diff line <!-- ~ Copyright (C) 2020 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.internal.display.cutout.emulation.noCutout" android:versionCode="1" android:versionName="1.0"> <overlay android:targetPackage="android" android:category="com.android.internal.display_cutout_emulation" android:priority="0"/> <application android:label="@string/display_cutout_emulation_overlay" android:hasCode="false"/> </manifest> Loading
AndroidProducts.mk +1 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ PRODUCT_MAKEFILES := \ $(LOCAL_DIR)/aosp_redfin.mk \ $(LOCAL_DIR)/vf/aosp_redfin_vf.mk \ $(LOCAL_DIR)/aosp_redfin_hwasan.mk \ COMMON_LUNCH_CHOICES := \ aosp_redfin-userdebug \ Loading
aosp_redfin_hwasan.mk 0 → 100644 +23 −0 Original line number Diff line number Diff line # # Copyright 2020 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, device/google/redfin/aosp_redfin.mk) PRODUCT_NAME := aosp_redfin_hwasan # Add "hwaddress" as a global sanitizer if it's missing. ifeq ($(filter hwaddress,$(SANITIZE_TARGET)),) SANITIZE_TARGET := $(strip $(SANITIZE_TARGET) hwaddress) endif
device-redfin.mk +7 −0 Original line number Diff line number Diff line Loading @@ -219,3 +219,10 @@ PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/bluetooth_power_limits_redfin_us.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_US.csv \ $(LOCAL_PATH)/bluetooth_power_limits_redfin_eu.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_EU.csv \ $(LOCAL_PATH)/bluetooth_power_limits_redfin_jp.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_JP.csv # Set support hide display cutout feature PRODUCT_PRODUCT_PROPERTIES += \ ro.support_hide_display_cutout=true PRODUCT_PACKAGES += \ NoCutoutOverlay
redfin/overlay/packages/apps/NoCutoutOverlay/Android.bp 0 → 100644 +21 −0 Original line number Diff line number Diff line // // Copyright 2020, 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: "NoCutoutOverlay", theme: "DisplayCutoutNoCutout", product_specific: true, }
redfin/overlay/packages/apps/NoCutoutOverlay/AndroidManifest.xml 0 → 100644 +26 −0 Original line number Diff line number Diff line <!-- ~ Copyright (C) 2020 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.internal.display.cutout.emulation.noCutout" android:versionCode="1" android:versionName="1.0"> <overlay android:targetPackage="android" android:category="com.android.internal.display_cutout_emulation" android:priority="0"/> <application android:label="@string/display_cutout_emulation_overlay" android:hasCode="false"/> </manifest>