Compare commits

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
66 changed files with 2916 additions and 379 deletions

View File

@@ -1,7 +1,5 @@
soong_namespace {
imports: [
"hardware/google/pixel",
"hardware/qcom/bootctrl",
"hardware/qcom/msm8998",
],
}

View File

@@ -19,4 +19,73 @@ LOCAL_PATH := $(call my-dir)
ifeq ($(USES_DEVICE_GOOGLE_WAHOO),true)
subdir_makefiles=$(call first-makefiles-under,$(LOCAL_PATH))
$(foreach mk,$(subdir_makefiles),$(info including $(mk) ...)$(eval include $(mk)))
IMS_LIBS := libimscamera_jni.so libimsmedia_jni.so
IMS_SYMLINKS := $(addprefix $(TARGET_OUT)/app/ims/lib/arm64/,$(notdir $(IMS_LIBS)))
$(IMS_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
@echo "IMS lib link: $@"
@mkdir -p $(dir $@)
@rm -rf $@
$(hide) ln -sf /system/lib64/$(notdir $@) $@
DM_LIBS := libdmengine.so libdmjavaplugin.so
DM_SYMLINKS := $(addprefix $(TARGET_OUT_PRODUCT)/priv-app/DMService/lib/arm/,$(notdir $(DM_LIBS)))
$(DM_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
@echo "DMService lib link: $@"
@mkdir -p $(dir $@)
@rm -rf $@
$(hide) ln -sf /system/product/lib/$(notdir $@) $@
RFS_MSM_ADSP_SYMLINKS := $(TARGET_OUT_VENDOR)/rfs/msm/adsp/
$(RFS_MSM_ADSP_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
@echo "Creating RFS MSM ADSP folder structure: $@"
@rm -rf $@/*
@mkdir -p $(dir $@)/readonly/vendor
$(hide) ln -sf /data/vendor/tombstones/rfs/lpass $@/ramdumps
$(hide) ln -sf /persist/rfs/msm/adsp $@/readwrite
$(hide) ln -sf /persist/rfs/shared $@/shared
$(hide) ln -sf /persist/hlos_rfs/shared $@/hlos
$(hide) ln -sf /firmware $@/readonly/firmware
$(hide) ln -sf /vendor/firmware $@/readonly/vendor/firmware
RFS_MSM_MPSS_SYMLINKS := $(TARGET_OUT_VENDOR)/rfs/msm/mpss/
$(RFS_MSM_MPSS_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
@echo "Creating RFS MSM MPSS folder structure: $@"
@mkdir -p $(dir $@)/readonly/vendor
$(hide) ln -sf /data/vendor/tombstones/rfs/modem $@/ramdumps
$(hide) ln -sf /persist/rfs/msm/mpss $@/readwrite
$(hide) ln -sf /persist/rfs/shared $@/shared
$(hide) ln -sf /persist/hlos_rfs/shared $@/hlos
$(hide) ln -sf /firmware $@/readonly/firmware
$(hide) ln -sf /vendor/mbn $@/readonly/mbn
$(hide) ln -sf /vendor/firmware $@/readonly/vendor/firmware
RFS_MSM_SLPI_SYMLINKS := $(TARGET_OUT_VENDOR)/rfs/msm/slpi/
$(RFS_MSM_SLPI_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
@echo "Creating RFS MSM SLPI folder structure: $@"
@rm -rf $@/*
@mkdir -p $(dir $@)/readonly
$(hide) ln -sf /data/vendor/tombstones/rfs/slpi $@/ramdumps
$(hide) ln -sf /persist/rfs/msm/slpi $@/readwrite
$(hide) ln -sf /persist/rfs/shared $@/shared
$(hide) ln -sf /persist/hlos_rfs/shared $@/hlos
$(hide) ln -sf /firmware $@/readonly/firmware
EGL_LIBS := eglSubDriverAndroid.so libEGL_adreno.so libGLESv1_CM_adreno.so libGLESv2_adreno.so libq3dtools_adreno.so libq3dtools_esx.so
EGL_32_SYMLINKS := $(addprefix $(TARGET_OUT_VENDOR)/lib/,$(notdir $(EGL_LIBS)))
$(EGL_32_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
@echo "EGL 32 lib link: $@"
@mkdir -p $(dir $@)
@rm -rf $@
$(hide) ln -sf egl/$(notdir $@) $@
EGL_64_SYMLINKS := $(addprefix $(TARGET_OUT_VENDOR)/lib64/,$(notdir $(EGL_LIBS)))
$(EGL_64_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
@echo "EGL lib link: $@"
@mkdir -p $(dir $@)
@rm -rf $@
$(hide) ln -sf egl/$(notdir $@) $@
ALL_DEFAULT_INSTALLED_MODULES += $(IMS_SYMLINKS) $(DM_SYMLINKS) $(RFS_MSM_ADSP_SYMLINKS) $(RFS_MSM_MPSS_SYMLINKS) $(RFS_MSM_SLPI_SYMLINKS) $(EGL_32_SYMLINKS) $(EGL_64_SYMLINKS)
endif

View File

@@ -29,7 +29,8 @@ TARGET_2ND_CPU_ABI2 := armeabi
TARGET_2ND_CPU_VARIANT := cortex-a73
BUILD_BROKEN_DUP_RULES := true
BUILD_BROKEN_USES_BUILD_COPY_HEADERS := true
BUILD_BROKEN_ELF_PREBUILT_PRODUCT_COPY_FILES := true
BUILD_BROKEN_INCORRECT_PARTITION_IMAGES := true
BOARD_KERNEL_CMDLINE += androidboot.hardware=$(TARGET_BOOTLOADER_BOARD_NAME) androidboot.console=ttyMSM0 lpm_levels.sleep_disabled=1
BOARD_KERNEL_CMDLINE += user_debug=31 msm_rtb.filter=0x37 ehci-hcd.park=3
@@ -52,23 +53,28 @@ BOARD_KERNEL_TAGS_OFFSET := 0x01E00000
BOARD_RAMDISK_OFFSET := 0x02000000
endif
BOARD_RAMDISK_USE_XZ := true
TARGET_NO_BOOTLOADER ?= true
TARGET_NO_KERNEL := false
TARGET_NO_RECOVERY := true
TARGET_RECOVERY_DENSITY := xhdpi
BOARD_USES_RECOVERY_AS_BOOT := true
BOARD_BUILD_SYSTEM_ROOT_IMAGE := true
BOARD_USES_METADATA_PARTITION := true
# Partitions (listed in the file) to be wiped under recovery.
TARGET_RECOVERY_WIPE := device/google/wahoo/recovery.wipe
TARGET_RECOVERY_FSTAB := device/google/wahoo/fstab.hardware
# Kernel
BOARD_KERNEL_IMAGE_NAME := Image.lz4-dtb
TARGET_COMPILE_WITH_MSM_KERNEL := true
TARGET_KERNEL_SOURCE := kernel/google/wahoo
TARGET_NEEDS_DTBOIMAGE := true
# Verified Boot
BOARD_AVB_ENABLE := true
BOARD_AVB_MAKE_VBMETA_IMAGE_ARGS += --flags 3
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2684354560
BOARD_SYSTEMIMAGE_JOURNAL_SIZE := 0
ifneq ($(PRODUCT_INCREASE_INODE_COUNT),true)
BOARD_SYSTEMIMAGE_EXTFS_INODE_COUNT := 4096
BOARD_SYSTEMIMAGE_EXTFS_INODE_COUNT := 7168
else
BOARD_SYSTEMIMAGE_EXTFS_INODE_COUNT := 8192
endif
@@ -76,14 +82,19 @@ TARGET_USERIMAGES_USE_EXT4 := true
BOARD_USERDATAIMAGE_PARTITION_SIZE := 26503790080
BOARD_PERSISTIMAGE_PARTITION_SIZE := 33554432
BOARD_PERSISTIMAGE_FILE_SYSTEM_TYPE := ext4
BOARD_VENDORIMAGE_PARTITION_SIZE := 524288000
BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4
BOARD_FLASH_BLOCK_SIZE := 131072
BOARD_PRODUCTIMAGE_PARTITION_SIZE := 3221225472
BOARD_PRODUCTIMAGE_FILE_SYSTEM_TYPE := ext4
# DTBO partition definitions
BOARD_PREBUILT_DTBOIMAGE := device/google/wahoo-kernel/dtbo.img
BOARD_DTBOIMG_PARTITION_SIZE := 8388608
TARGET_COPY_OUT_VENDOR := vendor
TARGET_COPY_OUT_PRODUCT := product
# Install odex files into the other system image
BOARD_USES_SYSTEM_OTHER_ODEX := true
@@ -93,13 +104,14 @@ BOARD_VENDOR_SEPOLICY_DIRS += device/google/wahoo/sepolicy/vendor
SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS := device/google/wahoo/sepolicy/public
SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS := device/google/wahoo/sepolicy/private
BOARD_VENDOR_SEPOLICY_DIRS += device/google/wahoo/sepolicy/verizon
BOARD_VENDOR_SEPOLICY_DIRS += hardware/google/pixel-sepolicy/citadel
BOARD_VENDOR_SEPOLICY_DIRS += hardware/google/pixel-sepolicy/powerstats
TARGET_FS_CONFIG_GEN := device/google/wahoo/config.fs
QCOM_BOARD_PLATFORMS += msm8998
BOARD_HAVE_BLUETOOTH_QCOM := true
BOARD_USES_SDM845_BLUETOOTH_HAL := true
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/google/wahoo/bluetooth
# Camera
TARGET_USES_AOSP := true
@@ -136,11 +148,13 @@ CHRE_DAEMON_ENABLED := true
CHRE_DAEMON_USE_SDSPRPC := true
# Audio
AUDIO_FEATURE_ENABLED_DS2_DOLBY_DAP := true
BOARD_USES_ALSA_AUDIO := true
AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true
AUDIO_FEATURE_ENABLED_SND_MONITOR := true
AUDIO_FEATURE_ENABLED_USB_TUNNEL := true
BOARD_ROOT_EXTRA_SYMLINKS := /vendor/lib/dsp:/dsp
BOARD_SUPPORTS_SOUND_TRIGGER := true
# Include whaoo modules
USES_DEVICE_GOOGLE_WAHOO := true
@@ -153,8 +167,8 @@ VSYNC_EVENT_PHASE_OFFSET_NS := 2000000
SF_VSYNC_EVENT_PHASE_OFFSET_NS := 6000000
# Display
TARGET_HAS_WIDE_COLOR_DISPLAY := false
TARGET_HAS_HDR_DISPLAY := false
TARGET_HAS_WIDE_COLOR_DISPLAY := true
TARGET_HAS_HDR_DISPLAY := true
TARGET_USES_COLOR_METADATA := true
# Charger Mode
@@ -167,18 +181,6 @@ DEVICE_FRAMEWORK_MANIFEST_FILE := device/google/wahoo/framework_manifest.xml
DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE := device/google/wahoo/device_framework_matrix.xml
BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true
# Use mke2fs to create ext4 images
TARGET_USES_MKE2FS := true
BOARD_VNDK_VERSION := current
# Board uses A/B OTA.
AB_OTA_UPDATER := true
AB_OTA_PARTITIONS += \
boot \
system \
vbmeta \
dtbo
BUILD_BROKEN_ENFORCE_SYSPROP_OWNER := true

View File

@@ -210,3 +210,6 @@ $(call add-clean-step, rm -rf $(PRODUCT_OUT)/recovery/root/system/lib64/hw/andro
# Vibrator HAL 1.2 renamed from 'wahoo' to 'drv2624'
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/vendor/etc/init/android.hardware.vibrator@1.2-service.wahoo.rc)
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/vendor/bin/hw/android.hardware.vibrator@1.2-service.wahoo)
# Use stable aidl power HAL
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/vendor/etc/init/android.hardware.power-service.pixel-libperfmgr.rc)

View File

@@ -59,6 +59,15 @@
<profile name="" format="AUDIO_FORMAT_AAC_HE_V2"
samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000"
channelMasks="AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_MONO"/>
<profile name="" format="AUDIO_FORMAT_AC3"
samplingRates="32000,44100,48000"
channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_2POINT1,AUDIO_CHANNEL_OUT_QUAD,AUDIO_CHANNEL_OUT_PENTA,AUDIO_CHANNEL_OUT_5POINT1"/>
<profile name="" format="AUDIO_FORMAT_E_AC3"
samplingRates="32000,44100,48000"
channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_2POINT1,AUDIO_CHANNEL_OUT_QUAD,AUDIO_CHANNEL_OUT_PENTA,AUDIO_CHANNEL_OUT_5POINT1,AUDIO_CHANNEL_OUT_6POINT1,AUDIO_CHANNEL_OUT_7POINT1"/>
<profile name="" format="AUDIO_FORMAT_E_AC3_JOC"
samplingRates="32000,44100,48000"
channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_2POINT1,AUDIO_CHANNEL_OUT_QUAD,AUDIO_CHANNEL_OUT_PENTA,AUDIO_CHANNEL_OUT_5POINT1,AUDIO_CHANNEL_OUT_6POINT1,AUDIO_CHANNEL_OUT_7POINT1"/>
</mixPort>
<mixPort name="voice_tx" role="source">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"

View File

@@ -59,6 +59,15 @@
<profile name="" format="AUDIO_FORMAT_AAC_HE_V2"
samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000"
channelMasks="AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_MONO"/>
<profile name="" format="AUDIO_FORMAT_AC3"
samplingRates="32000,44100,48000"
channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_2POINT1,AUDIO_CHANNEL_OUT_QUAD,AUDIO_CHANNEL_OUT_PENTA,AUDIO_CHANNEL_OUT_5POINT1"/>
<profile name="" format="AUDIO_FORMAT_E_AC3"
samplingRates="32000,44100,48000"
channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_2POINT1,AUDIO_CHANNEL_OUT_QUAD,AUDIO_CHANNEL_OUT_PENTA,AUDIO_CHANNEL_OUT_5POINT1,AUDIO_CHANNEL_OUT_6POINT1,AUDIO_CHANNEL_OUT_7POINT1"/>
<profile name="" format="AUDIO_FORMAT_E_AC3_JOC"
samplingRates="32000,44100,48000"
channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_2POINT1,AUDIO_CHANNEL_OUT_QUAD,AUDIO_CHANNEL_OUT_PENTA,AUDIO_CHANNEL_OUT_5POINT1,AUDIO_CHANNEL_OUT_6POINT1,AUDIO_CHANNEL_OUT_7POINT1"/>
</mixPort>
<mixPort name="voice_tx" role="source">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"

View File

@@ -1,21 +0,0 @@
//
// Copyright (C) 2019 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
cc_library {
name: "bootctrl.msm8998",
defaults: ["bootctrl_hal_defaults"],
static_libs: ["libgptutils.msm8998"],
}

View File

@@ -42,7 +42,8 @@
-->
<exception
package="com.google.android.apps.pixelmigrate">
package="com.google.android.apps.restore"
sha256-cert-digest="56:BE:13:2B:78:06:56:FE:24:44:CD:34:32:6E:B5:D7:AA:C9:1D:20:96:AB:F0:FE:67:3A:99:27:06:22:EC:87">
<!-- External storage -->
<permission name="android.permission.READ_EXTERNAL_STORAGE" fixed="false"/>
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" fixed="false"/>
@@ -52,20 +53,8 @@
<!-- Call logs -->
<permission name="android.permission.READ_CALL_LOG" fixed="false"/>
<permission name="android.permission.WRITE_CALL_LOG" fixed="false"/>
<!-- SMS -->
<permission name="android.permission.RECEIVE_SMS" fixed="false"/>
<permission name="android.permission.READ_PHONE_NUMBERS" fixed="false"/>
</exception>
<exception
package="com.google.android.apps.restore"
sha256-cert-digest="56:BE:13:2B:78:06:56:FE:24:44:CD:34:32:6E:B5:D7:AA:C9:1D:20:96:AB:F0:FE:67:3A:99:27:06:22:EC:87">
<!-- External storage -->
<permission name="android.permission.READ_EXTERNAL_STORAGE" fixed="false"/>
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" fixed="false"/>
<!-- Contacts -->
<permission name="android.permission.READ_CONTACTS" fixed="false"/>
<permission name="android.permission.WRITE_CONTACTS" fixed="false"/>
<!-- Used to set up a Wi-Fi P2P network -->
<permission name="android.permission.ACCESS_FINE_LOCATION" fixed="false"/>
</exception>
<exception
@@ -121,27 +110,6 @@
<permission name="android.permission.ACCESS_BACKGROUND_LOCATION" fixed="true"/>
</exception>
<exception
package="com.google.android.projection.gearhead"
sha256-cert-digest="FD:B0:0C:43:DB:DE:8B:51:CB:31:2A:A8:1D:3B:5F:A1:77:13:AD:B9:4B:28:F5:98:D7:7F:8E:B8:9D:AC:EE:DF">
<!-- Gearhead legacy -->
<permission name="android.permission.ACCESS_FINE_LOCATION" fixed="false"/>
<permission name="android.permission.CALL_PHONE" fixed="false"/>
<permission name="android.permission.READ_CALL_LOG" fixed="false"/>
<permission name="android.permission.READ_CONTACTS" fixed="false"/>
<permission name="android.permission.READ_PHONE_STATE" fixed="false"/>
<permission name="android.permission.RECEIVE_SMS" fixed="false"/>
<permission name="android.permission.RECORD_AUDIO" fixed="false"/>
<permission name="android.permission.SEND_SMS" fixed="false"/>
<permission name="android.permission.READ_CALENDAR" fixed="false"/>
<!-- For Top Gear -->
<permission name="android.permission.PROCESS_OUTGOING_CALLS" fixed="false"/>
<permission name="android.permission.READ_SMS" fixed="false"/>
<permission name="android.permission.RECEIVE_MMS" fixed="false"/>
<permission name="android.permission.WRITE_CALL_LOG" fixed="false"/>
<permission name="android.permission.ACCESS_COARSE_LOCATION" fixed="false"/>
</exception>
<exception package="com.google.android.apps.scone">
<!-- Used to call ActivityTransition API for Smart PNO -->
<permission name="android.permission.ACTIVITY_RECOGNITION" fixed="false"/>

344
device.mk
View File

@@ -14,49 +14,31 @@
# limitations under the License.
#
# Enable updating of APEXes
$(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk)
ifneq (,$(filter 27, $(PRODUCT_EXTRA_VNDK_VERSIONS)))
_vndk_test := true
endif
ifeq (,$(_vndk_test))
PRODUCT_COMPATIBLE_PROPERTY_OVERRIDE := true
endif
PRODUCT_ACTIONABLE_COMPATIBLE_PROPERTY_DISABLE := true
PRODUCT_PROPERTY_OVERRIDES += \
keyguard.no_require_sim=true
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
ro.adb.secure=1
PRODUCT_SOONG_NAMESPACES += \
device/google/wahoo \
vendor/google/camera \
hardware/google/camera \
hardware/google/interfaces \
hardware/google/pixel \
hardware/qcom/msm8998
hardware/qcom/msm8998 \
hardware/qcom/wlan/legacy
PRODUCT_COPY_FILES += \
device/google/wahoo/default-permissions.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default-permissions/default-permissions.xml \
device/google/wahoo/component-overrides.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sysconfig/component-overrides.xml \
frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml \
frameworks/native/data/etc/android.software.verified_boot.xml:system/etc/permissions/android.software.verified_boot.xml
frameworks/native/data/etc/android.software.verified_boot.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.verified_boot.xml
# Set the SVN for the targeted MR release
PRODUCT_PROPERTY_OVERRIDES += \
ro.vendor.build.svn=52
# Enforce privapp-permissions whitelist
PRODUCT_PROPERTY_OVERRIDES += \
ro.control_privapp_permissions=enforce
PRODUCT_PACKAGES += \
messaging
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
PRODUCT_PACKAGES += chre_test_client
endif
@@ -68,24 +50,17 @@ SRC_CAMERA_HAL_DIR := hardware/qcom/camera/msm8998
TARGET_SYSTEM_PROP := $(TARGET_SYSTEM_PROP) $(LOCAL_PATH)/system.prop
# Get kernel-headers
$(call inherit-product, hardware/qcom/msm8998/msm8998.mk)
$(call inherit-product, device/google/wahoo/utils.mk)
ifeq ($(TARGET_PREBUILT_KERNEL),)
LOCAL_KERNEL := device/google/wahoo-kernel/Image.lz4-dtb
else
LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
endif
PRODUCT_CHARACTERISTICS := nosdcard
PRODUCT_SHIPPING_API_LEVEL := 26
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
DEVICE_PACKAGE_OVERLAYS += \
$(LOCAL_PATH)/overlay \
$(LOCAL_PATH)/overlay-evolution \
$(LOCAL_PATH)/overlay-lineage
PRODUCT_COPY_FILES += \
$(LOCAL_KERNEL):kernel \
$(LOCAL_PATH)/init.recovery.hardware.rc:recovery/root/init.recovery.$(PRODUCT_HARDWARE).rc \
$(LOCAL_PATH)/init.hardware.usb.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.wahoo.usb.rc \
$(LOCAL_PATH)/ueventd.hardware.rc:$(TARGET_COPY_OUT_VENDOR)/ueventd.rc \
@@ -113,14 +88,14 @@ else
$(LOCAL_PATH)/init.hardware.xr.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.$(PRODUCT_HARDWARE).rc
endif
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
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
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
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
@@ -150,7 +125,7 @@ PRODUCT_PACKAGES += \
update_engine_sideload
# The following modules are included in debuggable builds only.
PRODUCT_PACKAGES_DEBUG += \
PRODUCT_PACKAGES_ENG += \
a_sns_test \
bootctl \
update_engine_client
@@ -188,6 +163,7 @@ PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.wifi.aware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.aware.xml \
frameworks/native/data/etc/android.hardware.wifi.passpoint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.passpoint.xml \
frameworks/native/data/etc/android.hardware.wifi.rtt.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.rtt.xml \
frameworks/native/data/etc/android.software.ipsec_tunnels.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.ipsec_tunnels.xml \
frameworks/native/data/etc/android.software.sip.voip.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.sip.voip.xml \
frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \
frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \
@@ -202,16 +178,35 @@ PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.vulkan.level-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.level.xml \
frameworks/native/data/etc/android.hardware.vulkan.version-1_1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.version.xml \
frameworks/native/data/etc/android.software.vulkan.deqp.level-2020-03-01.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.vulkan.deqp.level.xml \
frameworks/native/data/etc/android.software.opengles.deqp.level-2020-03-01.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.opengles.deqp.level.xml \
frameworks/native/data/etc/android.hardware.telephony.carrierlock.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.carrierlock.xml \
# power.stats HAL
PRODUCT_PACKAGES += \
android.hardware.power@1.0.vendor \
android.hardware.power.stats@1.0-service.pixel
# health HAL
PRODUCT_PACKAGES += \
android.hardware.health@2.0-service.wahoo
# Permissions
# NOTE: Used to deal with permission issues caused by Gapps updates
PRODUCT_COPY_FILES += \
device/google/wahoo/permissions/pixel_permissions_product.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/pixel_permissions_product.xml
# Enforce privapp-permissions whitelist
PRODUCT_PROPERTY_OVERRIDES += \
ro.control_privapp_permissions?=enforce
# Radio Hal
PRODUCT_PACKAGES += \
android.hardware.radio@1.1.vendor \
android.hardware.radio.config@1.0 \
android.hardware.radio.config@1.0-service \
android.hardware.radio@1.4-service.legacy \
libxml2
# Audio fluence, ns, aec property, voice and media volume steps
PRODUCT_PROPERTY_OVERRIDES += \
ro.qc.sdk.audio.fluencetype=fluencepro \
@@ -224,16 +219,18 @@ PRODUCT_PROPERTY_OVERRIDES += \
# graphics
PRODUCT_PROPERTY_OVERRIDES += \
ro.surface_flinger.enable_frame_rate_override=false \
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
# Disable buffer age (b/74534157)
PRODUCT_PROPERTY_OVERRIDES += \
debug.hwui.use_buffer_age=false
# Enable camera EIS3.0
PRODUCT_PROPERTY_OVERRIDES += \
persist.camera.is_type=5 \
@@ -263,16 +260,15 @@ PRODUCT_PROPERTY_OVERRIDES += \
persist.radio.sap_silent_pin=1 \
persist.radio.sib16_support=1 \
persist.radio.data_con_rprt=true \
persist.vendor.radio.mt_sms_ack=30 \
persist.radio.always_send_plmn=false\
persist.rcs.supported=1
ifeq (,$(_vndk_test))
PRODUCT_PRODUCT_PROPERTIES += \
ro.telephony.block_binder_thread_on_incoming_calls=false
PRODUCT_PROPERTY_OVERRIDES += \
vendor.rild.libpath=/vendor/lib64/libril-qc-qmi-1.so
else
PRODUCT_PROPERTY_OVERRIDES += \
rild.libpath=/vendor/lib64/libril-qc-qmi-1.so
endif
# Disable snapshot timer
PRODUCT_PROPERTY_OVERRIDES += \
@@ -285,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 += \
@@ -312,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 += \
@@ -327,13 +323,12 @@ PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/p2p_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/p2p_supplicant_overlay.conf \
$(LOCAL_PATH)/wifi_concurrency_cfg.txt:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wifi_concurrency_cfg.txt
#ipacm configuration files
PRODUCT_COPY_FILES += \
hardware/qcom/data/ipacfg-mgr/msm8998/ipacm/src/IPACM_cfg.xml:$(TARGET_COPY_OUT_VENDOR)/etc/IPACM_cfg.xml
# ipacm configuration file
PRODUCT_PACKAGES += \
IPACM_cfg.xml
PRODUCT_PACKAGES += \
hwcomposer.msm8998 \
android.hardware.graphics.composer@2.1-impl:64 \
android.hardware.graphics.composer@2.1-service \
gralloc.msm8998 \
android.hardware.graphics.allocator@2.0-impl:64 \
@@ -366,9 +361,26 @@ PRODUCT_PACKAGES += \
# Bluetooth HAL
PRODUCT_PACKAGES += \
android.hardware.bluetooth@1.0-impl-qti:64 \
android.hardware.bluetooth@1.0-service-qti \
android.hardware.bluetooth@1.0-service-qti.rc
android.hardware.bluetooth@1.0.vendor
# Bluetooth Properties
PRODUCT_PROPERTY_OVERRIDES += \
bluetooth.device.class_of_device=90,2,12 \
bluetooth.hardware.power.operating_voltage_mv=3300 \
bluetooth.profile.asha.central.enabled?=true \
bluetooth.profile.a2dp.source.enabled?=true \
bluetooth.profile.avrcp.target.enabled?=true \
bluetooth.profile.bas.client.enabled?=true \
bluetooth.profile.gatt.enabled?=true \
bluetooth.profile.hfp.ag.enabled?=true \
bluetooth.profile.hid.device.enabled?=true \
bluetooth.profile.hid.host.enabled?=true \
bluetooth.profile.map.server.enabled?=true \
bluetooth.profile.opp.enabled?=true \
bluetooth.profile.pan.nap.enabled?=true \
bluetooth.profile.pan.panu.enabled?=true \
bluetooth.profile.pbap.server.enabled?=true \
bluetooth.profile.sap.server.enabled?=true
# Bluetooth SoC
PRODUCT_PROPERTY_OVERRIDES += \
@@ -385,21 +397,37 @@ PRODUCT_PROPERTY_OVERRIDES += \
# DRM HAL
PRODUCT_PACKAGES += \
android.hardware.drm@1.0-impl:32 \
android.hardware.drm@1.0-service \
android.hardware.drm@1.3-service.clearkey \
android.hardware.drm@1.3-service.widevine \
move_widevine_data.sh
android.hardware.drm@1.3.vendor \
android.hardware.drm-service.clearkey \
libprotobuf-cpp-full-3.9.1-vendorcompat \
libprotobuf-cpp-lite-3.9.1-vendorcompat
# NFC packages
PRODUCT_PACKAGES += \
NfcNci \
Tag \
android.hardware.nfc@1.1-service \
com.android.nfc_extras
PRODUCT_PACKAGES += \
SecureElement
# Elmyra
PRODUCT_PACKAGES += \
ElmyraService
# NowPlayingOverlay
PRODUCT_PACKAGES += \
NowPlayingOverlay
# Camera
PRODUCT_PACKAGES += \
GcamPrebuilt
# ViMusic
PRODUCT_PACKAGES += \
ViMusic
PRODUCT_COPY_FILES += \
device/google/wahoo/nfc/libnfc-nci.conf:$(TARGET_COPY_OUT_PRODUCT)/etc/libnfc-nci.conf \
@@ -411,7 +439,6 @@ PRODUCT_PACKAGES += \
libOmxCore \
libstagefrighthw \
libOmxVdec \
libOmxVdecHevc \
libOmxVenc \
libc2dcolorconvert
@@ -425,14 +452,15 @@ PRODUCT_PACKAGES += \
libmmcamera_interface
# Google Camera HAL test libraries in debug builds
PRODUCT_PACKAGES_DEBUG += \
PRODUCT_PACKAGES_ENG += \
libgoogle_camera_hal_proprietary_tests \
libgoogle_camera_hal_tests.vendor
PRODUCT_PACKAGES += \
sensors.$(PRODUCT_HARDWARE) \
android.hardware.sensors@1.0-impl:64 \
android.hardware.sensors@1.0-service
android.hardware.sensors@1.0-service \
android.frameworks.sensorservice@1.0 \
android.frameworks.sensorservice@1.0.vendor
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/sensors/hals.conf:vendor/etc/sensors/hals.conf
@@ -458,7 +486,6 @@ PRODUCT_PACKAGES += \
#GNSS HAL
PRODUCT_PACKAGES += \
gps.conf \
libgps.utils \
libgnss \
liblocation_api \
@@ -474,23 +501,49 @@ HOSTAPD += hostapd_cli
PRODUCT_PACKAGES += $(HOSTAPD)
WPA := wpa_supplicant.conf
WPA += wpa_supplicant_wcn.conf
WPA += wpa_supplicant
PRODUCT_PACKAGES += $(WPA)
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
PRODUCT_PACKAGES += wpa_cli
endif
# Protobuf
PRODUCT_PACKAGES += \
libprotobuf-cpp-lite-3.9.1-vendorcompat
# Wifi
PRODUCT_PACKAGES += \
android.hardware.wifi@1.0-service \
android.hardware.wifi-service \
wificond \
libwpa_client \
WifiOverlay
LIB_NL := libnl_2
PRODUCT_PACKAGES += $(LIB_NL)
# Connectivity
PRODUCT_PACKAGES += \
ConnectivityOverlay
# fastbootd
PRODUCT_PACKAGES += \
fastbootd
PRODUCT_PROPERTY_OVERRIDES += \
ro.fastbootd.available=true
# Dolby
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/dolby/dax-default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/dolby/dax-default.xml
PRODUCT_PROPERTY_OVERRIDES += \
persist.vendor.audio_fx.current=dolby \
vendor.audio.dolby.ds2.enabled=true \
vendor.audio.dolby.ds2.hardbypass=true \
ro.vendor.dolby.dax.version=DAX3_3.6.0.12_r1 \
ro.vendor.audio.dolby.dax.support=true
# Clone apps exemption
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/sysconfig/preinstalled-packages-platform-pixel-product.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/sysconfig/preinstalled-packages-platform-pixel-product.xml
# Audio effects
PRODUCT_PACKAGES += \
@@ -502,18 +555,17 @@ PRODUCT_PACKAGES += \
PRODUCT_PACKAGES += \
audio.primary.msm8998 \
audio.a2dp.default \
audio.usb.default \
audio.r_submix.default \
libaudio-resampler \
audio.hearing_aid.default \
audio.bluetooth.default
PRODUCT_PACKAGES += \
android.hardware.audio@6.0-impl:32 \
android.hardware.audio.effect@6.0-impl:32 \
android.hardware.soundtrigger@2.2-impl:32 \
android.hardware.bluetooth.audio@2.0-impl \
android.hardware.bluetooth.a2dp@1.0.vendor \
android.hardware.bluetooth.audio-impl \
android.hardware.audio@2.0-service
# stereo speakers: orientation changes swap L/R channels
@@ -535,7 +587,7 @@ PRODUCT_COPY_FILES += \
# PRODUCT_COPY_FILES += \
# frameworks/native/data/etc/android.hardware.audio.pro.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.pro.xml
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
PRODUCT_PACKAGES += \
tinyplay \
tinycap \
@@ -564,6 +616,7 @@ PRODUCT_COPY_FILES += \
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
$(LOCAL_PATH)/media_codecs_dolby_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_dolby_audio.xml \
$(LOCAL_PATH)/media_codecs_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \
frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \
frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml \
@@ -572,9 +625,15 @@ PRODUCT_COPY_FILES += \
# Codec2 modules
PRODUCT_PACKAGES += \
android.hardware.media.c2@1.1.vendor \
com.android.media.swcodec \
libsfplugin_ccodec \
# IMS
PRODUCT_PACKAGES += \
PresencePolling \
RcsService
# Codec2 switch
PRODUCT_PROPERTY_OVERRIDES += \
debug.media.codec2=2 \
@@ -587,13 +646,44 @@ PRODUCT_COPY_FILES += \
# Fingerprint HIDL implementation
PRODUCT_PACKAGES += \
android.hardware.biometrics.fingerprint@2.1-service.fpc
android.frameworks.stats@1.0.vendor \
android.hardware.biometrics.fingerprint@2.1.vendor \
android.hardware.biometrics.fingerprint@2.2.vendor
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/init.fingerprint.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.fingerprint.sh \
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml
# Display
PRODUCT_PACKAGES += \
android.frameworks.displayservice@1.0.vendor
# GNSS
PRODUCT_PACKAGES += \
android.hardware.gnss@1.0.vendor
# WiFi
PRODUCT_PACKAGES += \
android.system.net.netd@1.1.vendor
# Keymaster HAL
PRODUCT_PACKAGES += \
android.hardware.keymaster@3.0.vendor
# Gatekeeper HAL
PRODUCT_PACKAGES += \
android.hardware.gatekeeper@1.0.vendor
# Neural Network
PRODUCT_PACKAGES += \
android.hardware.neuralnetworks@1.3.vendor
# OEMLock
PRODUCT_PACKAGES += \
android.hardware.oemlock@1.0.vendor
# GPS configuration file
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/gps.conf:$(TARGET_COPY_OUT_VENDOR)/etc/gps.conf
@@ -606,10 +696,10 @@ PRODUCT_COPY_FILES += \
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.software.device_id_attestation.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.device_id_attestation.xml
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
# Subsystem ramdump
PRODUCT_PROPERTY_OVERRIDES += \
persist.sys.ssr.enable_ramdumps=1
persist.sys.ssr.enable_ramdumps=0
endif
# Subsystem silent restart
@@ -617,23 +707,20 @@ PRODUCT_PROPERTY_OVERRIDES += \
persist.sys.ssr.restart_level=modem,slpi,adsp
# setup dalvik vm configs
$(call inherit-product, frameworks/native/build/phone-xhdpi-2048-dalvik-heap.mk)
PRODUCT_COPY_FILES += \
device/google/wahoo/fstab.hardware:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.$(PRODUCT_HARDWARE)
$(call inherit-product, frameworks/native/build/phone-xhdpi-4096-dalvik-heap.mk)
# Use the default charger mode images
PRODUCT_PACKAGES += \
charger_res_images
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
# b/36703476: Set default log size to 1M
PRODUCT_PROPERTY_OVERRIDES += \
ro.logd.size=1M
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
@@ -651,7 +738,7 @@ PRODUCT_PROPERTY_OVERRIDES += \
# Include vndk/vndk-sp/ll-ndk modules
PRODUCT_PACKAGES += vndk_package
PRODUCT_ENFORCE_RRO_TARGETS := framework-res
PRODUCT_ENFORCE_RRO_TARGETS := *
# Override heap growth limit due to high display density on device
PRODUCT_PROPERTY_OVERRIDES += \
@@ -709,14 +796,14 @@ PRODUCT_PROPERTY_OVERRIDES += \
ro.camera.notify_nfc=1
# default usb oem functions
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
PRODUCT_PROPERTY_OVERRIDES += \
persist.vendor.usb.usbradio.config=diag
ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
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 += \
@@ -725,15 +812,9 @@ PRODUCT_PACKAGES += \
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.use_color_management=true
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.protected_contents=true
# Early phase offset configuration for SurfaceFlinger
# Force triple frame buffers
PRODUCT_PROPERTY_OVERRIDES += \
debug.sf.early_phase_offset_ns=1500000
PRODUCT_PROPERTY_OVERRIDES += \
debug.sf.early_app_phase_offset_ns=1500000
PRODUCT_PROPERTY_OVERRIDES += \
debug.sf.early_gl_phase_offset_ns=3000000
PRODUCT_PROPERTY_OVERRIDES += \
debug.sf.early_gl_app_phase_offset_ns=15000000
ro.surface_flinger.max_frame_buffer_acquired_buffers=3
# Use /product/etc/fstab.postinstall to mount system_other.
PRODUCT_PRODUCT_PROPERTIES += \
@@ -745,9 +826,52 @@ PRODUCT_COPY_FILES += \
PRODUCT_PRODUCT_PROPERTIES += \
ro.charger.enable_suspend=true
# Enable OPA features
PRODUCT_PRODUCT_PROPERTIES += \
ro.opa.eligible_device=true
# Build necessary packages for vendor
PRODUCT_PACKAGES += \
android.hidl.safe_union@1.0.vendor \
chre \
ese-ls-provision \
ese-replay \
libhidltransport.vendor \
libhwbinder.vendor \
libjson \
libsensorndkbridge:32 \
libtinyxml
# Enable missing vendor props
PRODUCT_PROPERTY_OVERRIDES += \
drm.service.enabled=true \
media.mediadrmservice.enable=true \
ro.gfx.driver.0=com.google.pixel.wahoo.gfxdrv \
ro.hardware.egl=adreno \
ro.hardware.vulkan=adreno \
ro.oem_unlock.pst=/dev/block/platform/soc/1da4000.ufshc/by-name/misc \
ro.oem_unlock.pst_offset=6144
# Build necessary packages for system
PRODUCT_PACKAGES += \
libhidltransport \
libhwbinder
# Setting vendor SPL
VENDOR_SECURITY_PATCH := "2020-10-05"
# Task profiles
PRODUCT_COPY_FILES += \
system/core/libprocessgroup/profiles/cgroups_28.json:$(TARGET_COPY_OUT_VENDOR)/etc/cgroups.json \
system/core/libprocessgroup/profiles/task_profiles_28.json:$(TARGET_COPY_OUT_VENDOR)/etc/task_profiles.json
# Zygote
PRODUCT_PROPERTY_OVERRIDES += \
zygote.critical_window.minute=10
include hardware/google/pixel/vibrator/drv2624/device.mk
include hardware/google/pixel/mm/device_legacy.mk
include hardware/google/pixel/thermal/device.mk
include device/google/gs-common/thermal/thermal_hal/device.mk
# power HAL
-include hardware/google/pixel/power-libperfmgr/hidl/device.mk
-include hardware/google/pixel/power-libperfmgr/aidl/device.mk

View File

@@ -1,4 +1,144 @@
<compatibility-matrix version="1.0" type="framework">
<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>
<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>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>vendor.qti.qcril.am</name>
<version>1.0</version>
@@ -7,6 +147,18 @@
<instance>slot1</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>android.hardware.radio</name>
<version>1.4</version>
<interface>
<name>IRadio</name>
<instance>slot1</instance>
</interface>
<interface>
<name>ISap</name>
<instance>slot1</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>com.qualcomm.qti.ims.radio</name>
<version>1.1</version>
@@ -55,4 +207,12 @@
<instance>cnd</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>vendor.dolby.hardware.dms</name>
<version>2.0</version>
<interface>
<name>IDms</name>
<instance>default</instance>
</interface>
</hal>
</compatibility-matrix>

1857
dolby/dax-default.xml Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -263,7 +263,6 @@ Return<void> DumpstateDevice::dumpstateBoard(const hidl_handle& handle) {
dumpModem(fd, fdModem);
}
RunCommandToFd(fd, "VENDOR PROPERTIES", {"/vendor/bin/getprop"});
DumpFileToFd(fd, "SoC serial number", "/sys/devices/soc0/serial_number");
DumpFileToFd(fd, "CPU present", "/sys/devices/system/cpu/present");
DumpFileToFd(fd, "CPU online", "/sys/devices/system/cpu/online");
DumpFileToFd(fd, "UFS model", "/sys/block/sda/device/model");

24
evolution.dependencies Normal file
View File

@@ -0,0 +1,24 @@
[
{
"repository":"kernel_google_wahoo",
"target_path":"kernel/google/wahoo"
},
{
"repository":"asriadirahim/packages_apps_googlecamera",
"target_path":"packages/apps/GoogleCamera",
"remote":"gitlab",
"branch":"thirteen"
},
{
"repository":"LineageOS/android_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

@@ -132,7 +132,7 @@ int main(void) {
ALOGI("Starting polling loop");
// Polling loop
while (ALooper_pollAll(-1, NULL, NULL, NULL) == 0) {
while (ALooper_pollOnce(-1, NULL, NULL, NULL) == 0) {
int eventCount = 0;
ASensorEvent sensorEvent;
while (ASensorEventQueue_getEvents(eventQueue, &sensorEvent, 1) > 0) {

View File

@@ -1,10 +0,0 @@
# Android fstab file.
#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
/dev/block/platform/soc/1da4000.ufshc/by-name/system / ext4 ro,barrier=1 wait,slotselect,avb
/dev/block/platform/soc/1da4000.ufshc/by-name/metadata /metadata ext4 noatime,nosuid,nodev,discard,sync wait,formattable
/dev/block/platform/soc/1da4000.ufshc/by-name/userdata /data ext4 errors=panic,noatime,nosuid,nodev,barrier=1,noauto_da_alloc latemount,wait,check,formattable,fileencryption=ice:aes-256-heh,eraseblk=16777216,logicalblk=4096,quota,reservedsize=128M,checkpoint=block
/dev/block/platform/soc/1da4000.ufshc/by-name/misc /misc emmc defaults defaults
/dev/block/platform/soc/1da4000.ufshc/by-name/modem /firmware vfat ro,shortname=lower,uid=1000,gid=1000,dmask=227,fmask=337,context=u:object_r:firmware_file:s0 wait,slotselect
/devices/soc/a800000.ssusb/a800000.dwc3* auto vfat defaults voldmanaged=usb:auto
/dev/block/zram0 none swap defaults zramsize=2147483648,max_comp_streams=8

View File

@@ -26,7 +26,7 @@ NTP_SERVER = time.google.com
# DEBUG LEVELS: 0 - none, 1 - Error, 2 - Warning, 3 - Info
# 4 - Debug, 5 - Verbose
# If DEBUG_LEVEL is commented, Android's logging levels will be used
DEBUG_LEVEL = 3
DEBUG_LEVEL = 2
# Intermediate position report, 1=enable, 0=disable
INTERMEDIATE_POS=0

View File

@@ -697,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
@@ -755,3 +748,7 @@ on property:sys.boot_completed=1
on property:vendor.fps.init.succeed=true && property:init.svc.vendor.fps_hal=stopped
start init-fingerprint-sh
# Dolby
mkdir /data/vendor/dolby 0770 media media
mkdir /data/vendor/multimedia 0775 system system

View File

@@ -20,6 +20,7 @@ LOCAL_SRC_FILES := lights.c
LOCAL_MODULE_RELATIVE_PATH := hw
LOCAL_PROPRIETARY_MODULE := true
LOCAL_HEADER_LIBRARIES := libhardware_headers
LOCAL_HEADER_LIBRARIES += generated_kernel_headers
LOCAL_SHARED_LIBRARIES := libc libcutils liblog
LOCAL_CFLAGS := $(common_flags) \
-DLOG_TAG=\"qdlights\" \

View File

@@ -36,7 +36,7 @@
/*
* Change this to 1 to support battery notifications via BatteryService
*/
#define LIGHTS_SUPPORT_BATTERY 0
#define LIGHTS_SUPPORT_BATTERY 1
#define CG_COLOR_ID_PROPERTY "ro.boot.hardware.color"
static pthread_once_t g_init = PTHREAD_ONCE_INIT;

View File

@@ -1,4 +1,4 @@
<manifest version="1.0" type="device" target-level="2">
<manifest version="1.0" type="device" target-level="4">
<hal format="hidl">
<name>android.hardware.audio</name>
<transport>hwbinder</transport>
@@ -35,15 +35,6 @@
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>android.hardware.bluetooth.audio</name>
<transport>hwbinder</transport>
<version>2.0</version>
<interface>
<name>IBluetoothAudioProvidersFactory</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>android.hardware.boot</name>
<transport>hwbinder</transport>
@@ -80,21 +71,6 @@
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>android.hardware.drm</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>ICryptoFactory</name>
<instance>default</instance>
</interface>
<interface>
<name>IDrmFactory</name>
<instance>default</instance>
</interface>
<fqname>@1.2::ICryptoFactory/clearkey</fqname>
<fqname>@1.2::IDrmFactory/clearkey</fqname>
</hal>
<hal format="hidl">
<name>android.hardware.dumpstate</name>
<transport>hwbinder</transport>
@@ -225,19 +201,10 @@
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>android.hardware.radio.deprecated</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>IOemHook</name>
<instance>slot1</instance>
</interface>
</hal>
<hal format="hidl">
<name>android.hardware.radio</name>
<transport>hwbinder</transport>
<version>1.1</version>
<version>1.4</version>
<interface>
<name>IRadio</name>
<instance>slot1</instance>
@@ -256,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>
@@ -264,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>
@@ -364,4 +344,13 @@
<instance>cnd</instance>
</interface>
</hal>
<hal format="hidl">
<name>vendor.dolby.hardware.dms</name>
<transport>hwbinder</transport>
<version>2.0</version>
<interface>
<name>IDms</name>
<instance>default</instance>
</interface>
</hal>
</manifest>

View File

@@ -346,7 +346,9 @@ 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" />
<Include href="media_codecs_dolby_audio.xml" />
</MediaCodecs>

View File

@@ -0,0 +1,57 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2016 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
This file was modified by Dolby Laboratories, Inc. The portions of the
code that are surrounded by "DOLBY..." are copyrighted and
licensed separately, as follows:
(C) 2018 Dolby Laboratories, Inc.
All rights reserved.
This program is protected under international and U.S. Copyright laws as
an unpublished work. This program is confidential and proprietary to the
copyright owners. Reproduction or disclosure, in whole or in part, or the
production of derivative works therefrom without the express permission of
the copyright owners is prohibited.
-->
<Included>
<Decoders>
<!-- DOLBY_UDC -->
<MediaCodec name="OMX.dolby.ac3.decoder" type="audio/ac3">
<Limit name="channel-count" max="6" />
<Limit name="sample-rate" ranges="32000,44100,48000" />
<Limit name="bitrate" range="32000-640000" />
</MediaCodec>
<MediaCodec name="OMX.dolby.eac3.decoder" type="audio/eac3">
<Limit name="channel-count" max="8" />
<Limit name="sample-rate" ranges="32000,44100,48000" />
<Limit name="bitrate" range="32000-6144000" />
</MediaCodec>
<MediaCodec name="OMX.dolby.eac3-joc.decoder" type="audio/eac3-joc">
<Limit name="channel-count" max="8" />
<Limit name="sample-rate" ranges="48000" />
<Limit name="bitrate" range="32000-6144000" />
</MediaCodec>
<!-- DOLBY_UDC END -->
<!-- DOLBY_AC4 -->
<MediaCodec name="OMX.dolby.ac4.decoder" type="audio/ac4">
<Limit name="channel-count" max="2" />
<Limit name="sample-rate" ranges="48000" />
<Limit name="bitrate" range="16000-2688000" />
</MediaCodec>
<!-- DOLBY_AC4 END -->
</Decoders>
</Included>

View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2023 The Evolution X Project
SPDX-License-Identifier: Apache-2.0
-->
<resources>
<string name="build_maintainer_summary" translatable="false">Asriadi Rahim</string>
<string name="build_maintainer_donate_url" translatable="false">https://PayPal.me/asriadirahim</string>
</resources>

View File

@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
** Copyright 2017, The Android Open Source Project
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
*/
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Whether WiFi display is supported by this device.
There are many prerequisites for this feature to work correctly.
Here are a few of them:
* The WiFi radio must support WiFi P2P.
* The WiFi radio must support concurrent connections to the WiFi display and
to an access point.
* The Audio Flinger audio_policy.conf file must specify a rule for the "r_submix"
remote submix module. This module is used to record and stream system
audio output to the WiFi display encoder in the media server.
* The remote submix module "audio.r_submix.default" must be installed on the device.
* The device must be provisioned with HDCP keys (for protected content).
-->
<bool name="config_enableWifiDisplay">true</bool>
</resources>

View File

@@ -0,0 +1,66 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
** Copyright (C) 2016 The CyanogenMod Project
** Copyright (C) 2017-2018 The LineageOS Project
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
*/
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- All the capabilities of the LEDs on this device, stored as a bit field.
This integer should equal the sum of the corresponding value for each
of the following capabilities present:
// Device has a color adjustable battery light.
LIGHTS_RGB_NOTIFICATION_LED = 1
// Device has a color adjustable notification light.
LIGHTS_RGB_BATTERY_LED = 2
LIGHTS_MULTIPLE_NOTIFICATION_LED = 4 (deprecated)
// The notification light has adjustable pulsing capability.
LIGHTS_PULSATING_LED = 8
// Device has a multi-segment battery light that is able to
// use the light brightness value to determine how many
// segments to show (in order to represent battery level).
LIGHTS_SEGMENTED_BATTERY_LED = 16
// The notification light supports HAL adjustable brightness
// via the alpha channel.
// Note: if a device notification light supports LIGHTS_RGB_NOTIFICATION_LED
// then HAL support is not necessary for brightness control. In this case,
// brightness support will be provided by lineage-sdk through the scaling of
// RGB color values.
LIGHTS_ADJUSTABLE_NOTIFICATION_LED_BRIGHTNESS = 32
// Device has a battery light.
LIGHTS_BATTERY_LED = 64
// The battery light supports HAL adjustable brightness via
// the alpha channel.
// Note: if a device battery light supports LIGHTS_RGB_BATTERY_LED then HAL
// support is not necessary for brightness control. In this case,
// brightness support will be provided by lineage-sdk through the scaling of
// RGB color values.
LIGHTS_ADJUSTABLE_BATTERY_LED_BRIGHTNESS = 128
For example, a device with notification and battery lights that supports
pulsating and RGB control would set this config to 75. -->
<integer name="config_deviceLightCapabilities">75</integer>
</resources>

View File

@@ -78,10 +78,6 @@
regularly selected color mode will be used if this value is negative. -->
<integer name="config_accessibilityColorMode">2</integer>
<!-- Boolean indicating whether the HWC setColorTransform function can be performed efficiently
in hardware. -->
<bool name="config_setColorTransformAccelerated">true</bool>
<!-- Boolean indicating if restoring network selection should be skipped -->
<!-- The restoring is handled by modem if it is true -->
<bool translatable="false" name="skip_restoring_network_selection">true</bool>
@@ -89,8 +85,9 @@
<!-- Set to true to add links to Cell Broadcast app from Settings and MMS app. -->
<bool name="config_cellBroadcastAppLinks">true</bool>
<!-- Is the notification LED intrusive? Used to decide if there should be a disable option -->
<bool name="config_intrusiveNotificationLed">true</bool>
<!-- 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>
@@ -148,9 +145,6 @@
device does not support multiple advertisement-->
<integer translatable="false" name="config_bluetooth_max_advertisers">4</integer>
<!-- Operating voltage for bluetooth controller. 0 by default-->
<integer translatable="false" name="config_bluetooth_operating_voltage_mv">3300</integer>
<!-- Boolean indicating if current platform supports HFP inband ringing -->
<bool name="config_bluetooth_hfp_inband_ringing_support">true</bool>
@@ -201,13 +195,6 @@
<item>"9,1"</item>
</string-array>
<!-- If the hardware supports specially marking packets that caused a wakeup of the
main CPU, set this value to the mark used. -->
<integer name="config_networkWakeupPacketMark">0x80000000</integer>
<!-- Mask to use when checking skb mark defined in config_networkWakeupPacketMark above. -->
<integer name="config_networkWakeupPacketMask">0x80000000</integer>
<!-- Vibrator pattern for feedback about a long screen/key press -->
<integer-array name="config_longPressVibePattern">
<item>8</item>
@@ -294,27 +281,19 @@
<!-- Default list of files pinned by the Pinner Service -->
<string-array translatable="false" name="config_defaultPinnerServiceFiles">
<item>"/system/framework/arm64/boot-framework.oat"</item>
<item>"/system/framework/framework.jar"</item>
<item>"/system/framework/oat/arm64/services.odex"</item>
<item>"/system/framework/services.jar"</item>
<item>"/apex/com.android.art/javalib/core-oj.jar"</item>
<item>"/apex/com.android.art/javalib/core-libart.jar"</item>
<item>"/apex/com.android.media/javalib/updatable-media.jar"</item>
</string-array>
<!-- Should the pinner service pin the Camera application? -->
<bool name="config_pinnerCameraApp">true</bool>
<!-- List of files pinned by the Pinner Service with the JIT Zygote boot image b/119800099 -->
<string-array translatable="false" name="config_jitzygoteBootImagePinnerServiceFiles">
<item>"/system/framework/framework.jar"</item>
<item>"/system/framework/services.jar"</item>
<item>"/apex/com.android.art/javalib/core-oj.jar"</item>
<item>"/apex/com.android.art/javalib/core-libart.jar"</item>
<item>"/apex/com.android.media/javalib/updatable-media.jar"</item>
<item>"/system_ext/priv-app/SystemUIGoogle/SystemUIGoogle.apk"</item>
<item>"/system_ext/priv-app/MotoDolbyDax3/MotoDolbyDax3.apk"</item>
<item>"/system_ext/priv-app/daxService/daxService.apk"</item>
<item>"/system/bin/surfaceflinger"</item>
</string-array>
<!-- Should the pinner service pin the Home application? -->
<bool name="config_pinnerHomeApp">true</bool>
<!-- Enable system navigation keys. -->
<bool name="config_supportSystemNavigationKeys">true</bool>
@@ -329,4 +308,31 @@
<!-- Brand value for attestation of misprovisioned device. -->
<string name="config_misprovisionedBrandValue" translatable="false">htc</string>
<!-- List of biometric sensors on the device, in decreasing strength. Consumed by AuthService
when registering authenticators with BiometricService. Format must be ID:Modality:Strength,
where: IDs are unique per device, Modality as defined in BiometricAuthenticator.java,
and Strength as defined in Authenticators.java -->
<string-array name="config_biometric_sensors" translatable="false" >
<item>0:2:15</item> <!-- ID0:Fingerprint:Strong -->
</string-array>
<!-- Specify if the fingerprint hardware support gestures-->
<bool name="config_fingerprintSupportsGestures">true</bool>
<!-- Whether Hearing Aid profile is supported -->
<bool name="config_hearing_aid_profile_supported">true</bool>
<string-array name="config_nightDisplayColorTemperatureCoefficients">
<!-- R a-coefficient --> <item>0.0</item>
<!-- R b-coefficient --> <item>0.0</item>
<!-- R y-intercept --> <item>1.0</item>
<!-- G a-coefficient --> <item>-0.000000014365268757</item>
<!-- G b-coefficient --> <item>0.000255092801250106</item>
<!-- G y-intercept --> <item>-0.064156942434907716</item>
<!-- B a-coefficient --> <item>-0.000000000910931179</item>
<!-- B b-coefficient --> <item>0.000207598323269139</item>
<!-- B y-intercept --> <item>-0.349361641294833436</item>
</string-array>
</resources>

View File

@@ -1,16 +1,13 @@
/*
*
* Copyright (c) 2013, The Linux Foundation. All rights reserved.
* Not a Contribution, Apache license notifications and license are retained
* for attribution purposes only.
*
* Copyright (C) 2012 The Android Open Source Project
<?xml version="1.0" encoding="utf-8"?>
<!--
/**
* Copyright 2020, The LineageOS Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -18,14 +15,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef _BDROID_BUILDCFG_H
#define _BDROID_BUILDCFG_H
// Google VSC spec support
#define BLE_VND_INCLUDED TRUE
// QCOM power management workaround
#define BT_CLEAN_TURN_ON_DISABLED TRUE
#endif
-->
<resources>
<!-- Default screen brightness, from 0 to 255. 102 is 40%. -->
<integer name="def_screen_brightness">82</integer>
<!-- Set the automatic brightness mode on by default -->
<bool name="def_screen_brightness_automatic_mode">true</bool>
</resources>

View File

@@ -43,4 +43,17 @@
<!-- Doze: whether the double tap sensor reports 2D touch coordinates -->
<bool name="doze_double_tap_reports_touch_coordinates">true</bool>
<!-- Whether to show a warning notification when device's skin temperature is high. -->
<integer name="config_showTemperatureWarning">1</integer>
<!-- Whether to show a alarm dialog when device's usb port is overheating. -->
<integer name="config_showUsbPortAlarm">1</integer>
<!-- Should we vibrate on an icon animation of the shelf. This should only be active if the
vibrator is capable of subtle vibrations -->
<bool name="config_vibrateOnIconAnimation">true</bool>
<!-- Whether the mobile signal icon pipeline should ignore IWlan status -->
<bool name="config_mobileIconIgnoresIWlan">true</bool>
</resources>

View File

@@ -17,4 +17,7 @@
<resources>
<!-- Whether to show a preference item for mobile plan -->
<bool name="config_show_mobile_plan">false</bool>
<!-- Whether to show Camera laser sensor switch in Developer Options -->
<bool name="config_show_camera_laser_sensor">true</bool>
</resources>

View File

@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2018 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<resources>
<!-- The number of vibration intensity levels supported by the device.
Note that this should correspond to the ability to vary the vibration amplitude, with
enough dynamic range to have at least as many distinct intensity levels as defined here.
Supported values are 1, 2, 3. If '1', the settings app will use a toggle for the settings,
otherwise a slider. If '3', the settings app maps intensities directly to the levels
supported by the Vibrator HAL APIs. If '2', then the levels will be mapped to
VIBRATION_INTENSITY_LOW and VIBRATION_INTENSITY_HIGH, which gives the most range for
scaling vibrations. The medium intensity will be skipped.
The default intensity values are configured at
frameworks/base/core/res/res/values/config.xml's config_default[type]VibrationIntensity.
Make sure that each default intensity value is consistent with the supported levels set
here. If this settings supports only 2 levels, for example, then the default intensity
should be either LOW (1) or HIGH (3).
-->
<integer name="config_vibration_supported_intensity_levels">3</integer>
</resources>

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

@@ -32,4 +32,7 @@
<!-- String indicating the package name of the device ImsService implementation for RCS. -->
<string name="config_ims_rcs_package" translatable="false">com.android.service.ims</string>
<!-- The package name for the platform carrier config app, bundled with system image. -->
<string name="platform_carrier_config_package" translatable="false">com.google.android.carrier</string>
</resources>

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<permissions>
<privapp-permissions package="com.google.android.wfcactivation">
<permission name="android.permission.CONNECTIVITY_INTERNAL"/>
<permission name="android.permission.CONNECTIVITY_USE_RESTRICTED_NETWORKS"/>
<permission name="android.permission.MODIFY_PHONE_STATE"/>
<permission name="android.permission.READ_LOGS"/>
<permission name="android.permission.READ_PRIVILEGED_PHONE_STATE"/>
<permission name="android.permission.WRITE_APN_SETTINGS"/>
</privapp-permissions>
</permissions>

View File

@@ -1,10 +0,0 @@
# All the partitions to be wiped (in order) under recovery.
/dev/block/bootdevice/by-name/system_a
/dev/block/bootdevice/by-name/system_b
/dev/block/bootdevice/by-name/vendor_a
/dev/block/bootdevice/by-name/vendor_b
/dev/block/bootdevice/by-name/userdata
# Wipe the boot partitions last so that all partitions will be wiped
# correctly even if the wiping process gets interrupted by a force boot.
/dev/block/bootdevice/by-name/boot_a
/dev/block/bootdevice/by-name/boot_b

View File

@@ -0,0 +1,9 @@
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
runtime_resource_overlay {
name: "ConnectivityOverlay",
sdk_version: "current",
product_specific: true
}

View File

@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2021 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- Pixel specific connectivity overlays -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.connectivity.resources.overlay"
android:versionCode="1"
android:versionName="1.0">
<application android:hasCode="false" />
<overlay
android:targetPackage="com.android.connectivity.resources"
android:targetName="ServiceConnectivityResourcesConfig"
android:isStatic="true"
android:priority="0"/>
</manifest>

View File

@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
* Copyright (C) 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-->
<resources>
<!-- If the hardware supports specially marking packets that caused a wakeup of the
main CPU, set this value to the mark used. -->
<integer translatable="false" name="config_networkWakeupPacketMark">0x80000000</integer>
<!-- Mask to use when checking skb mark defined in config_networkWakeupPacketMark above. -->
<integer translatable="false" name="config_networkWakeupPacketMask">0x80000000</integer>
</resources>

View File

@@ -26,13 +26,6 @@
<!-- Boolean indicating whether the wifi chipset has background scan support -->
<bool translatable="false" name="config_wifi_background_scan_support">true</bool>
<!-- Integer thresholds, do not connect to APs with RSSI lower than these values -->
<integer translatable="false" name="config_wifi_framework_wifi_score_entry_rssi_threshold_5GHz">-77</integer>
<integer translatable="false" name="config_wifi_framework_wifi_score_entry_rssi_threshold_24GHz">-80</integer>
<!-- Integer thresholds for low network score, should be somewhat less than the entry thresholds -->
<integer translatable="false" name="config_wifi_framework_wifi_score_bad_rssi_threshold_5GHz">-80</integer>
<integer translatable="false" name="config_wifi_framework_wifi_score_bad_rssi_threshold_24GHz">-83</integer>
<!-- Boolean indicating whether or not to revert to default country code when cellular
radio is unable to find any MCC information to infer wifi country code from -->
<bool translatable="false" name="config_wifi_revert_country_code_on_cellular_loss">false</bool>
@@ -85,4 +78,10 @@
<!-- Boolean indicating whether framework needs to set the tx power limit for meeting SAR
requirements -->
<bool translatable="false" name="config_wifi_framework_enable_sar_tx_power_limit">true</bool>
<!-- Whether to use the explicit vendor HAL API: IWifiStaIface.setRoamingState for disabling fw roaming. -->
<bool translatable="false" name="config_wifiUseHalApiToDisableFwRoaming">true</bool>
<!-- Indicate the driver support NL80211_REG_CHANGED event. -->
<bool translatable="false" name="config_wifiDriverSupportedNl80211RegChangedEvent">true</bool>
</resources>

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

@@ -1,3 +1,4 @@
dontaudit priv_app device:dir read;
dontaudit priv_app proc_interrupts:file read;
dontaudit priv_app proc_modules:file read;
dontaudit priv_app proc_version:file read;

View File

@@ -0,0 +1 @@
hal_attribute_lineage(dms)

1
sepolicy/vendor/attributes vendored Normal file
View File

@@ -0,0 +1 @@
attribute vendor_persist_type;

View File

@@ -1,27 +1,25 @@
-----BEGIN CERTIFICATE-----
MIIEqDCCA5CgAwIBAgIJANWFuGx90071MA0GCSqGSIb3DQEBBAUAMIGUMQswCQYD
VQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4g
VmlldzEQMA4GA1UEChMHQW5kcm9pZDEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UE
AxMHQW5kcm9pZDEiMCAGCSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbTAe
Fw0wODA0MTUyMzM2NTZaFw0zNTA5MDEyMzM2NTZaMIGUMQswCQYDVQQGEwJVUzET
MBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEQMA4G
A1UEChMHQW5kcm9pZDEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9p
ZDEiMCAGCSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbTCCASAwDQYJKoZI
hvcNAQEBBQADggENADCCAQgCggEBANbOLggKv+IxTdGNs8/TGFy0PTP6DHThvbbR
24kT9ixcOd9W+EaBPWW+wPPKQmsHxajtWjmQwWfna8mZuSeJS48LIgAZlKkpFeVy
xW0qMBujb8X8ETrWy550NaFtI6t9+u7hZeTfHwqNvacKhp1RbE6dBRGWynwMVX8X
W8N1+UjFaq6GCJukT4qmpN2afb8sCjUigq0GuMwYXrFVee74bQgLHWGJwPmvmLHC
69EH6kWr22ijx4OKXlSIx2xT1AsSHee70w5iDBiK4aph27yH3TxkXy9V89TDdexA
cKk/cVHYNnDBapcavl7y0RiQ4biu8ymM8Ga/nmzhRKya6G0cGw8CAQOjgfwwgfkw
HQYDVR0OBBYEFI0cxb6VTEM8YYY6FbBMvAPyT+CyMIHJBgNVHSMEgcEwgb6AFI0c
xb6VTEM8YYY6FbBMvAPyT+CyoYGapIGXMIGUMQswCQYDVQQGEwJVUzETMBEGA1UE
CBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEQMA4GA1UEChMH
QW5kcm9pZDEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9pZDEiMCAG
CSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbYIJANWFuGx90071MAwGA1Ud
EwQFMAMBAf8wDQYJKoZIhvcNAQEEBQADggEBABnTDPEF+3iSP0wNfdIjIz1AlnrP
zgAIHVvXxunW7SBrDhEglQZBbKJEk5kT0mtKoOD1JMrSu1xuTKEBahWRbqHsXcla
XjoBADb0kkjVEJu/Lh5hgYZnOjvlba8Ld7HCKePCVePoTJBdI4fvugnL8TsgK05a
IskyY0hKI9L8KfqfGTl1lzOv2KoWD0KWwtAWPoGChZxmQ+nBli+gwYMzM1vAkP+a
ayLe0a1EQimlOalO762r0GXO0ks+UeXde2Z4e+8S/pf7pITEI/tP+MxJTALw9QUW
Ev9lKTk+jkbqxbsh8nfBUapfKqYn0eidpwq2AzVp3juYl7//fKnaPhJD9gs=
MIIEQzCCAyugAwIBAgIJAMLgh0ZkSjCNMA0GCSqGSIb3DQEBBAUAMHQxCzAJBgNV
BAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1Nb3VudGFpbiBW
aWV3MRQwEgYDVQQKEwtHb29nbGUgSW5jLjEQMA4GA1UECxMHQW5kcm9pZDEQMA4G
A1UEAxMHQW5kcm9pZDAeFw0wODA4MjEyMzEzMzRaFw0zNjAxMDcyMzEzMzRaMHQx
CzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1Nb3Vu
dGFpbiBWaWV3MRQwEgYDVQQKEwtHb29nbGUgSW5jLjEQMA4GA1UECxMHQW5kcm9p
ZDEQMA4GA1UEAxMHQW5kcm9pZDCCASAwDQYJKoZIhvcNAQEBBQADggENADCCAQgC
ggEBAKtWLgDYO6IIrgqWbxJOKdoR8qtW0I9Y4sypEwPpt1TTcvZApxsdyxMJZ2JO
Rland2qSGT2y5b+3JKkedxiLDmpHpDsz2WCbdxgxRczfey5YZnTJ4VZbH0xqWVW/
8lGmPav5xVwnIiJS6HXk+BVKZF+JcWjAsb/GEuq/eFdpuzSqeYTcfi6idkyugwfY
wXFU1+5fZKUaRKYCwkkFQVfcAs1fXA5V+++FGfvjJ/CxURaSxaBvGdGDhfXE28LW
uT9ozCl5xw4Yq5OGazvV24mZVSoOO0yZ31j7kYvtwYK6NeADwbSxDdJEqO4k//0z
OHKrUiGYXtqw/A0LFFtqoZKFjnkCAQOjgdkwgdYwHQYDVR0OBBYEFMd9jMIhF1Yl
mn/Tgt9r45jk14alMIGmBgNVHSMEgZ4wgZuAFMd9jMIhF1Ylmn/Tgt9r45jk14al
oXikdjB0MQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UE
BxMNTW91bnRhaW4gVmlldzEUMBIGA1UEChMLR29vZ2xlIEluYy4xEDAOBgNVBAsT
B0FuZHJvaWQxEDAOBgNVBAMTB0FuZHJvaWSCCQDC4IdGZEowjTAMBgNVHRMEBTAD
AQH/MA0GCSqGSIb3DQEBBAUAA4IBAQBt0lLO74UwLDYKqs6Tm8/yzKkEu116FmH4
rkaymUIE0P9KaMftGlMexFlaYjzmB2OxZyl6euNXEsQH8gjwyxCUKRJNexBiGcCE
yj6z+a1fuHHvkiaai+KL8W1EyNmgjmyy8AW7P+LLlkR+ho5zEHatRbM/YAnqGcFh
5iZBqpknHf1SKMXFh4dd239FJ1jWYfbMDMy3NS5CTMQ2XFI1MvcyUTdZPErjQfTb
Qe3aDQsQcafEQPD+nqActifKZ0Np0IS9L9kR/wbNvyz6ENwPiTrjV2KRkEjH78ZM
cUQXg0L3BYHJ3lc69Vs5Ddf9uUGGMYldX3WfMBEmh/9iFBDAaTCK
-----END CERTIFICATE-----

View File

@@ -8,3 +8,6 @@ binder_call(dataservice_app, cnd)
binder_call(dataservice_app, hal_rcsservice)
allow dataservice_app cgroup:file w_file_perms;
allow dataservice_app system_data_file:dir search;
r_dir_file(dataservice_app, user_profile_root_file)

View File

@@ -1,7 +1,6 @@
type ab_block_device, dev_type;
type at_device, dev_type;
type avtimer_device, dev_type;
type bt_device, dev_type;
type diag_device, dev_type, mlstrustedobject;
type dsp_device, dev_type;
type easel_device, dev_type;

View File

@@ -11,6 +11,7 @@ type sysfs_msm_subsys_restart, sysfs_type, fs_type;
type sysfs_msm_wlan, sysfs_type, fs_type;
type sysfs_rmtfs, sysfs_type, fs_type;
type sysfs_soc, sysfs_type, fs_type;
type sysfs_soc_sensitive, sysfs_type, fs_type;
type sysfs_scsi_devices_0000, sysfs_type, fs_type;
type sysfs_scsi_devices_other, sysfs_type, fs_type;
type sysfs_timestamp_switch, sysfs_type, fs_type;
@@ -59,7 +60,6 @@ type persist_data_file, file_type;
type persist_display_file, file_type;
type persist_drm_file, file_type;
type persist_elabel_file, file_type;
type persist_haptics_file, file_type;
type persist_rfs_file, file_type;
type persist_sensors_file, file_type;
type persist_time_file, file_type;

View File

@@ -97,6 +97,7 @@
/dev/block/platform/soc/1da4000\.ufshc/by-name/ssd u:object_r:ssd_block_device:s0
/dev/block/platform/soc/1da4000\.ufshc/by-name/product_[ab] u:object_r:system_block_device:s0
/dev/block/platform/soc/1da4000\.ufshc/by-name/system_[ab] u:object_r:system_block_device:s0
/dev/block/platform/soc/1da4000\.ufshc/by-name/vendor_[ab] u:object_r:system_block_device:s0
@@ -272,7 +273,6 @@
/persist/display(/.*)? u:object_r:persist_display_file:s0
/persist/drm(/.*)? u:object_r:persist_drm_file:s0
/persist/elabel(/.*)? u:object_r:persist_elabel_file:s0
/persist/haptics(/.*)? u:object_r:persist_haptics_file:s0
/persist/hlos_rfs(/.*)? u:object_r:persist_rfs_file:s0
/persist/rfs(/.*)? u:object_r:persist_rfs_file:s0
/persist/sensors(/.*)? u:object_r:persist_sensors_file:s0
@@ -281,3 +281,7 @@
# b/70518189 vDSO experiments
/sys/module/vdso/parameters u:object_r:sysfs_vdso:s0
# Dolby
/data/vendor/dolby(/.*)? u:object_r:vendor_data_file:s0
/(vendor|system/vendor)/bin/hw/vendor\.dolby\.hardware\.dms@2\.0-service u:object_r:hal_dms_default_exec:s0

View File

@@ -56,6 +56,7 @@ genfscon sysfs /devices/virtual/graphics/fb1 u:object
genfscon sysfs /devices/virtual/misc/mnh_sm u:object_r:sysfs_easel:s0
genfscon sysfs /devices/soc/8c0000.qcom,msm-cam u:object_r:sysfs_camera:s0
genfscon sysfs /devices/soc0 u:object_r:sysfs_soc:s0
genfscon sysfs /devices/soc0/serial_number u:object_r:sysfs_soc_sensitive:s0
genfscon sysfs /devices/soc/caa0000.qcom,jpeg u:object_r:sysfs_camera:s0
genfscon sysfs /devices/soc/caa4000.qcom,fd u:object_r:sysfs_camera:s0
genfscon sysfs /devices/soc/800f000.qcom,spmi/spmi-0/spmi0-02/800f000.qcom,spmi:qcom,pmi8998@2:qpnp,fg u:object_r:sysfs_batteryinfo:s0
@@ -72,6 +73,9 @@ genfscon sysfs /class/typec/usbc0 u:object
genfscon sysfs /devices/soc/a800000.ssusb/a800000.dwc3/xhci-hcd.0.auto/usb1 u:object_r:sysfs_usb_device:s0
genfscon sysfs /devices/soc/a800000.ssusb/a800000.dwc3/xhci-hcd.0.auto/usb2 u:object_r:sysfs_usb_device:s0
genfscon sysfs /devices/soc/800f000.qcom,spmi/spmi-0/spmi0-02/800f000.qcom,spmi:qcom,pmi8998@2:qcom,qpnp-smb2/extcon u:object_r:sysfs_extcon:s0
genfscon sysfs /devices/soc/800f000.qcom,spmi/spmi-0/spmi0-02/800f000.qcom,spmi:qcom,pmi8998@2:qcom,usb-pdphy@1700/extcon u:object_r:sysfs_extcon:s0
genfscon sysfs /devices/soc/800f000.qcom,spmi/spmi-0/spmi0-02/800f000.qcom,spmi:qcom,pmi8998@2:qcom,usb-pdphy@1700/usbpd0/typec u:object_r:sysfs_usb_c:s0
genfscon sysfs /module/diagchar u:object_r:sysfs_diag:s0
genfscon sysfs /kernel/irq_helper/irq_blacklist_on u:object_r:sysfs_irq:s0

View File

@@ -8,3 +8,6 @@ hal_client_domain(hal_audio_default, hal_power)
userdebug_or_eng(`
allow hal_audio diag_device:chr_file rw_file_perms;
')
allow hal_audio_default hal_dms_hwservice:hwservice_manager find;
binder_call(hal_audio_default, hal_dms_default)

6
sepolicy/vendor/hal_dms.te vendored Normal file
View File

@@ -0,0 +1,6 @@
# HwBinder IPC from client to server, and callbacks
binder_call(hal_dms_client, hal_dms_server)
binder_call(hal_dms_server, hal_dms_client)
add_hwservice(hal_dms_server, hal_dms_hwservice)
allow hal_dms_client hal_dms_hwservice:hwservice_manager find;

11
sepolicy/vendor/hal_dms_default.te vendored Normal file
View File

@@ -0,0 +1,11 @@
type hal_dms_default, domain;
hal_server_domain(hal_dms_default, hal_dms)
type hal_dms_default_exec, exec_type, vendor_file_type, file_type;
init_daemon_domain(hal_dms_default)
allow hal_dms_default vendor_data_file:file { rw_file_perms create unlink };
allow hal_dms_default vendor_data_file:dir { rw_file_perms add_name remove_name };
binder_call(hal_dms_default, hal_audio_default)
binder_call(hal_dms_default, platform_app)
binder_call(hal_dms_default, mediacodec)

View File

@@ -4,4 +4,4 @@ allow hal_nfc_default nfc_vendor_data_file:file create_file_perms;
dontaudit hal_nfc_default nxpese_hwservice:hwservice_manager find;
dontaudit hal_nfc_default nxpnfc_hwservice:hwservice_manager { find add };
dontaudit hal_nfc_default vendor_nfc_prop:file read;
dontaudit hal_nfc_default vendor_nfc_prop:file r_file_perms;

View File

@@ -1,8 +1,6 @@
type hal_oemlock_default, domain;
hal_server_domain(hal_oemlock_default, hal_oemlock)
allow hal_oemlock_default hal_bootctl_socket:sock_file write;
allow hal_oemlock_default hal_bootctl:unix_stream_socket connectto;
type hal_oemlock_default_exec, exec_type, vendor_file_type, file_type;
init_daemon_domain(hal_oemlock_default)

View File

@@ -4,3 +4,4 @@ type vnd_atcmdfwd_hwservice, hwservice_manager_type, vendor_hwservice_type;
type hal_imsrtp_hwservice, hwservice_manager_type, vendor_hwservice_type;
type nxpnfc_hwservice, hwservice_manager_type, vendor_hwservice_type;
type nxpese_hwservice, hwservice_manager_type, vendor_hwservice_type;
type hal_dms_hwservice, hwservice_manager_type;

View File

@@ -8,3 +8,4 @@ com.quicinc.cne.api::IApiService u:object_r:hal_c
com.quicinc.cne.server::IServer u:object_r:hal_cne_hwservice:s0
vendor.nxp.nxpnfc::INxpNfc u:object_r:nxpnfc_hwservice:s0
vendor.nxp.nxpese::INxpEse u:object_r:nxpese_hwservice:s0
vendor.dolby.hardware.dms::IDms u:object_r:hal_dms_hwservice:s0

View File

@@ -6,3 +6,6 @@ allow mediacodec system_file:dir r_dir_perms;
userdebug_or_eng(`
allow mediacodec dumpstate:fd use;
')
allow mediacodec hal_dms_hwservice:hwservice_manager find;
binder_call(mediacodec, hal_dms_default)

View File

@@ -0,0 +1,3 @@
allow platform_app hal_dms_hwservice:hwservice_manager find;
binder_call(platform_app, hal_dms_default)
get_prop(platform_app, audio_config_prop)

View File

@@ -60,6 +60,9 @@ sys.all.modules.ready u:object_r:public_vendor_system_prop:s0
sys.qcom.devup u:object_r:public_vendor_system_prop:s0
vendor.sys.slpi.firmware.version u:object_r:public_vendor_system_prop:s0
# fastbootd
ro.fastbootd.available u:object_r:exported_default_prop:s0
# vendor_default_prop
# default_prop isn't accessible from vendor components.
# So vendor_default_prop should be marked.

View File

@@ -6,6 +6,7 @@ binder_call(system_server, hal_camera_default)
allow system_server persist_file:dir search;
allow system_server persist_sensors_file:dir search;
allow system_server persist_sensors_file:file r_file_perms;
allow system_server sysfs_batteryinfo:dir r_dir_perms;
allow system_server wlan_device:chr_file rw_file_perms;
# TODO(b/73123675): BatterySaver needs access to cpufreq. Remove this access

View File

@@ -3,7 +3,7 @@ type thermal-engine_exec, exec_type, vendor_file_type, file_type;
init_daemon_domain(thermal-engine)
allow thermal-engine self:capability2 block_suspend;
allow thermal-engine self:capability2 { block_suspend wake_alarm };
# to read /sys/devices
allow thermal-engine sysfs:dir r_dir_perms;

View File

@@ -19,6 +19,11 @@ userdebug_or_eng(`
allow vendor_init proc_sysrq:file w_file_perms;
')
get_prop(vendor_init, atfwd_start_prop)
get_prop(vendor_init, system_prop)
get_prop(vendor_init, post_boot_prop)
get_prop(vendor_init, tee_listener_prop)
get_prop(vendor_init, wc_prop)
set_prop(vendor_init, vendor_bluetooth_prop)
set_prop(vendor_init, camera_prop)
set_prop(vendor_init, modem_diag_prop)

1
sepolicy/vendor/vendor_misc_writer.te vendored Normal file
View File

@@ -0,0 +1 @@
r_dir_file(vendor_misc_writer sysfs_dt_firmware_android)

View File

@@ -1,12 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2019 The Android Open Source Project
<!--
Copyright (C) 2024 crDroid Android Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -14,7 +12,11 @@
limitations under the License.
-->
<config>
<component-override package="com.android.bluetooth" >
<component class=".sap.SapService" enabled="true" />
</component-override>
<!-- Dolby -->
<install-in-user-type package="com.motorola.dolby.dolbyui">
<install-in user-type="FULL" />
<install-in user-type="PROFILE" />
<do-not-install-in user-type="android.os.usertype.profile.CLONE" />
</install-in-user-type>
</config>

View File

@@ -62,3 +62,7 @@ persist.data.df.dev_name=rmnet_usb0
#ro.use_data_netmgrd=true
persist.data.netmgrd.qos.enable=true
persist.data.mode=concurrent
# Soc
ro.soc.manufacturer=Qualcomm
ro.soc.model=MSM8998

View File

@@ -46,7 +46,6 @@
/dev/jpeg0 0660 system camera
/dev/adsprpc-smd 0664 system system
/dev/hw_random 0600 root root
/dev/sdsprpc-smd 0660 system system
/dev/wcd-dsp-glink 0660 system audio
@@ -111,3 +110,6 @@
# Storage: for factory reset protection feature
/dev/block/platform/soc/1da4000.ufshc/by-name/frp 0660 system system
# socinfo
/sys/devices/soc0 serial_number 0000 root root

View File

@@ -574,9 +574,9 @@ V1_0::Status UsbGadget::setupFunctions(
if (addEpollFd(epollFd, eventFd) == -1) return Status::ERROR;
mEpollFd = move(epollFd);
mInotifyFd = move(inotifyFd);
mEventFd = move(eventFd);
mEpollFd = std::move(epollFd);
mInotifyFd = std::move(inotifyFd);
mEventFd = std::move(eventFd);
gadgetPullup = false;
// Monitors the ffs paths to pull up the gadget when descriptors are written.