Initial lineage-15.1 commit

This commit is contained in:
Joel16 2019-12-15 20:33:17 -05:00
parent 3aa35bb9bf
commit 96ede5363a
15 changed files with 190 additions and 73 deletions

View File

@ -1,3 +1,4 @@
#
# Copyright (C) 2016 The CyanogenMod Project
#

View File

@ -28,8 +28,8 @@ TARGET_OTA_ASSERT_DEVICE := E6833,E6853,E6883,satsuki,satsuki_dsds
# Boot image/kernel
TARGET_KERNEL_CONFIG := kitakami_satsuki_defconfig
# CM hardware
BOARD_HARDWARE_CLASS += $(DEVICE_PATH)/cmhw
# Lineage hardware
BOARD_HARDWARE_CLASS += $(DEVICE_PATH)/lineagehw
TARGET_TAP_TO_WAKE_NODE := "/sys/devices/virtual/input/clearpad/wakeup_gesture"
# Partitions
@ -53,7 +53,6 @@ WIFI_BUS := PCIE
# Init
TARGET_INIT_VENDOR_LIB := libinit_satsuki
TARGET_UNIFIED_DEVICE := true
# Inherit from the proprietary version
-include vendor/sony/satsuki/BoardConfigVendor.mk

View File

@ -339,7 +339,7 @@ NFA_MAX_EE_SUPPORTED=0x02
###############################################################################
# NCI Hal Module name
NCI_HAL_MODULE="nfc_nci.pn54x"
NCI_HAL_MODULE="nfc_nci"
###############################################################################
# AID_MATCHING constants

View File

@ -17,6 +17,14 @@ NXPLOG_NCIR_LOGLEVEL=0x01
NXPLOG_FWDNLD_LOGLEVEL=0x01
NXPLOG_TML_LOGLEVEL=0x01
###############################################################################
# Nfc Device Node name
NXP_NFC_DEV_NODE="/dev/pn54x"
###############################################################################
# File name for Firmware
NXP_FW_NAME="libpn547_fw.so"
###############################################################################
# Extension for Mifare reader enable
# 0x00 - Disabled
@ -205,16 +213,16 @@ NXP_CORE_SCRN_OFF_AUTONOMOUS_ENABLE=0x00
# *** ALM(NO BOOSTER) FW VERSION = 08.01.25 ***
NXP_RF_CONF_BLK_1={
20, 02, F3, 20,
A0, 0D, 03, 00, 40, 04,
A0, 0D, 03, 00, 40, 0A,
A0, 0D, 03, 04, 43, 20,
A0, 0D, 03, 04, FF, 05,
A0, 0D, 06, 06, 44, A3, 90, 03, 00,
A0, 0D, 06, 06, 30, CF, 00, 08, 00,
A0, 0D, 06, 06, 2F, 8F, 05, 80, 0C,
A0, 0D, 04, 06, 03, 00, 71,
A0, 0D, 03, 06, 48, 1F,
A0, 0D, 04, 06, 03, 00, 6E,
A0, 0D, 03, 06, 48, 18,
A0, 0D, 03, 06, 43, A0,
A0, 0D, 06, 06, 42, 00, 02, FF, F1,
A0, 0D, 06, 06, 42, 00, 02, F3, F1,
A0, 0D, 06, 06, 41, 80, 00, 00, 00,
A0, 0D, 03, 06, 37, 18,
A0, 0D, 03, 06, 16, 00,
@ -236,7 +244,7 @@ NXP_RF_CONF_BLK_1={
A0, 0D, 06, 32, 4A, 30, 07, 01, 1F,
A0, 0D, 06, 34, 2D, 24, 77, 0C, 00,
A0, 0D, 06, 34, 34, 00, 00, E4, 03,
A0, 0D, 06, 34, 44, 2D, 00, 02, 00
A0, 0D, 06, 34, 44, 20, 00, 02, 00
}
# *** ALM(NO BOOSTER) FW VERSION = 08.01.25 ***
NXP_RF_CONF_BLK_2={
@ -262,7 +270,7 @@ NXP_RF_CONF_BLK_2={
A0, 0D, 06, 46, 44, 21, 00, 02, 00,
A0, 0D, 06, 46, 2D, 05, 47, 0E, 00,
A0, 0D, 06, 44, 4A, 33, 07, 01, 07,
A0, 0D, 06, 44, 42, 88, 10, FF, FF,
A0, 0D, 06, 44, 42, 70, 10, FF, FF,
A0, 0D, 03, 44, 16, 00,
A0, 0D, 03, 44, 15, 00,
A0, 0D, 06, 4A, 44, 22, 00, 02, 00,
@ -291,16 +299,16 @@ NXP_RF_CONF_BLK_3={
A0, 0D, 06, 56, 44, 22, 00, 02, 00,
A0, 0D, 06, 5C, 2D, 05, 69, 0C, 00,
A0, 0D, 06, 5C, 44, 21, 00, 02, 00,
A0, 0D, 06, 54, 42, 88, 10, FF, FF,
A0, 0D, 06, 54, 42, 70, 10, FF, FF,
A0, 0D, 06, 54, 4A, 33, 07, 01, 07,
A0, 0D, 03, 54, 16, 00,
A0, 0D, 03, 54, 15, 00,
A0, 0D, 06, 5A, 42, 90, 10, FF, FF,
A0, 0D, 06, 5A, 42, 70, 10, FF, FF,
A0, 0D, 06, 5A, 4A, 31, 07, 01, 07,
A0, 0D, 03, 5A, 16, 00,
A0, 0D, 03, 5A, 15, 00,
A0, 0D, 06, 98, 2F, AF, 05, 80, 0F,
A0, 0D, 06, 9A, 42, 00, 02, FF, F1,
A0, 0D, 06, 9A, 42, 00, 03, F2, F1,
A0, 0D, 06, 30, 44, A3, 90, 03, 00,
A0, 0D, 06, 6C, 44, A3, 90, 03, 00,
A0, 0D, 06, 6C, 30, CF, 00, 08, 00,
@ -329,7 +337,7 @@ NXP_RF_CONF_BLK_4={
A0, 0D, 06, 88, 30, 5F, 00, 16, 00,
A0, 0D, 03, 88, 47, 00,
A0, 0D, 06, 88, 44, A1, 90, 03, 00,
A0, 0D, 03, 0C, 48, 1F,
A0, 0D, 03, 0C, 48, 18,
A0, 0D, 03, 10, 43, 20,
A0, 0D, 06, 6A, 42, F8, 10, FF, FF,
A0, 0D, 03, 6A, 16, 00,
@ -400,11 +408,11 @@ NXP_CORE_CONF_EXTN={20, 02, 4D, 12,
A0, 0E, 01, 01,
A0, 11, 04, CD, 67, 22, 01,
A0, 12, 01, 00,
A0, 13, 01, 00,
A0, 13, 01, 02,
A0, 40, 01, 01,
A0, 41, 01, 02,
A0, 41, 01, 04,
A0, 42, 01, 19,
A0, 43, 01, 50,
A0, 43, 01, 05,
A0, 47, 02, 88, 43,
A0, 5E, 01, 01,
A0, 61, 01, 2A,
@ -533,4 +541,28 @@ NXP_CE_ROUTE_STRICT_DISABLE=0x01
# AID_MATCHING_L 0x01
# AID_MATCHING_K 0x02
AID_MATCHING_PLATFORM=0x01
################################################################################
#Used to Restrict Type A UICC baud rate
#0 = default supported
#1 = 212 maximum supported
#2 = 424 maximum supported
#3 = 848 maximum supported
NXP_TYPEA_UICC_BAUD_RATE=0x00
################################################################################
#Used to Restrict Type B UICC baud rate
#0 = default supported
#1 = 212 maximum supported
#2 = 424 maximum supported
#3 = 848 maximum supported
NXP_TYPEB_UICC_BAUD_RATE=0x00
################################################################################
#Config to allow adding aids
#NFC on/off is required after this config
#1 = enabling adding aid to NFCC routing table.
#0 = disabling adding aid to NFCC routing table.
NXP_ENABLE_ADD_AID=0x01
##################################################################################

View File

@ -71,8 +71,10 @@ temps_hysteresis=15
tempoffset=255
rawtempsense=0x1ff
tworangetssi2g=0
tworangetssi2g=1
tworangetssi5g=0
lowpowerrange2g=0
lowpowerrange5g=0
#pa2gccka0=-145,6220,-699
#pa2gccka1=-167,5991,-703
@ -122,7 +124,6 @@ mcsbw805ghpo=0xcaaaaaaa,0x11111111
mcslr5glpo=0x0000
mcslr5gmpo=0x0000
mcslr5ghpo=0x0000
sb20in40hrpo=0x0
sb20in80and160hr5glpo=0x0
sb40and80hr5glpo=0x0

View File

@ -34,7 +34,6 @@ TARGET_SCREEN_WIDTH := 2160
# Dalvik/HWUI
$(call inherit-product, frameworks/native/build/phone-xxhdpi-2048-dalvik-heap.mk)
$(call inherit-product, frameworks/native/build/phone-xxhdpi-2048-hwui-memory.mk)
# init
PRODUCT_COPY_FILES += \
@ -42,7 +41,7 @@ PRODUCT_COPY_FILES += \
# Audio configuration
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/audio/mixer_paths.xml:system/etc/mixer_paths.xml
$(LOCAL_PATH)/audio/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml
# Input
PRODUCT_COPY_FILES += \

View File

@ -1,3 +1,4 @@
#
# Copyright (C) 2017 The LineageOS Project
#
@ -20,7 +21,11 @@ LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_C_INCLUDES := system/core/init
LOCAL_C_INCLUDES := \
system/core/base/include \
system/core/init \
external/selinux/libselinux/include \
external/libcap/libcap/include
LOCAL_CFLAGS := -Wall
LOCAL_SRC_FILES := init_satsuki.cpp
LOCAL_MODULE := libinit_satsuki

View File

@ -18,18 +18,40 @@
#include <stdlib.h>
#include <android-base/logging.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/stat.h>
#define _REALLY_INCLUDE_SYS__SYSTEM_PROPERTIES_H_
#include <sys/_system_properties.h>
#include <sys/types.h>
#include "vendor_init.h"
#include "property_service.h"
#include "log.h"
#include "util.h"
using android::init::import_kernel_cmdline;
using android::init::property_set;
void property_override(char const prop[], char const value[])
{
prop_info *pi;
pi = (prop_info*) __system_property_find(prop);
if (pi)
__system_property_update(pi, value, strlen(value));
else
__system_property_add(prop, strlen(prop), value, strlen(value));
}
void property_override_dual(char const system_prop[], char const vendor_prop[], char const value[])
{
property_override(system_prop, value);
property_override(vendor_prop, value);
}
static void import_kernel_nv(const std::string& key,
const std::string& value, bool for_emulator __attribute__((unused)))
@ -44,20 +66,20 @@ static void import_kernel_nv(const std::string& key,
property_set("ro.telephony.default_network", "9,1");
property_set("ro.semc.product.model", "E6883");
property_set("ro.semc.product.name", "Xperia Z5 Premium Dual");
property_set("ro.product.model", "E6883");
property_set("ro.product.name", "satsuki_dsds");
property_set("ro.product.device", "satsuki_dsds");
property_set("ro.build.description", "satsuki_dsds-user 7.1.1 N-MR1-KITAKAMI-170609-1025 1 dev-keys");
property_set("ro.build.fingerprint", "Sony/satsuki_dsds/satsuki_dsds:7.1.1/N-MR1-KITAKAMI-170609-1025/1:user/dev-keys");
property_override_dual("ro.product.model", "ro.vendor.product.model", "E6883");
property_override_dual("ro.product.name", "ro.vendor.product.name", "satsuki_dsds");
property_override_dual("ro.product.device", "ro.vendor.product.device", "satsuki_dsds");
property_override("ro.build.description", "satsuki_dsds-user 7.1.1 N-MR1-KITAKAMI-170609-1025 1 dev-keys");
property_override_dual("ro.build.fingerprint", "ro.vendor.build.fingerprint", "Sony/satsuki_dsds/satsuki_dsds:7.1.1/N-MR1-KITAKAMI-170609-1025/1:user/dev-keys");
} else {
property_set("ro.telephony.default_network", "9");
property_set("ro.semc.product.model", "E6853");
property_set("ro.semc.product.name", "Xperia Z5 Premium");
property_set("ro.product.model", "E6853");
property_set("ro.product.name", "satsuki");
property_set("ro.product.device", "satsuki");
property_set("ro.build.description", "satsuki-user 7.1.1 N-MR1-KITAKAMI-170609-1025 1 dev-keys");
property_set("ro.build.fingerprint", "Sony/satsuki/satsuki:7.1.1/N-MR1-KITAKAMI-170609-1025/1:user/dev-keys");
property_override_dual("ro.product.model", "ro.vendor.product.model", "E6853");
property_override_dual("ro.product.name", "ro.vendor.product.name", "satsuki");
property_override_dual("ro.product.device", "ro.vendor.product.device", "satsuki");
property_override("ro.build.description", "satsuki-user 7.1.1 N-MR1-KITAKAMI-170609-1025 1 dev-keys");
property_override_dual("ro.build.fingerprint", "ro.vendor.build.fingerprint", "Sony/satsuki/satsuki:7.1.1/N-MR1-KITAKAMI-170609-1025/1:user/dev-keys");
}
}
}

View File

@ -17,6 +17,6 @@
$(call inherit-product, device/sony/satsuki/full_satsuki.mk)
# Inherit some common CM stuff
$(call inherit-product, vendor/cm/config/common_full_phone.mk)
$(call inherit-product, vendor/lineage/config/common_full_phone.mk)
PRODUCT_NAME := lineage_satsuki

View File

@ -14,9 +14,9 @@
* limitations under the License.
*/
package org.cyanogenmod.hardware;
package org.lineageos.hardware;
import org.cyanogenmod.internal.util.FileUtils;
import org.lineageos.internal.util.FileUtils;
/**
* Glove mode / high touch sensitivity

View File

@ -1,42 +1,104 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2016 The CyanogenMod Project
Copyright (C) 2017 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.
/*
** Copyright 2009, 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.
*/
-->
<!-- These resources are around just to allow their values to be customized
for different hardware and product builds. Do not translate. -->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Operating volatage for bluetooth controller. 0 by default-->
<integer translatable="false" name="config_bluetooth_operating_voltage_mv">3600</integer>
<!-- Rx current for bluetooth controller. 0 by default-->
<integer translatable="false" name="config_bluetooth_rx_cur_ma">25</integer>
<!-- Array of light sensor LUX values to define our levels for auto backlight brightness support.
The N entries of this array define N 1 zones as follows:
<!-- Tx current for bluetooth controller. 0 by default-->
<integer translatable="false" name="config_bluetooth_tx_cur_ma">25</integer>
Zone 0: 0 <= LUX < array[0]
Zone 1: array[0] <= LUX < array[1]
...
Zone N: array[N - 1] <= LUX < array[N]
Zone N + 1 array[N] <= LUX < infinity
<!-- Idle current for bluetooth controller. 0 by default-->
<integer translatable="false" name="config_bluetooth_idle_cur_ma">1</integer>
Must be overridden in platform specific overlays -->
<integer-array name="config_autoBrightnessLevels">
<item>16</item>
<item>64</item>
<item>144</item>
<item>256</item>
<item>400</item>
<item>576</item>
<item>784</item>
<item>1024</item>
<item>1296</item>
<item>1600</item>
<item>1936</item>
<item>2304</item>
<item>2704</item>
<item>3136</item>
<item>3600</item>
<item>4096</item>
</integer-array>
<!-- Operating volatage for wifi radio. 0 by default-->
<integer translatable="false" name="config_wifi_operating_voltage_mv">3600</integer>
<!-- Array of output values for LCD backlight corresponding to the LUX values
in the config_autoBrightnessLevels array. This array should have size one greater
than the size of the config_autoBrightnessLevels array.
This must be overridden in platform specific overlays -->
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>10</item> <!-- 0 -->
<item>16</item> <!-- 16 -->
<item>32</item> <!-- 64 -->
<item>48</item> <!-- 144 -->
<item>64</item> <!-- 256 -->
<item>80</item> <!-- 400 -->
<item>96</item> <!-- 576 -->
<item>112</item> <!-- 784 -->
<item>128</item> <!-- 1024 -->
<item>144</item> <!-- 1296 -->
<item>160</item> <!-- 1600 -->
<item>176</item> <!-- 1936 -->
<item>192</item> <!-- 2304 -->
<item>208</item> <!-- 2704 -->
<item>224</item> <!-- 3136 -->
<item>240</item> <!-- 3600 -->
<item>255</item> <!-- 4096 -->
</integer-array>
<!-- Rx current for wifi radio. 0 by default-->
<integer translatable="false" name="config_wifi_active_rx_cur_ma">185</integer>
<!-- Minimum screen brightness setting allowed by the power manager.
The user is forbidden from setting the brightness below this level. -->
<integer name="config_screenBrightnessSettingMinimum">10</integer>
<!-- Tx current for wifi radio. 0 by default-->
<integer translatable="false" name="config_wifi_tx_cur_ma">390</integer>
<!-- Screen brightness used to dim the screen while dozing in a very low power state.
May be less than the minimum allowed brightness setting
that can be set by the user. -->
<integer name="config_screenBrightnessDoze">5</integer>
<!-- Idle Receive current for wifi radio. 0 by default-->
<integer translatable="false" name="config_wifi_idle_receive_cur_ma">3</integer>
<!-- Screen brightness used to dim the screen when the user activity
timeout expires. May be less than the minimum allowed brightness setting
that can be set by the user. -->
<integer name="config_screenBrightnessDim">10</integer>
<!-- Minimum allowable screen brightness to use in a very dark room.
This value sets the floor for the darkest possible auto-brightness
adjustment. It is expected to be somewhat less than the first entry in
config_autoBrightnessLcdBacklightValues so as to allow the user to have
some range of adjustment to dim the screen further than usual in very
dark rooms. The contents of the screen must still be clearly visible
in darkness (although they may not be visible in a bright room). -->
<integer name="config_screenBrightnessDark">5</integer>
<!-- Whether device supports double tap to wake -->
<bool name="config_supportDoubleTapWake">true</bool>
<!-- MMS user agent prolfile url -->
<string name="config_mms_user_agent_profile_url" translatable="false">http://uaprof.sonymobile.com/E6853R3211.xml</string>
</resources>

View File

@ -97,4 +97,4 @@
<value>.2</value>
<value>2</value>
</array>
</device>
</device>

View File

@ -1,12 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2007 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.

View File

@ -19,4 +19,3 @@
<item name="fingerprint_sensor_location_fraction_x" type="fraction">51.00%</item>
<item name="fingerprint_sensor_location_fraction_y" type="fraction">51.00%</item>
</resources>

View File

@ -538,7 +538,7 @@ vendor/lib64/libStDrvInt.so
lib64/hw/libpn547_fw.so
# Sensors
etc/sensors/hals.conf
etc/sensors/hals.conf:vendor/etc/sensors/hals.conf
etc/sensors/sensor_def_qcomdev.conf
bin/sensors.qcom
vendor/lib/libdataitems.so