171 Commits

Author SHA1 Message Date
Asriadi Rahim
7d2324e8c2 wahoo: Clean up overlay for evox 9.x
Signed-off-by: Asriadi Rahim <asriadirahim03@gmail.com>
2024-06-01 16:04:55 +08:00
Derek
609f013f51 wahoo: Use lineage radio 1.4 wrapper
Change-Id: Id51367011e82d7d474eb9fa33d49079f1277fba0
2024-06-01 15:50:21 +08:00
Asriadi Rahim
b94c1dd0b3 wahoo: Track & build ViMUsic
* Also update overlay for Evox 9.x
2024-05-31 20:48:25 +08:00
Alessandro Astone
a340f116d1 wahoo: Build and enable fastbootd
* fastboot has issues while using USB 3 on wahoo

Change-Id: I0b20600fe7203a7aec19cbea8f6849052585c6ab
2024-04-29 03:28:15 +08:00
basamaryan
04af6c2654 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-04-05 04:26:23 +08:00
Michael Bestas
630a35288d wahoo: Increase BOARD_SYSTEMIMAGE_EXTFS_INODE_COUNT again
Change-Id: I14b90029d390d1a1c4ca889e9e48ec4ddb7cc005
2024-04-04 14:58:52 +08:00
Jooyung Han
2312604f1c 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-04-04 14:58:31 +08:00
Ram Chandrasekar
f753b5474c 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-04-04 14:58:16 +08:00
Sebastiano Barezzi
7a62b56975 wahoo: Stop explicitely building netutils-wrapper-1.0
* Built by default

Change-Id: Id6666535bb8d0b84d2d0a8d19411fafa49df3d68
2024-04-04 02:19:16 +08:00
basamaryan
88697ea3bc wahoo: Don't explicitly include updatable_apex.mk
It is inherited by base_system.mk as of QPR2

Change-Id: I020a05b233f61ea28d03199cbc76051e6e97e1dc
2024-04-04 02:18:49 +08:00
Yumi Yukimura
b13cab627d Revert "wahoo: Switch to legacy WiFi HIDL HAL"
* WiFi AIDL HAL works in U QPR2

This reverts commit ee1c36be2b04cdc4a8ccc178a65ba2a93a60c094.

Change-Id: I4d38fcc7e5999f934344bc364afb4f4d8a049711
2024-04-04 02:18:28 +08:00
Cole Faust
3fe43a692d 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-04-04 02:18:05 +08:00
Asriadi Rahim
7c60d9954e Revert "wahoo: Sync vendor firmware"
This reverts commit 59da2d8dbd.
2024-03-03 15:06:05 +08:00
Tommaso Fonda
047cac6af8 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-03-03 14:20:11 +08:00
Edwin Moquete
5cab4c0b43 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-03-03 14:20:11 +08:00
Asriadi Rahim
728c36c48f 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-03-03 14:19:49 +08:00
Pranav Vashi
0d98f93f83 wahoo: Add dolby to cloned apps exemption list
Change-Id: I47ab06f7d5152c4c993359ac85d121e41c8df235
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2024-03-03 14:19:49 +08:00
Pranav Vashi
1e48479f5f wahoo: Update dolby config
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Asriadi Rahim <asriadirahim03@gmail.com>
2024-03-03 14:19:49 +08:00
Pranav Vashi
033313fb8a wahoo: Load libstagefrightdolby for dolby codecs
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Asriadi Rahim <asriadirahim03@gmail.com>
2024-03-03 14:19:49 +08:00
Pranav Vashi
981a6e653c 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-03-03 14:19:49 +08:00
Asriadi Rahim
a04034f4ec wahoo: Add config for enabling some features
* Enable LED notification

Signed-off-by: Asriadi Rahim <asriadirahim03@gmail.com>
2024-03-03 14:19:13 +08:00
Sujin Panicker
a1100cf158 wahoo: media: Update opus omx codec ranking
Update opus omx codec ranking to give c2 implementation
higher priority.

Change-Id: I84b76d64e822cbb8ab66ce47a160ed9626b41414
2024-03-03 14:19:13 +08:00
Asriadi Rahim
865e6db0fc wahoo: Move fstab.hardware to the respective device tree
Signed-off-by: Asriadi Rahim <asriadirahim03@gmail.com>
2024-03-03 14:18:41 +08:00
Asriadi Rahim
59da2d8dbd wahoo: Sync vendor firmware
* Needed after this commit has
33d71de75f removed

Signed-off-by: Asriadi Rahim <asriadirahim03@gmail.com>
2024-02-10 10:16:43 +00:00
Joe Maples
c09766437a wahoo: Kill bugreport service
* We aren't Google, their bugreport service isn't helpful

Change-Id: I3f0f8fe0f576ac8124bf73fb28682b4a535eddf8
2024-02-10 10:16:43 +00:00
Joe Maples
23bf373c1b wahoo: Disable subsytem ramdumps
Change-Id: I97d92637de4c81f04a9d9cd4737ed844c18e5082
2024-02-10 10:16:43 +00:00
spaceman860
ffe749ec01 wahoo: Enable LED overlays
Change-Id: Ibc4b1f005193a87c72acfb85a980e3a9c0ccafb3
2024-02-10 10:16:43 +00:00
Gibran Mather
36f057a3b2 wahoo: Enable HDR support
Change-Id: I2ecde905d0651273ccd33e2e2a828b732347b0bf
2024-02-10 10:16:43 +00:00
Danny Lin
7cfb63db92 wahoo: Source APNs from Pixel's CarrierSettings
The Pixel CarrierSettings app also provides APNs in addition to carrierconfigs, so let's use them for better carrier support.

