raven: Initialize for Evolution X 11.x (BP2A.250605.031.A2)

Signed-off-by: AnierinB <anierin@evolution-x.org>
This commit is contained in:
AnierinB 2025-07-24 06:45:01 +00:00
commit cfd62c6f02
2019 changed files with 84952 additions and 0 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
proprietary/vendor/bin/aocd vendored Executable file

Binary file not shown.

BIN
proprietary/vendor/bin/aocxd vendored Executable file

Binary file not shown.

BIN
proprietary/vendor/bin/bipchmgr vendored Executable file

Binary file not shown.

BIN
proprietary/vendor/bin/cbd vendored Executable file

Binary file not shown.

BIN
proprietary/vendor/bin/dmd vendored Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
proprietary/vendor/bin/hw/battery_mitigation vendored Executable file

Binary file not shown.

BIN
proprietary/vendor/bin/hw/citadel_updater vendored Executable file

Binary file not shown.

BIN
proprietary/vendor/bin/hw/citadeld vendored Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
proprietary/vendor/bin/hw/gpsd vendored Executable file

Binary file not shown.

261
proprietary/vendor/bin/hw/init_citadel vendored Executable file
View file

@ -0,0 +1,261 @@
#!/vendor/bin/sh
#
# 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.
# This script automates Dauntless firmware updates
#
# We use the name "dauntless" in the source for clarity, but keep "citadel" on
# the target so we don't have to change all the factory scripts.
set -u
# There are multiple pre-production images, so we have to pick the right one
FWDIR=/vendor/firmware/dauntless
# Update tool
UPDATER=/vendor/bin/hw/citadel_updater
# Log messages to both logcat and the shell
LOG_TAG=init_citadel
log_info() {
log -p i -t "${LOG_TAG}" "$1"
echo "$1" >&2
}
log_error() {
log -p e -t "${LOG_TAG}" "$1"
echo "$1" >&2
}
die() {
log_error "fatal: $1"
exit 1
}
get_running_version() {
# See what's running now
log_info "Checking RW firmware version..."
version=$(${UPDATER} -vv)
status=$?
if [[ $status -ne 0 ]] ; then
log_error "Failed to get RW firmware version"
return 1
fi
log_info "Running RW version: ${version}"
echo "$version"
}
log_ro_version() {
log_info "Checking RO firmware version..."
version=$(${UPDATER} -l | grep RO_)
status=$?
if [[ $status -ne 0 ]] ; then
log_error "Failed to get RO firmware version"
return 0
fi
log_info "${version}"
}
find_image_file() {
version="$1"
# There are several flavors of dauntless chips and they're all signed
# differently. If we have multiple images to choose from, we'll try to pick
# the image that matches the running firmware.
# The -vv option will try to identify the flavor. If it can, it will append
# a /FLAVOR string to the version string.
flavor=$(echo $version | cut -d/ -f3)
# For node-locked images we have to let the chip tell us
[[ -z "$flavor" ]] &&
flavor=$(${UPDATER} -l | grep Chip | sed -e 's/^.*(//' -e 's/).*//')
# Look for a matching image name
[[ -n "$flavor" ]] && log_info "Flavor: $flavor" &&
[[ -f "$FWDIR/$flavor.ec.bin" ]] &&
fwbin="$FWDIR/$flavor.ec.bin"
# Look for the default if no flavor known or image available
[[ -z "${fwbin:-}" ]] && [[ -f "$FWDIR/ec.bin" ]] &&
fwbin="$FWDIR/ec.bin"
# Still nothing? That's not right
if [[ -z "${fwbin:-}" ]]; then
log_info "Couldn't find a firmware image to upload"
return 1;
fi
log_info "Image file: $fwbin"
echo "$fwbin"
}
is_newer_ro() {
fwbin="$1"
file_is_newer=$(${UPDATER} --is_newer_ro "$fwbin")
status=$?
if [[ $status -ne 0 ]] ; then
log_error "Failed to compare running RO with file"
return 1
fi
log_info "Is RO in file newer: $file_is_newer"
echo "$file_is_newer";
}
is_newer_rw() {
fwbin="$1"
file_is_newer=$(${UPDATER} --is_newer_rw "$fwbin")
status=$?
if [[ $status -ne 0 ]] ; then
log_error "Failed to compare running RW with file"
return 1
fi
log_info "Is RW in file newer: $file_is_newer"
echo "$file_is_newer";
}
upload_fw() {
which="$1"
fwbin="$2"
# Try several times
log_info "Uploading firmware..."
${UPDATER} "$which" "${fwbin}" && echo "okay" && return 0
log_info "Trying again..."
${UPDATER} "$which" "${fwbin}" && echo "okay" && return 0
log_info "Maybe a forced reset will help"
${UPDATER} --force_reset || log_error "Couldn't force reset the chip"
sleep 1
log_info "Trying once more..."
${UPDATER} "$which" "${fwbin}" && echo "okay" && return 0
log_error "Nope. Couldn't upload the new firmware."
return 1;
}
# If cryptolib_RO is already provided by the current RO, or the new RW doesn't
# reequire it, then it's safe to update RW.
safe_to_update_rw() {
fwbin=$1
# Get epoch.major.minor of the current RO image
chip_ver=$(${UPDATER} -l | tr ':/' ' ' | egrep 'R[OW]_[AB].*\*')
cur_ro_vers=$(echo "$chip_ver" | awk '/RO_/ {print $3}')
# RO 0.1.6 (evt) and RO 0.0.6 (proto11) contain RO_CRYPTO
# Assume(!) that the minor number will just continue to increment
minor=$(echo "$cur_ro_vers" | cut -d. -f3)
if [[ "$minor" -ge 6 ]] ; then
log_info "RO version $cur_ro_vers contains cryptolib"
echo "yes"
return
fi
# There's no RO crypto currently installed, but do we really need it?
# Which RW image are we considering?
cur_rw_slot=$(echo "$chip_ver" | awk '/RW_/ {print $1}')
new_rw_slot=$(echo "$cur_rw_slot" | tr 'AB' 'BA')
# Obtain the new RW version string from the provided image file.
file_ver=$(${UPDATER} -f "$fwbin" | tr ':/' ' ')
new_rw_vers=$(echo "$file_ver" | awk "/$new_rw_slot/ {print \$3}")
# go/nor/50384 added -r, -l, or -w to the version string
# -r means "needs RO_CRYPTO"
if [[ "$new_rw_vers" == *-r ]] ; then
log_info "New RW firmware $new_rw_vers requires RO cryptolib"
echo "no"
return
fi
echo "yes"
}
# Let's do this
log_info "Starting $0"
# What do we know?
version=$(get_running_version) || die "No running version"
fwbin=$(find_image_file "$version") || die "No image file"
do_ro=$(is_newer_ro "$fwbin") || die "No RO comparsion"
# If there's a RO update available, try it first.
if [[ "$do_ro" = "yes" ]]; then
log_info "Trying to update RO"
log_ro_version
# Upload should succeed
upload_fw --ro "$fwbin" || die "RO upload failed"
# Enable might succeed with default (empty) password
if ${UPDATER} --enable_ro '' ; then
# RO takes effect immediately and will reboot if RW changed too, so
# give it some time to happen.
sleep 2
log_ro_version || die "Can't read version after update"
else
# The user has a PIN/pattern/password set
log_info "The primary user will have to enable the update"
fi
fi
# What do we know now?
version=$(get_running_version) || die "No running version"
fwbin=$(find_image_file "$version") || die "No image file"
do_rw=$(is_newer_rw "$fwbin") || die "No RW comparsion"
# If there's a RW update available, try it next
if [[ "$do_rw" = "yes" ]]; then
log_info "Trying to update RW"
# If the new RW requires cryptolib_RO and we don't have it, don't try
safe=$(safe_to_update_rw "$fwbin")
if [[ "$safe" != "yes" ]]; then
log_error "Cowardly refusing to update RW right now"
else
# Upload should succeed
upload_fw --rw "$fwbin" || die "RW upload failed"
# Enable might succeed with default (empty) password
if ${UPDATER} --enable_rw '' ; then
# We need to reboot manually for RW update
log_info "RW update enabled, rebooting now"
${UPDATER} --reboot || ${UPDATER} --force_reset || \
log_error "can't reboot"
get_running_version || die "Can't read version after update"
else
# The user has a PIN/pattern/password set
log_info "The primary user will have to enable the update"
fi
fi
fi
log_info "All done"
exit 0

BIN
proprietary/vendor/bin/hw/lhd vendored Executable file

Binary file not shown.

BIN
proprietary/vendor/bin/hw/rild_exynos vendored Executable file

Binary file not shown.

Binary file not shown.

BIN
proprietary/vendor/bin/hw/scd vendored Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -0,0 +1,10 @@
#!/vendor/bin/sh
camera_irq_nums=$(grep "lwis" /proc/interrupts | awk '{ print(substr($1, 0, length($1) - 1)) }')
for irq_num in ${camera_irq_nums[@]};
do
chown system:system /proc/irq/${irq_num}/smp_affinity
chown system:system /proc/irq/${irq_num}/smp_affinity_list
done

18
proprietary/vendor/bin/init.radio.sh vendored Executable file
View file

@ -0,0 +1,18 @@
#! /vendor/bin/sh
#
# Copy /vendor/etc/database/ if needed for RIL
#
data_ecc_ver=$(cat /data/vendor/radio/database/ecc_version)
if [ -z $data_ecc_ver ]; then
data_ecc_ver=0
fi
vendor_ecc_ver=$(cat /vendor/etc/database/ecc_version)
if [ -z $vendor_ecc_ver ]; then
vendor_ecc_ver=0
fi
# Copy files from /vendor/etc/database/ to /data/vendor/radio/ when data_ecc_ver < vendor_ecc_ver
if [ $data_ecc_ver -lt $vendor_ecc_ver ]; then
mkdir -p /data/vendor/radio/database
cp -R /vendor/etc/database/* /data/vendor/radio/database/
chown -hR radio.radio /data/vendor/radio/databse/
fi

BIN
proprietary/vendor/bin/modem_logging_control vendored Executable file

Binary file not shown.

BIN
proprietary/vendor/bin/pixelstats-vendor vendored Executable file

Binary file not shown.

BIN
proprietary/vendor/bin/rfsd vendored Executable file

Binary file not shown.

BIN
proprietary/vendor/bin/shared_modem_platform vendored Executable file

Binary file not shown.

BIN
proprietary/vendor/bin/sscoredump vendored Executable file

Binary file not shown.

BIN
proprietary/vendor/bin/trusty_metricsd vendored Executable file

Binary file not shown.

BIN
proprietary/vendor/bin/twoshay vendored Executable file

Binary file not shown.

BIN
proprietary/vendor/bin/usf_stats vendored Executable file

Binary file not shown.

BIN
proprietary/vendor/bin/wfc-pkt-router vendored Executable file

Binary file not shown.

View file

@ -0,0 +1 @@
/vendor/lib64/egl/libGLES_mali.so

View file

@ -0,0 +1 @@
/vendor/lib/egl/libGLES_mali.so

151
proprietary/vendor/etc/atc_profile.json vendored Normal file
View file

@ -0,0 +1,151 @@
{
"version": "0.5",
"modes": [
{
"name": "normal",
"lux_map": [
0,
5000,
10000,
16000,
18000,
23000,
28000,
33000,
39000,
44000,
49000,
55000,
65000,
70000
],
"ambient_light_map": [
0,
0,
0,
8,
12,
17,
23,
27,
28,
29,
30,
31,
33,
35
],
"strength_map": [
0,
64,
100,
100,
100,
100,
100,
100,
100,
100,
100,
100,
100,
100
],
"st_up_step": 4,
"st_down_step": 1,
"sub_setting": {
"local_tone_gain": 128,
"noise_suppression_gain": 128,
"dither": 0,
"plain_weight_1": 10,
"plain_weight_2": 14,
"color_transform_mode": 2,
"preprocessing_enable": 1,
"upgrade_on": 0,
"TDR_max": 920,
"TDR_min": 256,
"backlight": 255,
"dimming_step": 4,
"scale_mode": 3,
"threshold_1": 3,
"threshold_2": 2,
"threshold_3": 3,
"gain_limit": 512,
"lt_calc_ab_shift": 1
}
},
{
"name": "hbm",
"lux_map": [
0,
5000,
10000,
16000,
18000,
23000,
28000,
33000,
39000,
44000,
49000,
55000,
65000,
70000
],
"ambient_light_map": [
0,
0,
0,
8,
12,
17,
21,
24,
25,
26,
27,
28,
30,
32
],
"strength_map": [
0,
64,
100,
100,
100,
100,
100,
100,
100,
100,
100,
100,
100,
100
],
"st_up_step": 4,
"st_down_step": 1,
"sub_setting": {
"local_tone_gain": 128,
"noise_suppression_gain": 128,
"dither": 0,
"plain_weight_1": 10,
"plain_weight_2": 14,
"color_transform_mode": 2,
"preprocessing_enable": 1,
"upgrade_on": 0,
"TDR_max": 920,
"TDR_min": 256,
"backlight": 255,
"dimming_step": 4,
"scale_mode": 3,
"threshold_1": 3,
"threshold_2": 2,
"threshold_3": 3,
"gain_limit": 512,
"lt_calc_ab_shift": 1
}
}
]
}

View file

@ -0,0 +1,31 @@
# Priority of uart type
# HciUartSocket = 0
# SerialUartPort = 1
# SerialAocUartPort = 2
# UserialInvalid = 3
UserialTypePriority = 1
# Uart port name
UartPort = /dev/ttySAC16
# <boolean> Enable check whether let aoc controls power pin
AocPowerPinCtrlCheckEnable = false
# <boolean> Skipping command complete events for write_ram command
FastDownloadDisable = false
# <boolean> Enable/Disable accelerated BT ON
# false => Enable Accelerated BT ON
# true => Disable Accelerated BT ON
AccelBtDisable = false
# This is used to configure delay for BT_REG_ON during big hammer.
# Value should be defined in msec.
# 100 msec is mendatory delay. Per module tunning may be needed.
BigHammerBtRegOnDelay = 100
# <string> The hardware support which offload capability
BtOffloadCap = NONE
# <string> The BT Offload Trunk Flag Group Name
BtOffloadTrunkGroup = Disabled

Binary file not shown.

BIN
proprietary/vendor/etc/chre/activity.so vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
proprietary/vendor/etc/chre/ar_bridge.so vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
proprietary/vendor/etc/chre/blue.so vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
proprietary/vendor/etc/chre/cc.so vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
proprietary/vendor/etc/chre/columbus.so vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
proprietary/vendor/etc/chre/drop.so vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
proprietary/vendor/etc/chre/gating.so vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
proprietary/vendor/etc/chre/geofence.so vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
proprietary/vendor/etc/chre/gesture.so vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
proprietary/vendor/etc/chre/health.so vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
proprietary/vendor/etc/chre/imu_cal.so vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
proprietary/vendor/etc/chre/ip_health.so vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -0,0 +1,23 @@
{
"source_dir": "/vendor/etc/chre",
"nanoapps": [
"activity",
"ar_bridge",
"blue",
"cc",
"columbus",
"columbus_lite",
"drop",
"gating",
"geofence",
"gesture",
"health",
"imu_cal",
"ip_health",
"motiondetector",
"sd",
"sensorcollector",
"smartbatching",
"uv_exposure"
]
}

Binary file not shown.

BIN
proprietary/vendor/etc/chre/sd.so vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
* Copyright Samsung Electronics Co., LTD.
*
* This software is proprietary of Samsung Electronics.
* No part of this software, either material or conceptual may be copied or distributed, transmitted,
* transcribed, stored in a retrieval system or translated into any human or computer language in any form by any means,
* electronic, mechanical, manual or otherwise, or disclosed
* to third parties without the express written permission of Samsung Electronics.
*/
-->
<EccTable>
<!-- #R stands for retail -->
<EccEntry mnc="#R" number="112" category="0" condition="00000001" />
<EccEntry mnc="#R" number="911" category="0" condition="00000001" />
<EccEntry mnc="#R" number="100" category="0" condition="10010000" />
<EccEntry mnc="#R" number="199" category="0" condition="10010000" />
<EccEntry mnc="#R" number="166" category="0" condition="10010000" />
<EccEntry mnc="#R" number="108" category="0" condition="10010000" />
<EccEntry mnc="#R" number="1056" category="0" condition="10010000" />
</EccTable>

