170 Commits

Author SHA1 Message Date
Ionut Gherman
a41bc999ff wahoo: Enable VoLTE/VoWIFI
Signed-off-by: Ionut Gherman <ghermanionut96@gmail.com>
2024-07-22 01:39:11 +08:00
Asriadi Rahim
3e19a2e487 wahoo: Build android.hardware.radio.config@1.0
* Define to manifest for radio config service

Signed-off-by: Asriadi Rahim <asriadirahim03@gmail.com>
2024-07-21 13:47:14 +08:00
Asriadi Rahim
d4a81c4071 wahoo: Enable & Disable several config features
* config_show_regulatory_info
* config_supports_volume_steps
* config_show_battery_cycle_count
* config_show_battery_design_capacity & config_show_battery_maximum_capacity,
  Only show Unavalaible. Ref: 3c8e518f13

Signed-off-by: Asriadi Rahim <asriadirahim03@gmail.com>
2024-07-21 13:47:14 +08:00
Asriadi Rahim
af8c83f33b Revert "wahoo: Split hal version for ISap, IRadio"
This reverts commit fe3f1f9881.
2024-07-21 13:47:14 +08:00
Sundong Ahn
5ba9ec5638 wahoo: Add system properties for surfaceflinger
The configstore will be not used in surfaceflinger. So surfaceflinger
will use the system properties instead of configstore.
For this, the system properties are added.

Bug: 112386364
Test: m -j && boot test
Change-Id: Ie3d2adccca06702217984cf2c9db986d852b7014
2024-07-21 13:47:14 +08:00
Georg Veichtlbauer
f17623c55b wahoo: Build vendor variant of libpower
Change-Id: Id7fe8a2598ffb93be4635424c86100a88aea8780
2024-07-21 13:47:14 +08:00
Chris Fries
f641db3afd wahoo: Set VENDOR_SECURITY_PATCH to platform
Set the VENDOR_SECURITY_PATCH level to match the platform
security patch level. These are functionally the same.

Bug: 125914443
Change-Id: Ib77ab115d6faabd21958c34e2dae49ec96421fdd
2024-07-10 19:00:40 +08:00
Danny Lin
79a0c89b11 wahoo: Build Active Edge service (ElmyraService)
This package provides comprehensive support for the Active Edge squeeze
gesture supported on this device.

Change-Id: I2158c22e727e293e3f02b9ddf614a943848ad587
2024-07-10 18:50:57 +08:00
Asriadi Rahim
04731f37ea wahoo: Define vendor.dolby.hardware.dms in FCM
* The following HALs in device manifest are not declared in FCM <= level 4:
  vendor.dolby.hardware.dms.IDms/default(@2)
  INCOMPATIBLE

Signed-off-by: Asriadi Rahim <asriadirahim03@gmail.com>
2024-07-08 16:33:10 +08:00
Pranav Vashi
55d9660434 wahoo: Add dolby to cloned apps exemption list
Change-Id: I47ab06f7d5152c4c993359ac85d121e41c8df235
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2024-07-08 16:33:10 +08:00
Pranav Vashi
5f0f3d2ca9 wahoo: Update dolby config
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Asriadi Rahim <asriadirahim03@gmail.com>
2024-07-08 16:33:10 +08:00
Pranav Vashi
1e4483c2bb wahoo: Load libstagefrightdolby for dolby codecs
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Asriadi Rahim <asriadirahim03@gmail.com>
2024-07-08 16:33:10 +08:00
Pranav Vashi
b520e3ed96 wahoo: Add Moto Dolby support
Change-Id: I11e837a91e12bc52b102717d0c2f4cf62081b5f7

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Asriadi Rahim <asriadirahim03@gmail.com>
2024-07-08 16:33:08 +08:00
x0x00044
f2a5ca22ad wahoo: overlay: Remove config_cellBroadcastAppLinks
- This is true by default.

Change-Id: I9f91f4bf49995975d434ad8b74b175693409862a
2024-07-08 16:29:13 +08:00
Michael Bestas
be3bc1e616 Partially revert "wahoo: Build android.frameworks.sensorservice@1.0"
This partially reverts commit 9f471ef34bea66c47e2680efe3128c4153b53682.

Change-Id: Iddd2e8142ca62bceef2a11b08a64241580aa5ac1
2024-07-08 16:29:13 +08:00
Steven Moreland
acc85fdc9b wahoo: device FCM -= android.*
Bug: 290408770
Test: N/A
Change-Id: Icc310923f39dfb56a621fe507f0233d76b3e68e0
2024-07-08 16:29:13 +08:00
Rafeeqh Shaik
fe3f1f9881 wahoo: Split hal version for ISap, IRadio
IRadio : 1.4
ISap   : 1.2

Change-Id: Idd7b65749c2dcc256b411da1e2a6c02d74ddefdd
2024-07-08 16:29:13 +08:00
Michael Bestas
1c8d7a8a9d wahoo: Temporarily add android.hardware.light to FCM
Until we have an AIDL light HAL.

Change-Id: Ifba11777232022c135caa9e8a749b6704fbae5e7
2024-07-08 16:29:13 +08:00
Tim Zimmermann
268ca1c729 wahoo: Set manifest target-level to 5
Change-Id: Ic72d17ebdb388dee9e63e27a36190c93c095fb0c
2024-07-08 16:29:13 +08:00
Alexander Koskovich
01b53d4bf8 wahoo: Disable the usage of ConfigStore.
* As per commit 11a113a67e ("Add disable_configstore").

[SebaUbuntu] Remove manifest entry as well

Change-Id: I5482989a8a96227a3e2a5317eacf613c641bfa8e
2024-07-08 16:28:29 +08:00
Stephane Lee
280c89e30f wahoo: health HAL 2.1
Bug: b/137790244
Test: lshal debug (health service)

Co-authored-by: Michael Bestas <mkbestas@lineageos.org>
Change-Id: Id15d203bd791d0867972da98f6998610723b9332
2024-07-08 16:27:27 +08:00
Jooyung Han
9936488172 wahoo: Add hardware/qcom/wlan namespace
With libwifi-hal-qcom migrated to Android.bp with soong namespace
the namespace should be added to PRODUCT_SOONG_NAMESPACES as well.

Bug: 273376293
Test: m droid
Change-Id: I041a57bc6873903895a0b8783eb13106ea224886
2024-07-08 16:27:12 +08:00
Asriadi Rahim
d0f1b3861f wahoo: Build ViMusic
* ViMusic Apps by vfsfitvnm
* https://github.com/vfsfitvnm/ViMusic/releases/latest
2024-06-08 23:03:18 +08:00
Asriadi Rahim
c0eaa8d982 wahoo: Pin SystemUIGoogle instead SystemUI
* Evox use vendor_pixel_framework

Signed-off-by: Asriadi Rahim <asriadirahim03@gmail.com>
2024-06-08 22:54:16 +08:00
Tommaso Fonda
fd742e7f7f wahoo: Build android.hardware.radio.config@1.0-service
* Fixes lags when entering SIM settings.

Change-Id: I8aa19bfacaa242fe9be7d5e25e7df54c64af5516
2024-06-08 22:50:51 +08:00
Michael Bestas
5067358e5e wahoo: Add gs-common to evolution.dependencies
Change-Id: Ic2ce6ef824dd3f41838c3ace08fa7c9da34fcff2
2024-06-08 22:44:01 +08:00
Asriadi Rahim
536a5866d1 wahoo: Track GoogleCamera 8.3
* Latest Gcam doesn't work in wahoo family,
  so we can use version 8.3 from play store
2024-06-08 22:39:18 +08:00
Asriadi Rahim
5f0d7c4cd8 wahoo: Initial Evolution-X 9.x
Signed-off-by: Asriadi Rahim <asriadirahim03@gmail.com>
2024-06-08 22:38:03 +08:00
Derek
95edae2749 wahoo: Use lineage radio 1.4 wrapper
Change-Id: Id51367011e82d7d474eb9fa33d49079f1277fba0
2024-06-08 22:24:28 +08:00
Alessandro Astone
82b5fb02b1 wahoo: Build and enable fastbootd
* fastboot has issues while using USB 3 on wahoo

Change-Id: I0b20600fe7203a7aec19cbea8f6849052585c6ab
2024-06-08 22:22:16 +08:00
basamaryan
3feead23a9 wahoo: Build libprotobuf-cpp-full-3.9.1-vendorcompat
For now this is implicitly built by lineage specific
libprotobuf-cpp-lite-3.9.1-vendorcompat lib, but in the future this
might not be the case.

Change-Id: I724e933e046cbf631c078321d55550b96ca998da
2024-06-08 22:20:19 +08:00
Łukasz Patron
681908af7a wahoo: Build libprotobuf-cpp-lite-3.9.1-vendorcompat
Change-Id: I0aac742db9c2b4b3e48ee20158f19405863893c2
2024-06-08 22:16:36 +08:00
Michael Bestas
6f1e271d35 wahoo: Increase BOARD_SYSTEMIMAGE_EXTFS_INODE_COUNT again
Change-Id: I14b90029d390d1a1c4ca889e9e48ec4ddb7cc005
2024-06-08 22:16:36 +08:00
Ram Chandrasekar
7a39fdde19 wahoo: update thermal HAL makefile path
update thermal HAL makefile path to the new common folder.

Bug: 289146743
Test: presubmit

