Snap for 11981331 from c5a560160f
to 24Q4-release
Change-Id: I7c24526092f04ee6d987d7eb4568aad4cae2a223
This commit is contained in:
commit
f820edab1d
8 changed files with 18 additions and 20 deletions
|
@ -55,7 +55,6 @@
|
||||||
<!-- Camera -->
|
<!-- Camera -->
|
||||||
<permission name="android.permission.CAMERA" fixed="false"/>
|
<permission name="android.permission.CAMERA" fixed="false"/>
|
||||||
<!-- Camera Connectivity -->
|
<!-- Camera Connectivity -->
|
||||||
<permission name="android.permission.ACCESS_FINE_LOCATION" fixed="false"/>
|
|
||||||
<permission name="android.permission.POST_NOTIFICATIONS" fixed="false"/>
|
<permission name="android.permission.POST_NOTIFICATIONS" fixed="false"/>
|
||||||
<permission name="android.permission.BLUETOOTH_CONNECT" fixed="false"/>
|
<permission name="android.permission.BLUETOOTH_CONNECT" fixed="false"/>
|
||||||
<permission name="android.permission.BLUETOOTH_SCAN" fixed="false"/>
|
<permission name="android.permission.BLUETOOTH_SCAN" fixed="false"/>
|
||||||
|
|
|
@ -40,6 +40,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)
|
||||||
|
@ -894,6 +895,7 @@ endif
|
||||||
# Exynos RIL and telephony
|
# Exynos RIL and telephony
|
||||||
# Multi SIM(DSDS)
|
# Multi SIM(DSDS)
|
||||||
SIM_COUNT := 2
|
SIM_COUNT := 2
|
||||||
|
$(call soong_config_set,sim,sim_count,$(SIM_COUNT))
|
||||||
SUPPORT_MULTI_SIM := true
|
SUPPORT_MULTI_SIM := true
|
||||||
# Support NR
|
# Support NR
|
||||||
SUPPORT_NR := true
|
SUPPORT_NR := true
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -52,6 +52,7 @@ cc_binary {
|
||||||
"libbinder_ndk",
|
"libbinder_ndk",
|
||||||
"libprotobuf-cpp-lite",
|
"libprotobuf-cpp-lite",
|
||||||
"server_configurable_flags",
|
"server_configurable_flags",
|
||||||
|
"libaconfig_storage_read_api_cc",
|
||||||
],
|
],
|
||||||
static_libs: [
|
static_libs: [
|
||||||
"libpixelusb",
|
"libpixelusb",
|
||||||
|
|
|
@ -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