Merge RQ2A.210305.007
Bug: 180401296 Merged-In: I35569ba284947f22118e76a4376d92451f6a30fc Change-Id: I70959ae089da322879cdd1b0e0bd272caed57cb5
This commit is contained in:
@@ -17,4 +17,7 @@
|
||||
<component-override package="com.android.bluetooth" >
|
||||
<component class=".sap.SapService" enabled="true" />
|
||||
</component-override>
|
||||
</config>
|
||||
<component-override package="com.google.android.apps.tips" >
|
||||
<component class=".TipsMain" enabled="true" />
|
||||
</component-override>
|
||||
</config>
|
||||
|
||||
@@ -103,9 +103,6 @@
|
||||
</exception>
|
||||
|
||||
<exception package="com.google.android.apps.scone">
|
||||
<!-- NLP Location access to determine proximity to country border -->
|
||||
<permission name="android.permission.ACCESS_COARSE_LOCATION" fixed="false"/>
|
||||
<permission name="android.permission.ACCESS_BACKGROUND_LOCATION" fixed="false"/>
|
||||
<!-- Used to call ActivityTransition API for Smart OOS & Smart PNO -->
|
||||
<permission name="android.permission.ACTIVITY_RECOGNITION" fixed="false"/>
|
||||
</exception>
|
||||
|
||||
@@ -151,6 +151,12 @@ else
|
||||
$(LOCAL_PATH)/init.hardware.mpssrfs.rc.user:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.$(PRODUCT_PLATFORM).mpssrfs.rc
|
||||
endif
|
||||
|
||||
# Enable DIAG issue debug
|
||||
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(LOCAL_PATH)/init.diagdebug.rc.userdebug:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.diagdebug.rc
|
||||
endif
|
||||
|
||||
# A/B support
|
||||
PRODUCT_PACKAGES += \
|
||||
otapreopt_script \
|
||||
@@ -865,7 +871,7 @@ PRODUCT_PACKAGES += $(HIDL_WRAPPER)
|
||||
|
||||
# Increment the SVN for any official public releases
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
ro.vendor.build.svn=18
|
||||
ro.vendor.build.svn=20
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(LOCAL_PATH)/powerhint.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.json
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
</hal>
|
||||
<hal format="hidl" optional="true">
|
||||
<name>vendor.google.google_battery</name>
|
||||
<version>1.0</version>
|
||||
<version>1.1</version>
|
||||
<interface>
|
||||
<name>IGoogleBattery</name>
|
||||
<instance>default</instance>
|
||||
|
||||
@@ -573,6 +573,9 @@ Return<DumpstateStatus> DumpstateDevice::dumpstateBoard_1_1(const hidl_handle& h
|
||||
DumpFileToFd(fd, "TCPM logs", "/d/tcpm/usbpd0");
|
||||
DumpFileToFd(fd, "PD Engine", "/d/logbuffer/usbpd");
|
||||
DumpFileToFd(fd, "ipc-local-ports", "/d/msm_ipc_router/dump_local_ports");
|
||||
RunCommandToFd(fd, "TRICKLE-DEFEND Config", {"/vendor/bin/sh", "-c", " cd /sys/devices/platform/soc/soc:google,battery/power_supply/battery/; echo \"bd_trickle_enable: `cat bd_trickle_enable`\"; echo \"bd_trickle_cnt: `cat bd_trickle_cnt`\"; echo \"bd_trickle_recharge_soc: `cat bd_trickle_recharge_soc`\"; echo \"bd_trickle_dry_run: `cat bd_trickle_dry_run`\"; echo \"bd_trickle_reset_sec: `cat bd_trickle_reset_sec`\""});
|
||||
RunCommandToFd(fd, "DWELL-DEFEND Config", {"/vendor/bin/sh", "-c", " cd /sys/devices/platform/soc/soc:google,charger/; for f in `ls charge_s*` ; do echo \"$f: `cat $f`\" ; done"});
|
||||
RunCommandToFd(fd, "TEMP-DEFEND Config", {"/vendor/bin/sh", "-c", " cd /sys/devices/platform/soc/soc:google,charger/; for f in `ls bd_*` ; do echo \"$f: `cat $f`\" ; done"});
|
||||
RunCommandToFd(fd, "USB Device Descriptors", {"/vendor/bin/sh", "-c", "cd /sys/bus/usb/devices/1-1 && cat product && cat bcdDevice; cat descriptors | od -t x1 -w16 -N96"});
|
||||
RunCommandToFd(fd, "Power supply properties", {"/vendor/bin/sh", "-c", "for f in `ls /sys/class/power_supply/*/uevent` ; do echo \"------ $f\\n`cat $f`\\n\" ; done"});
|
||||
RunCommandToFd(fd, "PMIC Votables", {"/vendor/bin/sh", "-c", "cat /sys/kernel/debug/pmic-votable/*/status"});
|
||||
|
||||
@@ -103,14 +103,13 @@ void fill_ufs_storage_attribute(StorageAttribute *attr) {
|
||||
|
||||
void private_healthd_board_init(struct healthd_config *hc) {
|
||||
hc->ignorePowerSupplyNames.push_back(android::String8(kTCPMPSYName));
|
||||
battDefender.update();
|
||||
}
|
||||
|
||||
int private_healthd_board_battery_update(struct android::BatteryProperties *props) {
|
||||
deviceHealth.update(props);
|
||||
battMetricsLogger.logBatteryProperties(props);
|
||||
shutdownMetrics.logShutdownVoltage(props);
|
||||
battDefender.update();
|
||||
battDefender.update(props);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
20
init.diagdebug.rc.userdebug
Normal file
20
init.diagdebug.rc.userdebug
Normal file
@@ -0,0 +1,20 @@
|
||||
#
|
||||
# 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.
|
||||
#
|
||||
|
||||
# Trigger ramdump when property on
|
||||
on property:vendor.radio.diag_debug=true
|
||||
write /dev/kmsg "RIL Diag Issue Detected!"
|
||||
write /proc/sysrq-trigger "c"
|
||||
@@ -121,6 +121,23 @@ on init && property:vendor.skip.init=0
|
||||
# Battery Defender
|
||||
chown system system /sys/devices/platform/soc/soc:google,charger/charge_stop_level
|
||||
chown system system /sys/devices/platform/soc/soc:google,charger/charge_start_level
|
||||
chown system system /sys/devices/platform/soc/soc:google,charger/bd_drainto_soc
|
||||
chown system system /sys/devices/platform/soc/soc:google,charger/bd_recharge_soc
|
||||
chown system system /sys/devices/platform/soc/soc:google,charger/bd_recharge_voltage
|
||||
chown system system /sys/devices/platform/soc/soc:google,charger/bd_resume_abs_temp
|
||||
chown system system /sys/devices/platform/soc/soc:google,charger/bd_resume_soc
|
||||
chown system system /sys/devices/platform/soc/soc:google,charger/bd_resume_temp
|
||||
chown system system /sys/devices/platform/soc/soc:google,charger/bd_resume_time
|
||||
chown system system /sys/devices/platform/soc/soc:google,charger/bd_trigger_temp
|
||||
chown system system /sys/devices/platform/soc/soc:google,charger/bd_trigger_time
|
||||
chown system system /sys/devices/platform/soc/soc:google,charger/bd_trigger_voltage
|
||||
chown system system /sys/devices/platform/soc/soc:google,charger/bd_temp_enable
|
||||
chown system system /sys/devices/platform/soc/soc:google,charger/bd_temp_dry_run
|
||||
chown system system /sys/devices/platform/soc/soc:google,battery/power_supply/battery/bd_trickle_enable
|
||||
chown system system /sys/devices/platform/soc/soc:google,battery/power_supply/battery/bd_trickle_recharge_soc
|
||||
chown system system /sys/devices/platform/soc/soc:google,battery/power_supply/battery/bd_trickle_cnt
|
||||
chown system system /sys/devices/platform/soc/soc:google,battery/power_supply/battery/bd_trickle_dry_run
|
||||
chown system system /sys/devices/platform/soc/soc:google,battery/power_supply/battery/bd_trickle_reset_sec
|
||||
|
||||
# Charge stats (write 0)
|
||||
chown system system /sys/class/power_supply/battery/charge_stats
|
||||
@@ -129,6 +146,9 @@ on init && property:vendor.skip.init=0
|
||||
write /proc/sys/kernel/sched_lib_name "UnityMain,libunity.so"
|
||||
write /proc/sys/kernel/sched_lib_mask_force 255
|
||||
|
||||
# Nfc streset tool name
|
||||
setprop persist.vendor.nfc.streset libstreset
|
||||
|
||||
on late-init
|
||||
chown system system /sys/devices/virtual/thermal/tz-by-name/skin-therm-monitor/trip_point_0_temp
|
||||
chown system system /sys/devices/virtual/thermal/tz-by-name/skin-therm-monitor/trip_point_0_hyst
|
||||
@@ -387,6 +407,8 @@ on early-boot
|
||||
# Permission for battery eeprom
|
||||
chown system system /sys/devices/platform/soc/a8c000.i2c/i2c-2/2-0050/2-00500/nvmem
|
||||
chmod 0640 /sys/devices/platform/soc/a8c000.i2c/i2c-2/2-0050/2-00500/nvmem
|
||||
chown system system /dev/battery_history
|
||||
chmod 0644 /dev/battery_history
|
||||
|
||||
# Permission for Pixelstats
|
||||
chown system system /sys/class/misc/msm_cirrus_playback/resistance_left_right
|
||||
|
||||
@@ -219,7 +219,7 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
<hal format="hidl">
|
||||
<name>vendor.google.google_battery</name>
|
||||
<transport>hwbinder</transport>
|
||||
<version>1.0</version>
|
||||
<version>1.1</version>
|
||||
<interface>
|
||||
<name>IGoogleBattery</name>
|
||||
<instance>default</instance>
|
||||
|
||||
@@ -43,6 +43,7 @@ const struct SysfsCollector::SysfsPaths sysfs_paths = {
|
||||
.UFSLifetimeB = UFSHC_PATH(health/lifetimeB),
|
||||
.UFSLifetimeC = UFSHC_PATH(health/lifetimeC),
|
||||
.F2fsStatsPath = "/sys/fs/f2fs/",
|
||||
.EEPROMPath = "/dev/battery_history",
|
||||
};
|
||||
|
||||
const char *const kAudioUevent = "/kernel/q6audio/q6voice_uevent";
|
||||
|
||||
@@ -42,7 +42,6 @@ persist.timed.enable=true
|
||||
|
||||
# system props for perfetto
|
||||
persist.traced.enable=1
|
||||
persist.heapprofd.enable=1
|
||||
|
||||
# System prop to turn on CdmaLTEPhone always
|
||||
telephony.lteOnCdmaDevice=1
|
||||
|
||||
@@ -43,6 +43,7 @@ firmware_directories /vendor/firmware_mnt/image/
|
||||
/dev/media* 0660 system camera
|
||||
/dev/v4l-subdev* 0660 system camera
|
||||
|
||||
/dev/qce 0660 system drmrpc
|
||||
/dev/qseecom 0660 system drmrpc
|
||||
/dev/qsee_ipc_irq_spss 0660 system drmrpc
|
||||
/dev/seemplog 0660 system system
|
||||
|
||||
Reference in New Issue
Block a user