Change-Id: I4c2b93d37d12de8e0ac01deb9ad21b34e0a2da5c
Signed-off-by: Ram Chandrasekar <rchandrasekar@google.com>
2024-06-08 22:15:44 +08:00
Sebastiano Barezzi
22d68aefab wahoo: Stop explicitely building netutils-wrapper-1.0
* Built by default

Change-Id: Id6666535bb8d0b84d2d0a8d19411fafa49df3d68
2024-06-08 22:15:44 +08:00
basamaryan
01c626ca58 wahoo: Don't explicitly include updatable_apex.mk
It is inherited by base_system.mk as of QPR2

Change-Id: I020a05b233f61ea28d03199cbc76051e6e97e1dc
2024-06-08 22:15:42 +08:00
Yumi Yukimura
b48426294c Revert "wahoo: Switch to legacy WiFi HIDL HAL"
* WiFi AIDL HAL works in U QPR2

This reverts commit ee1c36be2b04cdc4a8ccc178a65ba2a93a60c094.

Change-Id: I4d38fcc7e5999f934344bc364afb4f4d8a049711
2024-06-08 22:14:59 +08:00
Cole Faust
50b12c6126 wahoo: Add BUILD_BROKEN_INCORRECT_PARTITION_IMAGES
Qcom has issues that prevent it from working with a hermetic
partition build.

Bug: 205632228
Test: Presubmits
Change-Id: I490a29da38a6f68e7dd3650d8140cb11adaa8c7a
2024-06-08 22:14:59 +08:00
Tommaso Fonda
4f6aa16c04 wahoo: Ignore IWlan status in the mobile icon pipeline
Some legacy devices such as mata and cheryl lack an IWlan stack. These
devices can set this overlay to true in order not to incorrectly display
a permanent exclamation mark over the mobile network signal icon.

Change-Id: Ife02d90706990bf28c156c9850ef0773802bc5b0
2024-06-08 22:14:05 +08:00
Edwin Moquete
72afdbea53 wahoo: Disable frame rate override feature
This is enabled by default on U, and it causes apps like
Chrome and YouTube to render the frame rate at 30FPS when
playing some videos.

Change-Id: I649bf03d550c2b9726c7957d15ed09e455d874ec
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2024-06-08 22:13:48 +08:00
Asriadi Rahim
77ea6d9d05 wahoo: Move fstab.hardware to separate device tree
Signed-off-by: Asriadi Rahim <asriadirahim03@gmail.com>
2024-06-08 22:13:02 +08:00
luk1337
c583289b0d wahoo: Set ro.hardware.egl to adreno
For whatever reason, after the U QPR1 merge, surfaceflinger is no longer
able to find an OpenGL implementation without this hint.

Change-Id: I59610ce628acb41807bb75b01a8c6cac7d08f740
2024-06-08 22:10:49 +08:00
Asriadi Rahim
44b4f1a682 wahoo: Drop EUICC support
* Temporary drop until we have a good solution

Signed-off-by: Asriadi Rahim <asriadirahim03@gmail.com>
2024-06-08 22:10:49 +08:00
Sebastiano Barezz
cb781488ee wahoo: Switch to two-stage init mounting
* Stop handling vendor mounting from kernel, first stage init is gonna
  do that, together with system (which is now /system)
* Use correct mount flags coming from kernel dts
* Move system and vendor mount points to /dev/block/by-name/, we don't
  have bootdevice symlink to that point in init
* Copy fstab to recovery for first stage init

Change-Id: Iaa0ecc3f13c3cfd3fe357ca509549d0f68a29cf0
2024-06-08 22:10:04 +08:00
Asriadi Rahim
a63e4c4868 wahoo: Enforce privapp-permissions whitelist
* Since privapp-permission set to log on vendor evox, so lets enforce
* ref: 8de3c44fa8/config/common.mk (L137)

Signed-off-by: Asriadi Rahim <asriadirahim03@gmail.com>
2024-06-08 22:10:04 +08:00
0xCAFEBABE
726f2c310b wahoo: Switch to legacy WiFi HIDL HAL
* With the new WiFi AIDL HAL, the framework thinks the device
  supports interface combination for some unknown reason,
  even though the service doesn't advertise it. As a result,
  the WiFi service fails on configureChip method.

Change-Id: I0c3fa7b4c947c3525c30f7cef0b2674bee224da7
2024-06-08 22:10:04 +08:00
Sebastiano Barezzi
96da9e490d wahoo: Raise VINTF target level to 4
Change-Id: I4c4783dc112102f127f3b1d796e206dcac672faf
2024-06-08 22:10:04 +08:00
Christian Hoffmann
9bead714fa wahoo: folio_daemon: PollOnce instead of PollAll
replace ALooper_pollAll with ALooper_pollOnce :
 * Removed in API 34 as ALooper_pollAll can swallow ALooper_wake calls.
 * Use ALooper_pollOnce instead.
2024-06-08 22:09:10 +08:00
Myles Watson
32881c23bf wahoo: Use common sepolicy for bt_device
Bug: 205758693
Test: build
Ignore-AOSP-First: Some devices in internal define bt_device
Change-Id: I712ef4c0096ece9ce519c2b0bce59f7ca67b67fe
2024-06-08 22:09:10 +08:00
Asriadi Rahim
bd7cf95cc1 wahoo: usbGadget.cpp: Fix compilation unqualified call to 'std::move'
device/google/wahoo/usb/UsbGadget.cpp:577:14: warning: unqualified call to 'std::move' [-Wunqualified-std-cast-call]
  mEpollFd = move(epollFd);
             ^
             std::
device/google/wahoo/usb/UsbGadget.cpp:578:16: warning: unqualified call to 'std::move' [-Wunqualified-std-cast-call]
  mInotifyFd = move(inotifyFd);
               ^
               std::
device/google/wahoo/usb/UsbGadget.cpp:579:14: warning: unqualified call to 'std::move' [-Wunqualified-std-cast-call]
  mEventFd = move(eventFd);
             ^
             std::
3 warning generated.

Signed-off-by: Asriadi Rahim <asriadirahim03@gmail.com>
2024-06-08 22:09:10 +08:00
Michael Bestas
d4e28ca0f6 sepolicy: Restrict access to /sys/devices/soc0/serial_number
Change-Id: I6254ef6e160ff0d3c3ce2e51f20f557e75826dff
2024-06-08 22:08:34 +08:00
Michael Bestas
a623f5b101 ueventd: Remove all permissions from /sys/devices/soc0/serial_number
Change-Id: I688347cfe59f56e4de2e4bf3c3324ca465f7a897
2024-06-08 22:08:34 +08:00
Michael Bestas
0e0aebdeef dumpstate: Don't dump serial number
Change-Id: I575db41209d3a5f8088f7388089650a265107b65
2024-06-08 22:08:34 +08:00
ReallySnow
098aec76fc wahoo: Initial minimal privapp permissions
* Used to deal with permission issues caused by Gapps updates

Change-Id: I39661b1250f2f2bfb3d7ce722affe429bcd2de2a
2024-06-08 22:08:34 +08:00
Michael Bestas
844adad717 wahoo: Lower gps debug level
* Kill logcat spam

Change-Id: I20d1f698d3c2d1b56e79f6eb6c5c17069e43c60f
2024-06-08 22:08:34 +08:00
Michael Bestas
8b4f58d2eb wahoo: overlay: Update multiple vibration strength levels overlay for 13
Change-Id: If17503f2dd4bd4d6e333891f9649a7db8d809852
2024-06-08 22:08:34 +08:00
PixelBoot
ae55d1f59b Revert "Disable use_buffer_age to workaround driver issue"
This reverts commit 83759b7709.

* Our Adreno driver is support EGL_KHR_partial_update,
  beginning of the https://android-review.googlesource.com/c/platform/frameworks/base/+/320411,
  the EGL_EXT_buffer_age extension was forcibly enabled
* If disable EGL_EXT_buffer_age extension support, the following OpenGL memory leak will occur:
* W OpenGLRenderer: dequeueBuffer failed, error = -110; switching to fallback

Change-Id: Ie511aa32922cb53a1d70160fe6f0a2dd80cf413c | AOSP
2024-06-08 22:06:50 +08:00
Christian Hoffmann
003779dcc8 wahoo: Switch to xz ramdisk and save some space
Change-Id: I2f5cb3bc78c74e2375f21d663ba2670487e61b1f
2024-06-08 22:06:50 +08:00
Benedict Wong
0df934d055 wahoo: Add feature flag for FEATURE_IPSEC_TUNNELS
This commit adds the IPSEC_TUNNELS feature flag, with XFRM Interfaces
used as the implementation of choice.

Bug: 117183273
Bug: 137629222
Test: Compiles, passes tunnel-mode CTS tests
Test: adb shell pm list features
Change-Id: I19c598947525783850b29d149db85db89f8b347e
2024-06-08 22:06:50 +08:00
Bruno Martins
6b7852bcd8 wahoo: Set block_binder_thread_on_incoming_calls in product.prop
Fails to be set from vendor otherwise:

  init: Do not have permissions to set 'ro.telephony.block_binder_thread_on_incoming_calls' to 'false' in property file '/vendor/build.prop': SELinux permission check failed

Change-Id: I3c3ea61af240557f3b1053497c3ed1403f7ae318
2024-06-08 22:06:50 +08:00
Michael Bestas
475b3f2631 wahoo: Remove bdroid_buildcfg.h
As of I3c7aed1bdb45db728d319f7d757400e44d232283 the Bluetooth stack
defaults to reasonable defaults that should work for all devices.

Change-Id: I056d63c4c8a2727e384172e964dc0000b6773504
2024-06-08 22:06:50 +08:00
Danny Trunk
2a142187d7 wahoo: Do not block binder thread on incoming calls
Change-Id: I6a2c41e35cc3514e60e104d8eb967f331176594e
2024-06-08 22:06:50 +08:00
Christian Hoffmann
c0620b8df6 wahoo: Fix extcon denials
Change-Id: Id18f582875a5e53d94b288a451c7f37212458d03
2024-06-08 22:05:50 +08:00
Eamon Powell
437627f075 wahoo: Remove gps.conf from PRODUCT_PACKAGES
This target doesn't exist anymore

Change-Id: I5dc3bdb62763a4f98eba3e59c30d81f9ae6e1dc6
2024-06-08 22:05:50 +08:00
Georg Veichtlbauer
b98b3c73d4 wahoo: Drop config_setColorTransformAccelerated
It's now enabled by default

Change-Id: I57f059c872fc2ad2fd15e788b1391eeebaff9bde
2024-06-08 22:05:50 +08:00
Les Lee
8b512e664d wahoo: wifi: Configure correct overlay configuration.
ag/16564596 will change default value to false.
Configure correct overlay configuration.

Bug: 212488775
Test: manual test & build
Change-Id: Iaf1a0a23dae69fde5995e591a757a8ef5374d5b5
2024-06-08 22:05:50 +08:00
Woody Lin
f27a685620 wahoo: Enable zygote critical window
Bug: 141948707
Change-Id: I5dc57312118b0f6d95fc9fe164363ec7e15f1b51
2024-06-08 22:05:50 +08:00
Santiago Seifert
3f206007a1 wahoo: Unpin updatable-media from memory
Bug: 214499288
Change-Id: I4823afa45553b9484ad5215d081b0e6635c4b183
Test: Presubmit
2024-06-08 22:05:13 +08:00
Christian Hoffmann
e7652c5c1c wahoo: Cleanup DRM services and hals
* Clearkey and Widevine have their own vintf
* 1.3 drm interface includes the lower versions

Change-Id: I59bd0830b524c7b44fb924ef60e55a11c27b6158
2024-06-08 22:05:13 +08:00
Bruno Martins
8be72e2dd4 wahoo: Migrate to AIDL ClearKey DRM HAL
Change-Id: Iad5cc1176978137c647069197b33f49fb4d98ab2
2024-06-08 22:05:13 +08:00
Bruno Martins
18bedf3c58 wahoo: Drop default DRM service
This is not needed, since Widevine DRM and Clearkey DRM
services are available.

Change-Id: I97023f1bab88ddb8fa4cb205df190c516a759951
2024-06-08 22:05:13 +08:00
Bruno Martins
5809eefd2f wahoo: Drop component overrides
This is no longer needed as of Android 13.

Change-Id: I38435c47c8781678f82014decbbae40dcab0a07b
2024-06-08 22:05:13 +08:00
eorg Veichtlbauer
d909f03d00 wahoo: Move Bluetooth power config away from overlay
Same values go to:
- power profile xml for power calculation
- vendor props for the A13 BT stack

Change-Id: I04dbb8736a599c4798223f7e3e317b2fcc873ded
2024-06-08 22:04:32 +08:00
Alice Kuo
21c2213cca wahoo: Disable LE audio related profiles
Bug: 231671426
Test: build
Change-Id: I78e2ddfc636a0fa31b977b5f9ba9a7d7bc0f2a26
Merged-In: I78e2ddfc636a0fa31b977b5f9ba9a7d7bc0f2a26
(cherry picked from commit acb0b19b8348a4b9518d2f46b1599f423f620347)
2024-06-08 22:04:32 +08:00
Sal Savage
d213da4c1d wahoo: Use the ?= operator so BT properties can be overridden
System properties set with the "=" operator cannot be overriden. This
device is used elsewhere in the system and some of the properties need
to be overridden. The "?=" operator will use the assigned value if no
other values are assigned elsewhere, allowing for overrides.

Bug: 230638462
Test: adb shell getprop | grep bluetooth
Change-Id: Id6cd7901555edafef141bbc1bbd5e06dc3a54d0c
2024-06-08 22:04:32 +08:00
Sal Savage
3bb9e29956 wahoo: Set default the Bluetooth class of device
The class of device is a string with a list of uint8t values:
90,2,12

The meaning is as follows:
{Service Field, Major class, Minor class}

Service Field: 0x5A -> 90
    Bit 17: Networking
    Bit 19: Capturing
    Bit 20: Object Transfer
    Bit 22: Telephony
MAJOR_CLASS: 0x02 -> 2 (Phone)
MINOR_CLASS: 0x0C -> 12 (Smart Phone)

Bug: 217452259
Test: make -j; -- check that bluetooth.device.class_of_device is
correct

Change-Id: I24fd57bacbf6786a26f7079e7a6e9857dbe170d1
2024-06-08 22:04:32 +08:00
Sal Savage
40b3fc92c2 wahoo: Update LE Audio profile properties to match spec and implementation
Bug: 217448211
Test: atest BluetoothInstrumentationTests
Change-Id: I9312b9b70b51603aca6da6f4081533ab73c1614d
2024-06-08 22:04:32 +08:00
Alexander Koskovich
ccbdb73f8f wahoo: Move BT profiles props to vendor
* Makes it GSI compatible

Change-Id: I8f7caf241d508af59c16482e6185c42f23f8a460
2024-06-08 22:03:56 +08:00
Sal Savage
fe6272e4df wahoo: Enable bluetooth profiles with product.prop
Bug: 217448211
Test: make -j
Change-Id: Idd7e52b7822915ed61299f1c0b29bf87ca0339fe
2024-06-08 22:03:56 +08:00
Josh Wu
05cd57ced2 wahoo: Switch BtAudio to AIDL
Test: m
Bug: 203490261
Change-Id: I4b8ac40d5ad410b89eb6a0573d740d86471ecfc7
Merged-In: I4b8ac40d5ad410b89eb6a0573d740d86471ecfc7
2024-06-08 22:03:55 +08:00
Jakub Pawlowski
be5519f6ab wahoo: Use bluetooth.audio@2.1
bluetooth.audio@2.1 adds new functionalities required for Bluetooth LE
Audio development

Bug: 150670922
Change-Id: Iac2ece0c029a38fef82e81f5ba3ba491163818ef
2024-06-08 22:03:55 +08:00
Christian Hoffmann
c3029d2e88 wahoo: Set recovery density to xhdpi and save some space
* boot.img doesn't boot otherwise

Change-Id: I193ef2d5ce47084cf42d28551c521265ece2a6c5
2024-06-08 22:03:26 +08:00
Etienne Ruffieux
763ad8aa85 wahoo: Removed audio A2dp and Hearing Aid from device.mk
Bug: 220306859
Test: atest
Tag: #feature
Change-Id: I1af8461f8ad82afbb21b43dd6968e824ea89f5d6
2024-06-08 22:03:26 +08:00
Michael Bestas
f6ac86a12e Revert "Taimen and walleye still use BUILD_COPY_HEADERS"
This reverts commit a3e5d7a9d1.

Change-Id: Iefdde65950493d89e347b65b6163472f7c518009
2024-06-08 22:03:26 +08:00
Michael Bestas
cf9d4aaa27 wahoo: Build IPACM_cfg.xml target
Prevents the following warnings:
build/make/core/Makefile:61: warning: overriding commands for
    target `out/target/product/walleye/vendor/etc/IPACM_cfg.xml'
build/make/core/base_rules.mk:525: warning: ignoring old commands for
    target `out/target/product/walleye/vendor/etc/IPACM_cfg.xml'

Change-Id: I07ba0b5d9f8776a4a539cdd5fa928562aeffcfc1
2024-06-08 22:03:26 +08:00
Eamon Powell
13990bf4aa wahoo: Move kernel flags to BoardConfig.mk
Change-Id: Ic246b4155aab0c1378bb5dce1c935c1ab1ef278d
2024-06-08 22:03:26 +08:00
Georg Veichtlbauer
704667406a wahoo: Remove CLANG compile flag
Defaults to true now project-wide.

Change-Id: I1e0ff5adadc889d81c90c816457a72d2621e4b5a
2024-06-08 22:03:26 +08:00
Chenyang Zhong
08d21a42d2 wahoo: Ship cgroups.json and task_profiles.json in vendor
Google's prebuilt cgroups.json and task_profiles.json for products
launched with previous API levels only covers
ro.product.first_api_level >= 28. [1]

Pixel 2 / Pixel 2 XL were launched with Oreo (API level 26),
so schedtune and task groups are completely broken. Since the
system also checks /vendor/etc for vendor profiles, make a copy
of cgroups_28.json and task_profiles_28.json and ship them to
/vendor/etc. Profiles for previous API levels are all the same
anyway.

Test: boot and check /dev/stune/

[1] system/core/libprocessgroup/profiles/

Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
Change-Id: I33c0540ef50054fad839886f9f014cc275659e77
2024-06-08 22:02:38 +08:00
LuK1337
f424e35f5c wahoo: Build libhidltransport/libhwbinder
* Needed for old blobs

Change-Id: I43fc0e46547dfc126a4b2ac9dcc82c7c4f2ee172
2024-06-08 22:02:38 +08:00
Isaac Chiou
b5ecf2d71f wahoo: config: Override disable firmware roaming via HAL API
Bug: 178398607
Test: Build Pass
Change-Id: Ic154acc0952b4f00a2e2ae4a3b5626df3f062358
2024-06-08 22:02:16 +08:00
linjoey
0278520526 wahoo: Modify Vulkan and OpenGL version to 2020-03-01
Bug: 191252896
Test: android.graphics.cts.VulkanDeqpLevelTest#testVulkanDeqpLevel pass
Change-Id: Id066d3a556551d239964d68e5b1e6ea4f35287f3
2024-06-08 22:02:16 +08:00
Alastair Donaldson
1d651bac7c wahoo: Add OpenGL ES and update Vulkan dEQP feature flags
Populates a new feature flag to record the level of OpenGL ES dEQP
test support.  Updates the analogous Vulkan dEQP feature flag to the
value for the next dessert release.

Bug: 159841535
Change-Id: I9ed8ec8af0c76962cfd77a91d806cad95de70c28
2024-06-08 22:02:16 +08:00
Chris.CC Lee
e9e2cbe383 wahoo: Update pregrant permissions for Restore APK
-. RECEIVE_SMS and READ_PHONE_NUMBERS permissions are no longer used.
-. Add the ACCESS_FINE_LOCATION permission for iOS WiFi D2D which was approved in b/188150877.

Bug: 188150877
Fix: 162937804
Test: Manual tested on Barbet.
Change-Id: I8a61258fb907bb7e1423a43536615951fb49cc5a
Merged-In: I8a61258fb907bb7e1423a43536615951fb49cc5a
2024-06-08 22:02:16 +08:00
Kurt Dresner
3a03b7b394 wahoo: Remove unneeded Top Gear permissions from Android Auto
Bug: 184195079
Change-Id: Id2b50bd8e67cc5f8ed05d87a3fbfa42dbf86b9ec
2024-06-08 22:02:16 +08:00
Kurt Dresner
74b27a4645 wahoo: Remove permissions that are now granted via role to Android Auto (Gearhead).
Bug: 134997071
Bug: 166143587
Test: Code builds
Change-Id: I223fd8690d8fb076bdf8d961a51ae090f131cfbd
2024-06-08 22:01:14 +08:00
Ruslan Tkhakokhov
c132c158bf wahoo: Swap Pixelmigrate for Restore APK in default-permissions
Bug: 186731327
Test: atest DefaultPermissionGrantPolicyTest
Change-Id: I743c11c62065d25aa3a9208b6ab42950e8f844f3
2024-06-08 22:01:14 +08:00
Gillian Lin
fad62017e9 wahoo: cts: VerifiedBootTest#testVerifiedBootSupport
android.software.verified_boot.xml should be copied to TARGET_COPY_OUT_VENDOR instead of system

Bug: 190401885
Test: run cts-on-gsi -m CtsSecurityTestCases -t android.security.cts.VerifiedBootTest#testVerifiedBootSupport
Change-Id: Ifc7818b1cef1284653d377b7bbc11bf4aaa44da0
2024-06-08 22:00:45 +08:00
Remi NGUYEN VAN
e8a4091570 wahoo: Add connectivity overlay
As resources were moved from the android package to the connectivity
resources package, migrate resources to a new overlay for the new
package.

(clean cherry-pick from downstream branch)

Bug: 185850634
Test: m
Merged-In: I2789e88adbfb912f18017bae3d37696057a4afa5
Change-Id: I86f3ea2b486aa4a47c5a5c123571d9276a4d3095
2024-06-08 22:00:45 +08:00
Nolen Johnson
e1820c162a wahoo: Kill deprecated TARGET_USES_MKE2FS
* This has been useless since some time in Pie.

Change-Id: Ic02238aa0f1c25cfad20a2b827c3c2fe128f3543
2024-06-08 22:00:45 +08:00
Nolen Johnson
692cd3af99 wahoo: Remove legacy VNDK27 hacks
* We don't support building targetting this old of a VNDK
  anymore, so these are useless.

Change-Id: Ifb0de47947d87413904b32cf73a997be0418ffb0
2024-06-08 22:00:43 +08:00
Nolen Johnson
10c388cb50 wahoo: Cleanup properties
* `ro.control_privapp_permissions=enforce` - Default in LineageOS
   environments.
* `keyguard.no_require_sim=true` - Set in build/ in LineageOS
   environments.

Change-Id: I5a17e8bca9c896984f3ceca90c8ca9479540072c
2024-06-08 21:59:12 +08:00
Nolen Johnson
e0ff9243b3 wahoo: Don't build non-existant or default packages
Change-Id: I984a8d6d5175a5a894b2200e7bdc4795fbbc11c2
2024-06-08 21:59:12 +08:00
ReallySnow
68b30e2d59 wahoo: manifest: Drop android.hardware.radio.deprecated
* In Android 12, android.hardware.radio.deprecated was removed due to [1]
  So we don’t need to build this blobs and remove it from the manifest.

* Note: QTI do not pick this commit

* ref:
[1] 899ef068c6

Change-Id: Ie00e6090469b5393ac52fd4112b4bd7025815544
2024-06-08 21:59:12 +08:00
Nolen Johnson
5134fe5e32 wahoo: Include hardware/google/pixel-sepolicy/powerstats
* We build this, so lets just use to sepolicy designed for it.
* hardware/google/pixel-sepolicy/citadel declares types that
  are used in this, so lets include it too.

Change-Id: If8e8632e724693f19fa721c1c19358c6f9e282d8
2024-06-08 21:58:04 +08:00
Nolen Johnson
4987c23777 wahoo: sepolicy: vendor: Allow vendor_init to read various properties
Change-Id: I6700d6d624866c1425e58ca4f282b9d1bd03c368
2024-06-08 21:58:04 +08:00
Nolen Johnson
3ddb811689 wahoo: sepolicy: vendor: Allow vendor_misc_writer to read sysfs_dt_firmware_android
Change-Id: I5ae78196a5c22f6e42f0478987c62a1645193af7
2024-06-08 21:58:04 +08:00
Nolen Johnson
04813aff3f wahoo: sepolicy: Allow dataservice_app to read several things
* Needs both directory and file permissions.

Change-Id: I78f752e5daab7f8f39a082dc68624fa05f2668fb
2024-06-08 21:58:04 +08:00
Nolen Johnson
133d37f31f wahoo: sepolicy: vendor: Allow system_server to read sysfs_batteryinfo
* Wasn't seen on R, so lets allow it to maintain behavior.

Change-Id: I346a691115d3106d8e7202cb08cd48c6eb18b09d
2024-06-08 21:57:08 +08:00
Nolen Johnson
db9ce30add wahoo: sepolicy: private: Extend priv_app dontaudit's to proc_version
* DevicePersonalizationServices wrongly wants this (according to Google).

Change-Id: Ib4e9add1e86256fe131436d441d9b0fad6f18bd5
2024-06-08 21:57:08 +08:00
Nolen Johnson
5cbb730022 wahoo: sepolicy: vendor: Allow thermal-engine wake_alarm capabillity
* Looking at thermal-engine's needs, without this it is spammy
  during sleep, and the denial isn't seen on R, so lets allow it
  to maintain the old behavior.

Change-Id: Ie0a66addeb32d34fcfb7b90e146504477ea94c1f
2024-06-08 21:57:08 +08:00
Nolen Johnson
7e4d6f6e54 wahoo: sepolicy: vendor: Extend hal_nfc_default dontaudit
* Looking in `git log`, we can see that this isn't needed
  functionallity, and that all attempts to "read" it in any
  way can be safely ignored.

Change-Id: I1dd6c57f9cec024371cec8f9074b000531514ba9
2024-06-08 21:57:08 +08:00
Nolen Johnson
3d67983657 wahoo: sepolicy: vendor: Import vendor_persist_type attribute from coral
Change-Id: Ic042fe00c536a5e775abfde34c60e197afb33731
2024-06-08 21:57:08 +08:00
Nolen Johnson
b9309ec2d4 wahoo: sepolicy: Drop types declared in hardware/google/pixel-sepolicy
Change-Id: I3334a186bacde70881cf503fb5b6554a2d8a3f13
2024-06-08 21:57:08 +08:00
Edwin Wong
6c59de2fcf wahoo: Update clearkey plugin to drm HAL v1.4
Test: atest
  atest CtsMediaTestCases:android.media.cts.MediaDrmClearkeyTest#testGetPlaybackComponent

Bug: 182525516
Change-Id: I406b7d3c2921d4698535421894c6eb3785eb1c0d
2024-06-08 21:57:08 +08:00
Nicolas Geoffray
5e4a204833 wahoo: Remove odex/oat files from pinner list
The pinner now asks the runtime for these files.

Test: adb shell dumpsys pinner
Bug: 144773394
Change-Id: Ifead4354d29b3ce658b2f5771b778a050b0579b5
Merged-In: I6627afc390f8dcacc197680dcc4917e2ac5bc090
2024-06-08 21:57:08 +08:00
Kevin Jeon
d6f0e57483 wahoo: Update SurfaceFlinger pin
This change replaces the '/system/lib64/libsurfaceflinger.so' pin, as
the file was removed in ag/12524602. The updated pin relies on
go/aog/1552085, as system_service needs read access to SurfaceFlinger.

Bug: 176197656
Test: adb shell dumpsys pinner (coral)
      - shows that /system/bin/surfaceflinger is successfully pinned
      adb logcat | grep PinnerService (coral)
      - no longer shows a file-not-found error in PinnerService
Change-Id: Iae2a96c5fe4b1f5698d21de9970140321d11c460
2024-06-08 21:56:09 +08:00
Wilson Sung
08c012daf9 wahoo: Set SOC manufacturer and chipset properties
Bug: 158284209
Bug: 180589452
Change-Id: I26d4b3767d336321bd562a8d5a289ce864536f5e
2024-06-08 21:56:09 +08:00
Lunarixus
ee7b9a745a wahoo: Generate full framework matrix
* 12 requires every HAL to be explicitly listed.

Change-Id: Ic4408870bb964ecf97a9c8c109764f806aee039d
2024-06-08 21:55:23 +08:00
Lunarixus
d87c8c20c6 wahoo: Explicitly build all needed HALs
Change-Id: Ic6b8f8cf56a37fb8504e1cb57fedae2fe3fb4bc9
2024-06-08 21:55:23 +08:00
Nolen Johnson
f40d12dcb7 wahoo: Build android.frameworks.sensorservice@1.0
* System and vendor variant.
* Add ISensorManager interface to sensors HAL declaration

Change-Id: If9c2b4ecb3d57c5e68a4187a601339b3d2538d8f
2024-06-08 21:55:23 +08:00
Nolen Johnson
dfb875e053 wahoo: Uprev framework compatibility matrix to 2.0
Change-Id: I70879d119c42831579ff099cc532fc62c4f205b6
2024-06-08 21:55:23 +08:00
Erfan Abdi
58d211735b wahoo: Update to FCM level 3
Change-Id: I06a7e7939083f541280fc0136611ea2f8724eb1d
Signed-off-by: Joshua Blanchard <joshua.lee.bbg@gmail.com>
2024-06-08 21:54:49 +08:00
Nolen Johnson
7f141e56ef wahoo: Enable BUILD_BROKEN_ELF_PREBUILT_PRODUCT_COPY_FILES
* The alternative to this sucks even more than this.

Change-Id: Ia0a056315f1d23c5026f428ec6063e57425d830e
2024-06-08 21:54:49 +08:00
Kyle Lin
38a2f3ff35 wahoo: Switch to use stable power HAL
Bug: 154570109
Test: build and capture the trace to check
Change-Id: I4794f44266762672ef3b6ad9bf1353f6784e34d6
2024-06-08 21:54:49 +08:00
Michael Bestas
879dd793fc wahoo: Remove android.hardware.graphics.composer@2.1-impl
It no longer exists, the service is fully binderized

Change-Id: I06ee402b50216948e0e72a2797c2edfda1c4886a
2024-06-08 21:54:49 +08:00
Danny Lin
2833b95dc1 wahoo: Remove Wi-Fi RSSI threshold overlays
These overlay values are just the default AOSP ones at the moment. We'll
change them on the system side instead.

Change-Id: I2898dec7c3c39eac604cb7f90224760869f65bbc
2024-06-08 21:54:49 +08:00
Tim Lin
89d0f09384 wahoo: qcril: Fix MT SMS sent during power off
qcril will block any further MT SMS if previous one is not ACKed.
For this bug, IMS service is not ready and resulted in qcril stuck in blocking state.
This solution will add 30s timer to reset blocking state if there is no ACK from Telephony.

Bug: 169549852
Test: MT SMS during power off
Change-Id: I6f52170654925143aeb55f8bc0cf4c379717e718
2024-06-08 21:54:49 +08:00
Anton Hansson
cb6ffa76e5 wahoo: Enforce RRO for all resource overlays
Bug: 118823052
Test: make
Change-Id: I579d09480c7a482543ea616dd5c493d825bb98b1
2024-06-08 21:54:12 +08:00
PixelBoot
cd83091edb wahoo: Build NowPlaying service (NowPlayingOverlay)
Now Playing is supported as from the wahoo device series.
2024-06-08 21:54:12 +08:00
razorloves
5129999687 wahoo: Use CarrierSettings app instead of CarrierConfig
The CarrierSettings app enables/disables carrier apps based on sim
inserted, so use it instead of CarrierConfig.

Change-Id: I163dd615e9d8268c5f94a28ae234a30f74c7e83b
2024-06-08 21:54:12 +08:00
Max Bires
dd3f6a61a1 wahoo: Add VENDOR_SECURITY_PATCH level definition
Change-Id: I0d923d4eb67ddef3be81409676472fe520bbacf5
2024-06-08 21:52:56 +08:00
Eamon Powell
2eb4aefb2e wahoo: Generate symlinks
This is a squash of the following:

Author: Eamon Powell <eamonpowell@outlook.com>
Date:   Tue Mar 31 10:20:49 2020 +1100

    wahoo: Add EGL symlinks

    Change-Id: I292a6180ba08d5a1a3ed9efb8aab6329e7f89fc8

Author: Bruno Martins <bgcngm@gmail.com>
Date:   Sat Sep 30 21:14:38 2017 +0300

    wahoo: Create RFS symlinks

    Change-Id: Ie9bc8ec251ee0cd0dcc8caab230662b6e93b72a5

Author: Christopher N. Hesse <raymanfx@gmail.com>
Date:   Sun Nov 26 00:24:41 2017 +0100

    wahoo: Add IMS + DMService symbolic links

    Change-Id: I105ce0e92533e478df66186f3b0fb59b420365c5

Change-Id: Ic81e0fd5e1435120b3b8ada94c51ab2f91ec1aa2
2024-06-08 21:52:56 +08:00
Eamon Powell
1b8550bf71 wahoo: Add missing properties and packages
Now that we are building our own vendor image, some necessary
packages aren't being built and some props aren't being set.

Change-Id: I3e91822b336761cdecf3f6ebe416276dc0585785
2024-06-08 21:52:56 +08:00
razorloves
1e0f0b574b wahoo: Build the vendor image
* Updated for R. Google moved AB_OTA_PARTITIONS to boardconfig.

Change-Id: I6e77335985526162433b1b879775a6fd89163c5e
2024-06-08 21:52:56 +08:00
beanstown106
8a6b51d85f wahoo: Enable battery led and multicolor notif/battery leds
* Updated comments with latest lights capabilities.

Change-Id: I445277aeebccd8bf6b0897d51d6a0c29d173828c
2024-06-08 21:52:56 +08:00
Abhisek Devkota
1bb665ec7b wahoo: Enable sound trigger
Change-Id: Id5c8572a7297df73b119ff8f0ac4888e235c76b6
(cherry picked from commit e55bed9a5eaa937dd94bb10649eccb8f0102bb49)
2024-06-08 21:52:56 +08:00
razorloves
892f8b1284 wahoo: Hide user facing crash dialog for EUICC app
The GoogleParts app disables the EUICC app when there's no GMS, but it
doesn't happen quick enough. The crash dialog pops up a few times right
after initial boot up. There's no need to alarm the user, so hide it.

Change-Id: Ia06b336b30a8886bae522c6e8a76a1ca15da5edd
2024-06-08 21:52:06 +08:00
Danny Lin
8018eea76e wahoo: Define embedded eUICC slot
Extracted from the RP1A.200720.009 stock ROM.

Change-Id: I88a9b5605914369f2c262dec53571dd638504cfb
2024-06-08 21:52:06 +08:00
Ethan Chen
b0e9cc06d7 wahoo: Declare eUICC permission
This is a squash of the following:

Author: Ethan Chen <intervigil@gmail.com>
Date:   Sat Dec 1 13:53:00 2018 -0800

    wahoo: Declare eUICC permission

    Change-Id: I1b151021ca9fc6cf35141b2ccb337bc83197089e

Author: razorloves <razorloves@gmail.com>
Date:   Fri Oct 18 00:06:22 2019 -0500

    wahoo: Move eUICC permissions xml to /product

    All eUICC items were moved to /product in Q.

    Change-Id: I614f86b16f61959c47465863ab1d5d55030209ab

Change-Id: I323dce8b848b44e45ed21002950059e58719113c
2024-06-08 21:52:06 +08:00
Abhisek Devkota
2a8daa8a18 wahoo: IMS Support
Build what we can

Change-Id: I9e482b9c35131e3634aaf7a6c8ba05ade11b28fb
2024-06-08 21:51:33 +08:00
Rashed Abdel-Tawab
23129495c3 wahoo: Switch to generated_kernel_headers
Author: razorloves <razorloves@gmail.com>
Date:   Tue Feb 18 13:38:24 2020 +1100

    wahoo: liblight: use generated kernel headers

    Change-Id: Ib12bf0b7019f9fc1cd6b119e7377fe89d9eaf8f1
2024-06-08 21:51:33 +08:00
Eamon Powell
3bc717a973 wahoo: Remove hardware/qcom/msm8998 from soong namespaces
We have gpt-utils in tree instead and don't sync this.

Change-Id: Id7afad6c0c789f6e5ba0bd28b58e173c2ca99d13
2024-06-08 21:51:33 +08:00
Rashed Abdel-Tawab
b0c87eab4e wahoo: Squash building of disabled vbmeta image
Author: Rashed Abdel-Tawab <rashed@linux.com>
Date:   Sat Sep 7 11:13:09 2019 -0700
    wahoo: Build a disabled vbmeta image

    Change-Id: Ie8f1e0929b037b35b5e45c2e31be9253fa0bb097

From: Nolen Johnson <johnsonnolen@gmail.com>
Date: Sun May 9 16:04:34 2021 -0400
    wahoo: Simplify AVB flag logic

    * AVB's `--flags 3` argument builds a disabled VBMeta with
      disabled hashtree, so no need to set both flags individually.

    Change-Id: Ibe9ee322a5af58f13e76d53e18dee49451fe8838

Change-Id: Ie7f19e42835f8f1d2fa5be22e1beeb7228ad55a3
2024-06-08 21:51:33 +08:00
Christopher N. Hesse
d399e218b2 wahoo: Compile kernel inline
Change-Id: I59ca916dcc1ec3c5b3ff56ae76ad56db5cafbbce
2024-06-08 21:51:33 +08:00
PixelBoot
a78fe1622c wahoo: move bootctrl to device specific trees
Since we've adapted libgpt-utils to specific trees, bootctrl needs that too.
2024-06-08 21:50:46 +08:00
PixelBoot
1f4a965916 wahoo: refactor block device labeling for product 2024-06-08 21:50:46 +08:00
PixelBoot
5c1ea73214 wahoo: define the product image
Introduce the productpartition to wahoo series devices, however only define the common product partition in this tree.
Later details, such as the inclusion of system_ext partitions for taimen, is included in per-device trees.
Product partition is defined at 3.0GiB with later requirements of Android 13, causing an increase from the previous values.
2024-06-08 21:50:46 +08:00
PixelBoot
7503b48418 wahoo: define A/B ota partitions in separate trees
Partitions are different between walleye and taimen now.
Define A/B partitions in each respective tree.
2024-06-08 21:50:25 +08:00
PixelBoot
6f9d3a6d08 Revert "Add recovery.wipe file."
This reverts commit 1ff004a529.
2024-06-08 21:50:25 +08:00
Eamon Powell
d757507b60 wahoo: Increase BOARD_SYSTEMIMAGE_EXTFS_INODE_COUNT to 5120
Lineage build servers export OVERRIDE_TARGET_FLATTEN_APEX=true,
causing the system image inode count to be insufficient.

Change-Id: I171afeb3fcf85199215c54fe068cf04547999285
2024-06-08 21:50:25 +08:00
Sultan Alsawaf
ecb81cff8b wahoo: Force triple frame buffers
This yields significantly reduced jitter and doesn't have any measurable
impact on latency.

Change-Id: I4d1de21487757be3df3bd908e1a6152fd951d732
2024-06-08 21:50:25 +08:00
Wang Han
52060852ad wahoo: ueventd: Don't modify permissions of /dev/hw_random
This addresses an underlying problem since /dev/hw_random is used. The
issue is that EntropyMixer, which runs in system_server, needs to read
from /dev/hw_random, but thanks to our qualcomm ueventd, EntropyMixer
can never accress this node, resulting in warnings like this:

W EntropyMixer: Failed to add HW RNG output to entropy pool
W EntropyMixer: java.io.FileNotFoundException: /dev/hw_random (Permission denied)

AOSP ueventd handles this well, so just remove this line to get things
back to stage. This issue was never exposed because Google derps the
logging here, which is already fixed on Pie.

c78a463e87

Change-Id: I42c9aaa8f57306536e51c0a17febad57a5a77581
2024-06-08 21:50:25 +08:00
Alessandro Astone
78ad4c7533 wahoo: Fix public key for google camera sepolicy domain
Downloaded the apk from play store and used the following command
to extract the proper public key from the apk:
openssl pkcs7 -inform DER -in CERT.RSA -out CERT.pem -print_certs

Change-Id: I32da280607e931b50822fd1ae08b45af455a9885
2024-06-08 21:49:48 +08:00
Dan Pasanen
6ba31eb282 wahoo: Enable config_vibrateOnIconAnimation
* Need those sexy vibes.

Change-Id: If5671135879f6f4069d0ed881b41b0a243890349
2024-06-08 21:49:48 +08:00
Michael Bestas
57015de896 wahoo: Set default screen brightness
Extracted from stock.

Change-Id: I8a5e2c8717c145e66aaa0e926ceefc7e117b04c2
2024-06-08 21:49:48 +08:00
Danny Lin
6c7ebd7021 wahoo: Enable USB and skin temperature warnings
Extracted from stock.

Change-Id: I951f60579a4b7fa2dcc270b5acd433ad1ecb083c
2024-06-08 21:49:48 +08:00
Michael Bestas
99d84a8e19 wahoo: Set config_nightDisplayColorTemperatureCoefficients
Extracted from stock.

Change-Id: I5d69d01204b0dd86a7205eb3b16e02f97a7f3db2
2024-06-08 21:49:48 +08:00
razorloves
734d9a2d03 wahoo: Allow 3rd party apps to use fingerprint gestures
* Also, this is set to true in pixel stock roms.

Change-Id: I7f08c640452f169c3e403c7af20ca61e7e90ca5c
2024-06-08 21:48:54 +08:00
razorloves
1e610e3946 wahoo: Set auto brightness mode on by default
* Stock sets this on by default, mirror that behavior.

Change-Id: I5cb8e3db27849ebd90459a6d70e053158c05bcc9
2024-06-08 21:48:54 +08:00
Danny Lin
0ce8f0953a wahoo: Enable support for Bluetooth hearing aids
This device is fully capable of streaming audio to Bluetooth hearing
aids using the ASHA GATT protocol built on top of L2CAP, similar to
A2DP.

Enable the config option for the system to handle pairs of hearing aids
properly and expose the option in Settings.

More info at https://source.android.com/devices/bluetooth/asha

Test: user reported successful audio streaming
Change-Id: Ice82c48ce80626eb8beb5c51681072e213b73c39
2024-06-08 21:48:54 +08:00
Kevin Chyn
ce4530e2c8 wahoo: Add fingerprint configuration to overlay
The framework was changed in Android R to require explicit authenticator registration.
This change allows apps to continue to use the fingerprint sensor.

Bug: 147445115

Test: Builds
Change-Id: Id3385edc784b2053c8b54ec3153728f4e6e22a45
2024-06-08 21:48:22 +08:00
Danny Lin
7a2677a744 wahoo: Allow disabling camera laser sensor in developer options
Sometimes, being able to disable the camera laser sensor quickly is
useful for taking pictures of reflective objects without a purple dot
showing up in the picture, especially when precise upfront focus isn't
required. Enable the existing toggle in developer options to expose this
functionality.

Older versions of the stock ROM included this option, but it's been
removed since then.

Change-Id: I24fcde77536fffcdafda749bd02157c510ac9aa1
2024-06-08 21:48:22 +08:00
Danny Lin
d34eee33d2 wahoo: Don't pin camera app in memory
The default camera app can be *huge* in some cases, e.g. when the app in
question is Google Camera. The system will only pin up to the first 80
MiB of the APK file, as well as the first 80 MiB of its odex. There are
several problems with this:

  - We could easily end up with 160 MiB of camera app files pinned,
    which is a tall order with the ~3.5 GiB of usable RAM that we have
  - The data that gets pinned may not even be the most critical data for
    launching the camera

Let's disable pinning of the camera app to save precious RAM on this
device.

Change-Id: I745e39b6ff212dfaf9213517d2a2be8ff7384e24
2024-06-08 21:48:22 +08:00
Rick Yiu
d7e4e3d3ee wahoo: Sync pinner service configs from crosshatch
Bug: 130103428
Test: verified with dumpsys pinner
Change-Id: I8ffe5eee1d40a5ac6be2112621ccda4b4dd5be1a
2024-06-08 21:47:59 +08:00
razorloves
6312601bdf wahoo: Set OPA property to enable google assistant
Change-Id: I741171219d64a28d56531f063f95f3f6f6cf81e6
2024-06-08 21:47:59 +08:00
razorloves
d02a251e4c wahoo: Remove adb secure prop
This is preventing eng builds from being adb insecure.
It's also conditionally handled in vendor repo.

Change-Id: Idc77c39a5e2311ea1fcb273c6140afe655c574c9
2024-06-08 21:47:59 +08:00
Ethan Chen
d5babeaff8 wahoo: Disable userdebug diagnostics
- We can't make use of most of the debug features on userdebug builds.

Change-Id: I31df2090b31243b742c4e82dc08cd8491dada54f
2024-06-08 21:47:59 +08:00
Anay Wadhera
811a4555e4 wahoo: Include hardware/google/interfaces in namespaces
This is so all the required libraries in hardware/google/pixel get
matching libs in vendor in build

Change-Id: Ib7e1f5c2204b5ad75fa0c88d35b6a77e10998142
2024-06-08 21:47:59 +08:00
Anton Hansson
74faacdb78 wahoo: Add the nfc_extras shared lib
Bug: 80410283
Test: lunch mainline_arm64; m nothing
Change-Id: I5bdc32988ced9c0b93bb54bc8cb88ead7efe4fcb
2024-06-08 21:47:59 +08:00
Lokesh Gidra
0c6e42e7c6 wahoo: Use 4GB dalvik-heap config
We are currently using 2GB dalvik-heap config.

Bug: 145823510
Test: MPTS test
Change-Id: Ie26b8e4fefea25fa818bd1eaf9df4a0bb153d42d
2024-06-08 21:47:59 +08:00
16 changed files with 242 additions and 309 deletions

View File

@@ -163,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 := true
TARGET_HAS_HDR_DISPLAY := true
TARGET_USES_COLOR_METADATA := true
# Charger Mode

View File

@@ -89,13 +89,13 @@ else
endif
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 += \
$(LOCAL_PATH)/init.hardware.chamber.rc.userdebug:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.$(PRODUCT_HARDWARE).chamber.rc
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/init.hardware.diag.rc.userdebug:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.$(PRODUCT_HARDWARE).diag.rc
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/init.hardware.chamber.rc.userdebug:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.$(PRODUCT_HARDWARE).chamber.rc
else
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/init.hardware.diag.rc.user:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.$(PRODUCT_HARDWARE).diag.rc
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/init.hardware.diag.rc.user:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.$(PRODUCT_HARDWARE).diag.rc
endif
MSM_VIDC_TARGET_LIST := msm8998 # Get the color format from kernel headers
@@ -188,7 +188,8 @@ PRODUCT_PACKAGES += \
# 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
@@ -223,10 +224,6 @@ PRODUCT_PROPERTY_OVERRIDES += \
ro.hardware.egl=adreno \
ro.opengles.version=196610
# AutoSingleLayer
PRODUCT_PROPERTY_OVERRIDES += \
debug.sf.auto_latch_unsignaled=true
# b/73640835
PRODUCT_PROPERTY_OVERRIDES += \
sdm.debug.rotator_downscale=1
@@ -281,7 +278,7 @@ PRODUCT_PROPERTY_OVERRIDES += \
persist.sys.zram_enabled=1
PRODUCT_PROPERTY_OVERRIDES += \
ro.vendor.extension_library=libqti-perfd-client.so
ro.vendor.extension_library=libqti-perfd-client.so
# settings to enable Device Orientation Sensors
PRODUCT_PROPERTY_OVERRIDES += \
@@ -308,14 +305,14 @@ PRODUCT_PROPERTY_OVERRIDES += \
# camera gyro and laser sensor
PRODUCT_PROPERTY_OVERRIDES += \
persist.camera.gyro.android=20 \
persist.camera.tof.direct=1 \
persist.camera.max.previewfps=60 \
persist.camera.sensor.hdr=2
persist.camera.gyro.android=20 \
persist.camera.tof.direct=1 \
persist.camera.max.previewfps=60 \
persist.camera.sensor.hdr=2
# camera TNR controls
PRODUCT_PROPERTY_OVERRIDES += \
persist.camera.tnr.video=1 \
persist.camera.tnr.video=1 \
# WLAN driver configuration files
PRODUCT_COPY_FILES += \
@@ -398,9 +395,7 @@ PRODUCT_PROPERTY_OVERRIDES += \
# DRM HAL
PRODUCT_PACKAGES += \
android.hardware.drm@1.3.vendor \
android.hardware.drm-service.clearkey \
libprotobuf-cpp-full-3.9.1-vendorcompat \
libprotobuf-cpp-lite-3.9.1-vendorcompat
android.hardware.drm-service.clearkey
# NFC packages
PRODUCT_PACKAGES += \
@@ -409,13 +404,6 @@ PRODUCT_PACKAGES += \
android.hardware.nfc@1.1-service \
com.android.nfc_extras
PRODUCT_PACKAGES += \
SecureElement
# Elmyra
PRODUCT_PACKAGES += \
ElmyraService
# NowPlayingOverlay
PRODUCT_PACKAGES += \
NowPlayingOverlay
@@ -428,6 +416,17 @@ PRODUCT_PACKAGES += \
PRODUCT_PACKAGES += \
ViMusic
# Elmyra
PRODUCT_PACKAGES += \
ElmyraService
# Configstore
PRODUCT_PACKAGES += \
disable_configstore
PRODUCT_PACKAGES += \
SecureElement
PRODUCT_COPY_FILES += \
device/google/wahoo/nfc/libnfc-nci.conf:$(TARGET_COPY_OUT_PRODUCT)/etc/libnfc-nci.conf \
@@ -457,10 +456,10 @@ PRODUCT_PACKAGES_ENG += \
libgoogle_camera_hal_tests.vendor
PRODUCT_PACKAGES += \
android.frameworks.sensorservice@1.0.vendor \
android.hardware.sensors@1.0-impl:64 \
android.hardware.sensors@1.0-service \
android.frameworks.sensorservice@1.0 \
android.frameworks.sensorservice@1.0.vendor
libpower.vendor
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/sensors/hals.conf:vendor/etc/sensors/hals.conf
@@ -510,6 +509,7 @@ endif
# Protobuf
PRODUCT_PACKAGES += \
libprotobuf-cpp-full-3.9.1-vendorcompat \
libprotobuf-cpp-lite-3.9.1-vendorcompat
# Wifi
@@ -529,7 +529,7 @@ PRODUCT_PACKAGES += \
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
@@ -699,7 +699,7 @@ PRODUCT_COPY_FILES += \
ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
# Subsystem ramdump
PRODUCT_PROPERTY_OVERRIDES += \
persist.sys.ssr.enable_ramdumps=0
persist.sys.ssr.enable_ramdumps=1
endif
# Subsystem silent restart
@@ -716,11 +716,11 @@ PRODUCT_PACKAGES += \
ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
# b/36703476: Set default log size to 1M
PRODUCT_PROPERTY_OVERRIDES += \
ro.logd.size=1M
ro.logd.size=1M
# b/114766334: persist all logs by default rotating on 30 files of 1MiB
PRODUCT_PROPERTY_OVERRIDES += \
logd.logpersistd=logcatd \
logd.logpersistd.size=30
logd.logpersistd=logcatd \
logd.logpersistd.size=30
endif
# Dumpstate HAL
@@ -783,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
@@ -797,24 +793,25 @@ PRODUCT_PROPERTY_OVERRIDES += \
# default usb oem functions
ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
PRODUCT_PROPERTY_OVERRIDES += \
persist.vendor.usb.usbradio.config=diag
PRODUCT_PROPERTY_OVERRIDES += \
persist.vendor.usb.usbradio.config=diag
endif
# Vibrator HAL
PRODUCT_PROPERTY_OVERRIDES += \
ro.vibrator.hal.closeloop.threshold=20
ro.vibrator.hal.closeloop.threshold=20
# default atrace HAL
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
# Force triple frame buffers
PRODUCT_PROPERTY_OVERRIDES += \
ro.surface_flinger.max_frame_buffer_acquired_buffers=3
# 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 += \
@@ -858,7 +855,7 @@ PRODUCT_PACKAGES += \
libhwbinder
# Setting vendor SPL
VENDOR_SECURITY_PATCH := "2020-10-05"
VENDOR_SECURITY_PATCH := $(PLATFORM_SECURITY_PATCH)
# Task profiles
PRODUCT_COPY_FILES += \

View File

@@ -1,141 +1,9 @@
<compatibility-matrix version="2.0" type="framework">
<hal format="hidl" optional="true">
<name>android.hardware.atrace</name>
<version>1.0</version>
<interface>
<name>IAtraceDevice</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>android.hardware.audio.effect</name>
<version>6.0</version>
<interface>
<name>IEffectsFactory</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>android.hardware.audio</name>
<version>6.0</version>
<interface>
<name>IDevicesFactory</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>android.hardware.bluetooth.audio</name>
<name>android.hardware.light</name>
<version>2.0</version>
<interface>
<name>IBluetoothAudioProvidersFactory</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>android.hardware.cas</name>
<version>1.0-2</version>
<interface>
<name>IMediaCasService</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>android.hardware.drm</name>
<version>1.0-3</version>
<interface>
<name>ICryptoFactory</name>
<instance>clearkey</instance>
<instance>widevine</instance>
</interface>
<interface>
<name>IDrmFactory</name>
<instance>clearkey</instance>
<instance>widevine</instance>
</interface>
</hal>
<hal format="aidl" optional="true">
<name>android.hardware.power</name>
<interface>
<name>IPower</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>android.hardware.power.stats</name>
<version>1.0</version>
<interface>
<name>IPowerStats</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>android.hardware.radio.deprecated</name>
<version>1.0</version>
<interface>
<name>IOemHook</name>
<instance>slot1</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>android.hardware.soundtrigger</name>
<version>2.0-2</version>
<interface>
<name>ISoundTriggerHw</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>android.hardware.thermal</name>
<version>2.0</version>
<interface>
<name>IThermal</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>android.hardware.usb.gadget</name>
<version>1.0-1</version>
<interface>
<name>IUsbGadget</name>
<instance>default</instance>
</interface>
</hal>
<hal format="aidl" optional="true">
<name>android.hardware.vibrator</name>
<interface>
<name>IVibrator</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>android.hardware.wifi.hostapd</name>
<version>1.0-3</version>
<interface>
<name>IHostapd</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>android.hardware.wifi.supplicant</name>
<version>1.0-4</version>
<interface>
<name>ISupplicant</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>android.hardware.wifi</name>
<version>1.0-5</version>
<interface>
<name>IWifi</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>android.hardware.sensors</name>
<version>1.0</version>
<interface>
<name>ISensorManager</name>
<name>ILight</name>
<instance>default</instance>
</interface>
</hal>

View File

@@ -1,7 +1,7 @@
[
{
"repository":"kernel_google_wahoo",
"target_path":"kernel/google/wahoo"
"repository": "kernel_google_wahoo",
"target_path": "kernel/google/wahoo"
},
{
"repository":"asriadirahim/packages_apps_googlecamera",
@@ -10,15 +10,21 @@
"branch":"thirteen"
},
{
"repository":"LineageOS/android_packages_apps_ElmyraService",
"target_path":"packages/apps/ElmyraService",
"remote":"github",
"branch":"lineage-21.0"
"repository":"LineageOS/android_device_google_gs-common",
"target_path":"device/google/gs-common",
"remote":"github",
"branch":"lineage-21"
},
{
"repository":"Evolution-X/packages_apps_ViMusic",
"target_path":"packages/apps/ViMusic",
"remote":"github",
"branch":"udc"
"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"
}
]

View File

@@ -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"],
}

View File

@@ -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));
}

View File

@@ -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

View File

@@ -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
@@ -697,6 +696,13 @@ on property:sys.uidcpupower=*
on property:sys.uidcpupower=0
write /proc/uid_cpupower/enable 0
# bugreport is triggered by holding down volume down, volume up and power
service bugreport /system/bin/dumpstate -d -p -z
class main
disabled
oneshot
keycodes 114 115 116
service vendor.power_sh /vendor/bin/init.power.sh
class main
user root

View File

@@ -1,4 +1,4 @@
<manifest version="1.0" type="device" target-level="4">
<manifest version="1.0" type="device" target-level="5">
<hal format="hidl">
<name>android.hardware.audio</name>
<transport>hwbinder</transport>
@@ -53,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>
@@ -125,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>
@@ -223,15 +205,6 @@
<instance>default</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>android.hardware.sensors</name>
<transport>hwbinder</transport>
@@ -240,10 +213,6 @@
<name>ISensors</name>
<instance>default</instance>
</interface>
<interface>
<name>ISensorManager</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>android.hardware.soundtrigger</name>
@@ -344,6 +313,15 @@
<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>

View File

@@ -346,7 +346,6 @@ Only the three quirks included above are recognized at this point:
<Limit name="performance-point-3840x2160" value="60" />
<Limit name="performance-point-1920x1080" value="240" />
</MediaCodec>
<MediaCodec name="OMX.google.opus.decoder" type="audio/opus" update="true" rank="100"/>
<!-- Audio Software -->
</Decoders>
<Include href="media_codecs_google_video.xml" />

View File

@@ -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>

View File

@@ -82,12 +82,8 @@
<!-- 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>
<!-- Does the notification LED support multiple colors?
Used to decide if the user can change the colors -->
<bool name="config_multiColorNotificationLed">true</bool>
<!-- Is the notification LED intrusive? Used to decide if there should be a disable option -->
<bool name="config_intrusiveNotificationLed">true</bool>
<!-- Default color for notification LED is white. -->
<color name="config_defaultNotificationColor">#ffffffff</color>

View File

@@ -1,24 +0,0 @@
<?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>
<!-- Specify a service to bind to that returns an implementation of the
IApnSourceService interface.
(e.g. com.foo/.Bar for the package com.foo and class com.foo.Bar)
If this value is empty or unparsable, we will apply APNs from the APN
conf xml file. -->
<string name="apn_source_service">com.google.android.carrier/.ApnSourceService</string>
</resources>

View File

@@ -1,23 +1,23 @@
-----BEGIN CERTIFICATE-----
MIIDxzCCAq+gAwIBAgIVALNdsIWw8RAlQd7BIdldf+kv/v+BMA0GCSqGSIb3DQEB
CwUAMHQxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQH
Ew1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtHb29nbGUgSW5jLjEQMA4GA1UECxMH
QW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9pZDAeFw0xODAyMjEwMDU0MjBaFw00ODAy
MjEwMDU0MjBaMHQxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYw
FAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtHb29nbGUgSW5jLjEQMA4G
A1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9pZDCCASIwDQYJKoZIhvcNAQEB
BQADggEPADCCAQoCggEBAMC2qqWTcN7MfX8ILMKG6q8SDJIIlE+zXz67V7N3jZKh
XpPzIMAv9nDrR6tmDye7S7qxp3UniErpTBCrVCAQUksniJ/4d9Ie6r99UeDq6YzJ
Y9mcQtfvzD+ZELKgkNfBoUMNRMCx5v+srchcDVjnTuU3FxNhQMYpDhP7PCynJW9/
YeNznLdAbYaHBVhTYueUxlwryf+1bBa3E54hqu0xoHrP0FjKiX1ifhuTBcQfmKnF
JfC/I6r0x2vi+hAgBDXX/4WAUAtCFSeOKw5Qp4osqrMlguuotcgdznRI4Qqs2YDF
TVeeagu/3x242sUJzSqn4rrU+kNt1Az+G2SEQsbK1akCAwEAAaNQME4wDAYDVR0T
BAUwAwEB/zAdBgNVHQ4EFgQUOyhe5x68/4unqcqy4QAqn22NXPYwHwYDVR0jBBgw
FoAUOyhe5x68/4unqcqy4QAqn22NXPYwDQYJKoZIhvcNAQELBQADggEBAGzl8klj
+pOfYj91U5Xi5C9unsOWSx4uTufn62c5TvL/AvkCq5adzYlF2u320S+kfvYlAOR6
MhN5tlFaKBDGCi+6zHnLTO2QLaZxYGJb5SdwaAF14shFg+7ZNMLb1X8GuKrLIGw1
P2A5EWFSIwNaGQLz7Mwr66db7efBNWVvcMRdM67cip4LMeXGxuW+aKoJ2X7/x3Lc
FKsKQ7Jx1RxoylUMNBS+0kPCqoUnMqgD9U8Drbp0NcQgkqe0Vks9I/j5bxMeXgES
dkvy6CwcTB01ROO+VLwmWbculJy59K10HtqmeBrzb3DLnxBgAqgbFvIqKVXp8yp2
l7kN8tGn0HIj4+0=
MIIDyTCCArGgAwIBAgIJAODrqTpclyUkMA0GCSqGSIb3DQEBCwUAMHsxCzAJBgNV
BAYTAlVTMRMwEQYDVQQIDApDYWxpZm9ybmlhMRYwFAYDVQQHDA1Nb3VudGFpbiBW
aWV3MRQwEgYDVQQKDAtHb29nbGUgSW5jLjEQMA4GA1UECwwHQW5kcm9pZDEXMBUG
A1UEAwwOd2ZjX2FjdGl2YXRpb24wHhcNMTgwMjIxMDA1NTM4WhcNNDUwNzA5MDA1
NTM4WjB7MQswCQYDVQQGEwJVUzETMBEGA1UECAwKQ2FsaWZvcm5pYTEWMBQGA1UE
BwwNTW91bnRhaW4gVmlldzEUMBIGA1UECgwLR29vZ2xlIEluYy4xEDAOBgNVBAsM
B0FuZHJvaWQxFzAVBgNVBAMMDndmY19hY3RpdmF0aW9uMIIBIjANBgkqhkiG9w0B
AQEFAAOCAQ8AMIIBCgKCAQEAruKdMaQjRrlTwLHWAhUwLXoq+1glzoQ5ibqHDg4i
GPPlwT7qPG8xWW6UmTiLNES6YSDpvCvptqrZccecviYfYIg7/JCF/xr2cFt9Gyyo
L0muemdUMFjGQJxKCQMi8jlqPVgfcy7ZEfVvoDWUupD7hVVA6TFkWH1nv/5GzJVK
h7D4vBaYE6qwM1+NJjrbk1O8SMMCES7MkJhpnfbRYr8d5uxSzDWqqeqvM6CFSvKw
cxqbCcNl0MDgSCgtnxzZZjg5AFuPECV8lgJpxFEqgEIK1fsebK5G8o4buokMW+W4
ZT2LZtMq/qsZXl59h22KQX2w5mcI6KyV8WZOcPPOm8uf8wIDAQABo1AwTjAdBgNV
HQ4EFgQU9jpHDUfkIqBODCp9/c5TsraA9sowHwYDVR0jBBgwFoAU9jpHDUfkIqBO
DCp9/c5TsraA9sowDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAZMf+
KD3oFS0cv/C0qQx28wW5BKFb/PM6RxDwTRF7yyJj4+uZU0+O8NJEqBNDgHusFJR6
2ZXXiWDqzNb0scZxD95FP1YxiLPAcbn2oCTkGPYcCsBmT1i25RsIKTb7fR3UJ/bY
V55CQy1FjX5H1katVpezi1bs17stqrjL0aCk8s7wZPQ9KTy7SfMF9rUfg8ltrj8s
MD5cq21GJuJMpI2kNUV7IT+4B3CeHzpm0iy8NmbavgNezZAx1za4QIySNcKfdsSs
7PsNYPS0R9BeZK/4u4/yrQvRV0lXzQcIJPpwr0cfuhcgcHG8sbCLaw4Ph6go9kRL
hvY7ZX9pdBLS8ukQ4w==
-----END CERTIFICATE-----

View File

@@ -66,3 +66,13 @@ 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