Snap for 12034474 from 7b58898aee
to mainline-tzdata6-release
Change-Id: I84e94d6337d6a91c6dcca21b8133fc835e962dbc
This commit is contained in:
commit
a178d13863
7 changed files with 18 additions and 19 deletions
|
@ -277,6 +277,7 @@ on init
|
||||||
chown system system /sys/class/power_supply/wireless/device/version
|
chown system system /sys/class/power_supply/wireless/device/version
|
||||||
chown system system /sys/class/power_supply/wireless/device/features
|
chown system system /sys/class/power_supply/wireless/device/features
|
||||||
chown system system /sys/class/power_supply/wireless/device/authtype
|
chown system system /sys/class/power_supply/wireless/device/authtype
|
||||||
|
chown system system /sys/class/power_supply/wireless/device/authtstart
|
||||||
|
|
||||||
# Adaptive charge
|
# Adaptive charge
|
||||||
chown system system /sys/class/power_supply/battery/charge_deadline
|
chown system system /sys/class/power_supply/battery/charge_deadline
|
||||||
|
|
|
@ -25,6 +25,7 @@ include device/google/gs-common/thermal/dump/thermal.mk
|
||||||
include device/google/gs-common/thermal/thermal_hal/device.mk
|
include device/google/gs-common/thermal/thermal_hal/device.mk
|
||||||
include device/google/gs-common/pixel_metrics/pixel_metrics.mk
|
include device/google/gs-common/pixel_metrics/pixel_metrics.mk
|
||||||
include device/google/gs-common/performance/perf.mk
|
include device/google/gs-common/performance/perf.mk
|
||||||
|
include device/google/gs-common/power/power.mk
|
||||||
include device/google/gs-common/display/dump.mk
|
include device/google/gs-common/display/dump.mk
|
||||||
include device/google/gs101/dumpstate/item.mk
|
include device/google/gs101/dumpstate/item.mk
|
||||||
include device/google/gs-common/radio/dump.mk
|
include device/google/gs-common/radio/dump.mk
|
||||||
|
@ -40,6 +41,7 @@ include device/google/gs-common/betterbug/betterbug.mk
|
||||||
ifneq ($(filter oriole raven bluejay, $(TARGET_PRODUCT)),)
|
ifneq ($(filter oriole raven bluejay, $(TARGET_PRODUCT)),)
|
||||||
include device/google/gs-common/bcmbt/dump/dumplog.mk
|
include device/google/gs-common/bcmbt/dump/dumplog.mk
|
||||||
endif
|
endif
|
||||||
|
include device/google/gs-common/fingerprint/fingerprint.mk
|
||||||
|
|
||||||
TARGET_BOARD_PLATFORM := gs101
|
TARGET_BOARD_PLATFORM := gs101
|
||||||
DEVICE_IS_64BIT_ONLY ?= $(if $(filter %_64,$(TARGET_PRODUCT)),true,false)
|
DEVICE_IS_64BIT_ONLY ?= $(if $(filter %_64,$(TARGET_PRODUCT)),true,false)
|
||||||
|
|
|
@ -78,7 +78,7 @@
|
||||||
</hal>
|
</hal>
|
||||||
<hal format="aidl" optional="true">
|
<hal format="aidl" optional="true">
|
||||||
<name>com.google.hardware.pixel.display</name>
|
<name>com.google.hardware.pixel.display</name>
|
||||||
<version>11-12</version>
|
<version>12</version>
|
||||||
<interface>
|
<interface>
|
||||||
<name>IDisplay</name>
|
<name>IDisplay</name>
|
||||||
<instance>default</instance>
|
<instance>default</instance>
|
||||||
|
|
|
@ -24,7 +24,6 @@
|
||||||
|
|
||||||
#include <log/log.h>
|
#include <log/log.h>
|
||||||
|
|
||||||
#define KVM_DEVICE "/dev/kvm"
|
|
||||||
#define MISC_WRITER "/vendor/bin/misc_writer"
|
#define MISC_WRITER "/vendor/bin/misc_writer"
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
|
@ -33,22 +32,7 @@ int main() {
|
||||||
pid_t pid;
|
pid_t pid;
|
||||||
int ret, wstatus;
|
int ret, wstatus;
|
||||||
|
|
||||||
/* Check whether KVM device exists. */
|
/* Run misc_writer and return FAILURE to force a reboot. */
|
||||||
ret = access(KVM_DEVICE, F_OK);
|
|
||||||
|
|
||||||
/* If KVM device exists, return SUCCESS to continue booting. */
|
|
||||||
if (ret == 0) {
|
|
||||||
exit(EXIT_SUCCESS);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (ret != -ENOENT) {
|
|
||||||
ALOGW("Unexpected error from access(): %d", ret);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* If KVM device does not exist, run misc_writer and return FAILURE
|
|
||||||
* to force a reboot.
|
|
||||||
*/
|
|
||||||
pid = fork();
|
pid = fork();
|
||||||
if (pid == -1) {
|
if (pid == -1) {
|
||||||
ALOGE("Could not fork: %d", errno);
|
ALOGE("Could not fork: %d", errno);
|
||||||
|
|
|
@ -2,5 +2,10 @@ service pkvm_enabler /vendor/bin/pkvm_enabler
|
||||||
reboot_on_failure reboot,pkvm-not-enabled
|
reboot_on_failure reboot,pkvm-not-enabled
|
||||||
user root
|
user root
|
||||||
|
|
||||||
on early-init
|
# Old bootloaders do not set the protected_vm sysprop when pkvm is disabled
|
||||||
|
on early-init && property:ro.boot.hypervisor.protected_vm.supported=
|
||||||
|
exec_start pkvm_enabler
|
||||||
|
|
||||||
|
# New bootloaders set the protected_vm sysprop to 0 when pkvm is disabled
|
||||||
|
on early-init && property:ro.boot.hypervisor.protected_vm.supported=0
|
||||||
exec_start pkvm_enabler
|
exec_start pkvm_enabler
|
||||||
|
|
|
@ -593,6 +593,11 @@ ScopedAStatus Usb::switchRole(const string& in_portName, const PortRole& in_role
|
||||||
fp = fopen(filename.c_str(), "w");
|
fp = fopen(filename.c_str(), "w");
|
||||||
if (fp != NULL) {
|
if (fp != NULL) {
|
||||||
int ret = fputs(convertRoletoString(in_role).c_str(), fp);
|
int ret = fputs(convertRoletoString(in_role).c_str(), fp);
|
||||||
|
if (ret == EAGAIN) {
|
||||||
|
ALOGI("role switch busy, retry in %d ms", ROLE_SWAP_RETRY_MS);
|
||||||
|
std::this_thread::sleep_for(std::chrono::milliseconds(ROLE_SWAP_RETRY_MS));
|
||||||
|
ret = fputs(convertRoletoString(in_role).c_str(), fp);
|
||||||
|
}
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
if ((ret != EOF) && ReadFileToString(filename, &written)) {
|
if ((ret != EOF) && ReadFileToString(filename, &written)) {
|
||||||
written = Trim(written);
|
written = Trim(written);
|
||||||
|
|
|
@ -55,6 +55,8 @@ constexpr char kGadgetName[] = "11110000.dwc3";
|
||||||
#define VBUS_PATH NEW_UDC_PATH "dwc3_exynos_otg_b_sess"
|
#define VBUS_PATH NEW_UDC_PATH "dwc3_exynos_otg_b_sess"
|
||||||
#define USB_DATA_PATH NEW_UDC_PATH "usb_data_enabled"
|
#define USB_DATA_PATH NEW_UDC_PATH "usb_data_enabled"
|
||||||
|
|
||||||
|
#define ROLE_SWAP_RETRY_MS 700
|
||||||
|
|
||||||
struct Usb : public BnUsb {
|
struct Usb : public BnUsb {
|
||||||
Usb();
|
Usb();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue