Commit Graph

129 Commits

Author SHA1 Message Date
Alexander Koskovich
e05dbba7ca sepolicy: qti: Add policy for ICameraExtensionService
Change-Id: If8b6e605c0ff16b43a18c23819c95769b951f677
2022-07-21 09:00:32 -07:00
Alexander Koskovich
8dc75317d7 sepolicy: qti: Add GetClientAppInfo QTEE vndservice
Change-Id: If36ed9b365d6b8bb570ebc610eb413dac2e18eed
2022-07-21 08:59:00 -07:00
LuK1337
31aed6913a touch: Let devices opt out of ITouchscreenGesture interface
Change-Id: Ib1fac9d7343798532fc8e6fb900354149b29351f
2022-07-16 22:20:41 +02:00
LuK1337
a39ee49e45 touch: Implement opt-in IHighTouchPollingRate interface
Change-Id: Ia0b45caa224cc9fea38f9b4efacce3287f888baa
2022-07-16 22:20:41 +02:00
LuK1337
cf5e10f923 sepolicy: qti: Label oneplus_wlchg wakeup nodes
Change-Id: I9839c23d2f80874bda56e79b2a587ec7912cdb51
2022-07-16 11:27:17 +02:00
jabashque
cf2723baa3 vibrator: Implement Effect::TICK
The AOSP TICK effect generated from the following test app:
- https://github.com/luk1337/VibeTest
was used as the starting point. It is more or less the same as oplus
CLICK, except waveform_index is set to 2.

The vibration effect from this TICK was stronger than oplus CLICK, which
is not really desirable, so adjustments were made to vmax in an
unscientific manner until it felt and sounded just right.

Change-Id: I472db022c2b0182e9a0d544c9d439bc3e47e4d82
2022-07-14 16:04:17 +02:00
LuK1337
0962815d6f touch: Make gestures configurable without TARGET_SPECIFIC_HEADER_PATH
SOONG_CONFIG_NAMESPACES += OPLUS_LINEAGE_TOUCH_HAL
SOONG_CONFIG_OPLUS_LINEAGE_TOUCH_HAL := INCLUDE_DIR
SOONG_CONFIG_OPLUS_LINEAGE_TOUCH_HAL_INCLUDE_DIR := \
    $(DEVICE_PATH)/touch/include

Change-Id: Ib4574926ceb16961e2b435aae4e8921665af4e23
2022-07-12 14:07:22 +02:00
LuK1337
7b65e6e8d9 livedisplay: Migrate to ioctl()
Change-Id: I2039c94eb3239f2d88ab67076b52f58493d9b43e
2022-07-11 11:52:45 -07:00
LuK1337
33b71bd0c3 Relocate oplus_display_panel.h to kernel_headers.oplus
Change-Id: Ib96688b00ced213cf5d3fc5116dbe8dc72992e07
2022-07-11 11:52:45 -07:00
LuK1337
942af86c74 amplifier: Add (and run) clang-format file
Change-Id: Iaa76db2b802de191e5b494fc0ec91988efc13ff5
2022-07-11 11:52:44 -07:00
Georg Veichtlbauer
2ef1e869af amplifier: Don't initialize device list for legacy HALs
Pre SDM845 audio_usecase struct doesn't have a device_list member.

Change-Id: I7395fd11f8a6a847483a906fa106df76965169f1
2022-07-11 11:52:44 -07:00
Alexander Koskovich
4f491ae09f amplifier: Clean up makefile.
Change-Id: I416005aec3e4b6a686079d7e4796e5b548ee0e9f
2022-07-11 11:52:44 -07:00
Pig
a6b1f2799e amplifier: Fix device list initializations
Update missing device list initializations.

