Compare commits
170 Commits
udc-backup
...
udc
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a41bc999ff | ||
|
|
3e19a2e487 | ||
|
|
d4a81c4071 | ||
|
|
af8c83f33b | ||
|
|
5ba9ec5638 | ||
|
|
f17623c55b | ||
|
|
f641db3afd | ||
|
|
79a0c89b11 | ||
|
|
04731f37ea | ||
|
|
55d9660434 | ||
|
|
5f0f3d2ca9 | ||
|
|
1e4483c2bb | ||
|
|
b520e3ed96 | ||
|
|
f2a5ca22ad | ||
|
|
be3bc1e616 | ||
|
|
acc85fdc9b | ||
|
|
fe3f1f9881 | ||
|
|
1c8d7a8a9d | ||
|
|
268ca1c729 | ||
|
|
01b53d4bf8 | ||
|
|
280c89e30f | ||
|
|
9936488172 | ||
|
|
d0f1b3861f | ||
|
|
c0eaa8d982 | ||
|
|
fd742e7f7f | ||
|
|
5067358e5e | ||
|
|
536a5866d1 | ||
|
|
5f0d7c4cd8 | ||
|
|
95edae2749 | ||
|
|
82b5fb02b1 | ||
|
|
3feead23a9 | ||
|
|
681908af7a | ||
|
|
6f1e271d35 | ||
|
|
7a39fdde19 | ||
|
|
22d68aefab | ||
|
|
01c626ca58 | ||
|
|
b48426294c | ||
|
|
50b12c6126 | ||
|
|
4f6aa16c04 | ||
|
|
72afdbea53 | ||
|
|
77ea6d9d05 | ||
|
|
c583289b0d | ||
|
|
44b4f1a682 | ||
|
|
cb781488ee | ||
|
|
a63e4c4868 | ||
|
|
726f2c310b | ||
|
|
96da9e490d | ||
|
|
9bead714fa | ||
|
|
32881c23bf | ||
|
|
bd7cf95cc1 | ||
|
|
d4e28ca0f6 | ||
|
|
a623f5b101 | ||
|
|
0e0aebdeef | ||
|
|
098aec76fc | ||
|
|
844adad717 | ||
|
|
8b4f58d2eb | ||
|
|
ae55d1f59b | ||
|
|
003779dcc8 | ||
|
|
0df934d055 | ||
|
|
6b7852bcd8 | ||
|
|
475b3f2631 | ||
|
|
2a142187d7 | ||
|
|
c0620b8df6 | ||
|
|
437627f075 | ||
|
|
b98b3c73d4 | ||
|
|
8b512e664d | ||
|
|
f27a685620 | ||
|
|
3f206007a1 | ||
|
|
e7652c5c1c | ||
|
|
8be72e2dd4 | ||
|
|
18bedf3c58 | ||
|
|
5809eefd2f | ||
|
|
d909f03d00 | ||
|
|
21c2213cca | ||
|
|
d213da4c1d | ||
|
|
3bb9e29956 | ||
|
|
40b3fc92c2 | ||
|
|
ccbdb73f8f | ||
|
|
fe6272e4df | ||
|
|
05cd57ced2 | ||
|
|
be5519f6ab | ||
|
|
c3029d2e88 | ||
|
|
763ad8aa85 | ||
|
|
f6ac86a12e | ||
|
|
cf9d4aaa27 | ||
|
|
13990bf4aa | ||
|
|
704667406a | ||
|
|
08d21a42d2 | ||
|
|
f424e35f5c | ||
|
|
b5ecf2d71f | ||
|
|
0278520526 | ||
|
|
1d651bac7c | ||
|
|
e9e2cbe383 | ||
|
|
3a03b7b394 | ||
|
|
74b27a4645 | ||
|
|
c132c158bf | ||
|
|
fad62017e9 | ||
|
|
e8a4091570 | ||
|
|
e1820c162a | ||
|
|
692cd3af99 | ||
|
|
10c388cb50 | ||
|
|
e0ff9243b3 | ||
|
|
68b30e2d59 | ||
|
|
5134fe5e32 | ||
|
|
4987c23777 | ||
|
|
3ddb811689 | ||
|
|
04813aff3f | ||
|
|
133d37f31f | ||
|
|
db9ce30add | ||
|
|
5cbb730022 | ||
|
|
7e4d6f6e54 | ||
|
|
3d67983657 | ||
|
|
b9309ec2d4 | ||
|
|
6c59de2fcf | ||
|
|
5e4a204833 | ||
|
|
d6f0e57483 | ||
|
|
08c012daf9 | ||
|
|
ee7b9a745a | ||
|
|
d87c8c20c6 | ||
|
|
f40d12dcb7 | ||
|
|
dfb875e053 | ||
|
|
58d211735b | ||
|
|
7f141e56ef | ||
|
|
38a2f3ff35 | ||
|
|
879dd793fc | ||
|
|
2833b95dc1 | ||
|
|
89d0f09384 | ||
|
|
cb6ffa76e5 | ||
|
|
cd83091edb | ||
|
|
5129999687 | ||
|
|
dd3f6a61a1 | ||
|
|
2eb4aefb2e | ||
|
|
1b8550bf71 | ||
|
|
1e0f0b574b | ||
|
|
8a6b51d85f | ||
|
|
1bb665ec7b | ||
|
|
892f8b1284 | ||
|
|
8018eea76e | ||
|
|
b0e9cc06d7 | ||
|
|
2a8daa8a18 | ||
|
|
23129495c3 | ||
|
|
3bc717a973 | ||
|
|
b0c87eab4e | ||
|
|
d399e218b2 | ||
|
|
a78fe1622c | ||
|
|
1f4a965916 | ||
|
|
5c1ea73214 | ||
|
|
7503b48418 | ||
|
|
6f9d3a6d08 | ||
|
|
d757507b60 | ||
|
|
ecb81cff8b | ||
|
|
52060852ad | ||
|
|
78ad4c7533 | ||
|
|
6ba31eb282 | ||
|
|
57015de896 | ||
|
|
6c7ebd7021 | ||
|
|
99d84a8e19 | ||
|
|
734d9a2d03 | ||
|
|
1e610e3946 | ||
|
|
0ce8f0953a | ||
|
|
ce4530e2c8 | ||
|
|
7a2677a744 | ||
|
|
d34eee33d2 | ||
|
|
d7e4e3d3ee | ||
|
|
6312601bdf | ||
|
|
d02a251e4c | ||
|
|
d5babeaff8 | ||
|
|
811a4555e4 | ||
|
|
74faacdb78 | ||
|
|
0c6e42e7c6 |
@@ -1,7 +1,5 @@
|
||||
soong_namespace {
|
||||
imports: [
|
||||
"hardware/google/pixel",
|
||||
"hardware/qcom/bootctrl",
|
||||
"hardware/qcom/msm8998",
|
||||
],
|
||||
}
|
||||
|
||||
69
Android.mk
69
Android.mk
@@ -19,4 +19,73 @@ LOCAL_PATH := $(call my-dir)
|
||||
ifeq ($(USES_DEVICE_GOOGLE_WAHOO),true)
|
||||
subdir_makefiles=$(call first-makefiles-under,$(LOCAL_PATH))
|
||||
$(foreach mk,$(subdir_makefiles),$(info including $(mk) ...)$(eval include $(mk)))
|
||||
|
||||
IMS_LIBS := libimscamera_jni.so libimsmedia_jni.so
|
||||
IMS_SYMLINKS := $(addprefix $(TARGET_OUT)/app/ims/lib/arm64/,$(notdir $(IMS_LIBS)))
|
||||
$(IMS_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
|
||||
@echo "IMS lib link: $@"
|
||||
@mkdir -p $(dir $@)
|
||||
@rm -rf $@
|
||||
$(hide) ln -sf /system/lib64/$(notdir $@) $@
|
||||
|
||||
DM_LIBS := libdmengine.so libdmjavaplugin.so
|
||||
DM_SYMLINKS := $(addprefix $(TARGET_OUT_PRODUCT)/priv-app/DMService/lib/arm/,$(notdir $(DM_LIBS)))
|
||||
$(DM_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
|
||||
@echo "DMService lib link: $@"
|
||||
@mkdir -p $(dir $@)
|
||||
@rm -rf $@
|
||||
$(hide) ln -sf /system/product/lib/$(notdir $@) $@
|
||||
|
||||
RFS_MSM_ADSP_SYMLINKS := $(TARGET_OUT_VENDOR)/rfs/msm/adsp/
|
||||
$(RFS_MSM_ADSP_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
|
||||
@echo "Creating RFS MSM ADSP folder structure: $@"
|
||||
@rm -rf $@/*
|
||||
@mkdir -p $(dir $@)/readonly/vendor
|
||||
$(hide) ln -sf /data/vendor/tombstones/rfs/lpass $@/ramdumps
|
||||
$(hide) ln -sf /persist/rfs/msm/adsp $@/readwrite
|
||||
$(hide) ln -sf /persist/rfs/shared $@/shared
|
||||
$(hide) ln -sf /persist/hlos_rfs/shared $@/hlos
|
||||
$(hide) ln -sf /firmware $@/readonly/firmware
|
||||
$(hide) ln -sf /vendor/firmware $@/readonly/vendor/firmware
|
||||
|
||||
RFS_MSM_MPSS_SYMLINKS := $(TARGET_OUT_VENDOR)/rfs/msm/mpss/
|
||||
$(RFS_MSM_MPSS_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
|
||||
@echo "Creating RFS MSM MPSS folder structure: $@"
|
||||
@mkdir -p $(dir $@)/readonly/vendor
|
||||
$(hide) ln -sf /data/vendor/tombstones/rfs/modem $@/ramdumps
|
||||
$(hide) ln -sf /persist/rfs/msm/mpss $@/readwrite
|
||||
$(hide) ln -sf /persist/rfs/shared $@/shared
|
||||
$(hide) ln -sf /persist/hlos_rfs/shared $@/hlos
|
||||
$(hide) ln -sf /firmware $@/readonly/firmware
|
||||
$(hide) ln -sf /vendor/mbn $@/readonly/mbn
|
||||
$(hide) ln -sf /vendor/firmware $@/readonly/vendor/firmware
|
||||
|
||||
RFS_MSM_SLPI_SYMLINKS := $(TARGET_OUT_VENDOR)/rfs/msm/slpi/
|
||||
$(RFS_MSM_SLPI_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
|
||||
@echo "Creating RFS MSM SLPI folder structure: $@"
|
||||
@rm -rf $@/*
|
||||
@mkdir -p $(dir $@)/readonly
|
||||
$(hide) ln -sf /data/vendor/tombstones/rfs/slpi $@/ramdumps
|
||||
$(hide) ln -sf /persist/rfs/msm/slpi $@/readwrite
|
||||
$(hide) ln -sf /persist/rfs/shared $@/shared
|
||||
$(hide) ln -sf /persist/hlos_rfs/shared $@/hlos
|
||||
$(hide) ln -sf /firmware $@/readonly/firmware
|
||||
|
||||
EGL_LIBS := eglSubDriverAndroid.so libEGL_adreno.so libGLESv1_CM_adreno.so libGLESv2_adreno.so libq3dtools_adreno.so libq3dtools_esx.so
|
||||
EGL_32_SYMLINKS := $(addprefix $(TARGET_OUT_VENDOR)/lib/,$(notdir $(EGL_LIBS)))
|
||||
$(EGL_32_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
|
||||
@echo "EGL 32 lib link: $@"
|
||||
@mkdir -p $(dir $@)
|
||||
@rm -rf $@
|
||||
$(hide) ln -sf egl/$(notdir $@) $@
|
||||
|
||||
EGL_64_SYMLINKS := $(addprefix $(TARGET_OUT_VENDOR)/lib64/,$(notdir $(EGL_LIBS)))
|
||||
$(EGL_64_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
|
||||
@echo "EGL lib link: $@"
|
||||
@mkdir -p $(dir $@)
|
||||
@rm -rf $@
|
||||
$(hide) ln -sf egl/$(notdir $@) $@
|
||||
|
||||
ALL_DEFAULT_INSTALLED_MODULES += $(IMS_SYMLINKS) $(DM_SYMLINKS) $(RFS_MSM_ADSP_SYMLINKS) $(RFS_MSM_MPSS_SYMLINKS) $(RFS_MSM_SLPI_SYMLINKS) $(EGL_32_SYMLINKS) $(EGL_64_SYMLINKS)
|
||||
|
||||
endif
|
||||
|
||||
@@ -29,7 +29,8 @@ TARGET_2ND_CPU_ABI2 := armeabi
|
||||
TARGET_2ND_CPU_VARIANT := cortex-a73
|
||||
|
||||
BUILD_BROKEN_DUP_RULES := true
|
||||
BUILD_BROKEN_USES_BUILD_COPY_HEADERS := true
|
||||
BUILD_BROKEN_ELF_PREBUILT_PRODUCT_COPY_FILES := true
|
||||
BUILD_BROKEN_INCORRECT_PARTITION_IMAGES := true
|
||||
|
||||
BOARD_KERNEL_CMDLINE += androidboot.hardware=$(TARGET_BOOTLOADER_BOARD_NAME) androidboot.console=ttyMSM0 lpm_levels.sleep_disabled=1
|
||||
BOARD_KERNEL_CMDLINE += user_debug=31 msm_rtb.filter=0x37 ehci-hcd.park=3
|
||||
@@ -52,23 +53,28 @@ BOARD_KERNEL_TAGS_OFFSET := 0x01E00000
|
||||
BOARD_RAMDISK_OFFSET := 0x02000000
|
||||
endif
|
||||
|
||||
BOARD_RAMDISK_USE_XZ := true
|
||||
TARGET_NO_BOOTLOADER ?= true
|
||||
TARGET_NO_KERNEL := false
|
||||
TARGET_NO_RECOVERY := true
|
||||
TARGET_RECOVERY_DENSITY := xhdpi
|
||||
BOARD_USES_RECOVERY_AS_BOOT := true
|
||||
BOARD_BUILD_SYSTEM_ROOT_IMAGE := true
|
||||
BOARD_USES_METADATA_PARTITION := true
|
||||
|
||||
# Partitions (listed in the file) to be wiped under recovery.
|
||||
TARGET_RECOVERY_WIPE := device/google/wahoo/recovery.wipe
|
||||
TARGET_RECOVERY_FSTAB := device/google/wahoo/fstab.hardware
|
||||
# Kernel
|
||||
BOARD_KERNEL_IMAGE_NAME := Image.lz4-dtb
|
||||
TARGET_COMPILE_WITH_MSM_KERNEL := true
|
||||
TARGET_KERNEL_SOURCE := kernel/google/wahoo
|
||||
TARGET_NEEDS_DTBOIMAGE := true
|
||||
|
||||
# Verified Boot
|
||||
BOARD_AVB_ENABLE := true
|
||||
BOARD_AVB_MAKE_VBMETA_IMAGE_ARGS += --flags 3
|
||||
|
||||
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2684354560
|
||||
BOARD_SYSTEMIMAGE_JOURNAL_SIZE := 0
|
||||
ifneq ($(PRODUCT_INCREASE_INODE_COUNT),true)
|
||||
BOARD_SYSTEMIMAGE_EXTFS_INODE_COUNT := 4096
|
||||
BOARD_SYSTEMIMAGE_EXTFS_INODE_COUNT := 7168
|
||||
else
|
||||
BOARD_SYSTEMIMAGE_EXTFS_INODE_COUNT := 8192
|
||||
endif
|
||||
@@ -76,14 +82,19 @@ TARGET_USERIMAGES_USE_EXT4 := true
|
||||
BOARD_USERDATAIMAGE_PARTITION_SIZE := 26503790080
|
||||
BOARD_PERSISTIMAGE_PARTITION_SIZE := 33554432
|
||||
BOARD_PERSISTIMAGE_FILE_SYSTEM_TYPE := ext4
|
||||
BOARD_VENDORIMAGE_PARTITION_SIZE := 524288000
|
||||
BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4
|
||||
BOARD_FLASH_BLOCK_SIZE := 131072
|
||||
BOARD_PRODUCTIMAGE_PARTITION_SIZE := 3221225472
|
||||
BOARD_PRODUCTIMAGE_FILE_SYSTEM_TYPE := ext4
|
||||
|
||||
# DTBO partition definitions
|
||||
BOARD_PREBUILT_DTBOIMAGE := device/google/wahoo-kernel/dtbo.img
|
||||
BOARD_DTBOIMG_PARTITION_SIZE := 8388608
|
||||
|
||||
TARGET_COPY_OUT_VENDOR := vendor
|
||||
|
||||
TARGET_COPY_OUT_PRODUCT := product
|
||||
|
||||
# Install odex files into the other system image
|
||||
BOARD_USES_SYSTEM_OTHER_ODEX := true
|
||||
|
||||
@@ -93,13 +104,14 @@ BOARD_VENDOR_SEPOLICY_DIRS += device/google/wahoo/sepolicy/vendor
|
||||
SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS := device/google/wahoo/sepolicy/public
|
||||
SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS := device/google/wahoo/sepolicy/private
|
||||
BOARD_VENDOR_SEPOLICY_DIRS += device/google/wahoo/sepolicy/verizon
|
||||
BOARD_VENDOR_SEPOLICY_DIRS += hardware/google/pixel-sepolicy/citadel
|
||||
BOARD_VENDOR_SEPOLICY_DIRS += hardware/google/pixel-sepolicy/powerstats
|
||||
|
||||
TARGET_FS_CONFIG_GEN := device/google/wahoo/config.fs
|
||||
|
||||
QCOM_BOARD_PLATFORMS += msm8998
|
||||
BOARD_HAVE_BLUETOOTH_QCOM := true
|
||||
BOARD_USES_SDM845_BLUETOOTH_HAL := true
|
||||
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/google/wahoo/bluetooth
|
||||
|
||||
# Camera
|
||||
TARGET_USES_AOSP := true
|
||||
@@ -136,11 +148,13 @@ CHRE_DAEMON_ENABLED := true
|
||||
CHRE_DAEMON_USE_SDSPRPC := true
|
||||
|
||||
# Audio
|
||||
AUDIO_FEATURE_ENABLED_DS2_DOLBY_DAP := true
|
||||
BOARD_USES_ALSA_AUDIO := true
|
||||
AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true
|
||||
AUDIO_FEATURE_ENABLED_SND_MONITOR := true
|
||||
AUDIO_FEATURE_ENABLED_USB_TUNNEL := true
|
||||
BOARD_ROOT_EXTRA_SYMLINKS := /vendor/lib/dsp:/dsp
|
||||
BOARD_SUPPORTS_SOUND_TRIGGER := true
|
||||
|
||||
# Include whaoo modules
|
||||
USES_DEVICE_GOOGLE_WAHOO := true
|
||||
@@ -149,12 +163,7 @@ USES_DEVICE_GOOGLE_WAHOO := true
|
||||
TARGET_USES_GRALLOC1 := true
|
||||
TARGET_USES_HWC2 := true
|
||||
|
||||
VSYNC_EVENT_PHASE_OFFSET_NS := 2000000
|
||||
SF_VSYNC_EVENT_PHASE_OFFSET_NS := 6000000
|
||||
|
||||
# Display
|
||||
TARGET_HAS_WIDE_COLOR_DISPLAY := false
|
||||
TARGET_HAS_HDR_DISPLAY := false
|
||||
TARGET_USES_COLOR_METADATA := true
|
||||
|
||||
# Charger Mode
|
||||
@@ -167,18 +176,6 @@ DEVICE_FRAMEWORK_MANIFEST_FILE := device/google/wahoo/framework_manifest.xml
|
||||
DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE := device/google/wahoo/device_framework_matrix.xml
|
||||
BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true
|
||||
|
||||
# Use mke2fs to create ext4 images
|
||||
TARGET_USES_MKE2FS := true
|
||||
|
||||
BOARD_VNDK_VERSION := current
|
||||
|
||||
# Board uses A/B OTA.
|
||||
AB_OTA_UPDATER := true
|
||||
|
||||
AB_OTA_PARTITIONS += \
|
||||
boot \
|
||||
system \
|
||||
vbmeta \
|
||||
dtbo
|
||||
|
||||
BUILD_BROKEN_ENFORCE_SYSPROP_OWNER := true
|
||||
|
||||
@@ -210,3 +210,6 @@ $(call add-clean-step, rm -rf $(PRODUCT_OUT)/recovery/root/system/lib64/hw/andro
|
||||
# Vibrator HAL 1.2 renamed from 'wahoo' to 'drv2624'
|
||||
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/vendor/etc/init/android.hardware.vibrator@1.2-service.wahoo.rc)
|
||||
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/vendor/bin/hw/android.hardware.vibrator@1.2-service.wahoo)
|
||||
|
||||
# Use stable aidl power HAL
|
||||
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/vendor/etc/init/android.hardware.power-service.pixel-libperfmgr.rc)
|
||||
|
||||
@@ -59,6 +59,15 @@
|
||||
<profile name="" format="AUDIO_FORMAT_AAC_HE_V2"
|
||||
samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000"
|
||||
channelMasks="AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_MONO"/>
|
||||
<profile name="" format="AUDIO_FORMAT_AC3"
|
||||
samplingRates="32000,44100,48000"
|
||||
channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_2POINT1,AUDIO_CHANNEL_OUT_QUAD,AUDIO_CHANNEL_OUT_PENTA,AUDIO_CHANNEL_OUT_5POINT1"/>
|
||||
<profile name="" format="AUDIO_FORMAT_E_AC3"
|
||||
samplingRates="32000,44100,48000"
|
||||
channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_2POINT1,AUDIO_CHANNEL_OUT_QUAD,AUDIO_CHANNEL_OUT_PENTA,AUDIO_CHANNEL_OUT_5POINT1,AUDIO_CHANNEL_OUT_6POINT1,AUDIO_CHANNEL_OUT_7POINT1"/>
|
||||
<profile name="" format="AUDIO_FORMAT_E_AC3_JOC"
|
||||
samplingRates="32000,44100,48000"
|
||||
channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_2POINT1,AUDIO_CHANNEL_OUT_QUAD,AUDIO_CHANNEL_OUT_PENTA,AUDIO_CHANNEL_OUT_5POINT1,AUDIO_CHANNEL_OUT_6POINT1,AUDIO_CHANNEL_OUT_7POINT1"/>
|
||||
</mixPort>
|
||||
<mixPort name="voice_tx" role="source">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
|
||||
@@ -59,6 +59,15 @@
|
||||
<profile name="" format="AUDIO_FORMAT_AAC_HE_V2"
|
||||
samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000"
|
||||
channelMasks="AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_MONO"/>
|
||||
<profile name="" format="AUDIO_FORMAT_AC3"
|
||||
samplingRates="32000,44100,48000"
|
||||
channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_2POINT1,AUDIO_CHANNEL_OUT_QUAD,AUDIO_CHANNEL_OUT_PENTA,AUDIO_CHANNEL_OUT_5POINT1"/>
|
||||
<profile name="" format="AUDIO_FORMAT_E_AC3"
|
||||
samplingRates="32000,44100,48000"
|
||||
channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_2POINT1,AUDIO_CHANNEL_OUT_QUAD,AUDIO_CHANNEL_OUT_PENTA,AUDIO_CHANNEL_OUT_5POINT1,AUDIO_CHANNEL_OUT_6POINT1,AUDIO_CHANNEL_OUT_7POINT1"/>
|
||||
<profile name="" format="AUDIO_FORMAT_E_AC3_JOC"
|
||||
samplingRates="32000,44100,48000"
|
||||
channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_2POINT1,AUDIO_CHANNEL_OUT_QUAD,AUDIO_CHANNEL_OUT_PENTA,AUDIO_CHANNEL_OUT_5POINT1,AUDIO_CHANNEL_OUT_6POINT1,AUDIO_CHANNEL_OUT_7POINT1"/>
|
||||
</mixPort>
|
||||
<mixPort name="voice_tx" role="source">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
//
|
||||
// Copyright (C) 2019 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.
|
||||
//
|
||||
|
||||
cc_library {
|
||||
name: "bootctrl.msm8998",
|
||||
defaults: ["bootctrl_hal_defaults"],
|
||||
static_libs: ["libgptutils.msm8998"],
|
||||
}
|
||||
@@ -42,7 +42,8 @@
|
||||
-->
|
||||
|
||||
<exception
|
||||
package="com.google.android.apps.pixelmigrate">
|
||||
package="com.google.android.apps.restore"
|
||||
sha256-cert-digest="56:BE:13:2B:78:06:56:FE:24:44:CD:34:32:6E:B5:D7:AA:C9:1D:20:96:AB:F0:FE:67:3A:99:27:06:22:EC:87">
|
||||
<!-- External storage -->
|
||||
<permission name="android.permission.READ_EXTERNAL_STORAGE" fixed="false"/>
|
||||
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" fixed="false"/>
|
||||
@@ -52,20 +53,8 @@
|
||||
<!-- Call logs -->
|
||||
<permission name="android.permission.READ_CALL_LOG" fixed="false"/>
|
||||
<permission name="android.permission.WRITE_CALL_LOG" fixed="false"/>
|
||||
<!-- SMS -->
|
||||
<permission name="android.permission.RECEIVE_SMS" fixed="false"/>
|
||||
<permission name="android.permission.READ_PHONE_NUMBERS" fixed="false"/>
|
||||
</exception>
|
||||
|
||||
<exception
|
||||
package="com.google.android.apps.restore"
|
||||
sha256-cert-digest="56:BE:13:2B:78:06:56:FE:24:44:CD:34:32:6E:B5:D7:AA:C9:1D:20:96:AB:F0:FE:67:3A:99:27:06:22:EC:87">
|
||||
<!-- External storage -->
|
||||
<permission name="android.permission.READ_EXTERNAL_STORAGE" fixed="false"/>
|
||||
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" fixed="false"/>
|
||||
<!-- Contacts -->
|
||||
<permission name="android.permission.READ_CONTACTS" fixed="false"/>
|
||||
<permission name="android.permission.WRITE_CONTACTS" fixed="false"/>
|
||||
<!-- Used to set up a Wi-Fi P2P network -->
|
||||
<permission name="android.permission.ACCESS_FINE_LOCATION" fixed="false"/>
|
||||
</exception>
|
||||
|
||||
<exception
|
||||
@@ -121,27 +110,6 @@
|
||||
<permission name="android.permission.ACCESS_BACKGROUND_LOCATION" fixed="true"/>
|
||||
</exception>
|
||||
|
||||
<exception
|
||||
package="com.google.android.projection.gearhead"
|
||||
sha256-cert-digest="FD:B0:0C:43:DB:DE:8B:51:CB:31:2A:A8:1D:3B:5F:A1:77:13:AD:B9:4B:28:F5:98:D7:7F:8E:B8:9D:AC:EE:DF">
|
||||
<!-- Gearhead legacy -->
|
||||
<permission name="android.permission.ACCESS_FINE_LOCATION" fixed="false"/>
|
||||
<permission name="android.permission.CALL_PHONE" fixed="false"/>
|
||||
<permission name="android.permission.READ_CALL_LOG" fixed="false"/>
|
||||
<permission name="android.permission.READ_CONTACTS" fixed="false"/>
|
||||
<permission name="android.permission.READ_PHONE_STATE" fixed="false"/>
|
||||
<permission name="android.permission.RECEIVE_SMS" fixed="false"/>
|
||||
<permission name="android.permission.RECORD_AUDIO" fixed="false"/>
|
||||
<permission name="android.permission.SEND_SMS" fixed="false"/>
|
||||
<permission name="android.permission.READ_CALENDAR" fixed="false"/>
|
||||
<!-- For Top Gear -->
|
||||
<permission name="android.permission.PROCESS_OUTGOING_CALLS" fixed="false"/>
|
||||
<permission name="android.permission.READ_SMS" fixed="false"/>
|
||||
<permission name="android.permission.RECEIVE_MMS" fixed="false"/>
|
||||
<permission name="android.permission.WRITE_CALL_LOG" fixed="false"/>
|
||||
<permission name="android.permission.ACCESS_COARSE_LOCATION" fixed="false"/>
|
||||
</exception>
|
||||
|
||||
<exception package="com.google.android.apps.scone">
|
||||
<!-- Used to call ActivityTransition API for Smart PNO -->
|
||||
<permission name="android.permission.ACTIVITY_RECOGNITION" fixed="false"/>
|
||||
|
||||
321
device.mk
321
device.mk
@@ -14,49 +14,31 @@
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
# Enable updating of APEXes
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk)
|
||||
|
||||
ifneq (,$(filter 27, $(PRODUCT_EXTRA_VNDK_VERSIONS)))
|
||||
_vndk_test := true
|
||||
endif
|
||||
|
||||
ifeq (,$(_vndk_test))
|
||||
PRODUCT_COMPATIBLE_PROPERTY_OVERRIDE := true
|
||||
endif
|
||||
PRODUCT_ACTIONABLE_COMPATIBLE_PROPERTY_DISABLE := true
|
||||
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
keyguard.no_require_sim=true
|
||||
|
||||
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
|
||||
ro.adb.secure=1
|
||||
|
||||
PRODUCT_SOONG_NAMESPACES += \
|
||||
device/google/wahoo \
|
||||
vendor/google/camera \
|
||||
hardware/google/camera \
|
||||
hardware/google/interfaces \
|
||||
hardware/google/pixel \
|
||||
hardware/qcom/msm8998
|
||||
hardware/qcom/msm8998 \
|
||||
hardware/qcom/wlan/legacy
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
device/google/wahoo/default-permissions.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default-permissions/default-permissions.xml \
|
||||
device/google/wahoo/component-overrides.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sysconfig/component-overrides.xml \
|
||||
frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml \
|
||||
frameworks/native/data/etc/android.software.verified_boot.xml:system/etc/permissions/android.software.verified_boot.xml
|
||||
frameworks/native/data/etc/android.software.verified_boot.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.verified_boot.xml
|
||||
|
||||
# Set the SVN for the targeted MR release
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
ro.vendor.build.svn=52
|
||||
|
||||
# Enforce privapp-permissions whitelist
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
ro.control_privapp_permissions=enforce
|
||||
|
||||
PRODUCT_PACKAGES += \
|
||||
messaging
|
||||
|
||||
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
|
||||
ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
|
||||
PRODUCT_PACKAGES += chre_test_client
|
||||
endif
|
||||
|
||||
@@ -68,24 +50,17 @@ SRC_CAMERA_HAL_DIR := hardware/qcom/camera/msm8998
|
||||
|
||||
TARGET_SYSTEM_PROP := $(TARGET_SYSTEM_PROP) $(LOCAL_PATH)/system.prop
|
||||
|
||||
# Get kernel-headers
|
||||
$(call inherit-product, hardware/qcom/msm8998/msm8998.mk)
|
||||
|
||||
$(call inherit-product, device/google/wahoo/utils.mk)
|
||||
|
||||
ifeq ($(TARGET_PREBUILT_KERNEL),)
|
||||
LOCAL_KERNEL := device/google/wahoo-kernel/Image.lz4-dtb
|
||||
else
|
||||
LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
|
||||
endif
|
||||
|
||||
PRODUCT_CHARACTERISTICS := nosdcard
|
||||
PRODUCT_SHIPPING_API_LEVEL := 26
|
||||
|
||||
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
|
||||
|
||||
DEVICE_PACKAGE_OVERLAYS += \
|
||||
$(LOCAL_PATH)/overlay \
|
||||
$(LOCAL_PATH)/overlay-evolution \
|
||||
$(LOCAL_PATH)/overlay-lineage
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(LOCAL_KERNEL):kernel \
|
||||
$(LOCAL_PATH)/init.recovery.hardware.rc:recovery/root/init.recovery.$(PRODUCT_HARDWARE).rc \
|
||||
$(LOCAL_PATH)/init.hardware.usb.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.wahoo.usb.rc \
|
||||
$(LOCAL_PATH)/ueventd.hardware.rc:$(TARGET_COPY_OUT_VENDOR)/ueventd.rc \
|
||||
@@ -113,7 +88,7 @@ else
|
||||
$(LOCAL_PATH)/init.hardware.xr.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.$(PRODUCT_HARDWARE).rc
|
||||
endif
|
||||
|
||||
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
|
||||
ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(LOCAL_PATH)/init.hardware.diag.rc.userdebug:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.$(PRODUCT_HARDWARE).diag.rc
|
||||
PRODUCT_COPY_FILES += \
|
||||
@@ -150,7 +125,7 @@ PRODUCT_PACKAGES += \
|
||||
update_engine_sideload
|
||||
|
||||
# The following modules are included in debuggable builds only.
|
||||
PRODUCT_PACKAGES_DEBUG += \
|
||||
PRODUCT_PACKAGES_ENG += \
|
||||
a_sns_test \
|
||||
bootctl \
|
||||
update_engine_client
|
||||
@@ -188,6 +163,7 @@ PRODUCT_COPY_FILES += \
|
||||
frameworks/native/data/etc/android.hardware.wifi.aware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.aware.xml \
|
||||
frameworks/native/data/etc/android.hardware.wifi.passpoint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.passpoint.xml \
|
||||
frameworks/native/data/etc/android.hardware.wifi.rtt.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.rtt.xml \
|
||||
frameworks/native/data/etc/android.software.ipsec_tunnels.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.ipsec_tunnels.xml \
|
||||
frameworks/native/data/etc/android.software.sip.voip.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.sip.voip.xml \
|
||||
frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \
|
||||
frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \
|
||||
@@ -202,15 +178,35 @@ PRODUCT_COPY_FILES += \
|
||||
frameworks/native/data/etc/android.hardware.vulkan.level-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.level.xml \
|
||||
frameworks/native/data/etc/android.hardware.vulkan.version-1_1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.version.xml \
|
||||
frameworks/native/data/etc/android.software.vulkan.deqp.level-2020-03-01.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.vulkan.deqp.level.xml \
|
||||
frameworks/native/data/etc/android.software.opengles.deqp.level-2020-03-01.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.opengles.deqp.level.xml \
|
||||
frameworks/native/data/etc/android.hardware.telephony.carrierlock.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.carrierlock.xml \
|
||||
|
||||
# power.stats HAL
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.power@1.0.vendor \
|
||||
android.hardware.power.stats@1.0-service.pixel
|
||||
|
||||
# health HAL
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.health@2.0-service.wahoo
|
||||
android.hardware.health@2.1-impl-wahoo \
|
||||
android.hardware.health@2.1-service
|
||||
|
||||
# Permissions
|
||||
# NOTE: Used to deal with permission issues caused by Gapps updates
|
||||
PRODUCT_COPY_FILES += \
|
||||
device/google/wahoo/permissions/pixel_permissions_product.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/pixel_permissions_product.xml
|
||||
|
||||
# Enforce privapp-permissions whitelist
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
ro.control_privapp_permissions?=enforce
|
||||
|
||||
# Radio Hal
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.radio@1.1.vendor \
|
||||
android.hardware.radio.config@1.0 \
|
||||
android.hardware.radio.config@1.0-service \
|
||||
android.hardware.radio@1.4-service.legacy \
|
||||
libxml2
|
||||
|
||||
# Audio fluence, ns, aec property, voice and media volume steps
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
@@ -224,16 +220,14 @@ PRODUCT_PROPERTY_OVERRIDES += \
|
||||
|
||||
# graphics
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
ro.surface_flinger.enable_frame_rate_override=false \
|
||||
ro.hardware.egl=adreno \
|
||||
ro.opengles.version=196610
|
||||
|
||||
# b/73640835
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
sdm.debug.rotator_downscale=1
|
||||
|
||||
# Disable buffer age (b/74534157)
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
debug.hwui.use_buffer_age=false
|
||||
|
||||
# Enable camera EIS3.0
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
persist.camera.is_type=5 \
|
||||
@@ -263,16 +257,15 @@ PRODUCT_PROPERTY_OVERRIDES += \
|
||||
persist.radio.sap_silent_pin=1 \
|
||||
persist.radio.sib16_support=1 \
|
||||
persist.radio.data_con_rprt=true \
|
||||
persist.vendor.radio.mt_sms_ack=30 \
|
||||
persist.radio.always_send_plmn=false\
|
||||
persist.rcs.supported=1
|
||||
|
||||
ifeq (,$(_vndk_test))
|
||||
PRODUCT_PRODUCT_PROPERTIES += \
|
||||
ro.telephony.block_binder_thread_on_incoming_calls=false
|
||||
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
vendor.rild.libpath=/vendor/lib64/libril-qc-qmi-1.so
|
||||
else
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
rild.libpath=/vendor/lib64/libril-qc-qmi-1.so
|
||||
endif
|
||||
|
||||
# Disable snapshot timer
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
@@ -327,13 +320,12 @@ PRODUCT_COPY_FILES += \
|
||||
$(LOCAL_PATH)/p2p_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/p2p_supplicant_overlay.conf \
|
||||
$(LOCAL_PATH)/wifi_concurrency_cfg.txt:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wifi_concurrency_cfg.txt
|
||||
|
||||
#ipacm configuration files
|
||||
PRODUCT_COPY_FILES += \
|
||||
hardware/qcom/data/ipacfg-mgr/msm8998/ipacm/src/IPACM_cfg.xml:$(TARGET_COPY_OUT_VENDOR)/etc/IPACM_cfg.xml
|
||||
# ipacm configuration file
|
||||
PRODUCT_PACKAGES += \
|
||||
IPACM_cfg.xml
|
||||
|
||||
PRODUCT_PACKAGES += \
|
||||
hwcomposer.msm8998 \
|
||||
android.hardware.graphics.composer@2.1-impl:64 \
|
||||
android.hardware.graphics.composer@2.1-service \
|
||||
gralloc.msm8998 \
|
||||
android.hardware.graphics.allocator@2.0-impl:64 \
|
||||
@@ -366,9 +358,26 @@ PRODUCT_PACKAGES += \
|
||||
|
||||
# Bluetooth HAL
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.bluetooth@1.0-impl-qti:64 \
|
||||
android.hardware.bluetooth@1.0-service-qti \
|
||||
android.hardware.bluetooth@1.0-service-qti.rc
|
||||
android.hardware.bluetooth@1.0.vendor
|
||||
|
||||
# Bluetooth Properties
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
bluetooth.device.class_of_device=90,2,12 \
|
||||
bluetooth.hardware.power.operating_voltage_mv=3300 \
|
||||
bluetooth.profile.asha.central.enabled?=true \
|
||||
bluetooth.profile.a2dp.source.enabled?=true \
|
||||
bluetooth.profile.avrcp.target.enabled?=true \
|
||||
bluetooth.profile.bas.client.enabled?=true \
|
||||
bluetooth.profile.gatt.enabled?=true \
|
||||
bluetooth.profile.hfp.ag.enabled?=true \
|
||||
bluetooth.profile.hid.device.enabled?=true \
|
||||
bluetooth.profile.hid.host.enabled?=true \
|
||||
bluetooth.profile.map.server.enabled?=true \
|
||||
bluetooth.profile.opp.enabled?=true \
|
||||
bluetooth.profile.pan.nap.enabled?=true \
|
||||
bluetooth.profile.pan.panu.enabled?=true \
|
||||
bluetooth.profile.pbap.server.enabled?=true \
|
||||
bluetooth.profile.sap.server.enabled?=true
|
||||
|
||||
# Bluetooth SoC
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
@@ -385,17 +394,35 @@ PRODUCT_PROPERTY_OVERRIDES += \
|
||||
|
||||
# DRM HAL
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.drm@1.0-impl:32 \
|
||||
android.hardware.drm@1.0-service \
|
||||
android.hardware.drm@1.3-service.clearkey \
|
||||
android.hardware.drm@1.3-service.widevine \
|
||||
move_widevine_data.sh
|
||||
android.hardware.drm@1.3.vendor \
|
||||
android.hardware.drm-service.clearkey
|
||||
|
||||
# NFC packages
|
||||
PRODUCT_PACKAGES += \
|
||||
NfcNci \
|
||||
Tag \
|
||||
android.hardware.nfc@1.1-service \
|
||||
com.android.nfc_extras
|
||||
|
||||
# NowPlayingOverlay
|
||||
PRODUCT_PACKAGES += \
|
||||
NowPlayingOverlay
|
||||
|
||||
# Camera
|
||||
PRODUCT_PACKAGES += \
|
||||
GcamPrebuilt
|
||||
|
||||
# ViMusic
|
||||
PRODUCT_PACKAGES += \
|
||||
ViMusic
|
||||
|
||||
# Elmyra
|
||||
PRODUCT_PACKAGES += \
|
||||
ElmyraService
|
||||
|
||||
# Configstore
|
||||
PRODUCT_PACKAGES += \
|
||||
disable_configstore
|
||||
|
||||
PRODUCT_PACKAGES += \
|
||||
SecureElement
|
||||
@@ -411,7 +438,6 @@ PRODUCT_PACKAGES += \
|
||||
libOmxCore \
|
||||
libstagefrighthw \
|
||||
libOmxVdec \
|
||||
libOmxVdecHevc \
|
||||
libOmxVenc \
|
||||
libc2dcolorconvert
|
||||
|
||||
@@ -425,14 +451,15 @@ PRODUCT_PACKAGES += \
|
||||
libmmcamera_interface
|
||||
|
||||
# Google Camera HAL test libraries in debug builds
|
||||
PRODUCT_PACKAGES_DEBUG += \
|
||||
PRODUCT_PACKAGES_ENG += \
|
||||
libgoogle_camera_hal_proprietary_tests \
|
||||
libgoogle_camera_hal_tests.vendor
|
||||
|
||||
PRODUCT_PACKAGES += \
|
||||
sensors.$(PRODUCT_HARDWARE) \
|
||||
android.frameworks.sensorservice@1.0.vendor \
|
||||
android.hardware.sensors@1.0-impl:64 \
|
||||
android.hardware.sensors@1.0-service
|
||||
android.hardware.sensors@1.0-service \
|
||||
libpower.vendor
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(LOCAL_PATH)/sensors/hals.conf:vendor/etc/sensors/hals.conf
|
||||
@@ -458,7 +485,6 @@ PRODUCT_PACKAGES += \
|
||||
|
||||
#GNSS HAL
|
||||
PRODUCT_PACKAGES += \
|
||||
gps.conf \
|
||||
libgps.utils \
|
||||
libgnss \
|
||||
liblocation_api \
|
||||
@@ -474,23 +500,50 @@ HOSTAPD += hostapd_cli
|
||||
PRODUCT_PACKAGES += $(HOSTAPD)
|
||||
|
||||
WPA := wpa_supplicant.conf
|
||||
WPA += wpa_supplicant_wcn.conf
|
||||
WPA += wpa_supplicant
|
||||
PRODUCT_PACKAGES += $(WPA)
|
||||
|
||||
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
|
||||
ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
|
||||
PRODUCT_PACKAGES += wpa_cli
|
||||
endif
|
||||
|
||||
# Protobuf
|
||||
PRODUCT_PACKAGES += \
|
||||
libprotobuf-cpp-full-3.9.1-vendorcompat \
|
||||
libprotobuf-cpp-lite-3.9.1-vendorcompat
|
||||
|
||||
# Wifi
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.wifi@1.0-service \
|
||||
android.hardware.wifi-service \
|
||||
wificond \
|
||||
libwpa_client \
|
||||
WifiOverlay
|
||||
|
||||
LIB_NL := libnl_2
|
||||
PRODUCT_PACKAGES += $(LIB_NL)
|
||||
# Connectivity
|
||||
PRODUCT_PACKAGES += \
|
||||
ConnectivityOverlay
|
||||
|
||||
# fastbootd
|
||||
PRODUCT_PACKAGES += \
|
||||
fastbootd
|
||||
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
ro.fastbootd.available=true
|
||||
|
||||
# Dolby
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(LOCAL_PATH)/dolby/dax-default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/dolby/dax-default.xml
|
||||
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
persist.vendor.audio_fx.current=dolby \
|
||||
vendor.audio.dolby.ds2.enabled=true \
|
||||
vendor.audio.dolby.ds2.hardbypass=true \
|
||||
ro.vendor.dolby.dax.version=DAX3_3.6.0.12_r1 \
|
||||
ro.vendor.audio.dolby.dax.support=true
|
||||
|
||||
# Clone apps exemption
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(LOCAL_PATH)/sysconfig/preinstalled-packages-platform-pixel-product.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/sysconfig/preinstalled-packages-platform-pixel-product.xml
|
||||
|
||||
# Audio effects
|
||||
PRODUCT_PACKAGES += \
|
||||
@@ -502,18 +555,17 @@ PRODUCT_PACKAGES += \
|
||||
|
||||
PRODUCT_PACKAGES += \
|
||||
audio.primary.msm8998 \
|
||||
audio.a2dp.default \
|
||||
audio.usb.default \
|
||||
audio.r_submix.default \
|
||||
libaudio-resampler \
|
||||
audio.hearing_aid.default \
|
||||
audio.bluetooth.default
|
||||
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.audio@6.0-impl:32 \
|
||||
android.hardware.audio.effect@6.0-impl:32 \
|
||||
android.hardware.soundtrigger@2.2-impl:32 \
|
||||
android.hardware.bluetooth.audio@2.0-impl \
|
||||
android.hardware.bluetooth.a2dp@1.0.vendor \
|
||||
android.hardware.bluetooth.audio-impl \
|
||||
android.hardware.audio@2.0-service
|
||||
|
||||
# stereo speakers: orientation changes swap L/R channels
|
||||
@@ -535,7 +587,7 @@ PRODUCT_COPY_FILES += \
|
||||
# PRODUCT_COPY_FILES += \
|
||||
# frameworks/native/data/etc/android.hardware.audio.pro.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.pro.xml
|
||||
|
||||
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
|
||||
ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
|
||||
PRODUCT_PACKAGES += \
|
||||
tinyplay \
|
||||
tinycap \
|
||||
@@ -564,6 +616,7 @@ PRODUCT_COPY_FILES += \
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(LOCAL_PATH)/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
|
||||
$(LOCAL_PATH)/media_codecs_dolby_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_dolby_audio.xml \
|
||||
$(LOCAL_PATH)/media_codecs_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \
|
||||
frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \
|
||||
frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml \
|
||||
@@ -572,9 +625,15 @@ PRODUCT_COPY_FILES += \
|
||||
|
||||
# Codec2 modules
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.media.c2@1.1.vendor \
|
||||
com.android.media.swcodec \
|
||||
libsfplugin_ccodec \
|
||||
|
||||
# IMS
|
||||
PRODUCT_PACKAGES += \
|
||||
PresencePolling \
|
||||
RcsService
|
||||
|
||||
# Codec2 switch
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
debug.media.codec2=2 \
|
||||
@@ -587,13 +646,44 @@ PRODUCT_COPY_FILES += \
|
||||
|
||||
# Fingerprint HIDL implementation
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.biometrics.fingerprint@2.1-service.fpc
|
||||
android.frameworks.stats@1.0.vendor \
|
||||
android.hardware.biometrics.fingerprint@2.1.vendor \
|
||||
android.hardware.biometrics.fingerprint@2.2.vendor
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(LOCAL_PATH)/init.fingerprint.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.fingerprint.sh \
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml
|
||||
|
||||
# Display
|
||||
PRODUCT_PACKAGES += \
|
||||
android.frameworks.displayservice@1.0.vendor
|
||||
|
||||
# GNSS
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.gnss@1.0.vendor
|
||||
|
||||
# WiFi
|
||||
PRODUCT_PACKAGES += \
|
||||
android.system.net.netd@1.1.vendor
|
||||
|
||||
# Keymaster HAL
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.keymaster@3.0.vendor
|
||||
|
||||
# Gatekeeper HAL
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.gatekeeper@1.0.vendor
|
||||
|
||||
# Neural Network
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.neuralnetworks@1.3.vendor
|
||||
|
||||
# OEMLock
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.oemlock@1.0.vendor
|
||||
|
||||
# GPS configuration file
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(LOCAL_PATH)/gps.conf:$(TARGET_COPY_OUT_VENDOR)/etc/gps.conf
|
||||
@@ -606,7 +696,7 @@ PRODUCT_COPY_FILES += \
|
||||
PRODUCT_COPY_FILES += \
|
||||
frameworks/native/data/etc/android.software.device_id_attestation.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.device_id_attestation.xml
|
||||
|
||||
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
|
||||
ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
|
||||
# Subsystem ramdump
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
persist.sys.ssr.enable_ramdumps=1
|
||||
@@ -617,16 +707,13 @@ PRODUCT_PROPERTY_OVERRIDES += \
|
||||
persist.sys.ssr.restart_level=modem,slpi,adsp
|
||||
|
||||
# setup dalvik vm configs
|
||||
$(call inherit-product, frameworks/native/build/phone-xhdpi-2048-dalvik-heap.mk)
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
device/google/wahoo/fstab.hardware:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.$(PRODUCT_HARDWARE)
|
||||
$(call inherit-product, frameworks/native/build/phone-xhdpi-4096-dalvik-heap.mk)
|
||||
|
||||
# Use the default charger mode images
|
||||
PRODUCT_PACKAGES += \
|
||||
charger_res_images
|
||||
|
||||
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
|
||||
ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
|
||||
# b/36703476: Set default log size to 1M
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
ro.logd.size=1M
|
||||
@@ -651,7 +738,7 @@ PRODUCT_PROPERTY_OVERRIDES += \
|
||||
# Include vndk/vndk-sp/ll-ndk modules
|
||||
PRODUCT_PACKAGES += vndk_package
|
||||
|
||||
PRODUCT_ENFORCE_RRO_TARGETS := framework-res
|
||||
PRODUCT_ENFORCE_RRO_TARGETS := *
|
||||
|
||||
# Override heap growth limit due to high display density on device
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
@@ -696,10 +783,6 @@ PRODUCT_PROPERTY_OVERRIDES += \
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
persist.camera.gcam.fd.ensemble=1
|
||||
|
||||
# Preopt SystemUI
|
||||
PRODUCT_DEXPREOPT_SPEED_APPS += \
|
||||
SystemUIGoogle
|
||||
|
||||
# audio effects config
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
fmas.hdph_sgain=0
|
||||
@@ -709,7 +792,7 @@ PRODUCT_PROPERTY_OVERRIDES += \
|
||||
ro.camera.notify_nfc=1
|
||||
|
||||
# default usb oem functions
|
||||
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
|
||||
ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
persist.vendor.usb.usbradio.config=diag
|
||||
endif
|
||||
@@ -722,18 +805,13 @@ PRODUCT_PROPERTY_OVERRIDES += \
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.atrace@1.0-service
|
||||
|
||||
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.use_color_management=true
|
||||
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.protected_contents=true
|
||||
|
||||
# Early phase offset configuration for SurfaceFlinger
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
debug.sf.early_phase_offset_ns=1500000
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
debug.sf.early_app_phase_offset_ns=1500000
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
debug.sf.early_gl_phase_offset_ns=3000000
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
debug.sf.early_gl_app_phase_offset_ns=15000000
|
||||
# Surface flinger
|
||||
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
|
||||
ro.surface_flinger.max_frame_buffer_acquired_buffers=3 \
|
||||
ro.surface_flinger.protected_contents=true \
|
||||
ro.surface_flinger.use_color_management=true \
|
||||
ro.surface_flinger.vsync_event_phase_offset_ns=2000000 \
|
||||
ro.surface_flinger.vsync_sf_event_phase_offset_ns=6000000
|
||||
|
||||
# Use /product/etc/fstab.postinstall to mount system_other.
|
||||
PRODUCT_PRODUCT_PROPERTIES += \
|
||||
@@ -745,9 +823,52 @@ PRODUCT_COPY_FILES += \
|
||||
PRODUCT_PRODUCT_PROPERTIES += \
|
||||
ro.charger.enable_suspend=true
|
||||
|
||||
# Enable OPA features
|
||||
PRODUCT_PRODUCT_PROPERTIES += \
|
||||
ro.opa.eligible_device=true
|
||||
|
||||
# Build necessary packages for vendor
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hidl.safe_union@1.0.vendor \
|
||||
chre \
|
||||
ese-ls-provision \
|
||||
ese-replay \
|
||||
libhidltransport.vendor \
|
||||
libhwbinder.vendor \
|
||||
libjson \
|
||||
libsensorndkbridge:32 \
|
||||
libtinyxml
|
||||
|
||||
# Enable missing vendor props
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
drm.service.enabled=true \
|
||||
media.mediadrmservice.enable=true \
|
||||
ro.gfx.driver.0=com.google.pixel.wahoo.gfxdrv \
|
||||
ro.hardware.egl=adreno \
|
||||
ro.hardware.vulkan=adreno \
|
||||
ro.oem_unlock.pst=/dev/block/platform/soc/1da4000.ufshc/by-name/misc \
|
||||
ro.oem_unlock.pst_offset=6144
|
||||
|
||||
# Build necessary packages for system
|
||||
PRODUCT_PACKAGES += \
|
||||
libhidltransport \
|
||||
libhwbinder
|
||||
|
||||
# Setting vendor SPL
|
||||
VENDOR_SECURITY_PATCH := $(PLATFORM_SECURITY_PATCH)
|
||||
|
||||
# Task profiles
|
||||
PRODUCT_COPY_FILES += \
|
||||
system/core/libprocessgroup/profiles/cgroups_28.json:$(TARGET_COPY_OUT_VENDOR)/etc/cgroups.json \
|
||||
system/core/libprocessgroup/profiles/task_profiles_28.json:$(TARGET_COPY_OUT_VENDOR)/etc/task_profiles.json
|
||||
|
||||
# Zygote
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
zygote.critical_window.minute=10
|
||||
|
||||
include hardware/google/pixel/vibrator/drv2624/device.mk
|
||||
include hardware/google/pixel/mm/device_legacy.mk
|
||||
include hardware/google/pixel/thermal/device.mk
|
||||
include device/google/gs-common/thermal/thermal_hal/device.mk
|
||||
|
||||
# power HAL
|
||||
-include hardware/google/pixel/power-libperfmgr/hidl/device.mk
|
||||
-include hardware/google/pixel/power-libperfmgr/aidl/device.mk
|
||||
|
||||
@@ -1,4 +1,12 @@
|
||||
<compatibility-matrix version="1.0" type="framework">
|
||||
<compatibility-matrix version="2.0" type="framework">
|
||||
<hal format="hidl" optional="true">
|
||||
<name>android.hardware.light</name>
|
||||
<version>2.0</version>
|
||||
<interface>
|
||||
<name>ILight</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl" optional="true">
|
||||
<name>vendor.qti.qcril.am</name>
|
||||
<version>1.0</version>
|
||||
@@ -7,6 +15,18 @@
|
||||
<instance>slot1</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl" optional="true">
|
||||
<name>android.hardware.radio</name>
|
||||
<version>1.4</version>
|
||||
<interface>
|
||||
<name>IRadio</name>
|
||||
<instance>slot1</instance>
|
||||
</interface>
|
||||
<interface>
|
||||
<name>ISap</name>
|
||||
<instance>slot1</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl" optional="true">
|
||||
<name>com.qualcomm.qti.ims.radio</name>
|
||||
<version>1.1</version>
|
||||
@@ -55,4 +75,12 @@
|
||||
<instance>cnd</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl" optional="true">
|
||||
<name>vendor.dolby.hardware.dms</name>
|
||||
<version>2.0</version>
|
||||
<interface>
|
||||
<name>IDms</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
</compatibility-matrix>
|
||||
|
||||
1857
dolby/dax-default.xml
Normal file
1857
dolby/dax-default.xml
Normal file
File diff suppressed because it is too large
Load Diff
@@ -263,7 +263,6 @@ Return<void> DumpstateDevice::dumpstateBoard(const hidl_handle& handle) {
|
||||
dumpModem(fd, fdModem);
|
||||
}
|
||||
RunCommandToFd(fd, "VENDOR PROPERTIES", {"/vendor/bin/getprop"});
|
||||
DumpFileToFd(fd, "SoC serial number", "/sys/devices/soc0/serial_number");
|
||||
DumpFileToFd(fd, "CPU present", "/sys/devices/system/cpu/present");
|
||||
DumpFileToFd(fd, "CPU online", "/sys/devices/system/cpu/online");
|
||||
DumpFileToFd(fd, "UFS model", "/sys/block/sda/device/model");
|
||||
|
||||
30
evolution.dependencies
Normal file
30
evolution.dependencies
Normal file
@@ -0,0 +1,30 @@
|
||||
[
|
||||
{
|
||||
"repository": "kernel_google_wahoo",
|
||||
"target_path": "kernel/google/wahoo"
|
||||
},
|
||||
{
|
||||
"repository":"asriadirahim/packages_apps_googlecamera",
|
||||
"target_path":"packages/apps/GoogleCamera",
|
||||
"remote":"gitlab",
|
||||
"branch":"thirteen"
|
||||
},
|
||||
{
|
||||
"repository":"LineageOS/android_device_google_gs-common",
|
||||
"target_path":"device/google/gs-common",
|
||||
"remote":"github",
|
||||
"branch":"lineage-21"
|
||||
},
|
||||
{
|
||||
"repository": "Google-Pixel2-2XL/packages_apps_ViMusic",
|
||||
"target_path": "packages/apps/ViMusic",
|
||||
"remote": "github",
|
||||
"branch": "main"
|
||||
},
|
||||
{
|
||||
"repository":"LineageOS/android_packages_apps_ElmyraService",
|
||||
"target_path":"packages/apps/ElmyraService",
|
||||
"remote":"github",
|
||||
"branch":"lineage-21.0"
|
||||
}
|
||||
]
|
||||
@@ -132,7 +132,7 @@ int main(void) {
|
||||
ALOGI("Starting polling loop");
|
||||
|
||||
// Polling loop
|
||||
while (ALooper_pollAll(-1, NULL, NULL, NULL) == 0) {
|
||||
while (ALooper_pollOnce(-1, NULL, NULL, NULL) == 0) {
|
||||
int eventCount = 0;
|
||||
ASensorEvent sensorEvent;
|
||||
while (ASensorEventQueue_getEvents(eventQueue, &sensorEvent, 1) > 0) {
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
# Android fstab file.
|
||||
|
||||
#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
|
||||
/dev/block/platform/soc/1da4000.ufshc/by-name/system / ext4 ro,barrier=1 wait,slotselect,avb
|
||||
/dev/block/platform/soc/1da4000.ufshc/by-name/metadata /metadata ext4 noatime,nosuid,nodev,discard,sync wait,formattable
|
||||
/dev/block/platform/soc/1da4000.ufshc/by-name/userdata /data ext4 errors=panic,noatime,nosuid,nodev,barrier=1,noauto_da_alloc latemount,wait,check,formattable,fileencryption=ice:aes-256-heh,eraseblk=16777216,logicalblk=4096,quota,reservedsize=128M,checkpoint=block
|
||||
/dev/block/platform/soc/1da4000.ufshc/by-name/misc /misc emmc defaults defaults
|
||||
/dev/block/platform/soc/1da4000.ufshc/by-name/modem /firmware vfat ro,shortname=lower,uid=1000,gid=1000,dmask=227,fmask=337,context=u:object_r:firmware_file:s0 wait,slotselect
|
||||
/devices/soc/a800000.ssusb/a800000.dwc3* auto vfat defaults voldmanaged=usb:auto
|
||||
/dev/block/zram0 none swap defaults zramsize=2147483648,max_comp_streams=8
|
||||
2
gps.conf
2
gps.conf
@@ -26,7 +26,7 @@ NTP_SERVER = time.google.com
|
||||
# DEBUG LEVELS: 0 - none, 1 - Error, 2 - Warning, 3 - Info
|
||||
# 4 - Debug, 5 - Verbose
|
||||
# If DEBUG_LEVEL is commented, Android's logging levels will be used
|
||||
DEBUG_LEVEL = 3
|
||||
DEBUG_LEVEL = 2
|
||||
|
||||
# Intermediate position report, 1=enable, 0=disable
|
||||
INTERMEDIATE_POS=0
|
||||
|
||||
@@ -13,13 +13,15 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
cc_binary {
|
||||
name: "android.hardware.health@2.0-service.wahoo",
|
||||
init_rc: ["android.hardware.health@2.0-service.wahoo.rc"],
|
||||
|
||||
cc_library_shared {
|
||||
name: "android.hardware.health@2.1-impl-wahoo",
|
||||
stem: "android.hardware.health@2.0-impl-2.1-wahoo",
|
||||
|
||||
proprietary: true,
|
||||
relative_install_path: "hw",
|
||||
srcs: [
|
||||
"HealthService.cpp",
|
||||
"Health.cpp",
|
||||
"CycleCountBackupRestore.cpp",
|
||||
"LearnedCapacityBackupRestore.cpp",
|
||||
],
|
||||
@@ -30,10 +32,10 @@ cc_binary {
|
||||
],
|
||||
|
||||
static_libs: [
|
||||
"android.hardware.health@2.0-impl",
|
||||
"android.hardware.health@1.0-convert",
|
||||
"libhealthservice",
|
||||
"libbatterymonitor",
|
||||
"libhealth2impl",
|
||||
"libhealthloop",
|
||||
],
|
||||
|
||||
shared_libs: [
|
||||
@@ -42,7 +44,6 @@ cc_binary {
|
||||
"libhidlbase",
|
||||
"libutils",
|
||||
"android.hardware.health@2.0",
|
||||
"android.hardware.health@2.1",
|
||||
],
|
||||
|
||||
header_libs: ["libhealthd_headers"],
|
||||
}
|
||||
|
||||
@@ -13,13 +13,13 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#define LOG_TAG "android.hardware.health@2.0-service.wahoo"
|
||||
#define LOG_TAG "android.hardware.health@2.1-impl-wahoo"
|
||||
#include <android-base/logging.h>
|
||||
|
||||
#include <healthd/healthd.h>
|
||||
#include <health2/Health.h>
|
||||
#include <health2/service.h>
|
||||
#include <hidl/HidlTransportSupport.h>
|
||||
#include <android/hardware/health/2.0/types.h>
|
||||
#include <health2impl/Health.h>
|
||||
#include <health/utils.h>
|
||||
#include <hal_conversion.h>
|
||||
|
||||
#include <android-base/file.h>
|
||||
#include <android-base/strings.h>
|
||||
@@ -30,8 +30,17 @@
|
||||
#include "CycleCountBackupRestore.h"
|
||||
#include "LearnedCapacityBackupRestore.h"
|
||||
|
||||
using android::hardware::health::V2_0::StorageInfo;
|
||||
namespace {
|
||||
|
||||
using namespace std::literals;
|
||||
|
||||
using android::hardware::health::V1_0::hal_conversion::convertFromHealthInfo;
|
||||
using android::hardware::health::V1_0::hal_conversion::convertToHealthInfo;
|
||||
using android::hardware::health::V2_0::DiskStats;
|
||||
using android::hardware::health::V2_0::StorageInfo;
|
||||
using android::hardware::health::V2_0::Result;
|
||||
using ::android::hardware::health::V2_1::IHealth;
|
||||
using android::hardware::health::InitHealthdConfig;
|
||||
using ::device::google::wahoo::health::CycleCountBackupRestore;
|
||||
using ::device::google::wahoo::health::LearnedCapacityBackupRestore;
|
||||
|
||||
@@ -64,15 +73,13 @@ int cycle_count_backup(int battery_level)
|
||||
return 0;
|
||||
}
|
||||
|
||||
// See : hardware/interfaces/health/2.0/README
|
||||
|
||||
void healthd_board_init(struct healthd_config*)
|
||||
void private_healthd_board_init(struct healthd_config*)
|
||||
{
|
||||
ccBackupRestore.Restore();
|
||||
lcBackupRestore.Restore();
|
||||
}
|
||||
|
||||
int healthd_board_battery_update(struct android::BatteryProperties *props)
|
||||
int private_healthd_board_battery_update(struct android::BatteryProperties *props)
|
||||
{
|
||||
cycle_count_backup(props->batteryLevel);
|
||||
lcBackupRestore.Backup();
|
||||
@@ -87,7 +94,7 @@ const char kUFSName[] = "UFS0";
|
||||
/*
|
||||
* Implementation based on system/core/storaged/storaged_info.cc
|
||||
*/
|
||||
void get_storage_info(std::vector<StorageInfo>& vec_storage_info) {
|
||||
void private_get_storage_info(std::vector<StorageInfo>& vec_storage_info) {
|
||||
StorageInfo storage_info = {};
|
||||
std::string buffer, version;
|
||||
|
||||
@@ -147,7 +154,7 @@ void get_storage_info(std::vector<StorageInfo>& vec_storage_info) {
|
||||
/*
|
||||
* Implementation based on parse_disk_stats() in system/core/storaged_diskstats.cpp
|
||||
*/
|
||||
void get_disk_stats(std::vector<DiskStats>& vec_stats) {
|
||||
void private_get_disk_stats(std::vector<DiskStats>& vec_stats) {
|
||||
const size_t kDiskStatsSize = 11;
|
||||
struct DiskStats stats = {};
|
||||
|
||||
@@ -172,7 +179,74 @@ void get_disk_stats(std::vector<DiskStats>& vec_stats) {
|
||||
|
||||
return;
|
||||
}
|
||||
} // anonymous namespace
|
||||
|
||||
int main(void) {
|
||||
return health_service_main();
|
||||
namespace android {
|
||||
namespace hardware {
|
||||
namespace health {
|
||||
namespace V2_1 {
|
||||
namespace implementation {
|
||||
class HealthImpl : public Health {
|
||||
public:
|
||||
HealthImpl(std::unique_ptr<healthd_config>&& config)
|
||||
: Health(std::move(config)) {}
|
||||
|
||||
Return<void> getStorageInfo(getStorageInfo_cb _hidl_cb) override;
|
||||
Return<void> getDiskStats(getDiskStats_cb _hidl_cb) override;
|
||||
|
||||
protected:
|
||||
void UpdateHealthInfo(HealthInfo* health_info) override;
|
||||
|
||||
};
|
||||
|
||||
void HealthImpl::UpdateHealthInfo(HealthInfo* health_info) {
|
||||
struct BatteryProperties props;
|
||||
convertFromHealthInfo(health_info->legacy.legacy, &props);
|
||||
private_healthd_board_battery_update(&props);
|
||||
convertToHealthInfo(&props, health_info->legacy.legacy);
|
||||
}
|
||||
|
||||
Return<void> HealthImpl::getStorageInfo(getStorageInfo_cb _hidl_cb)
|
||||
{
|
||||
std::vector<struct StorageInfo> info;
|
||||
private_get_storage_info(info);
|
||||
hidl_vec<struct StorageInfo> info_vec(info);
|
||||
if (!info.size()) {
|
||||
_hidl_cb(Result::NOT_SUPPORTED, info_vec);
|
||||
} else {
|
||||
_hidl_cb(Result::SUCCESS, info_vec);
|
||||
}
|
||||
return Void();
|
||||
}
|
||||
|
||||
Return<void> HealthImpl::getDiskStats(getDiskStats_cb _hidl_cb)
|
||||
{
|
||||
std::vector<struct DiskStats> stats;
|
||||
private_get_disk_stats(stats);
|
||||
hidl_vec<struct DiskStats> stats_vec(stats);
|
||||
if (!stats.size()) {
|
||||
_hidl_cb(Result::NOT_SUPPORTED, stats_vec);
|
||||
} else {
|
||||
_hidl_cb(Result::SUCCESS, stats_vec);
|
||||
}
|
||||
return Void();
|
||||
}
|
||||
|
||||
} // namespace implementation
|
||||
} // namespace V2_1
|
||||
} // namespace health
|
||||
} // namespace hardware
|
||||
} // namespace android
|
||||
|
||||
extern "C" IHealth* HIDL_FETCH_IHealth(const char* instance) {
|
||||
using ::android::hardware::health::V2_1::implementation::HealthImpl;
|
||||
if (instance != "default"sv) {
|
||||
return nullptr;
|
||||
}
|
||||
auto config = std::make_unique<healthd_config>();
|
||||
InitHealthdConfig(config.get());
|
||||
|
||||
private_healthd_board_init(config.get());
|
||||
|
||||
return new HealthImpl(std::move(config));
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
service vendor.health-hal-2-0 /vendor/bin/hw/android.hardware.health@2.0-service.wahoo
|
||||
class hal
|
||||
user system
|
||||
group system
|
||||
file /dev/kmsg w
|
||||
@@ -163,7 +163,6 @@ on late-fs
|
||||
start surfaceflinger
|
||||
start bootanim
|
||||
start vendor.hwcomposer-2-1
|
||||
start vendor.configstore-hal
|
||||
start vendor.gralloc-2-0
|
||||
|
||||
# Wait for hwservicemanager ready since fsck might be triggered in mount_all --late
|
||||
@@ -755,3 +754,7 @@ on property:sys.boot_completed=1
|
||||
|
||||
on property:vendor.fps.init.succeed=true && property:init.svc.vendor.fps_hal=stopped
|
||||
start init-fingerprint-sh
|
||||
|
||||
# Dolby
|
||||
mkdir /data/vendor/dolby 0770 media media
|
||||
mkdir /data/vendor/multimedia 0775 system system
|
||||
@@ -20,6 +20,7 @@ LOCAL_SRC_FILES := lights.c
|
||||
LOCAL_MODULE_RELATIVE_PATH := hw
|
||||
LOCAL_PROPRIETARY_MODULE := true
|
||||
LOCAL_HEADER_LIBRARIES := libhardware_headers
|
||||
LOCAL_HEADER_LIBRARIES += generated_kernel_headers
|
||||
LOCAL_SHARED_LIBRARIES := libc libcutils liblog
|
||||
LOCAL_CFLAGS := $(common_flags) \
|
||||
-DLOG_TAG=\"qdlights\" \
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
/*
|
||||
* Change this to 1 to support battery notifications via BatteryService
|
||||
*/
|
||||
#define LIGHTS_SUPPORT_BATTERY 0
|
||||
#define LIGHTS_SUPPORT_BATTERY 1
|
||||
#define CG_COLOR_ID_PROPERTY "ro.boot.hardware.color"
|
||||
|
||||
static pthread_once_t g_init = PTHREAD_ONCE_INIT;
|
||||
|
||||
73
manifest.xml
73
manifest.xml
@@ -1,4 +1,4 @@
|
||||
<manifest version="1.0" type="device" target-level="2">
|
||||
<manifest version="1.0" type="device" target-level="5">
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.audio</name>
|
||||
<transport>hwbinder</transport>
|
||||
@@ -35,15 +35,6 @@
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.bluetooth.audio</name>
|
||||
<transport>hwbinder</transport>
|
||||
<version>2.0</version>
|
||||
<interface>
|
||||
<name>IBluetoothAudioProvidersFactory</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.boot</name>
|
||||
<transport>hwbinder</transport>
|
||||
@@ -62,15 +53,6 @@
|
||||
<instance>legacy/0</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.configstore</name>
|
||||
<transport>hwbinder</transport>
|
||||
<version>1.1</version>
|
||||
<interface>
|
||||
<name>ISurfaceFlingerConfigs</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.contexthub</name>
|
||||
<transport>hwbinder</transport>
|
||||
@@ -80,21 +62,6 @@
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.drm</name>
|
||||
<transport>hwbinder</transport>
|
||||
<version>1.0</version>
|
||||
<interface>
|
||||
<name>ICryptoFactory</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
<interface>
|
||||
<name>IDrmFactory</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
<fqname>@1.2::ICryptoFactory/clearkey</fqname>
|
||||
<fqname>@1.2::IDrmFactory/clearkey</fqname>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.dumpstate</name>
|
||||
<transport>hwbinder</transport>
|
||||
@@ -149,15 +116,6 @@
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.health</name>
|
||||
<transport>hwbinder</transport>
|
||||
<version>2.0</version>
|
||||
<interface>
|
||||
<name>IHealth</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.keymaster</name>
|
||||
<transport>hwbinder</transport>
|
||||
@@ -225,19 +183,10 @@
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.radio.deprecated</name>
|
||||
<transport>hwbinder</transport>
|
||||
<version>1.0</version>
|
||||
<interface>
|
||||
<name>IOemHook</name>
|
||||
<instance>slot1</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.radio</name>
|
||||
<transport>hwbinder</transport>
|
||||
<version>1.1</version>
|
||||
<version>1.4</version>
|
||||
<interface>
|
||||
<name>IRadio</name>
|
||||
<instance>slot1</instance>
|
||||
@@ -364,4 +313,22 @@
|
||||
<instance>cnd</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.radio.config</name>
|
||||
<transport>hwbinder</transport>
|
||||
<version>1.0</version>
|
||||
<interface>
|
||||
<name>IRadioConfig</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>vendor.dolby.hardware.dms</name>
|
||||
<transport>hwbinder</transport>
|
||||
<version>2.0</version>
|
||||
<interface>
|
||||
<name>IDms</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
</manifest>
|
||||
|
||||
@@ -349,4 +349,5 @@ Only the three quirks included above are recognized at this point:
|
||||
<!-- Audio Software -->
|
||||
</Decoders>
|
||||
<Include href="media_codecs_google_video.xml" />
|
||||
<Include href="media_codecs_dolby_audio.xml" />
|
||||
</MediaCodecs>
|
||||
|
||||
57
media_codecs_dolby_audio.xml
Normal file
57
media_codecs_dolby_audio.xml
Normal file
@@ -0,0 +1,57 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- Copyright 2016 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.
|
||||
|
||||
This file was modified by Dolby Laboratories, Inc. The portions of the
|
||||
code that are surrounded by "DOLBY..." are copyrighted and
|
||||
licensed separately, as follows:
|
||||
|
||||
(C) 2018 Dolby Laboratories, Inc.
|
||||
All rights reserved.
|
||||
|
||||
This program is protected under international and U.S. Copyright laws as
|
||||
an unpublished work. This program is confidential and proprietary to the
|
||||
copyright owners. Reproduction or disclosure, in whole or in part, or the
|
||||
production of derivative works therefrom without the express permission of
|
||||
the copyright owners is prohibited.
|
||||
-->
|
||||
|
||||
<Included>
|
||||
<Decoders>
|
||||
<!-- DOLBY_UDC -->
|
||||
<MediaCodec name="OMX.dolby.ac3.decoder" type="audio/ac3">
|
||||
<Limit name="channel-count" max="6" />
|
||||
<Limit name="sample-rate" ranges="32000,44100,48000" />
|
||||
<Limit name="bitrate" range="32000-640000" />
|
||||
</MediaCodec>
|
||||
<MediaCodec name="OMX.dolby.eac3.decoder" type="audio/eac3">
|
||||
<Limit name="channel-count" max="8" />
|
||||
<Limit name="sample-rate" ranges="32000,44100,48000" />
|
||||
<Limit name="bitrate" range="32000-6144000" />
|
||||
</MediaCodec>
|
||||
<MediaCodec name="OMX.dolby.eac3-joc.decoder" type="audio/eac3-joc">
|
||||
<Limit name="channel-count" max="8" />
|
||||
<Limit name="sample-rate" ranges="48000" />
|
||||
<Limit name="bitrate" range="32000-6144000" />
|
||||
</MediaCodec>
|
||||
<!-- DOLBY_UDC END -->
|
||||
<!-- DOLBY_AC4 -->
|
||||
<MediaCodec name="OMX.dolby.ac4.decoder" type="audio/ac4">
|
||||
<Limit name="channel-count" max="2" />
|
||||
<Limit name="sample-rate" ranges="48000" />
|
||||
<Limit name="bitrate" range="16000-2688000" />
|
||||
</MediaCodec>
|
||||
<!-- DOLBY_AC4 END -->
|
||||
</Decoders>
|
||||
</Included>
|
||||
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2023 The Evolution X Project
|
||||
SPDX-License-Identifier: Apache-2.0
|
||||
-->
|
||||
<resources>
|
||||
<string name="build_maintainer_summary" translatable="false">Asriadi Rahim</string>
|
||||
<string name="build_maintainer_donate_url" translatable="false">https://PayPal.me/asriadirahim</string>
|
||||
</resources>
|
||||
@@ -0,0 +1,36 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/*
|
||||
** Copyright 2017, 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.
|
||||
*/
|
||||
-->
|
||||
|
||||
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
|
||||
|
||||
<!-- Whether WiFi display is supported by this device.
|
||||
There are many prerequisites for this feature to work correctly.
|
||||
Here are a few of them:
|
||||
* The WiFi radio must support WiFi P2P.
|
||||
* The WiFi radio must support concurrent connections to the WiFi display and
|
||||
to an access point.
|
||||
* The Audio Flinger audio_policy.conf file must specify a rule for the "r_submix"
|
||||
remote submix module. This module is used to record and stream system
|
||||
audio output to the WiFi display encoder in the media server.
|
||||
* The remote submix module "audio.r_submix.default" must be installed on the device.
|
||||
* The device must be provisioned with HDCP keys (for protected content).
|
||||
-->
|
||||
<bool name="config_enableWifiDisplay">true</bool>
|
||||
|
||||
</resources>
|
||||
@@ -0,0 +1,66 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/*
|
||||
** Copyright (C) 2016 The CyanogenMod Project
|
||||
** Copyright (C) 2017-2018 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.
|
||||
*/
|
||||
-->
|
||||
|
||||
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
|
||||
|
||||
<!-- All the capabilities of the LEDs on this device, stored as a bit field.
|
||||
This integer should equal the sum of the corresponding value for each
|
||||
of the following capabilities present:
|
||||
|
||||
// Device has a color adjustable battery light.
|
||||
LIGHTS_RGB_NOTIFICATION_LED = 1
|
||||
|
||||
// Device has a color adjustable notification light.
|
||||
LIGHTS_RGB_BATTERY_LED = 2
|
||||
|
||||
LIGHTS_MULTIPLE_NOTIFICATION_LED = 4 (deprecated)
|
||||
|
||||
// The notification light has adjustable pulsing capability.
|
||||
LIGHTS_PULSATING_LED = 8
|
||||
|
||||
// Device has a multi-segment battery light that is able to
|
||||
// use the light brightness value to determine how many
|
||||
// segments to show (in order to represent battery level).
|
||||
LIGHTS_SEGMENTED_BATTERY_LED = 16
|
||||
|
||||
// The notification light supports HAL adjustable brightness
|
||||
// via the alpha channel.
|
||||
// Note: if a device notification light supports LIGHTS_RGB_NOTIFICATION_LED
|
||||
// then HAL support is not necessary for brightness control. In this case,
|
||||
// brightness support will be provided by lineage-sdk through the scaling of
|
||||
// RGB color values.
|
||||
LIGHTS_ADJUSTABLE_NOTIFICATION_LED_BRIGHTNESS = 32
|
||||
|
||||
// Device has a battery light.
|
||||
LIGHTS_BATTERY_LED = 64
|
||||
|
||||
// The battery light supports HAL adjustable brightness via
|
||||
// the alpha channel.
|
||||
// Note: if a device battery light supports LIGHTS_RGB_BATTERY_LED then HAL
|
||||
// support is not necessary for brightness control. In this case,
|
||||
// brightness support will be provided by lineage-sdk through the scaling of
|
||||
// RGB color values.
|
||||
LIGHTS_ADJUSTABLE_BATTERY_LED_BRIGHTNESS = 128
|
||||
|
||||
For example, a device with notification and battery lights that supports
|
||||
pulsating and RGB control would set this config to 75. -->
|
||||
<integer name="config_deviceLightCapabilities">75</integer>
|
||||
|
||||
</resources>
|
||||
@@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2020-2024 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.
|
||||
-->
|
||||
<resources>
|
||||
<!-- Whether to show a preference item for regulatory information in About phone -->
|
||||
<bool name="config_show_regulatory_info">true</bool>
|
||||
|
||||
<!-- Whether to show volume steps settings -->
|
||||
<bool name="config_supports_volume_steps" translatable="false">true</bool>
|
||||
|
||||
<!-- Show battery cycle count -->
|
||||
<bool name="config_show_battery_cycle_count" translatable="false">true</bool>
|
||||
|
||||
<!-- Show battery Design Capacity -->
|
||||
<bool name="config_show_battery_design_capacity">false</bool>
|
||||
|
||||
<!-- Show battery Maximum Capacity -->
|
||||
<bool name="config_show_battery_maximum_capacity">false</bool>
|
||||
</resources>
|
||||
@@ -78,17 +78,10 @@
|
||||
regularly selected color mode will be used if this value is negative. -->
|
||||
<integer name="config_accessibilityColorMode">2</integer>
|
||||
|
||||
<!-- Boolean indicating whether the HWC setColorTransform function can be performed efficiently
|
||||
in hardware. -->
|
||||
<bool name="config_setColorTransformAccelerated">true</bool>
|
||||
|
||||
<!-- Boolean indicating if restoring network selection should be skipped -->
|
||||
<!-- The restoring is handled by modem if it is true -->
|
||||
<bool translatable="false" name="skip_restoring_network_selection">true</bool>
|
||||
|
||||
<!-- Set to true to add links to Cell Broadcast app from Settings and MMS app. -->
|
||||
<bool name="config_cellBroadcastAppLinks">true</bool>
|
||||
|
||||
<!-- Is the notification LED intrusive? Used to decide if there should be a disable option -->
|
||||
<bool name="config_intrusiveNotificationLed">true</bool>
|
||||
|
||||
@@ -148,9 +141,6 @@
|
||||
device does not support multiple advertisement-->
|
||||
<integer translatable="false" name="config_bluetooth_max_advertisers">4</integer>
|
||||
|
||||
<!-- Operating voltage for bluetooth controller. 0 by default-->
|
||||
<integer translatable="false" name="config_bluetooth_operating_voltage_mv">3300</integer>
|
||||
|
||||
<!-- Boolean indicating if current platform supports HFP inband ringing -->
|
||||
<bool name="config_bluetooth_hfp_inband_ringing_support">true</bool>
|
||||
|
||||
@@ -201,13 +191,6 @@
|
||||
<item>"9,1"</item>
|
||||
</string-array>
|
||||
|
||||
<!-- If the hardware supports specially marking packets that caused a wakeup of the
|
||||
main CPU, set this value to the mark used. -->
|
||||
<integer name="config_networkWakeupPacketMark">0x80000000</integer>
|
||||
|
||||
<!-- Mask to use when checking skb mark defined in config_networkWakeupPacketMark above. -->
|
||||
<integer name="config_networkWakeupPacketMask">0x80000000</integer>
|
||||
|
||||
<!-- Vibrator pattern for feedback about a long screen/key press -->
|
||||
<integer-array name="config_longPressVibePattern">
|
||||
<item>8</item>
|
||||
@@ -294,27 +277,19 @@
|
||||
|
||||
<!-- Default list of files pinned by the Pinner Service -->
|
||||
<string-array translatable="false" name="config_defaultPinnerServiceFiles">
|
||||
<item>"/system/framework/arm64/boot-framework.oat"</item>
|
||||
<item>"/system/framework/framework.jar"</item>
|
||||
<item>"/system/framework/oat/arm64/services.odex"</item>
|
||||
<item>"/system/framework/services.jar"</item>
|
||||
<item>"/apex/com.android.art/javalib/core-oj.jar"</item>
|
||||
<item>"/apex/com.android.art/javalib/core-libart.jar"</item>
|
||||
<item>"/apex/com.android.media/javalib/updatable-media.jar"</item>
|
||||
</string-array>
|
||||
|
||||
<!-- Should the pinner service pin the Camera application? -->
|
||||
<bool name="config_pinnerCameraApp">true</bool>
|
||||
|
||||
<!-- List of files pinned by the Pinner Service with the JIT Zygote boot image b/119800099 -->
|
||||
<string-array translatable="false" name="config_jitzygoteBootImagePinnerServiceFiles">
|
||||
<item>"/system/framework/framework.jar"</item>
|
||||
<item>"/system/framework/services.jar"</item>
|
||||
<item>"/apex/com.android.art/javalib/core-oj.jar"</item>
|
||||
<item>"/apex/com.android.art/javalib/core-libart.jar"</item>
|
||||
<item>"/apex/com.android.media/javalib/updatable-media.jar"</item>
|
||||
<item>"/system_ext/priv-app/SystemUIGoogle/SystemUIGoogle.apk"</item>
|
||||
<item>"/system_ext/priv-app/MotoDolbyDax3/MotoDolbyDax3.apk"</item>
|
||||
<item>"/system_ext/priv-app/daxService/daxService.apk"</item>
|
||||
<item>"/system/bin/surfaceflinger"</item>
|
||||
</string-array>
|
||||
|
||||
<!-- Should the pinner service pin the Home application? -->
|
||||
<bool name="config_pinnerHomeApp">true</bool>
|
||||
|
||||
<!-- Enable system navigation keys. -->
|
||||
<bool name="config_supportSystemNavigationKeys">true</bool>
|
||||
|
||||
@@ -329,4 +304,31 @@
|
||||
|
||||
<!-- Brand value for attestation of misprovisioned device. -->
|
||||
<string name="config_misprovisionedBrandValue" translatable="false">htc</string>
|
||||
|
||||
<!-- List of biometric sensors on the device, in decreasing strength. Consumed by AuthService
|
||||
when registering authenticators with BiometricService. Format must be ID:Modality:Strength,
|
||||
where: IDs are unique per device, Modality as defined in BiometricAuthenticator.java,
|
||||
and Strength as defined in Authenticators.java -->
|
||||
<string-array name="config_biometric_sensors" translatable="false" >
|
||||
<item>0:2:15</item> <!-- ID0:Fingerprint:Strong -->
|
||||
</string-array>
|
||||
|
||||
<!-- Specify if the fingerprint hardware support gestures-->
|
||||
<bool name="config_fingerprintSupportsGestures">true</bool>
|
||||
|
||||
<!-- Whether Hearing Aid profile is supported -->
|
||||
<bool name="config_hearing_aid_profile_supported">true</bool>
|
||||
|
||||
<string-array name="config_nightDisplayColorTemperatureCoefficients">
|
||||
<!-- R a-coefficient --> <item>0.0</item>
|
||||
<!-- R b-coefficient --> <item>0.0</item>
|
||||
<!-- R y-intercept --> <item>1.0</item>
|
||||
<!-- G a-coefficient --> <item>-0.000000014365268757</item>
|
||||
<!-- G b-coefficient --> <item>0.000255092801250106</item>
|
||||
<!-- G y-intercept --> <item>-0.064156942434907716</item>
|
||||
<!-- B a-coefficient --> <item>-0.000000000910931179</item>
|
||||
<!-- B b-coefficient --> <item>0.000207598323269139</item>
|
||||
<!-- B y-intercept --> <item>-0.349361641294833436</item>
|
||||
</string-array>
|
||||
|
||||
</resources>
|
||||
|
||||
@@ -1,16 +1,13 @@
|
||||
/*
|
||||
*
|
||||
* Copyright (c) 2013, The Linux Foundation. All rights reserved.
|
||||
* Not a Contribution, Apache license notifications and license are retained
|
||||
* for attribution purposes only.
|
||||
*
|
||||
* Copyright (C) 2012 The Android Open Source Project
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/**
|
||||
* Copyright 2020, 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
|
||||
* 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,
|
||||
@@ -18,14 +15,10 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef _BDROID_BUILDCFG_H
|
||||
#define _BDROID_BUILDCFG_H
|
||||
|
||||
// Google VSC spec support
|
||||
#define BLE_VND_INCLUDED TRUE
|
||||
|
||||
// QCOM power management workaround
|
||||
#define BT_CLEAN_TURN_ON_DISABLED TRUE
|
||||
|
||||
#endif
|
||||
-->
|
||||
<resources>
|
||||
<!-- Default screen brightness, from 0 to 255. 102 is 40%. -->
|
||||
<integer name="def_screen_brightness">82</integer>
|
||||
<!-- Set the automatic brightness mode on by default -->
|
||||
<bool name="def_screen_brightness_automatic_mode">true</bool>
|
||||
</resources>
|
||||
@@ -43,4 +43,17 @@
|
||||
|
||||
<!-- Doze: whether the double tap sensor reports 2D touch coordinates -->
|
||||
<bool name="doze_double_tap_reports_touch_coordinates">true</bool>
|
||||
|
||||
<!-- Whether to show a warning notification when device's skin temperature is high. -->
|
||||
<integer name="config_showTemperatureWarning">1</integer>
|
||||
|
||||
<!-- Whether to show a alarm dialog when device's usb port is overheating. -->
|
||||
<integer name="config_showUsbPortAlarm">1</integer>
|
||||
|
||||
<!-- Should we vibrate on an icon animation of the shelf. This should only be active if the
|
||||
vibrator is capable of subtle vibrations -->
|
||||
<bool name="config_vibrateOnIconAnimation">true</bool>
|
||||
|
||||
<!-- Whether the mobile signal icon pipeline should ignore IWlan status -->
|
||||
<bool name="config_mobileIconIgnoresIWlan">true</bool>
|
||||
</resources>
|
||||
|
||||
@@ -17,4 +17,7 @@
|
||||
<resources>
|
||||
<!-- Whether to show a preference item for mobile plan -->
|
||||
<bool name="config_show_mobile_plan">false</bool>
|
||||
|
||||
<!-- Whether to show Camera laser sensor switch in Developer Options -->
|
||||
<bool name="config_show_camera_laser_sensor">true</bool>
|
||||
</resources>
|
||||
|
||||
30
overlay/packages/apps/Settings/res/values/config.xml
Normal file
30
overlay/packages/apps/Settings/res/values/config.xml
Normal file
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright 2018 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.
|
||||
-->
|
||||
|
||||
<resources>
|
||||
<!-- The number of vibration intensity levels supported by the device.
|
||||
Note that this should correspond to the ability to vary the vibration amplitude, with
|
||||
enough dynamic range to have at least as many distinct intensity levels as defined here.
|
||||
Supported values are 1, 2, 3. If '1', the settings app will use a toggle for the settings,
|
||||
otherwise a slider. If '3', the settings app maps intensities directly to the levels
|
||||
supported by the Vibrator HAL APIs. If '2', then the levels will be mapped to
|
||||
VIBRATION_INTENSITY_LOW and VIBRATION_INTENSITY_HIGH, which gives the most range for
|
||||
scaling vibrations. The medium intensity will be skipped.
|
||||
The default intensity values are configured at
|
||||
frameworks/base/core/res/res/values/config.xml's config_default[type]VibrationIntensity.
|
||||
Make sure that each default intensity value is consistent with the supported levels set
|
||||
here. If this settings supports only 2 levels, for example, then the default intensity
|
||||
should be either LOW (1) or HIGH (3).
|
||||
-->
|
||||
<integer name="config_vibration_supported_intensity_levels">3</integer>
|
||||
</resources>
|
||||
@@ -32,4 +32,7 @@
|
||||
|
||||
<!-- String indicating the package name of the device ImsService implementation for RCS. -->
|
||||
<string name="config_ims_rcs_package" translatable="false">com.android.service.ims</string>
|
||||
|
||||
<!-- The package name for the platform carrier config app, bundled with system image. -->
|
||||
<string name="platform_carrier_config_package" translatable="false">com.google.android.carrier</string>
|
||||
</resources>
|
||||
|
||||
11
permissions/pixel_permissions_product.xml
Normal file
11
permissions/pixel_permissions_product.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<permissions>
|
||||
<privapp-permissions package="com.google.android.wfcactivation">
|
||||
<permission name="android.permission.CONNECTIVITY_INTERNAL"/>
|
||||
<permission name="android.permission.CONNECTIVITY_USE_RESTRICTED_NETWORKS"/>
|
||||
<permission name="android.permission.MODIFY_PHONE_STATE"/>
|
||||
<permission name="android.permission.READ_LOGS"/>
|
||||
<permission name="android.permission.READ_PRIVILEGED_PHONE_STATE"/>
|
||||
<permission name="android.permission.WRITE_APN_SETTINGS"/>
|
||||
</privapp-permissions>
|
||||
</permissions>
|
||||
@@ -1,10 +0,0 @@
|
||||
# All the partitions to be wiped (in order) under recovery.
|
||||
/dev/block/bootdevice/by-name/system_a
|
||||
/dev/block/bootdevice/by-name/system_b
|
||||
/dev/block/bootdevice/by-name/vendor_a
|
||||
/dev/block/bootdevice/by-name/vendor_b
|
||||
/dev/block/bootdevice/by-name/userdata
|
||||
# Wipe the boot partitions last so that all partitions will be wiped
|
||||
# correctly even if the wiping process gets interrupted by a force boot.
|
||||
/dev/block/bootdevice/by-name/boot_a
|
||||
/dev/block/bootdevice/by-name/boot_b
|
||||
9
rro_overlays/ConnectivityOverlay/Android.bp
Normal file
9
rro_overlays/ConnectivityOverlay/Android.bp
Normal file
@@ -0,0 +1,9 @@
|
||||
package {
|
||||
default_applicable_licenses: ["Android-Apache-2.0"],
|
||||
}
|
||||
|
||||
runtime_resource_overlay {
|
||||
name: "ConnectivityOverlay",
|
||||
sdk_version: "current",
|
||||
product_specific: true
|
||||
}
|
||||
27
rro_overlays/ConnectivityOverlay/AndroidManifest.xml
Normal file
27
rro_overlays/ConnectivityOverlay/AndroidManifest.xml
Normal file
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2021 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.
|
||||
-->
|
||||
<!-- Pixel specific connectivity overlays -->
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.android.connectivity.resources.overlay"
|
||||
android:versionCode="1"
|
||||
android:versionName="1.0">
|
||||
<application android:hasCode="false" />
|
||||
<overlay
|
||||
android:targetPackage="com.android.connectivity.resources"
|
||||
android:targetName="ServiceConnectivityResourcesConfig"
|
||||
android:isStatic="true"
|
||||
android:priority="0"/>
|
||||
</manifest>
|
||||
26
rro_overlays/ConnectivityOverlay/res/values/config.xml
Normal file
26
rro_overlays/ConnectivityOverlay/res/values/config.xml
Normal file
@@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/*
|
||||
* Copyright (C) 2021 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.
|
||||
*/
|
||||
-->
|
||||
<resources>
|
||||
<!-- If the hardware supports specially marking packets that caused a wakeup of the
|
||||
main CPU, set this value to the mark used. -->
|
||||
<integer translatable="false" name="config_networkWakeupPacketMark">0x80000000</integer>
|
||||
|
||||
<!-- Mask to use when checking skb mark defined in config_networkWakeupPacketMark above. -->
|
||||
<integer translatable="false" name="config_networkWakeupPacketMask">0x80000000</integer>
|
||||
</resources>
|
||||
@@ -26,13 +26,6 @@
|
||||
<!-- Boolean indicating whether the wifi chipset has background scan support -->
|
||||
<bool translatable="false" name="config_wifi_background_scan_support">true</bool>
|
||||
|
||||
<!-- Integer thresholds, do not connect to APs with RSSI lower than these values -->
|
||||
<integer translatable="false" name="config_wifi_framework_wifi_score_entry_rssi_threshold_5GHz">-77</integer>
|
||||
<integer translatable="false" name="config_wifi_framework_wifi_score_entry_rssi_threshold_24GHz">-80</integer>
|
||||
<!-- Integer thresholds for low network score, should be somewhat less than the entry thresholds -->
|
||||
<integer translatable="false" name="config_wifi_framework_wifi_score_bad_rssi_threshold_5GHz">-80</integer>
|
||||
<integer translatable="false" name="config_wifi_framework_wifi_score_bad_rssi_threshold_24GHz">-83</integer>
|
||||
|
||||
<!-- Boolean indicating whether or not to revert to default country code when cellular
|
||||
radio is unable to find any MCC information to infer wifi country code from -->
|
||||
<bool translatable="false" name="config_wifi_revert_country_code_on_cellular_loss">false</bool>
|
||||
@@ -85,4 +78,10 @@
|
||||
<!-- Boolean indicating whether framework needs to set the tx power limit for meeting SAR
|
||||
requirements -->
|
||||
<bool translatable="false" name="config_wifi_framework_enable_sar_tx_power_limit">true</bool>
|
||||
|
||||
<!-- Whether to use the explicit vendor HAL API: IWifiStaIface.setRoamingState for disabling fw roaming. -->
|
||||
<bool translatable="false" name="config_wifiUseHalApiToDisableFwRoaming">true</bool>
|
||||
|
||||
<!-- Indicate the driver support NL80211_REG_CHANGED event. -->
|
||||
<bool translatable="false" name="config_wifiDriverSupportedNl80211RegChangedEvent">true</bool>
|
||||
</resources>
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
dontaudit priv_app device:dir read;
|
||||
dontaudit priv_app proc_interrupts:file read;
|
||||
dontaudit priv_app proc_modules:file read;
|
||||
dontaudit priv_app proc_version:file read;
|
||||
|
||||
1
sepolicy/public/attributes
Normal file
1
sepolicy/public/attributes
Normal file
@@ -0,0 +1 @@
|
||||
hal_attribute_lineage(dms)
|
||||
1
sepolicy/vendor/attributes
vendored
Normal file
1
sepolicy/vendor/attributes
vendored
Normal file
@@ -0,0 +1 @@
|
||||
attribute vendor_persist_type;
|
||||
48
sepolicy/vendor/certs/app.x509.pem
vendored
48
sepolicy/vendor/certs/app.x509.pem
vendored
@@ -1,27 +1,25 @@
|
||||
-----BEGIN CERTIFICATE-----
|
||||
MIIEqDCCA5CgAwIBAgIJANWFuGx90071MA0GCSqGSIb3DQEBBAUAMIGUMQswCQYD
|
||||
VQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4g
|
||||
VmlldzEQMA4GA1UEChMHQW5kcm9pZDEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UE
|
||||
AxMHQW5kcm9pZDEiMCAGCSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbTAe
|
||||
Fw0wODA0MTUyMzM2NTZaFw0zNTA5MDEyMzM2NTZaMIGUMQswCQYDVQQGEwJVUzET
|
||||
MBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEQMA4G
|
||||
A1UEChMHQW5kcm9pZDEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9p
|
||||
ZDEiMCAGCSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbTCCASAwDQYJKoZI
|
||||
hvcNAQEBBQADggENADCCAQgCggEBANbOLggKv+IxTdGNs8/TGFy0PTP6DHThvbbR
|
||||
24kT9ixcOd9W+EaBPWW+wPPKQmsHxajtWjmQwWfna8mZuSeJS48LIgAZlKkpFeVy
|
||||
xW0qMBujb8X8ETrWy550NaFtI6t9+u7hZeTfHwqNvacKhp1RbE6dBRGWynwMVX8X
|
||||
W8N1+UjFaq6GCJukT4qmpN2afb8sCjUigq0GuMwYXrFVee74bQgLHWGJwPmvmLHC
|
||||
69EH6kWr22ijx4OKXlSIx2xT1AsSHee70w5iDBiK4aph27yH3TxkXy9V89TDdexA
|
||||
cKk/cVHYNnDBapcavl7y0RiQ4biu8ymM8Ga/nmzhRKya6G0cGw8CAQOjgfwwgfkw
|
||||
HQYDVR0OBBYEFI0cxb6VTEM8YYY6FbBMvAPyT+CyMIHJBgNVHSMEgcEwgb6AFI0c
|
||||
xb6VTEM8YYY6FbBMvAPyT+CyoYGapIGXMIGUMQswCQYDVQQGEwJVUzETMBEGA1UE
|
||||
CBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEQMA4GA1UEChMH
|
||||
QW5kcm9pZDEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9pZDEiMCAG
|
||||
CSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbYIJANWFuGx90071MAwGA1Ud
|
||||
EwQFMAMBAf8wDQYJKoZIhvcNAQEEBQADggEBABnTDPEF+3iSP0wNfdIjIz1AlnrP
|
||||
zgAIHVvXxunW7SBrDhEglQZBbKJEk5kT0mtKoOD1JMrSu1xuTKEBahWRbqHsXcla
|
||||
XjoBADb0kkjVEJu/Lh5hgYZnOjvlba8Ld7HCKePCVePoTJBdI4fvugnL8TsgK05a
|
||||
IskyY0hKI9L8KfqfGTl1lzOv2KoWD0KWwtAWPoGChZxmQ+nBli+gwYMzM1vAkP+a
|
||||
ayLe0a1EQimlOalO762r0GXO0ks+UeXde2Z4e+8S/pf7pITEI/tP+MxJTALw9QUW
|
||||
Ev9lKTk+jkbqxbsh8nfBUapfKqYn0eidpwq2AzVp3juYl7//fKnaPhJD9gs=
|
||||
MIIEQzCCAyugAwIBAgIJAMLgh0ZkSjCNMA0GCSqGSIb3DQEBBAUAMHQxCzAJBgNV
|
||||
BAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1Nb3VudGFpbiBW
|
||||
aWV3MRQwEgYDVQQKEwtHb29nbGUgSW5jLjEQMA4GA1UECxMHQW5kcm9pZDEQMA4G
|
||||
A1UEAxMHQW5kcm9pZDAeFw0wODA4MjEyMzEzMzRaFw0zNjAxMDcyMzEzMzRaMHQx
|
||||
CzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1Nb3Vu
|
||||
dGFpbiBWaWV3MRQwEgYDVQQKEwtHb29nbGUgSW5jLjEQMA4GA1UECxMHQW5kcm9p
|
||||
ZDEQMA4GA1UEAxMHQW5kcm9pZDCCASAwDQYJKoZIhvcNAQEBBQADggENADCCAQgC
|
||||
ggEBAKtWLgDYO6IIrgqWbxJOKdoR8qtW0I9Y4sypEwPpt1TTcvZApxsdyxMJZ2JO
|
||||
Rland2qSGT2y5b+3JKkedxiLDmpHpDsz2WCbdxgxRczfey5YZnTJ4VZbH0xqWVW/
|
||||
8lGmPav5xVwnIiJS6HXk+BVKZF+JcWjAsb/GEuq/eFdpuzSqeYTcfi6idkyugwfY
|
||||
wXFU1+5fZKUaRKYCwkkFQVfcAs1fXA5V+++FGfvjJ/CxURaSxaBvGdGDhfXE28LW
|
||||
uT9ozCl5xw4Yq5OGazvV24mZVSoOO0yZ31j7kYvtwYK6NeADwbSxDdJEqO4k//0z
|
||||
OHKrUiGYXtqw/A0LFFtqoZKFjnkCAQOjgdkwgdYwHQYDVR0OBBYEFMd9jMIhF1Yl
|
||||
mn/Tgt9r45jk14alMIGmBgNVHSMEgZ4wgZuAFMd9jMIhF1Ylmn/Tgt9r45jk14al
|
||||
oXikdjB0MQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UE
|
||||
BxMNTW91bnRhaW4gVmlldzEUMBIGA1UEChMLR29vZ2xlIEluYy4xEDAOBgNVBAsT
|
||||
B0FuZHJvaWQxEDAOBgNVBAMTB0FuZHJvaWSCCQDC4IdGZEowjTAMBgNVHRMEBTAD
|
||||
AQH/MA0GCSqGSIb3DQEBBAUAA4IBAQBt0lLO74UwLDYKqs6Tm8/yzKkEu116FmH4
|
||||
rkaymUIE0P9KaMftGlMexFlaYjzmB2OxZyl6euNXEsQH8gjwyxCUKRJNexBiGcCE
|
||||
yj6z+a1fuHHvkiaai+KL8W1EyNmgjmyy8AW7P+LLlkR+ho5zEHatRbM/YAnqGcFh
|
||||
5iZBqpknHf1SKMXFh4dd239FJ1jWYfbMDMy3NS5CTMQ2XFI1MvcyUTdZPErjQfTb
|
||||
Qe3aDQsQcafEQPD+nqActifKZ0Np0IS9L9kR/wbNvyz6ENwPiTrjV2KRkEjH78ZM
|
||||
cUQXg0L3BYHJ3lc69Vs5Ddf9uUGGMYldX3WfMBEmh/9iFBDAaTCK
|
||||
-----END CERTIFICATE-----
|
||||
|
||||
3
sepolicy/vendor/dataservice_app.te
vendored
3
sepolicy/vendor/dataservice_app.te
vendored
@@ -8,3 +8,6 @@ binder_call(dataservice_app, cnd)
|
||||
binder_call(dataservice_app, hal_rcsservice)
|
||||
|
||||
allow dataservice_app cgroup:file w_file_perms;
|
||||
allow dataservice_app system_data_file:dir search;
|
||||
|
||||
r_dir_file(dataservice_app, user_profile_root_file)
|
||||
|
||||
1
sepolicy/vendor/device.te
vendored
1
sepolicy/vendor/device.te
vendored
@@ -1,7 +1,6 @@
|
||||
type ab_block_device, dev_type;
|
||||
type at_device, dev_type;
|
||||
type avtimer_device, dev_type;
|
||||
type bt_device, dev_type;
|
||||
type diag_device, dev_type, mlstrustedobject;
|
||||
type dsp_device, dev_type;
|
||||
type easel_device, dev_type;
|
||||
|
||||
2
sepolicy/vendor/file.te
vendored
2
sepolicy/vendor/file.te
vendored
@@ -11,6 +11,7 @@ type sysfs_msm_subsys_restart, sysfs_type, fs_type;
|
||||
type sysfs_msm_wlan, sysfs_type, fs_type;
|
||||
type sysfs_rmtfs, sysfs_type, fs_type;
|
||||
type sysfs_soc, sysfs_type, fs_type;
|
||||
type sysfs_soc_sensitive, sysfs_type, fs_type;
|
||||
type sysfs_scsi_devices_0000, sysfs_type, fs_type;
|
||||
type sysfs_scsi_devices_other, sysfs_type, fs_type;
|
||||
type sysfs_timestamp_switch, sysfs_type, fs_type;
|
||||
@@ -59,7 +60,6 @@ type persist_data_file, file_type;
|
||||
type persist_display_file, file_type;
|
||||
type persist_drm_file, file_type;
|
||||
type persist_elabel_file, file_type;
|
||||
type persist_haptics_file, file_type;
|
||||
type persist_rfs_file, file_type;
|
||||
type persist_sensors_file, file_type;
|
||||
type persist_time_file, file_type;
|
||||
|
||||
6
sepolicy/vendor/file_contexts
vendored
6
sepolicy/vendor/file_contexts
vendored
@@ -97,6 +97,7 @@
|
||||
|
||||
/dev/block/platform/soc/1da4000\.ufshc/by-name/ssd u:object_r:ssd_block_device:s0
|
||||
|
||||
/dev/block/platform/soc/1da4000\.ufshc/by-name/product_[ab] u:object_r:system_block_device:s0
|
||||
/dev/block/platform/soc/1da4000\.ufshc/by-name/system_[ab] u:object_r:system_block_device:s0
|
||||
/dev/block/platform/soc/1da4000\.ufshc/by-name/vendor_[ab] u:object_r:system_block_device:s0
|
||||
|
||||
@@ -272,7 +273,6 @@
|
||||
/persist/display(/.*)? u:object_r:persist_display_file:s0
|
||||
/persist/drm(/.*)? u:object_r:persist_drm_file:s0
|
||||
/persist/elabel(/.*)? u:object_r:persist_elabel_file:s0
|
||||
/persist/haptics(/.*)? u:object_r:persist_haptics_file:s0
|
||||
/persist/hlos_rfs(/.*)? u:object_r:persist_rfs_file:s0
|
||||
/persist/rfs(/.*)? u:object_r:persist_rfs_file:s0
|
||||
/persist/sensors(/.*)? u:object_r:persist_sensors_file:s0
|
||||
@@ -281,3 +281,7 @@
|
||||
|
||||
# b/70518189 vDSO experiments
|
||||
/sys/module/vdso/parameters u:object_r:sysfs_vdso:s0
|
||||
|
||||
# Dolby
|
||||
/data/vendor/dolby(/.*)? u:object_r:vendor_data_file:s0
|
||||
/(vendor|system/vendor)/bin/hw/vendor\.dolby\.hardware\.dms@2\.0-service u:object_r:hal_dms_default_exec:s0
|
||||
|
||||
4
sepolicy/vendor/genfs_contexts
vendored
4
sepolicy/vendor/genfs_contexts
vendored
@@ -56,6 +56,7 @@ genfscon sysfs /devices/virtual/graphics/fb1 u:object
|
||||
genfscon sysfs /devices/virtual/misc/mnh_sm u:object_r:sysfs_easel:s0
|
||||
genfscon sysfs /devices/soc/8c0000.qcom,msm-cam u:object_r:sysfs_camera:s0
|
||||
genfscon sysfs /devices/soc0 u:object_r:sysfs_soc:s0
|
||||
genfscon sysfs /devices/soc0/serial_number u:object_r:sysfs_soc_sensitive:s0
|
||||
genfscon sysfs /devices/soc/caa0000.qcom,jpeg u:object_r:sysfs_camera:s0
|
||||
genfscon sysfs /devices/soc/caa4000.qcom,fd u:object_r:sysfs_camera:s0
|
||||
genfscon sysfs /devices/soc/800f000.qcom,spmi/spmi-0/spmi0-02/800f000.qcom,spmi:qcom,pmi8998@2:qpnp,fg u:object_r:sysfs_batteryinfo:s0
|
||||
@@ -72,6 +73,9 @@ genfscon sysfs /class/typec/usbc0 u:object
|
||||
genfscon sysfs /devices/soc/a800000.ssusb/a800000.dwc3/xhci-hcd.0.auto/usb1 u:object_r:sysfs_usb_device:s0
|
||||
genfscon sysfs /devices/soc/a800000.ssusb/a800000.dwc3/xhci-hcd.0.auto/usb2 u:object_r:sysfs_usb_device:s0
|
||||
|
||||
genfscon sysfs /devices/soc/800f000.qcom,spmi/spmi-0/spmi0-02/800f000.qcom,spmi:qcom,pmi8998@2:qcom,qpnp-smb2/extcon u:object_r:sysfs_extcon:s0
|
||||
genfscon sysfs /devices/soc/800f000.qcom,spmi/spmi-0/spmi0-02/800f000.qcom,spmi:qcom,pmi8998@2:qcom,usb-pdphy@1700/extcon u:object_r:sysfs_extcon:s0
|
||||
|
||||
genfscon sysfs /devices/soc/800f000.qcom,spmi/spmi-0/spmi0-02/800f000.qcom,spmi:qcom,pmi8998@2:qcom,usb-pdphy@1700/usbpd0/typec u:object_r:sysfs_usb_c:s0
|
||||
genfscon sysfs /module/diagchar u:object_r:sysfs_diag:s0
|
||||
genfscon sysfs /kernel/irq_helper/irq_blacklist_on u:object_r:sysfs_irq:s0
|
||||
|
||||
3
sepolicy/vendor/hal_audio_default.te
vendored
3
sepolicy/vendor/hal_audio_default.te
vendored
@@ -8,3 +8,6 @@ hal_client_domain(hal_audio_default, hal_power)
|
||||
userdebug_or_eng(`
|
||||
allow hal_audio diag_device:chr_file rw_file_perms;
|
||||
')
|
||||
|
||||
allow hal_audio_default hal_dms_hwservice:hwservice_manager find;
|
||||
binder_call(hal_audio_default, hal_dms_default)
|
||||
6
sepolicy/vendor/hal_dms.te
vendored
Normal file
6
sepolicy/vendor/hal_dms.te
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
# HwBinder IPC from client to server, and callbacks
|
||||
binder_call(hal_dms_client, hal_dms_server)
|
||||
binder_call(hal_dms_server, hal_dms_client)
|
||||
|
||||
add_hwservice(hal_dms_server, hal_dms_hwservice)
|
||||
allow hal_dms_client hal_dms_hwservice:hwservice_manager find;
|
||||
11
sepolicy/vendor/hal_dms_default.te
vendored
Normal file
11
sepolicy/vendor/hal_dms_default.te
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
type hal_dms_default, domain;
|
||||
hal_server_domain(hal_dms_default, hal_dms)
|
||||
|
||||
type hal_dms_default_exec, exec_type, vendor_file_type, file_type;
|
||||
init_daemon_domain(hal_dms_default)
|
||||
|
||||
allow hal_dms_default vendor_data_file:file { rw_file_perms create unlink };
|
||||
allow hal_dms_default vendor_data_file:dir { rw_file_perms add_name remove_name };
|
||||
binder_call(hal_dms_default, hal_audio_default)
|
||||
binder_call(hal_dms_default, platform_app)
|
||||
binder_call(hal_dms_default, mediacodec)
|
||||
2
sepolicy/vendor/hal_nfc_default.te
vendored
2
sepolicy/vendor/hal_nfc_default.te
vendored
@@ -4,4 +4,4 @@ allow hal_nfc_default nfc_vendor_data_file:file create_file_perms;
|
||||
|
||||
dontaudit hal_nfc_default nxpese_hwservice:hwservice_manager find;
|
||||
dontaudit hal_nfc_default nxpnfc_hwservice:hwservice_manager { find add };
|
||||
dontaudit hal_nfc_default vendor_nfc_prop:file read;
|
||||
dontaudit hal_nfc_default vendor_nfc_prop:file r_file_perms;
|
||||
|
||||
2
sepolicy/vendor/hal_oemlock_default.te
vendored
2
sepolicy/vendor/hal_oemlock_default.te
vendored
@@ -1,8 +1,6 @@
|
||||
type hal_oemlock_default, domain;
|
||||
hal_server_domain(hal_oemlock_default, hal_oemlock)
|
||||
|
||||
allow hal_oemlock_default hal_bootctl_socket:sock_file write;
|
||||
allow hal_oemlock_default hal_bootctl:unix_stream_socket connectto;
|
||||
|
||||
type hal_oemlock_default_exec, exec_type, vendor_file_type, file_type;
|
||||
init_daemon_domain(hal_oemlock_default)
|
||||
|
||||
1
sepolicy/vendor/hwservice.te
vendored
1
sepolicy/vendor/hwservice.te
vendored
@@ -4,3 +4,4 @@ type vnd_atcmdfwd_hwservice, hwservice_manager_type, vendor_hwservice_type;
|
||||
type hal_imsrtp_hwservice, hwservice_manager_type, vendor_hwservice_type;
|
||||
type nxpnfc_hwservice, hwservice_manager_type, vendor_hwservice_type;
|
||||
type nxpese_hwservice, hwservice_manager_type, vendor_hwservice_type;
|
||||
type hal_dms_hwservice, hwservice_manager_type;
|
||||
|
||||
1
sepolicy/vendor/hwservice_contexts
vendored
1
sepolicy/vendor/hwservice_contexts
vendored
@@ -8,3 +8,4 @@ com.quicinc.cne.api::IApiService u:object_r:hal_c
|
||||
com.quicinc.cne.server::IServer u:object_r:hal_cne_hwservice:s0
|
||||
vendor.nxp.nxpnfc::INxpNfc u:object_r:nxpnfc_hwservice:s0
|
||||
vendor.nxp.nxpese::INxpEse u:object_r:nxpese_hwservice:s0
|
||||
vendor.dolby.hardware.dms::IDms u:object_r:hal_dms_hwservice:s0
|
||||
|
||||
3
sepolicy/vendor/mediacodec.te
vendored
3
sepolicy/vendor/mediacodec.te
vendored
@@ -6,3 +6,6 @@ allow mediacodec system_file:dir r_dir_perms;
|
||||
userdebug_or_eng(`
|
||||
allow mediacodec dumpstate:fd use;
|
||||
')
|
||||
|
||||
allow mediacodec hal_dms_hwservice:hwservice_manager find;
|
||||
binder_call(mediacodec, hal_dms_default)
|
||||
3
sepolicy/vendor/platform_app.te
vendored
3
sepolicy/vendor/platform_app.te
vendored
@@ -0,0 +1,3 @@
|
||||
allow platform_app hal_dms_hwservice:hwservice_manager find;
|
||||
binder_call(platform_app, hal_dms_default)
|
||||
get_prop(platform_app, audio_config_prop)
|
||||
3
sepolicy/vendor/property_contexts
vendored
3
sepolicy/vendor/property_contexts
vendored
@@ -60,6 +60,9 @@ sys.all.modules.ready u:object_r:public_vendor_system_prop:s0
|
||||
sys.qcom.devup u:object_r:public_vendor_system_prop:s0
|
||||
vendor.sys.slpi.firmware.version u:object_r:public_vendor_system_prop:s0
|
||||
|
||||
# fastbootd
|
||||
ro.fastbootd.available u:object_r:exported_default_prop:s0
|
||||
|
||||
# vendor_default_prop
|
||||
# default_prop isn't accessible from vendor components.
|
||||
# So vendor_default_prop should be marked.
|
||||
|
||||
1
sepolicy/vendor/system_server.te
vendored
1
sepolicy/vendor/system_server.te
vendored
@@ -6,6 +6,7 @@ binder_call(system_server, hal_camera_default)
|
||||
allow system_server persist_file:dir search;
|
||||
allow system_server persist_sensors_file:dir search;
|
||||
allow system_server persist_sensors_file:file r_file_perms;
|
||||
allow system_server sysfs_batteryinfo:dir r_dir_perms;
|
||||
allow system_server wlan_device:chr_file rw_file_perms;
|
||||
|
||||
# TODO(b/73123675): BatterySaver needs access to cpufreq. Remove this access
|
||||
|
||||
2
sepolicy/vendor/thermal-engine.te
vendored
2
sepolicy/vendor/thermal-engine.te
vendored
@@ -3,7 +3,7 @@ type thermal-engine_exec, exec_type, vendor_file_type, file_type;
|
||||
|
||||
init_daemon_domain(thermal-engine)
|
||||
|
||||
allow thermal-engine self:capability2 block_suspend;
|
||||
allow thermal-engine self:capability2 { block_suspend wake_alarm };
|
||||
|
||||
# to read /sys/devices
|
||||
allow thermal-engine sysfs:dir r_dir_perms;
|
||||
|
||||
5
sepolicy/vendor/vendor_init.te
vendored
5
sepolicy/vendor/vendor_init.te
vendored
@@ -19,6 +19,11 @@ userdebug_or_eng(`
|
||||
allow vendor_init proc_sysrq:file w_file_perms;
|
||||
')
|
||||
|
||||
get_prop(vendor_init, atfwd_start_prop)
|
||||
get_prop(vendor_init, system_prop)
|
||||
get_prop(vendor_init, post_boot_prop)
|
||||
get_prop(vendor_init, tee_listener_prop)
|
||||
get_prop(vendor_init, wc_prop)
|
||||
set_prop(vendor_init, vendor_bluetooth_prop)
|
||||
set_prop(vendor_init, camera_prop)
|
||||
set_prop(vendor_init, modem_diag_prop)
|
||||
|
||||
1
sepolicy/vendor/vendor_misc_writer.te
vendored
Normal file
1
sepolicy/vendor/vendor_misc_writer.te
vendored
Normal file
@@ -0,0 +1 @@
|
||||
r_dir_file(vendor_misc_writer sysfs_dt_firmware_android)
|
||||
@@ -1,12 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2019 The Android Open Source Project
|
||||
|
||||
<!--
|
||||
Copyright (C) 2024 crDroid Android 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.
|
||||
@@ -14,7 +12,11 @@
|
||||
limitations under the License.
|
||||
-->
|
||||
<config>
|
||||
<component-override package="com.android.bluetooth" >
|
||||
<component class=".sap.SapService" enabled="true" />
|
||||
</component-override>
|
||||
|
||||
<!-- Dolby -->
|
||||
<install-in-user-type package="com.motorola.dolby.dolbyui">
|
||||
<install-in user-type="FULL" />
|
||||
<install-in user-type="PROFILE" />
|
||||
<do-not-install-in user-type="android.os.usertype.profile.CLONE" />
|
||||
</install-in-user-type>
|
||||
</config>
|
||||
14
system.prop
14
system.prop
@@ -62,3 +62,17 @@ persist.data.df.dev_name=rmnet_usb0
|
||||
#ro.use_data_netmgrd=true
|
||||
persist.data.netmgrd.qos.enable=true
|
||||
persist.data.mode=concurrent
|
||||
|
||||
# Soc
|
||||
ro.soc.manufacturer=Qualcomm
|
||||
ro.soc.model=MSM8998
|
||||
|
||||
# VoLTE/VoWIFI props
|
||||
persist.dbg.ims_volte_enable=1
|
||||
persist.dbg.volte_avail_ovr=1
|
||||
persist.dbg.vt_avail_ovr=1
|
||||
persist.dbg.wfc_avail_ovr=1
|
||||
persist.radio.rat_on=combine
|
||||
persist.radio.data_ltd_sys_ind=1
|
||||
persist.radio.data_con_rprt=1
|
||||
persist.radio.calls.on.ims=1
|
||||
@@ -46,7 +46,6 @@
|
||||
/dev/jpeg0 0660 system camera
|
||||
/dev/adsprpc-smd 0664 system system
|
||||
|
||||
/dev/hw_random 0600 root root
|
||||
/dev/sdsprpc-smd 0660 system system
|
||||
|
||||
/dev/wcd-dsp-glink 0660 system audio
|
||||
@@ -111,3 +110,6 @@
|
||||
|
||||
# Storage: for factory reset protection feature
|
||||
/dev/block/platform/soc/1da4000.ufshc/by-name/frp 0660 system system
|
||||
|
||||
# socinfo
|
||||
/sys/devices/soc0 serial_number 0000 root root
|
||||
|
||||
@@ -574,9 +574,9 @@ V1_0::Status UsbGadget::setupFunctions(
|
||||
|
||||
if (addEpollFd(epollFd, eventFd) == -1) return Status::ERROR;
|
||||
|
||||
mEpollFd = move(epollFd);
|
||||
mInotifyFd = move(inotifyFd);
|
||||
mEventFd = move(eventFd);
|
||||
mEpollFd = std::move(epollFd);
|
||||
mInotifyFd = std::move(inotifyFd);
|
||||
mEventFd = std::move(eventFd);
|
||||
gadgetPullup = false;
|
||||
|
||||
// Monitors the ffs paths to pull up the gadget when descriptors are written.
|
||||
|
||||
Reference in New Issue
Block a user