View file

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
* Copyright Samsung Electronics Co., LTD.
*
* This software is proprietary of Samsung Electronics.
* No part of this software, either material or conceptual may be copied or distributed, transmitted,
* transcribed, stored in a retrieval system or translated into any human or computer language in any form by any means,
* electronic, mechanical, manual or otherwise, or disclosed
* to third parties without the express written permission of Samsung Electronics.
*/
-->
<EccTable>
<!-- #R stands for retail -->
<EccEntry mnc="#R" number="112" category="0" condition="00000001" />
<EccEntry mnc="#R" number="911" category="0" condition="00000001" />
</EccTable>

View file

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
* Copyright Samsung Electronics Co., LTD.
*
* This software is proprietary of Samsung Electronics.
* No part of this software, either material or conceptual may be copied or distributed, transmitted,
* transcribed, stored in a retrieval system or translated into any human or computer language in any form by any means,
* electronic, mechanical, manual or otherwise, or disclosed
* to third parties without the express written permission of Samsung Electronics.
*/
-->
<EccTable>
<!-- #R stands for retail -->
<EccEntry mnc="#R" number="112" category="0" condition="00000001" />
<EccEntry mnc="#R" number="911" category="0" condition="00000001" />
<EccEntry mnc="#R" number="999" category="0" condition="00000001" />
</EccTable>

Some files were not shown because too many files have changed in this diff Show more