Commit Graph

648 Commits

Author SHA1 Message Date
Bruno Martins 2f709f39e9
sm8150-common: Remove deprecated telephony flag
The custom jar is dead for good in Android 11.

Change-Id: I7f0f7afd186b00f01183bf4479092d03897e074a
2021-04-03 06:56:20 +05:30
Jimmy Chen 9e6a31f3c5
sm8150-common: Move supplicant service init to wpa_supplicant
Bug: 138790309
Test: boot and wifi function is ok
Change-Id: I35cf3e03566443e20799623045eacd423fd7f5c4
2021-04-03 06:56:19 +05:30
Tao Bao 620943d218
sm8150-common: AB_OTA_UPDATER is BoardConfig variable.
Bug: 130433003
Test: TreeHugger
Change-Id: I70c7a884df45781e8b14339edd02985ba3de02fd
2021-04-03 06:56:18 +05:30
LuK1337 af042b8ce4
sm8150-common: Set SSR level to RELATED
Change-Id: I15871af43e62936ffde5e86aa1c0630bff909237
2021-04-03 06:56:17 +05:30
LuK1337 bb589b1052
sm8150-common: Set group/owner of selected motor nodes to system:system
Needed so that our camera helper app can access them.

Change-Id: Icc0856680fc9808f29600eabb2c7d1b1829e6c11
2021-04-03 06:56:15 +05:30
LuK1337 d06c6c5ced
sm8150-common: Remove dead packages
Change-Id: Iea6180423352d23d6f1c2a0a28b11b6e924a9750
2021-04-03 06:56:14 +05:30
LuK1337 459a3cd7f3
sm8150-common: sepolicy: OOS 11 related updates
* Relocate files when needed
* Remove no longer present labels / hwservices / etc
* Address new denials

Change-Id: Ibf7b9f9a42653520e448619a5c7a2dc9bfeb6026
2021-04-03 06:55:35 +05:30
LuK1337 b1be9033e8
sm8150-common: fingerprint: Add vintf fragment
Change-Id: I6614dcc6325c3df0e36e9ede474b590af753567a
2021-04-03 06:53:48 +05:30
LuK1337 0c37e56e10
sm8150-common: Add local OpFeatures implementation
Change-Id: Ibb1d890a96683e005520da977f2433f8094b0644
2021-04-03 06:53:46 +05:30
LuK1337 483fee00f5
sm8150-common: Fix host_init_verifier errors
Change-Id: Ieb693814ad69e6864c7baadf6922ab7cbdb6ac4c
2021-04-03 06:53:45 +05:30
LuK1337 eb4b31c557
sm8150-common: Import OOS 11 changes
* Redo blobs list based on OnePlus sm8250-common
* Retire lights HAL
* Retire custom sensors HAL for time being
* Reimport rootdir
* Reimport seccomp
* Update audio configs
* Update priv app perms whitelist
* Update properties
* Update sec_config
* Update wifi configs

Change-Id: I2b56f03c1d3e4d0d9693d82e96e8501695ebfd74
2021-04-03 06:53:28 +05:30
LuK1337 30b3c4b6ce
sm8150-common: sepolicy: Address vendor_init denials
Change-Id: I26084471ccab04b3e1ba396d0219580bb86c0692
2021-04-03 06:49:16 +05:30
LuK1337 04b2c5b7eb
sm8150-common: sepolicy: Address radio denials
Change-Id: If37262e6be3d31f51dcd482db04ce647ecd57e4d
2021-04-03 06:49:15 +05:30
LuK1337 cfd8ed1710
sm8150-common: sepolicy: Address vendor_hal_drm_widevine denials
Change-Id: Icf5b17de314d390c1c891137c7eb29e1f0d52681
2021-04-03 06:49:14 +05:30
LuK1337 75b9567bed
sm8150-common: sepolicy: Fix build errors
Change-Id: I134769ab240097f779cc6bb4254ef1a0ab90b101
2021-04-03 06:49:11 +05:30
Ramakant Singh fc5247f4d8
sm8150-common: init: Add vendor prefix for shell
qti_init_shell renamed to
vendor_qti_init_shell

Change-Id: I4cfe1d8e15892a4948ece52aa799b2a60826d5f9
2021-04-03 06:48:55 +05:30
LuK1337 1cf32738cd
sm8150-common: Update qcom sepolicy include
Change-Id: I7167575e82eb8c5de2d822643261757edda73a07
2021-04-03 06:48:54 +05:30
David Su 730724d69d
sm8150-common: Don't sign Wifi RROs with platform cert
Preinstalled overlays needn't be signed with the same cert
as the package it overlays, simply being preinstalled is
enough. Sign with the default cert instead for now, which
provides fewer special privileges.

Bug: 162195999
Test: verify values still overlaid correctly
Change-Id: I017491fd383551c5aadf8648edb900e0c12a27b8
2021-04-03 06:48:53 +05:30
LuK1337 100fe53fcb
sm8150-common: Import WifiResCommon from stock
Change-Id: I009437c1b6d0d989a2441f6051706f5f885c0061
2021-04-03 06:48:52 +05:30
Roshan Pius 620a7d49f3
sm8150-common: overlay: Remove wifi related internal overlays
These are replaced by formal mainline module overlays.

Bug: 143464763
Test: Send for  Wifi regression tests
Change-Id: I45881ed210132252b9c5c7d6be03ed845e33f971
2021-04-03 06:48:51 +05:30
LuK1337 748e4b82e6
sm8150-common: Drop android.hardware.thermal HAL
android.hardware.thermal@1.0::IThermal/default is deprecated in compatibility matrix at FCM Version 4; it should not be served.

Change-Id: Icc3c672a0bf6b9e4ee76ccf91e6cdca5fb778fde
2021-04-03 06:48:49 +05:30
Robert Shih b8afced165
sm8150-common: Enable v1.3 drm plugins
Bug: 139134043
Test: MediaDrmTest
Change-Id: I7453b035ca29c7ee889d03de0d55e6d947b3cb77
2021-04-03 06:48:48 +05:30
Yifan Hong 1040a750c2
sm8150-common: Replace BOARD_CHARGER_ENABLE_SUSPEND with ro.charger.enable_suspend
Test: charger mode
Bug: 124118169
Change-Id: I3825d08e38d677bd7154879609857de302348b6f
2021-04-03 06:48:47 +05:30
LuK1337 5f785813f2
sm8150-common: gpt-utils: Drop unnecessary include
* When using generated_kernel_headers including
  stdio.h will cause errors due to redefined macros.

Change-Id: I2f753a64f760b636be1325873e17697466fbf33d
2021-04-03 06:48:46 +05:30
LuK1337 f4195c68f0
sm8150-common: Switch vintf manifest from copy files to build targets
* Fixes:
  build/make/core/Makefile:49: error: VINTF metadata found in PRODUCT_COPY_FILES

Change-Id: I0a7ddebff54563f7901b6ce5d6af9580ea201a77
2021-04-03 06:48:45 +05:30
Kevin Chyn a4d58dce4a
sm8150-common: 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
2021-04-03 06:48:43 +05:30
Brad Ebinger 50c9724ff5
sm8150-common: overlay: Add translatable="false" tags to ims package overlays
Bug: 147569830
Test: atest TeleServiceTests:PhoneGlobalsTest
Change-Id: I57d80bbf17fafdc87ba04c6e7f7ab9573482e395
2021-04-03 06:48:42 +05:30
Brad Ebinger 9dbc0b84ed
sm8150-common: overlay: Remove old configuration and use new config for MMTEL/RCS
Remove the old config_ims_package device config and configure the
new MMTEL and RCS configurations in Telephony instead. Also,
configure the RcsService to be the default RCS service.

Bug: 111305845
Test: make checkbuild
Change-Id: I0d709b8248f1c40f0a5b50ec799396706eeadd65
2021-04-03 06:48:41 +05:30
Ryan Mitchell a93b465abe
sm8150-common: Use component-override to configure Bluetooth
Runtime Resource Overlays (RROs) can no longer change the value of
resources in manifest when read during PackagerParser.

This change uses component-override to enable the service by default.

Remove usages of profile_supported_* from overlays as they no
longer configure the enable state of Bluetooth components.

Bug: 135048762
Test: adb shell pm query-services \
      com.android.bluetooth/.avrcpcontroller.AvrcpControllerService
      adb shell pm query-services \
      com.android.bluetooth/.hid.HidDeviceService
      adb shell pm query-services \
      com.android.bluetooth/.sap.SapService

Change-Id: I284d254a921b14d1533745611a083f4b5a27d9dc
2021-04-03 06:48:38 +05:30
Arian e323df41e5
sm8150-common: Build new aidl qti power HAL
Change-Id: I4bdea354e54d34d0dfe9b811e228fc6f8762d2ed
2021-04-03 06:48:18 +05:30
LuK1337 2074c18049
sm8150-common: Rename ueventd.rc module to ueventd.qcom.rc
* Fixes: MODULE.TARGET.ETC.ueventd.rc already defined by system/core/rootdir.

Change-Id: Ib9de82cfb1b34f91af09a7f09660f95f112048e1
2021-04-03 06:48:17 +05:30
Ray Essick e9d348764a
sm8150-common: Allow mremap to use MEMRMREMAP_MAYMOVE flag
Bug: 151163101
Bug: 152908945
Test: see bug, shouldn't see crash in mediacodec minijail

Merged-In: If25dc5a56fe2f549d7867aa5a459b949be7e6947
Change-Id: I9835b0e8ef2e8286b5142c6bec9fb7796d3947cc
2021-04-03 06:48:15 +05:30
Alessandro Astone f9e79d3505
sm8150-common: Import codec2 seccomp policy
Change-Id: I9efcb2f71a3917c4e317fdde754fc10905b91cc9
2021-04-03 06:48:14 +05:30
LuK1337 fed478b62a
sm8150-common: Build libavservices_minijail_vendor
* Needed for vendor.qti.media.c2@1.0-service

Change-Id: I824468386dca2707e20b141f74ac65102ba6cf45
2021-04-03 06:48:13 +05:30
LuK1337 a7735fe51f
sm8150-common: sensors: Pass 0 degree rotation properly
Change-Id: Iaae6658f737d00a49d13e3c5c10a21d9d60b4bf1
2021-04-03 06:48:12 +05:30
Steven Moreland d34a0026cf
sm8150-common: Remove libhwbinder/libhidltransport deps
Since these were combined into libhidlbase.

Bug: 135686713
Test: build only (libhwbinder/libhidltransport are empty)
Change-Id: Iba2cd20b8b20fac3e7564de6b853b475fd4ebd2a
2021-04-03 06:48:10 +05:30
LuK1337 2e6ea18e5c
sm8150-common: Relocate aptX blobs to system_ext
Change-Id: Id8de7887096d9532cfdbdddfdac9487604108481
2021-04-03 06:47:24 +05:30
Arian b3e1afe586
sm8150-common: Build libplatformconfig from source
Change-Id: I8b4f2272ee47f7652c21918792d9fb72c7018db6
2021-04-03 06:47:23 +05:30
LuK1337 37bfa66f12
Revert "sm8150-common: Don't resign TimeService app"
This reverts commit 6dd41b186d.

Change-Id: I4219c6a09bfd5cc9ba036a673bac76b1bbbe4c3c
2021-04-03 06:47:22 +05:30
Alexander Koskovich 40b17107ae
sm8150-common: Set gain of vibrator to 0x55 on boot
* Seems better than the default of 0x80, vibrator is
   a bit too strong by default.

Change-Id: I676b74aac3cbc1900c73b3236879479e8ecfca00
2021-04-03 06:47:21 +05:30
LuK1337 0b0f0f63f9
sm8150-common: Build QTI vibrator HAL
Change-Id: Ic87b5ca1dcf1ce1b4f65e7b90ce8c74a7aeb3ed4
2021-04-03 06:47:20 +05:30
Omkar Chandorkar a22751b053
sm8150-common: drop prebuilt vibrator
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-04-03 06:46:57 +05:30
Michael Bestas d6e67ff42f
Automatic translation import
Change-Id: Ibcfb9a9f3349481d878dd0d152a234405a3264e8
2021-04-03 06:46:11 +05:30
LuK1337 671ecb5c91
sm8150-common: Enable ro.audio.monitorRotation
* This was in stock /system/build.prop but since it's
  labeled as u:object_r:exported3_default_prop:s0 it
  may as well be put in /vendor/build.prop instead.

Change-Id: I462c575da006f096185f515ffb1b050d7bd4ae3c
2021-04-03 06:46:10 +05:30
rago f7ff24ada8
sm8150-common: Set voice call volume steps to 7
Bug: 28426597
Change-Id: Icf78d9acec75c500982b1e4391af4d6f3933da37
2021-04-03 06:46:08 +05:30
Jean-Michel Trivi f79f6d3a94
sm8150-common: Media volume: from 15 to 25 steps
Test: play media, use all 25 vol steps and observe varying attenuation
Bug: 32195657
Change-Id: I7ac87df0b2b15de3a7bb87e739bd88ef7b185236
2021-04-03 06:46:07 +05:30
LineageOS Builder 1384ca08d5
Automatic translation import
Change-Id: Ic04bce59e211f408d829f5df67b696250c3c835a
2021-04-03 06:46:06 +05:30
LuK1337 1eca0e1757
sm8150-common: Decommonize remaining goodix fod dependencies
* Using these from guacamole seems to cause other
  devices to have bad battery drain.

Change-Id: I208ac8491fd641f75627da25b50ff76bf210c804
2021-04-03 06:45:17 +05:30
LuK1337 ecdbd43ac9
sm8150-common: Enable RRO overlays for Snap
Change-Id: I482f2393e10e90362db2c66b7abb0de837085843
2021-04-01 08:44:41 +05:30
Michael Bestas 8ed31332c1
sm8150-common: Switch to standalone extract utils
Align with templates while we are at it

Change-Id: Ife50623a3d1b8733f5cc76995c982d8950d39ad4
2021-04-01 08:44:15 +05:30