Change-Id: If07e08b32857e14db2c8fd1b1bf4966721c66e6b
2024-02-10 10:16:43 +00:00
luk1337
eece784c51 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-02-10 10:16:43 +00:00
aswin7469
8505c8f5d0 wahoo: Switch to AutoSingleLayer
* According to https://source.android.com/docs/core/graphics/unsignaled-buffer-latch

Change-Id: If37cdd1a9aec07dffdda6359256b744454ee8113
2024-02-10 10:16:41 +00:00
kdrag0n
85b5d082c2 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-02-10 10:13:14 +00:00
Sebastiano Barezz
b66f896ca9 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-02-08 12:35:33 +00:00
Asriadi Rahim
78ab47346a wahoo: Drop EUICC support
* Temporary drop until we have a good solution

Signed-off-by: Asriadi Rahim <asriadirahim03@gmail.com>
2024-02-08 12:35:33 +00:00
Asriadi Rahim
7ac26c3067 wahoo: Pin SystemUIGoogle instead SystemUI
* Evox use vendor_pixel_framework

Signed-off-by: Asriadi Rahim <asriadirahim03@gmail.com>
2024-02-08 12:35:33 +00:00
Asriadi Rahim
4a4f28dca8 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-02-08 12:35:33 +00:00
Asriadi Rahim
f904b00ea9 Revert "wahoo: Add shim for missing symbol in lib-imsvt.so"
This reverts commit 7f5dfb63f1.
2024-02-08 12:35:33 +00:00
Asriadi Rahim
bd22e968e2 Revert "wahoo: Disable compressed APEX"
This reverts commit e958176266.

Test: build, flash and boot device with reverted
2024-02-08 12:35:33 +00:00
0xCAFEBABE
a82f8f92a9 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-02-08 12:35:33 +00:00
Sebastiano Barezzi
62f78ce5ab wahoo: Raise VINTF target level to 4
Change-Id: I4c4783dc112102f127f3b1d796e206dcac672faf
2024-02-08 12:35:33 +00:00
Christian Hoffmann
4ddadac6b9 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-02-08 12:35:33 +00:00
Łukasz Patron
0d6c263372 wahoo: Build libprotobuf-cpp-lite-3.9.1-vendorcompat
Change-Id: I0aac742db9c2b4b3e48ee20158f19405863893c2
2024-02-08 12:35:33 +00:00
Myles Watson
f0af025a5b 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-02-08 12:35:33 +00:00
Asriadi Rahim
1a3d0adb5b 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-02-08 12:35:33 +00:00
Michael Bestas
0590c5038c sepolicy: Restrict access to /sys/devices/soc0/serial_number
Change-Id: I6254ef6e160ff0d3c3ce2e51f20f557e75826dff
2024-02-08 12:35:33 +00:00
Michael Bestas
84c56fcc5e ueventd: Remove all permissions from /sys/devices/soc0/serial_number
Change-Id: I688347cfe59f56e4de2e4bf3c3324ca465f7a897
2024-02-08 12:35:33 +00:00
Michael Bestas
070d9aad07 dumpstate: Don't dump serial number
Change-Id: I575db41209d3a5f8088f7388089650a265107b65
2024-02-08 12:35:33 +00:00
ReallySnow
a4afb7084b wahoo: Initial minimal privapp permissions
* Used to deal with permission issues caused by Gapps updates

Change-Id: I39661b1250f2f2bfb3d7ce722affe429bcd2de2a
2024-02-08 12:35:33 +00:00
Asriadi Rahim
d56b2ffb43 wahoo: Track GoogleCamera 8.3
* Latest Gcam doesn't work in wahoo family,
  so we can use version 8.3 from play store
2024-02-08 12:35:33 +00:00
Michael Bestas
11ed5dfdaf wahoo: Lower gps debug level
* Kill logcat spam

Change-Id: I20d1f698d3c2d1b56e79f6eb6c5c17069e43c60f
2024-02-08 12:35:33 +00:00
Asriadi Rahim
4e107b3510 wahoo: Sync Evolution-X dependencies 2024-02-08 12:35:33 +00:00
Michael Bestas
31006d983b wahoo: overlay: Update multiple vibration strength levels overlay for 13
Change-Id: If17503f2dd4bd4d6e333891f9649a7db8d809852
2024-02-08 12:32:53 +00:00
Tommaso Fonda
247ebd6cfc wahoo: Build android.hardware.radio.config@1.0-service
Fixes lags when entering SIM settings.

Change-Id: I8aa19bfacaa242fe9be7d5e25e7df54c64af5516
2024-02-08 12:32:27 +00:00
Palakurthi Sreekanth
7f5dfb63f1 wahoo: Add shim for missing symbol in lib-imsvt.so
* E ims_media_jni: Error loading library lib-imsvt.so: dlopen failed: cannot locate symbol "_ZN7android7SurfaceC1ERKNS_2spINS_22IGraphicBufferProducerEEEb" referenced by "/system_ext/lib64/lib-imsvideocodec.so"

Signed-off-by: Palakurthi Sreekanth <palakurthisreekanth995@gmail.com>
2023-03-07 19:44:36 +08:00
PixelBoot
cf3278c3b3 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
2023-03-07 19:44:36 +08:00
Christian Hoffmann
209ec1e5fc wahoo: Switch to xz ramdisk and save some space
Change-Id: I2f5cb3bc78c74e2375f21d663ba2670487e61b1f
2023-03-07 19:44:36 +08:00
Benedict Wong
5df023eb95 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
2023-03-07 19:44:36 +08:00
Bruno Martins
2eab966a55 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
2023-03-07 19:44:36 +08:00
Michael Bestas
f395899a46 wahoo: Remove bdroid_buildcfg.h
As of I3c7aed1bdb45db728d319f7d757400e44d232283 the Bluetooth stack
defaults to reasonable defaults that should work for all devices.

Change-Id: I056d63c4c8a2727e384172e964dc0000b6773504
2023-03-07 19:44:36 +08:00
Danny Trunk
70553e5b05 wahoo: Do not block binder thread on incoming calls
Change-Id: I6a2c41e35cc3514e60e104d8eb967f331176594e
2023-03-07 19:44:36 +08:00
Christian Hoffmann
1528331dbf wahoo: Fix extcon denials
Change-Id: Id18f582875a5e53d94b288a451c7f37212458d03
2023-03-07 19:44:36 +08:00
Eamon Powell
cbf6048ee9 wahoo: Remove gps.conf from PRODUCT_PACKAGES
This target doesn't exist anymore

Change-Id: I5dc3bdb62763a4f98eba3e59c30d81f9ae6e1dc6
2023-03-07 19:44:36 +08:00
Georg Veichtlbauer
36a7f7cd63 wahoo: Drop config_setColorTransformAccelerated
It's now enabled by default

Change-Id: I57f059c872fc2ad2fd15e788b1391eeebaff9bde
2023-03-07 19:43:05 +08:00
Les Lee
4b1d22a68d 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
2023-03-07 19:43:05 +08:00
Woody Lin
82e67e5ed1 wahoo: Enable zygote critical window
Bug: 141948707
Change-Id: I5dc57312118b0f6d95fc9fe164363ec7e15f1b51
2023-03-07 19:43:05 +08:00
Santiago Seifert
df60ec41a5 wahoo: Unpin updatable-media from memory
Bug: 214499288
Change-Id: I4823afa45553b9484ad5215d081b0e6635c4b183
Test: Presubmit
2023-03-07 19:43:05 +08:00
Christian Hoffmann
982589aaa9 wahoo: Cleanup DRM services and hals
* Clearkey and Widevine have their own vintf
* 1.3 drm interface includes the lower versions

Change-Id: I59bd0830b524c7b44fb924ef60e55a11c27b6158
2023-03-07 19:43:05 +08:00
Bruno Martins
c6957e5f50 wahoo: Migrate to AIDL ClearKey DRM HAL
Change-Id: Iad5cc1176978137c647069197b33f49fb4d98ab2
2023-03-07 19:42:19 +08:00
Bruno Martins
de9f5f6d15 wahoo: Drop default DRM service
This is not needed, since Widevine DRM and Clearkey DRM
services are available.

Change-Id: I97023f1bab88ddb8fa4cb205df190c516a759951
2023-03-07 19:42:19 +08:00
Bruno Martins
24c54b36b3 wahoo: Drop component overrides
This is no longer needed as of Android 13.

Change-Id: I38435c47c8781678f82014decbbae40dcab0a07b
2023-03-07 19:42:19 +08:00
eorg Veichtlbauer
a063ef4902 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
2023-03-07 19:42:19 +08:00
Alice Kuo
9149de6ac3 wahoo: Disable LE audio related profiles
Bug: 231671426
Test: build
Change-Id: I78e2ddfc636a0fa31b977b5f9ba9a7d7bc0f2a26
Merged-In: I78e2ddfc636a0fa31b977b5f9ba9a7d7bc0f2a26
(cherry picked from commit acb0b19b8348a4b9518d2f46b1599f423f620347)
2023-03-07 19:42:19 +08:00
Sal Savage
3a0d342ea2 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
2023-03-07 19:42:19 +08:00
Sal Savage
625834fa62 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
2023-03-07 19:42:19 +08:00
Sal Savage
713be738f8 wahoo: Update LE Audio profile properties to match spec and implementation
Bug: 217448211
Test: atest BluetoothInstrumentationTests
Change-Id: I9312b9b70b51603aca6da6f4081533ab73c1614d
2023-03-07 19:42:19 +08:00
Alexander Koskovich
2d10ed2b14 wahoo: Move BT profiles props to vendor
* Makes it GSI compatible

Change-Id: I8f7caf241d508af59c16482e6185c42f23f8a460
2023-03-07 19:39:59 +08:00
Sal Savage
46a235019a wahoo: Enable bluetooth profiles with product.prop
Bug: 217448211
Test: make -j
Change-Id: Idd7e52b7822915ed61299f1c0b29bf87ca0339fe
2023-03-07 19:39:59 +08:00
Josh Wu
1cd90c8ee5 wahoo: Switch BtAudio to AIDL
Test: m
Bug: 203490261
Change-Id: I4b8ac40d5ad410b89eb6a0573d740d86471ecfc7
Merged-In: I4b8ac40d5ad410b89eb6a0573d740d86471ecfc7
2023-03-07 19:39:59 +08:00
Jakub Pawlowski
1ebaabbf78 wahoo: Use bluetooth.audio@2.1
bluetooth.audio@2.1 adds new functionalities required for Bluetooth LE
Audio development

Bug: 150670922
Change-Id: Iac2ece0c029a38fef82e81f5ba3ba491163818ef
2023-03-07 19:39:59 +08:00
Christian Hoffmann
a67b7c59c5 wahoo: Set recovery density to xhdpi and save some space
* boot.img doesn't boot otherwise

Change-Id: I193ef2d5ce47084cf42d28551c521265ece2a6c5
2023-03-07 19:39:59 +08:00
Etienne Ruffieux
b68513ed49 wahoo: Removed audio A2dp and Hearing Aid from device.mk
Bug: 220306859
Test: atest
Tag: #feature
Change-Id: I1af8461f8ad82afbb21b43dd6968e824ea89f5d6
2023-03-07 19:39:19 +08:00
Michael Bestas
392302492d Revert "Taimen and walleye still use BUILD_COPY_HEADERS"
This reverts commit a3e5d7a9d1.

Change-Id: Iefdde65950493d89e347b65b6163472f7c518009
2023-03-07 19:39:19 +08:00
Michael Bestas
883c1eb677 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
2023-03-07 19:39:19 +08:00
Eamon Powell
66140d4748 wahoo: Move kernel flags to BoardConfig.mk
Change-Id: Ic246b4155aab0c1378bb5dce1c935c1ab1ef278d
2023-03-07 19:39:19 +08:00
Georg Veichtlbauer
f33d607bde wahoo: Remove CLANG compile flag
Defaults to true now project-wide.

Change-Id: I1e0ff5adadc889d81c90c816457a72d2621e4b5a
2023-03-07 19:39:19 +08:00
Chenyang Zhong
7d8102bf94 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
2023-03-07 19:39:19 +08:00
LuK1337
8e338ceb77 wahoo: Build libhidltransport/libhwbinder
* Needed for old blobs

Change-Id: I43fc0e46547dfc126a4b2ac9dcc82c7c4f2ee172
2023-03-07 19:39:19 +08:00
Isaac Chiou
11b3568589 wahoo: config: Override disable firmware roaming via HAL API
Bug: 178398607
Test: Build Pass
Change-Id: Ic154acc0952b4f00a2e2ae4a3b5626df3f062358
2023-03-07 19:39:19 +08:00
linjoey
f6c13c25e1 wahoo: Modify Vulkan and OpenGL version to 2020-03-01
Bug: 191252896
Test: android.graphics.cts.VulkanDeqpLevelTest#testVulkanDeqpLevel pass
Change-Id: Id066d3a556551d239964d68e5b1e6ea4f35287f3
2023-03-07 19:38:01 +08:00
Alastair Donaldson
b45d0184d4 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
2023-03-07 19:38:01 +08:00
Chris.CC Lee
59104ab3bd 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
2023-03-07 19:38:01 +08:00
Kurt Dresner
72f8d2881f wahoo: Remove unneeded Top Gear permissions from Android Auto
Bug: 184195079
Change-Id: Id2b50bd8e67cc5f8ed05d87a3fbfa42dbf86b9ec
2023-03-07 19:38:01 +08:00
Kurt Dresner
a00b4525a2 wahoo: Remove permissions that are now granted via role to Android Auto (Gearhead).
Bug: 134997071
Bug: 166143587
Test: Code builds
Change-Id: I223fd8690d8fb076bdf8d961a51ae090f131cfbd
2023-03-07 19:38:01 +08:00
Ruslan Tkhakokhov
bbdf533248 wahoo: Swap Pixelmigrate for Restore APK in default-permissions
Bug: 186731327
Test: atest DefaultPermissionGrantPolicyTest
Change-Id: I743c11c62065d25aa3a9208b6ab42950e8f844f3
2023-03-07 19:38:01 +08:00
Gillian Lin
b89f1c961b 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
2023-03-07 19:38:01 +08:00
Remi NGUYEN VAN
746eae917f 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
2023-03-07 19:37:10 +08:00
Nolen Johnson
85f80958cf wahoo: Kill deprecated TARGET_USES_MKE2FS
* This has been useless since some time in Pie.

Change-Id: Ic02238aa0f1c25cfad20a2b827c3c2fe128f3543
2023-03-07 19:37:10 +08:00
Nolen Johnson
1782feb4d1 wahoo: Remove legacy VNDK27 hacks
* We don't support building targetting this old of a VNDK
  anymore, so these are useless.

Change-Id: Ifb0de47947d87413904b32cf73a997be0418ffb0
2023-03-07 19:37:10 +08:00
Nolen Johnson
38d3e129ca 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
2023-03-07 19:37:10 +08:00
Nolen Johnson
1b40636a09 wahoo: Don't build non-existant or default packages
Change-Id: I984a8d6d5175a5a894b2200e7bdc4795fbbc11c2
2023-03-07 19:37:10 +08:00
ReallySnow
d67abc56a4 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
2023-03-07 19:37:10 +08:00
Nolen Johnson
00231d9b47 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
2023-03-07 19:37:10 +08:00
Nolen Johnson
828584c726 wahoo: sepolicy: vendor: Allow vendor_init to read various properties
Change-Id: I6700d6d624866c1425e58ca4f282b9d1bd03c368
2023-03-07 19:35:53 +08:00
Nolen Johnson
43938da5c4 wahoo: sepolicy: vendor: Allow vendor_misc_writer to read sysfs_dt_firmware_android
Change-Id: I5ae78196a5c22f6e42f0478987c62a1645193af7
2023-03-07 19:35:53 +08:00
Nolen Johnson
420eaab0d6 wahoo: sepolicy: Allow dataservice_app to read several things
* Needs both directory and file permissions.