Reported-by: Signed-off-by: SayanAcharya <rowdysayan99@gmail.com>
Co-authored-by: Signed-off-by: SayanAcharya <rowdysayan99@gmail.com>
Change-Id: Iaa44429e7a2514f882828089355fca1634b79200
2022-07-11 11:52:44 -07:00
PIPIPIG233666
b4dd94529e Add custom audio amplifier for TFA amp feedback
* Based on observing reverse engineering from davinci stock audio HAL.
 * Fixes speaker distortion on high volume.

 * Same logic with Smosia, rewritten by me.

Co-authored-by: Smosia <stasenko_nv@nrcki.ru>
Change-Id: I369555a9fcb06065177636b436d2e006c7a0b07d
2022-07-11 11:52:44 -07:00
Daniel Jacob Chittoor
eec907348b Add top-level Android.mk guard
* Inherit makefiles only if dir is in PRODUCT_SOONG_NAMESPACES.

Signed-off-by: Daniel Jacob Chittoor <djchittoor47@gmail.com>
Change-Id: I22955477304229365b7632c9792d737230de9376
2022-07-11 11:52:44 -07:00
LuK1337
c6356e112c fingerprint: Fix ioctl() return value check
ioctl() returns 0 on success.

Change-Id: I0bbdad6689fc21378d7b0c039c09e7e6288c1dae
2022-07-11 14:39:05 +02:00
Alexander Koskovich
e80c28314d overlay: qssi: Move OPlusWifiResCommon to /vendor
* Resources cannot be overlaid because overlays with
   policies "odm|public" do not fulfill any overlayable
   policies "product|system|vendor".

 * Google forgot to add ODM to the list of partitions
   it can be overlaid but might as well just move it
   to /vendor instead of thinking too hard on it.

Change-Id: Id1f9e101dce0781f2f751b821b9374c875127b06
2022-07-11 09:35:09 +02:00
Alexander Koskovich
bb4de276f8 overlay: qssi: Don't translate some strings
Change-Id: I1ea88f84af03f157894c11f857fc59ad0a4bae88
2022-07-11 09:35:09 +02:00
Alexander Koskovich
10bfce6a94 overlay: qssi: Drop explicit 'sdk_version' declaration
* We don't need to manually set this anymore.

