Skip to content

Commit

Permalink
raphael:Inital adaptation to CR 14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kondors1995 committed Dec 10, 2023
1 parent b871265 commit f854f2f
Show file tree
Hide file tree
Showing 8 changed files with 204 additions and 12 deletions.
8 changes: 4 additions & 4 deletions AndroidProducts.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
#

PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/syberia_raphael.mk
$(LOCAL_DIR)/lineage_raphael.mk

COMMON_LUNCH_CHOICES := \
syberia_raphael-user \
syberia_raphael-userdebug \
syberia_raphael-eng
lineage_raphael-user \
lineage_raphael-userdebug \
lineage_raphael-eng
21 changes: 13 additions & 8 deletions syberia_raphael.mk → lineage_raphael.mk
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,22 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/product_launched_with_p.mk)
# Inherit from raphael device
$(call inherit-product, device/xiaomi/raphael/device.mk)

# Inherit some common Suberia OS stuff.
$(call inherit-product, vendor/syberia/common.mk)
SYBERIA_BUILD_TYPE := OFFICIAL
EXTRA_UDFPS_ANIMATIONS := true
# Inherit some common Lineage stuff.
$(call inherit-product, vendor/lineage/config/common_full_phone.mk)

# Matrixx
MATRIXX_BUILD_TYPE := Personal
MATRIXX_MAINTAINER := NATO66613
MATRIXX_CHIPSET := SM8150
MATRIXX_BATTERY := 4000mAh
MATRIXX_DISPLAY := 1080x2400
WITH_GAPPS := true
TARGET_HAS_UDFPS := true
TARGET_BOOT_ANIMATION_RES := 1080
TARGET_INCLUDE_PIXEL_CHARGER := true
TARGET_SUPPORTS_QUICK_TAP := true
WITH_GMS := true
TARGET_ENABLE_BLUR := true

# Device identifier. This must come after all inclusions.
PRODUCT_NAME := syberia_raphael
PRODUCT_NAME := lineage_raphael
PRODUCT_DEVICE := raphael
PRODUCT_BRAND := Xiaomi
PRODUCT_MANUFACTURER := Xiaomi
Expand Down
10 changes: 10 additions & 0 deletions rro_overlays/LineageDialerOverlay/Android.bp
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
//
// Copyright (C) 2022 The LineageOS Project
// SPDX-License-Identifier: Apache-2.0
//

runtime_resource_overlay {
name: "LineageDialerOverlay",
theme: "LineageDialerOverlay",
product_specific: true,
}
14 changes: 14 additions & 0 deletions rro_overlays/LineageDialerOverlay/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2022 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.dialer.overlay.raphael">

<application android:allowBackup="false"/>
<overlay
android:isStatic="true"
android:priority="750"
android:targetPackage="com.android.dialer" />
</manifest>
20 changes: 20 additions & 0 deletions rro_overlays/LineageDialerOverlay/res/values/config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2020 The LineageOS 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>
<bool name="call_recording_enabled">true</bool>
<integer name="call_recording_audio_source">4</integer>
</resources>
10 changes: 10 additions & 0 deletions rro_overlays/LineageSDKOverlay/Android.bp
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
//
// Copyright (C) 2022 The LineageOS Project
// SPDX-License-Identifier: Apache-2.0
//

runtime_resource_overlay {
name: "LineageSDKOverlay",
theme: "LineageSDKOverlay",
product_specific: true,
}
14 changes: 14 additions & 0 deletions rro_overlays/LineageSDKOverlay/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2022 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="lineageos.platform.overlay.raphael">

<application android:allowBackup="false"/>
<overlay
android:isStatic="true"
android:priority="750"
android:targetPackage="lineageos.platform" />
</manifest>
119 changes: 119 additions & 0 deletions rro_overlays/LineageSDKOverlay/res/values/config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2015-2016 The CyanogenMod Project
2017-2018 The LineageOS 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>
<!-- Hardware keys present on the device, stored as a bit field.
This integer should equal the sum of the corresponding value for each
of the following keys present:
1 - Home
2 - Back
4 - Menu
8 - Assistant (search)
16 - App switch
32 - Camera
64 - Volume rocker
For example, a device with Home, Back and Menu keys would set this
config to 7. -->
<integer name="config_deviceHardwareKeys">64</integer>