Change-Id: I78f752e5daab7f8f39a082dc68624fa05f2668fb
2023-03-07 19:35:53 +08:00
Nolen Johnson
37c246e476 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
2023-03-07 19:35:53 +08:00
Nolen Johnson
7ca4cf94c5 wahoo: sepolicy: private: Extend priv_app dontaudit's to proc_version
* DevicePersonalizationServices wrongly wants this (according to Google).

Change-Id: Ib4e9add1e86256fe131436d441d9b0fad6f18bd5
2023-03-07 19:35:03 +08:00
Nolen Johnson
2a87c02dbe 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
2023-03-07 19:35:03 +08:00
Nolen Johnson
3787b966bd 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
2023-03-07 19:35:03 +08:00
Nolen Johnson
8904cdb0df wahoo: sepolicy: vendor: Import vendor_persist_type attribute from coral
Change-Id: Ic042fe00c536a5e775abfde34c60e197afb33731
2023-03-07 19:35:03 +08:00
Nolen Johnson
d685774bce wahoo: sepolicy: Drop types declared in hardware/google/pixel-sepolicy
Change-Id: I3334a186bacde70881cf503fb5b6554a2d8a3f13
2023-03-07 19:35:03 +08:00
Edwin Wong
d01168a222 wahoo: Update clearkey plugin to drm HAL v1.4
Test: atest
  atest CtsMediaTestCases:android.media.cts.MediaDrmClearkeyTest#testGetPlaybackComponent

Bug: 182525516
Change-Id: I406b7d3c2921d4698535421894c6eb3785eb1c0d
2023-03-07 19:35:03 +08:00
Nicolas Geoffray
4c8f04436b 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
2023-03-07 19:35:03 +08:00
Kevin Jeon
0801ae01ca 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
2023-03-07 19:34:09 +08:00
Wilson Sung
f6c94d69e2 wahoo: Set SOC manufacturer and chipset properties
Bug: 158284209
Bug: 180589452
Change-Id: I26d4b3767d336321bd562a8d5a289ce864536f5e
2023-03-07 19:34:09 +08:00
Roberto Sartori
e958176266 wahoo: Disable compressed APEX
Compressed APEX has been introduced in Android 12, and they are enabled
by default inheriting updatable_apex.mk.
Unfortunately, when the device is encrypted, they are causing bootloops
on msm8998.
As the only advantage is some space gain on disk, we can
simply disable them: keep the variable immediately after including the
updatable_apex.mk to avoid being overwritten.

Signed-off-by: Roberto Sartori <roberto.sartori.android@gmail.com>
Change-Id: If46fa28e4bc59af80de441d1fca6c3f13f395168
2023-03-07 19:34:09 +08:00
Lunarixus
a3b8d457d9 wahoo: Generate full framework matrix
* 12 requires every HAL to be explicitly listed.

Change-Id: Ic4408870bb964ecf97a9c8c109764f806aee039d
2023-03-07 19:33:29 +08:00
Lunarixus
29a978ac80 wahoo: Explicitly build all needed HALs
Change-Id: Ic6b8f8cf56a37fb8504e1cb57fedae2fe3fb4bc9
2023-03-07 19:33:29 +08:00
Nolen Johnson
99c94dd6d4 wahoo: Build android.frameworks.sensorservice@1.0
* System and vendor variant.
* Add ISensorManager interface to sensors HAL declaration

Change-Id: If9c2b4ecb3d57c5e68a4187a601339b3d2538d8f
2023-03-07 19:33:29 +08:00
Nolen Johnson
1131a293e5 wahoo: Uprev framework compatibility matrix to 2.0
Change-Id: I70879d119c42831579ff099cc532fc62c4f205b6
2023-03-07 19:33:29 +08:00
Erfan Abdi
711d042b4d wahoo: Update to FCM level 3
Change-Id: I06a7e7939083f541280fc0136611ea2f8724eb1d
Signed-off-by: Joshua Blanchard <joshua.lee.bbg@gmail.com>
2023-03-07 19:33:29 +08:00
Nolen Johnson
96748875a4 wahoo: Enable BUILD_BROKEN_ELF_PREBUILT_PRODUCT_COPY_FILES
* The alternative to this sucks even more than this.

Change-Id: Ia0a056315f1d23c5026f428ec6063e57425d830e
2023-03-07 19:32:40 +08:00
Kyle Lin
f19693b375 wahoo: Switch to use stable power HAL
Bug: 154570109
Test: build and capture the trace to check
Change-Id: I4794f44266762672ef3b6ad9bf1353f6784e34d6
2023-03-07 19:32:40 +08:00
Michael Bestas
44ac382f60 wahoo: Remove android.hardware.graphics.composer@2.1-impl
It no longer exists, the service is fully binderized

Change-Id: I06ee402b50216948e0e72a2797c2edfda1c4886a
2023-03-07 19:32:40 +08:00
Danny Lin
663f87fdcf 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
2023-03-07 19:32:40 +08:00
Tim Lin
dd63aadd1e 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
2023-03-07 19:32:40 +08:00
Anton Hansson
676cb0c8b4 wahoo: Enforce RRO for all resource overlays
Bug: 118823052
Test: make
Change-Id: I579d09480c7a482543ea616dd5c493d825bb98b1
2023-03-07 19:32:40 +08:00
doc HD
b0cb92ecd8 wahoo: Enable Wifi Display
Change-Id: Ie8cd49ee5a36ffb07faac85790e7b0782f2de123
2023-03-07 19:32:40 +08:00
PixelBoot
3c81737e20 wahoo: Build NowPlaying service (NowPlayingOverlay)
Now Playing is supported as from the wahoo device series.
2023-03-07 19:32:40 +08:00
razorloves
a37b54072e 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
2023-03-07 19:31:13 +08:00
Max Bires
36490ef00a wahoo: Add VENDOR_SECURITY_PATCH level definition
Change-Id: I0d923d4eb67ddef3be81409676472fe520bbacf5
2023-03-07 19:31:13 +08:00
Eamon Powell
8ff6c87b21 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
2023-03-07 19:31:13 +08:00
Eamon Powell
2576f4faf4 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
2023-03-07 19:31:13 +08:00
razorloves
3f00dcc0c8 wahoo: Build the vendor image
* Updated for R. Google moved AB_OTA_PARTITIONS to boardconfig.

Change-Id: I6e77335985526162433b1b879775a6fd89163c5e
2023-03-07 19:31:13 +08:00
beanstown106
0d05e115ae wahoo: Enable battery led and multicolor notif/battery leds
* Updated comments with latest lights capabilities.

Change-Id: I445277aeebccd8bf6b0897d51d6a0c29d173828c
2023-03-07 19:31:13 +08:00
Abhisek Devkota
5a2eab20e6 wahoo: Enable sound trigger
Change-Id: Id5c8572a7297df73b119ff8f0ac4888e235c76b6
(cherry picked from commit e55bed9a5eaa937dd94bb10649eccb8f0102bb49)
2023-03-07 19:31:13 +08:00
razorloves
6c2e9cb367 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
2023-03-07 19:31:13 +08:00
Danny Lin
2da9af06cc wahoo: Define embedded eUICC slot
Extracted from the RP1A.200720.009 stock ROM.

Change-Id: I88a9b5605914369f2c262dec53571dd638504cfb
2023-03-07 19:30:09 +08:00
Ethan Chen
8b622f2c0c 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
2023-03-07 19:30:09 +08:00
Abhisek Devkota
61f94c90bf wahoo: IMS Support
Build what we can

Change-Id: I9e482b9c35131e3634aaf7a6c8ba05ade11b28fb
2023-03-07 19:30:09 +08:00
Rashed Abdel-Tawab
20cdfd8514 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
2023-03-07 19:30:09 +08:00
Eamon Powell
c5eb917daf wahoo: Remove hardware/qcom/msm8998 from soong namespaces
We have gpt-utils in tree instead and don't sync this.

Change-Id: Id7afad6c0c789f6e5ba0bd28b58e173c2ca99d13
2023-03-07 19:29:29 +08:00
Rashed Abdel-Tawab
db09613566 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
2023-03-07 19:29:29 +08:00
Christopher N. Hesse
b9cf7f6f54 wahoo: Compile kernel inline
Change-Id: I59ca916dcc1ec3c5b3ff56ae76ad56db5cafbbce
2023-03-07 19:29:29 +08:00
PixelBoot
2fcad3fcad wahoo: move bootctrl to device specific trees
Since we've adapted libgpt-utils to specific trees, bootctrl needs that too.
2023-03-07 19:29:29 +08:00
PixelBoot
bd5fb20ac8 wahoo: refactor block device labeling for product 2023-03-07 19:29:29 +08:00
PixelBoot
195ba26c3e 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.
2023-03-07 19:29:29 +08:00
PixelBoot
3acc9e37f3 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.
2023-03-07 19:29:29 +08:00
PixelBoot
9d54a36059 Revert "Add recovery.wipe file."
This reverts commit 1ff004a529.
2023-03-07 19:28:38 +08:00
Eamon Powell
2a79d0a860 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
2023-03-07 19:27:01 +08:00
Sultan Alsawaf
b3f7895b90 wahoo: Force triple frame buffers
This yields significantly reduced jitter and doesn't have any measurable
impact on latency.

Change-Id: I4d1de21487757be3df3bd908e1a6152fd951d732
2023-03-07 19:27:01 +08:00
Wang Han
d44d030af2 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
2023-03-07 19:27:01 +08:00
Alessandro Astone
c6939fe5b2 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
2023-03-07 19:27:01 +08:00
razorloves
7c80b9e967 wahoo: Fix public key for wfcactivation sepolicy domain
This wfcactivation sepolicy pem file has the wrong public key, causing
the mac_permissions.xml to have the wrong signature for the
wfcactivation app.  That further causes a signature verification fail
during boot, which prevents the wfcactivation app from being labeled
with the proper domain of wfc_activation_app.

Used the following command to extract the proper public key from the
wfcactivation apk:
openssl pkcs7 -inform DER -in CERT.RSA -out CERT.pem -print_certs

This fixes selinux denial errors, like the following, that caused wifi
calling to fail on some carriers:
avc:  denied  { find } for service=qchook pid=3473
uid=10112 scontext=u:r:priv_app:s0:c512,c768
tcontext=u:object_r:qchook_service:s0 tclass=service_manager

Change-Id: I9ba03a5d27a2d6947355a9e1c076e2728ec1d50b
2023-03-07 19:27:01 +08:00
Dan Pasanen
f6d39ece54 wahoo: Enable config_vibrateOnIconAnimation
* Need those sexy vibes.

Change-Id: If5671135879f6f4069d0ed881b41b0a243890349
2023-03-07 19:27:01 +08:00
Michael Bestas
98bebb2520 wahoo: Set default screen brightness
Extracted from stock.

Change-Id: I8a5e2c8717c145e66aaa0e926ceefc7e117b04c2
2023-03-07 19:27:01 +08:00
Danny Lin
6970daf26a wahoo: Enable USB and skin temperature warnings
Extracted from stock.

Change-Id: I951f60579a4b7fa2dcc270b5acd433ad1ecb083c
2023-03-07 19:26:02 +08:00
Michael Bestas
a1ff6a79d8 wahoo: Set config_nightDisplayColorTemperatureCoefficients
Extracted from stock.

Change-Id: I5d69d01204b0dd86a7205eb3b16e02f97a7f3db2
2023-03-07 19:26:02 +08:00
razorloves
396d110b0a wahoo: Allow 3rd party apps to use fingerprint gestures
* Also, this is set to true in pixel stock roms.

Change-Id: I7f08c640452f169c3e403c7af20ca61e7e90ca5c
2023-03-07 19:26:02 +08:00
razorloves
bca1c257ff wahoo: Set auto brightness mode on by default
* Stock sets this on by default, mirror that behavior.

Change-Id: I5cb8e3db27849ebd90459a6d70e053158c05bcc9
2023-03-07 19:26:02 +08:00
Danny Lin
f27f0bd26c 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
2023-03-07 19:25:30 +08:00
Kevin Chyn
7de8e9dd97 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
2023-03-07 19:25:30 +08:00
Danny Lin
74013f02a1 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
2023-03-07 19:25:30 +08:00
Danny Lin
5632b1c13a 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
2023-03-07 19:25:30 +08:00
Rick Yiu
b9b22d2d84 wahoo: Sync pinner service configs from crosshatch
Bug: 130103428
Test: verified with dumpsys pinner
Change-Id: I8ffe5eee1d40a5ac6be2112621ccda4b4dd5be1a
2023-03-07 19:25:30 +08:00
razorloves
d80cc55f8d wahoo: Set OPA property to enable google assistant
Change-Id: I741171219d64a28d56531f063f95f3f6f6cf81e6
2023-03-07 19:24:42 +08:00
razorloves
f6dec31148 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
2023-03-07 19:24:42 +08:00
Ethan Chen
0735b10542 wahoo: Disable userdebug diagnostics
- We can't make use of most of the debug features on userdebug builds.

Change-Id: I31df2090b31243b742c4e82dc08cd8491dada54f
2023-03-07 19:24:42 +08:00
Anay Wadhera
7a84398986 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
2023-03-07 19:24:42 +08:00
Anton Hansson
a212387757 wahoo: Add the nfc_extras shared lib
Bug: 80410283
Test: lunch mainline_arm64; m nothing
Change-Id: I5bdc32988ced9c0b93bb54bc8cb88ead7efe4fcb
2023-03-07 19:24:42 +08:00
Lokesh Gidra
d7a585d0c0 wahoo: Use 4GB dalvik-heap config
We are currently using 2GB dalvik-heap config.

Bug: 145823510
Test: MPTS test
Change-Id: Ie26b8e4fefea25fa818bd1eaf9df4a0bb153d42d
2023-03-07 19:24:42 +08:00
16 changed files with 309 additions and 242 deletions

View File

@@ -163,7 +163,12 @@ 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,8 +188,7 @@ PRODUCT_PACKAGES += \
# health HAL
PRODUCT_PACKAGES += \
android.hardware.health@2.1-impl-wahoo \
android.hardware.health@2.1-service
android.hardware.health@2.0-service.wahoo
# Permissions
# NOTE: Used to deal with permission issues caused by Gapps updates
@@ -224,6 +223,10 @@ 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
@@ -278,7 +281,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 += \
@@ -305,14 +308,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 += \
@@ -395,7 +398,9 @@ PRODUCT_PROPERTY_OVERRIDES += \
# DRM HAL
PRODUCT_PACKAGES += \
android.hardware.drm@1.3.vendor \
android.hardware.drm-service.clearkey
android.hardware.drm-service.clearkey \
libprotobuf-cpp-full-3.9.1-vendorcompat \
libprotobuf-cpp-lite-3.9.1-vendorcompat
# NFC packages
PRODUCT_PACKAGES += \
@@ -404,6 +409,13 @@ PRODUCT_PACKAGES += \
android.hardware.nfc@1.1-service \
com.android.nfc_extras
PRODUCT_PACKAGES += \
SecureElement
# Elmyra
PRODUCT_PACKAGES += \
ElmyraService
# NowPlayingOverlay
PRODUCT_PACKAGES += \
NowPlayingOverlay
@@ -416,17 +428,6 @@ 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 \
@@ -456,10 +457,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 \
libpower.vendor
android.frameworks.sensorservice@1.0 \
android.frameworks.sensorservice@1.0.vendor
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/sensors/hals.conf:vendor/etc/sensors/hals.conf
@@ -509,7 +510,6 @@ 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=1
persist.sys.ssr.enable_ramdumps=0
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,6 +783,10 @@ 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
@@ -793,25 +797,24 @@ 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
# 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
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
# Use /product/etc/fstab.postinstall to mount system_other.
PRODUCT_PRODUCT_PROPERTIES += \
@@ -855,7 +858,7 @@ PRODUCT_PACKAGES += \
libhwbinder
# Setting vendor SPL
VENDOR_SECURITY_PATCH := $(PLATFORM_SECURITY_PATCH)
VENDOR_SECURITY_PATCH := "2020-10-05"
# Task profiles
PRODUCT_COPY_FILES += \

View File

@@ -1,9 +1,141 @@
<compatibility-matrix version="2.0" type="framework">
<hal format="hidl" optional="true">
<name>android.hardware.light</name>
<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>
<version>2.0</version>
<interface>
<name>ILight</name>
<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>
<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,21 +10,15 @@
"branch":"thirteen"
},
{
"repository":"LineageOS/android_device_google_gs-common",
"target_path":"device/google/gs-common",
"remote":"github",
"branch":"lineage-21"
"repository":"LineageOS/android_packages_apps_ElmyraService",
"target_path":"packages/apps/ElmyraService",
"remote":"github",
"branch":"lineage-21.0"
},
{
"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"
"repository":"Evolution-X/packages_apps_ViMusic",
"target_path":"packages/apps/ViMusic",
"remote":"github",
"branch":"udc"
}
]

View File

@@ -13,15 +13,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
cc_library_shared {
name: "android.hardware.health@2.1-impl-wahoo",
stem: "android.hardware.health@2.0-impl-2.1-wahoo",
cc_binary {
name: "android.hardware.health@2.0-service.wahoo",
init_rc: ["android.hardware.health@2.0-service.wahoo.rc"],
proprietary: true,
relative_install_path: "hw",
srcs: [
"Health.cpp",
"HealthService.cpp",
"CycleCountBackupRestore.cpp",
"LearnedCapacityBackupRestore.cpp",
],
@@ -32,10 +30,10 @@ cc_library_shared {
],
static_libs: [
"android.hardware.health@2.0-impl",
"android.hardware.health@1.0-convert",
"libhealthservice",
"libbatterymonitor",
"libhealth2impl",
"libhealthloop",
],
shared_libs: [
@@ -44,6 +42,7 @@ cc_library_shared {
"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.1-impl-wahoo"
#define LOG_TAG "android.hardware.health@2.0-service.wahoo"
#include <android-base/logging.h>
#include <android/hardware/health/2.0/types.h>
#include <health2impl/Health.h>
#include <health/utils.h>
#include <hal_conversion.h>
#include <healthd/healthd.h>
#include <health2/Health.h>
#include <health2/service.h>
#include <hidl/HidlTransportSupport.h>
#include <android-base/file.h>
#include <android-base/strings.h>
@@ -30,17 +30,8 @@
#include "CycleCountBackupRestore.h"
#include "LearnedCapacityBackupRestore.h"
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 android::hardware::health::V2_0::DiskStats;
using ::device::google::wahoo::health::CycleCountBackupRestore;
using ::device::google::wahoo::health::LearnedCapacityBackupRestore;
@@ -73,13 +64,15 @@ int cycle_count_backup(int battery_level)
return 0;
}
void private_healthd_board_init(struct healthd_config*)
// See : hardware/interfaces/health/2.0/README
void healthd_board_init(struct healthd_config*)
{
ccBackupRestore.Restore();
lcBackupRestore.Restore();
}
int private_healthd_board_battery_update(struct android::BatteryProperties *props)
int healthd_board_battery_update(struct android::BatteryProperties *props)
{
cycle_count_backup(props->batteryLevel);
lcBackupRestore.Backup();
@@ -94,7 +87,7 @@ const char kUFSName[] = "UFS0";
/*
* Implementation based on system/core/storaged/storaged_info.cc
*/
void private_get_storage_info(std::vector<StorageInfo>& vec_storage_info) {
void get_storage_info(std::vector<StorageInfo>& vec_storage_info) {
StorageInfo storage_info = {};
std::string buffer, version;
@@ -154,7 +147,7 @@ void private_get_storage_info(std::vector<StorageInfo>& vec_storage_info) {
/*
* Implementation based on parse_disk_stats() in system/core/storaged_diskstats.cpp
*/
void private_get_disk_stats(std::vector<DiskStats>& vec_stats) {
void get_disk_stats(std::vector<DiskStats>& vec_stats) {
const size_t kDiskStatsSize = 11;
struct DiskStats stats = {};
@@ -179,74 +172,7 @@ void private_get_disk_stats(std::vector<DiskStats>& vec_stats) {
return;
}
} // anonymous namespace
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));
int main(void) {
return health_service_main();
}

View File

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

@@ -1,32 +0,0 @@
<?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,8 +82,12 @@
<!-- The restoring is handled by modem if it is true -->
<bool translatable="false" name="skip_restoring_network_selection">true</bool>
<!-- Is the notification LED intrusive? Used to decide if there should be a disable option -->
<bool name="config_intrusiveNotificationLed">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>
<!-- Default color for notification LED is white. -->
<color name="config_defaultNotificationColor">#ffffffff</color>

View File

@@ -0,0 +1,24 @@
<?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-----
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==
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=
-----END CERTIFICATE-----

View File

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