Change-Id: I1239ba541636e53f8ea4373d3815024f2cd60824
2022-07-11 09:35:09 +02:00
Alexander Koskovich
31a4cc4961 overlay: qssi: Import some WiFi overlays from OplusWifiResource
Change-Id: I6a8354276467b95bb02c9a8b30b5952094be6f2e
2022-07-11 09:35:09 +02:00
Alexander Koskovich
c258d12fcc sepolicy: qti: Let camera HAL read from /proc/meminfo
Change-Id: Iccf62886f49be86137eba48c16c01b20e7c6284b
2022-07-11 09:35:09 +02:00
Alexander Koskovich
e3a6197dd8 sepolicy: qti: Label libipebpsstriping so we can pin it
Change-Id: I957ae46f3c99d22aba253205a70cf878cce9319d
2022-07-11 09:35:09 +02:00
Alexander Koskovich
c49638d219 sepolicy: qti: Label all 4 oplusreserve partitions
Change-Id: I595393f5bac2344e06910c94bd701aacc7300a89
2022-07-11 09:35:09 +02:00
Alexander Koskovich
675aef4837 sepolicy: qti: Add some properties wanted by RMT storage
Change-Id: Ie354fd5a07e3673bcd5dcb4e067af55f20ba45a1
2022-07-11 09:35:09 +02:00
LuK1337
74c4300652 sepolicy: qti: Add rules for vendor.oplus.hardware.oplusSensor
Change-Id: I3f51f2586e0af11749bd2cdb5a744b7b2fcb283d
2022-07-11 09:35:09 +02:00
LuK1337
6f35c7a779 sepolicy: qti: Introduce rw_dir_file() macro and use wherever possible
Change-Id: Iec8a7f18c75a994032792421172fea92e9595af6
2022-07-11 09:35:09 +02:00
LuK1337
67c51391b7 sepolicy: qti: Allow fastbootd to write to logo, spunvm, and storsec
Change-Id: Idfaee7740b56de523fbe73606ab09102b7bcd80c
2022-07-11 09:35:09 +02:00
LuK1337
e20099c05f sepolicy: qti: Label SM8250 charging sysfs path
Change-Id: I3662e118e1b401d97c8450ae6b3c95442dfef625
2022-07-11 09:35:09 +02:00
LuK1337
41ac9d7d73 sepolicy: qti: Label SM8250 vibrator sysfs paths
Change-Id: Icb13e32b4b72e734c7252e5b31b856f9ece4dd98
2022-07-11 09:35:09 +02:00
LuK1337
73b6c06adf sepolicy: qti: Allow sensors to access ssc_interactive & soc:sensor_fc
Change-Id: I75b740b8fba66615b08f791a43e476042e19a0f6
2022-07-11 09:35:09 +02:00
LuK1337
7fab01bf61 sepolicy: qti: Allow rild to set vendor.gsm.{phoneserial,serial}
Change-Id: Ic976ca785ca04aa2ed9ca3f5e6b109adcaad4ed0
2022-07-11 09:35:09 +02:00
LuK1337
157325442b sepolicy: qti: Add label and rules for MDM modem
Change-Id: I4035e1a8ca305642bb8f852f4f4af86558530729
2022-07-11 09:35:09 +02:00
LuK1337
17d82b5a99 sepolicy: qti: Label SM8250 wakeup nodes
for i in $(realpath /sys/class/wakeup/*); do if ! echo "$(ls -dZ $i)" | grep -q sysfs_wakeup; then echo genfscon sysfs $(echo $i | sed -e 's|/sys||g' -e 's|wakeup/wakeup.|wakeup|g' -e 's|wakeup[0-9]*|wakeup|g') u:object_r:sysfs_wakeup:s0; fi; done | sort -u

Change-Id: Id70f4e725f8925b31c0007fae5eb98756ddcd410
2022-07-11 09:35:09 +02:00
Alexander Koskovich
c4db837788 sepolicy: qti: Allow vendor_init to update display panel firmware
Change-Id: Iba517b59fe2856ed6f991c07e0362b1be203af45
2022-07-11 09:35:09 +02:00
Alexander Koskovich
df6558746e sepolicy: qti: Label some logging properties
Change-Id: I40531f4fce77290b42068669274ea1c20280d982
2022-07-11 09:35:09 +02:00
Alexander Koskovich
31ddd0f1ea sepolicy: qti: Allow update engine to flash oplusstanvbk
* Needed when payload.bin contains oplusstanvbk.

Change-Id: I5139aff2b0152790e1ebf8c598fc99c0f00fd21d
2022-07-11 09:35:09 +02:00
Alexander Koskovich
eb50d7c01c Add initial QTI SEPolicy for Oplus
Change-Id: Ib06cada5e7031d1f95976bf48a6a8475a835c9a4
2022-07-11 09:35:09 +02:00
Umang Chheda
d3d75f3ddd vibrator: Fix check for no of bytes in Slate SSR monitor thread
No of bytes returned by uevent_kernel_multicast_recv() can be 0 or
equal to 1025 bytes. Add change to remove '=' check in Slate SSR
monitor thread to fix the issue of thread not processing UEVENTs
because of wrong check.

Change-Id: I6d8c35a758371b853b545e3eece2fd7788a1424e
2022-07-06 13:14:42 +02:00
LuK1337
630fd3d763 bootctrl: Add android.hardware.boot@1.1-impl-qti back
This will be used for devices that don't support BSG.

Change-Id: I382a4e1116420442091591d4055840fd71cb891c
2022-06-28 17:27:20 +02:00
Alexander Koskovich
95e08c02aa bootctrl: Update to Boot Control HAL v1.2
Change-Id: I8a63b090bfab2659ce2a00193ff0115b687d9780
2022-06-28 15:54:25 +02:00
LuK1337
9b2d17ea95 Switch to QTI bootctrl HAL
Change-Id: Ie5079fd4c40cb1f7414f2cba9f98d350f03047d8
2022-06-28 15:54:24 +02:00
Siddeswar Aluganti
4a9dff139c gpt-utils: Update PTN_SWAP_LIST and handle multiimg(oem/qti)
* Update PTN_SWAP_LIST to reflect partition entry changes
   to BOOT LUN and handle "multiimgoem", "multiimgqti"
   partitions, similar to other BOOT LUN partitions.

Change-Id: I3fb2934c44f3c2555ef36437ae97c9a47bb874ed
2022-06-28 15:54:24 +02:00
LuK1337
128227ffce gpt-utils: Fix build errors
Change-Id: Ie8245d1637e12b5979a8af1b864cc713135b5c95
2022-06-28 15:54:23 +02:00
LuK1337
0a767f1022 gpt-utils: Drop unnecessary include
* When using generated_kernel_headers including
   stdio.h will cause errors due to redefined macros.

Change-Id: I2f753a64f760b636be1325873e17697466fbf33d
2022-06-28 15:54:23 +02:00
LuK1337
f15ccf5b2d gpt-utils: Drop unnecessary include
* When using generated_kernel_headers including
   asm/byteorder.h will cause a warning due to
   unused static functions.

Change-Id: I2a74ec92487c13c4645048c96da8cb92b3cbd9f0
2022-06-28 15:54:22 +02:00
Tao Bao
48bc51ae3f gpt-utils: Address the warnings
[ 11% 2/18] target  C++: libgptutils <= device/google/crosshatch/gpt-utils/gpt-utils.cpp
In file included from device/google/crosshatch/gpt-utils/gpt-utils.cpp:54:
system/core/libcutils/include_vndk/cutils/log.h:38:2: warning: "Deprecated: don't include cutils/log.h, use either android/log.h or log/log.h" [-W#warnings]
 ^
device/google/crosshatch/gpt-utils/gpt-utils.cpp:750:17: warning: unused variable 'ufs_dir_stat' [-Wunused-variable]
    struct stat ufs_dir_stat;
                ^
device/google/crosshatch/gpt-utils/gpt-utils.cpp:973:13: warning: unused variable 'r' [-Wunused-variable]
        int r, fd;
            ^
device/google/crosshatch/gpt-utils/gpt-utils.cpp:973:16: warning: unused variable 'fd' [-Wunused-variable]
        int r, fd;
               ^
4 warnings generated.

Test: lunch blueline-userdebug && m -j libgptutils
Change-Id: Idd9174276d8a5b7b77c2ec48c745a78184f65fcf
2022-06-28 15:54:22 +02:00
LuK1337
e215489e8d gpt-utils: Use generated_kernel_headers
Change-Id: Id56f1c0603ff13b5d64eb4db33807ac13dcdd619
2022-06-28 15:54:21 +02:00
Alexander Koskovich
10a69ad8f9 Import gpt-utils from LA.UM.9.14.r1-19800.01-LAHAINA.QSSI12.0
Change-Id: I92baccc0524f88dcb439095288ac75fbc1401ae7
2022-06-28 15:54:21 +02:00
LuK1337
fc96053921 FrameworksResCommon: Enable WiFi display
Change-Id: Ibedd77780aa8adebc5ae948ce2ca25956c8692ac
2022-06-24 15:42:46 +02:00
jabashque
dfba74a283 fingerprint: Reset dimlayer HBM + fp press state on error
The way the fingerprint service handles FINGERPRINT_ERROR messages
allows for situations where the user can end up turning off the screen
while notify_fppress is set to 1. This results in situations where the
screen backlight does not turn on at all when turning on the panel,
which is not an ideal user experience.

Fix this by calling `setDimlayerHbm(0)` and `setFpPress(0)` when
handling FINGERPRINT_ERROR messages.

Change-Id: Ic2754249083c30a9b3b150b825357d894814fe84
2022-06-10 20:44:28 +02:00