<!-- Hardware keys present on the device with the ability to wake, stored as a bit field.
This integer should equal the sum of the corresponding value for each
of the following keys present:
1 - Home
2 - Back
4 - Menu
8 - Assistant (search)
16 - App switch
32 - Camera
64 - Volume rocker
For example, a device with Home, Back and Menu keys would set this
config to 7. -->
<integer name="config_deviceHardwareWakeKeys">64</integer>

<!-- Whether device has screen with higher aspect ratio -->
<bool name="config_haveHigherAspectRatioScreen">true</bool>

<!-- Defines the actions shown in advanced reboot submenu -->
<string-array name="config_restartActionsList">
<item>restart</item>
<item>restart_recovery</item>
<item>restart_bootloader</item>
</string-array>

<!-- All the capabilities of the LEDs on this device, stored as a bit field.
This integer should equal the sum of the corresponding value for each
of the following capabilities present:
// Device has a color adjustable battery light.
LIGHTS_RGB_NOTIFICATION_LED = 1
// Device has a color adjustable notification light.
LIGHTS_RGB_BATTERY_LED = 2
LIGHTS_MULTIPLE_NOTIFICATION_LED = 4 (deprecated)
// The notification light has adjustable pulsing capability.
LIGHTS_PULSATING_LED = 8
// Device has a multi-segment battery light that is able to
// use the light brightness value to determine how many
// segments to show (in order to represent battery level).
LIGHTS_SEGMENTED_BATTERY_LED = 16
// The notification light supports HAL adjustable brightness
// via the alpha channel.
// Note: if a device notification light supports LIGHTS_RGB_NOTIFICATION_LED
// then HAL support is not necessary for brightness control. In this case,
// brightness support will be provided by lineage-sdk through the scaling of
// RGB color values.
LIGHTS_ADJUSTABLE_NOTIFICATION_LED_BRIGHTNESS = 32
// Device has a battery light.
LIGHTS_BATTERY_LED = 64
// The battery light supports HAL adjustable brightness via
// the alpha channel.
// Note: if a device battery light supports LIGHTS_RGB_BATTERY_LED then HAL
// support is not necessary for brightness control. In this case,
// brightness support will be provided by lineage-sdk through the scaling of
// RGB color values.
LIGHTS_ADJUSTABLE_BATTERY_LED_BRIGHTNESS = 128
For example, a device with notification and battery lights that supports
pulsating and RGB control would set this config to 75. -->
<integer name="config_deviceLightCapabilities">232</integer>

<!-- Default value for proximity check on screen wake
NOTE ! - Enable for devices that have a fast response proximity sensor (ideally < 300ms)-->
<bool name="config_proximityCheckOnWake">true</bool>
<integer name="config_proximityCheckTimeout">3000</integer>
<bool name="config_proximityCheckOnWakeEnabledByDefault">false</bool>

<!-- Doze: does the double tap sensor need a proximity check? -->
<bool name="doze_double_tap_proximity_check">false</bool>

<!-- The list of package IDs that are allowed to use aux cameras.
NOTE: If this list is empty then all apps will be able to use aux cameras. -->
<string-array name="config_cameraAuxPackageAllowList" translatable="false">
<item>com.android.camera</item>
<item>com.android.MGC</item>
<item>org.codeaurora.snapcam</item>
<item>org.lineageos.aperture</item>
<item>org.lineageos.aperture.dev</item>
</string-array>

<!-- The list of package IDs that are not allowed to use aux cameras. -->
<string-array name="config_cameraAuxPackageExcludeList" translatable="false">
<item>org.telegram.messenger</item>
<item>com.microsoft.teams</item>
<item>com.discord</item>
<item>org.thunderdog.challegram</item>
<item>us.zoom.videomeetings</item>
<item>com.viber.voip</item>
</string-array>
</resources>

0 comments on commit f854f2f

Please sign in to comment.