Snap for 8362880 from ab8eb74252
to udc-release
Change-Id: I20a2f30caa0e53aade60a2b54c1113895da08cfb
This commit is contained in:
commit
b0f86d985b
6 changed files with 28 additions and 16 deletions
|
@ -38,7 +38,7 @@ BOARD_KERNEL_CMDLINE += cma_sysfs.experimental=Y
|
|||
BOARD_KERNEL_CMDLINE += cgroup_disable=memory
|
||||
BOARD_KERNEL_CMDLINE += rcupdate.rcu_expedited=1 rcu_nocbs=all
|
||||
BOARD_KERNEL_CMDLINE += stack_depot_disable=off page_pinner=on
|
||||
BOARD_KERNEL_CMDLINE += swiotlb=noforce
|
||||
BOARD_KERNEL_CMDLINE += swiotlb=1024
|
||||
BOARD_BOOTCONFIG += androidboot.boot_devices=14700000.ufs
|
||||
|
||||
TARGET_NO_BOOTLOADER := true
|
||||
|
|
|
@ -803,12 +803,6 @@ on property:persist.sys.test_harness=1 && property:persist.vendor.testing_batte
|
|||
setprop persist.vendor.charge.start.level 0
|
||||
setprop vendor.battery.defender.disable 1
|
||||
|
||||
on property:persist.vendor.charge.stop.level=*
|
||||
write /sys/devices/platform/google,charger/charge_stop_level ${persist.vendor.charge.stop.level}
|
||||
|
||||
on property:persist.vendor.charge.start.level=*
|
||||
write /sys/devices/platform/google,charger/charge_start_level ${persist.vendor.charge.start.level}
|
||||
|
||||
service insmod_sh_common /vendor/bin/init.insmod.sh /vendor/etc/init.insmod.gs201.cfg
|
||||
class main
|
||||
user root
|
||||
|
|
|
@ -450,10 +450,6 @@ PRODUCT_PACKAGES += \
|
|||
android.hardware.graphics.allocator@4.0-impl \
|
||||
android.hardware.graphics.allocator-V1-service
|
||||
|
||||
# AIDL memtrack
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.memtrack-service.example
|
||||
|
||||
PRODUCT_PACKAGES += \
|
||||
memtrack.$(TARGET_BOARD_PLATFORM) \
|
||||
libion_exynos \
|
||||
|
@ -929,7 +925,6 @@ PRODUCT_PACKAGES += \
|
|||
audio_amcs_ext \
|
||||
audio.usb.default \
|
||||
audio.usbv2.default \
|
||||
audio.a2dp.default \
|
||||
audio.bluetooth.default \
|
||||
audio.r_submix.default \
|
||||
audio_spk_35l41 \
|
||||
|
|
|
@ -67,7 +67,9 @@ constexpr char kVoltageAvg[] {FG_DIR "/voltage_now"};
|
|||
|
||||
#define WLC_DIR "/sys/class/power_supply/wireless"
|
||||
|
||||
static BatteryDefender battDefender(WLC_DIR "/present");
|
||||
static BatteryDefender battDefender(WLC_DIR "/present",
|
||||
"/sys/devices/platform/google,charger/charge_start_level",
|
||||
"/sys/devices/platform/google,charger/charge_stop_level");
|
||||
static BatteryThermalControl battThermalControl(
|
||||
"dev/thermal/tz-by-name/soc/mode");
|
||||
static BatteryMetricsLogger battMetricsLogger(kBatteryResistance, kBatteryOCV);
|
||||
|
|
|
@ -136,6 +136,23 @@ void addAoC(std::shared_ptr<PowerStats> p) {
|
|||
};
|
||||
p->addStateResidencyDataProvider(
|
||||
std::make_unique<AocStateResidencyDataProvider>(monitorIds, monitorStates));
|
||||
|
||||
// Add AoC restart count
|
||||
const GenericStateResidencyDataProvider::StateResidencyConfig restartCountConfig = {
|
||||
.entryCountSupported = true,
|
||||
.entryCountPrefix = "",
|
||||
.totalTimeSupported = false,
|
||||
.lastEntrySupported = false,
|
||||
};
|
||||
const std::vector<std::pair<std::string, std::string>> restartCountHeaders = {
|
||||
std::make_pair("RESTART", ""),
|
||||
};
|
||||
std::vector<GenericStateResidencyDataProvider::PowerEntityConfig> cfgs;
|
||||
cfgs.emplace_back(
|
||||
generateGenericStateResidencyConfigs(restartCountConfig, restartCountHeaders),
|
||||
"AoC-Count", "");
|
||||
p->addStateResidencyDataProvider(std::make_unique<GenericStateResidencyDataProvider>(
|
||||
"/sys/devices/platform/19000000.aoc/restart_count", cfgs));
|
||||
}
|
||||
|
||||
void addDvfsStats(std::shared_ptr<PowerStats> p) {
|
||||
|
|
|
@ -270,9 +270,13 @@ static V1_0::Status validateAndSetVidPid(uint64_t functions) {
|
|||
ret = setVidPid("0x18d1", "0x4eeb");
|
||||
break;
|
||||
case GadgetFunction::ADB | GadgetFunction::NCM:
|
||||
if (!(vendorFunctions == "user" || vendorFunctions == ""))
|
||||
ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str());
|
||||
ret = setVidPid("0x18d1", "0x4eec");
|
||||
if (vendorFunctions == "dm") {
|
||||
ret = setVidPid("0x04e8", "0x6862");
|
||||
} else {
|
||||
if (!(vendorFunctions == "user" || vendorFunctions == ""))
|
||||
ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str());
|
||||
ret = setVidPid("0x18d1", "0x4eec");
|
||||
}
|
||||
break;
|
||||
default:
|
||||
ALOGE("Combination not supported");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue