Commit Graph

6392 Commits

Author SHA1 Message Date
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