Commit graph

521 commits

Author SHA1 Message Date
stenkinevgeniy
44335364f6 Audio: remove unsupported hotword/soundtrigger stuff.
Change-Id: Ie21f94e80a18f5a5805a3ee00e12e83fa2fc3f1a
(cherry picked from commit 35dbc1e39fa7d355edbebe0071145aac45cc1075)
2018-05-18 12:45:17 +02:00
Lukas0610
b0b7834861 fingerprint: send cancel-message to system
Android expects a FINGERPRINT_ERROR_CANCELED error-message if a
fingerprint authentication-requested was cancelled.

As bauth doesn't deliver such a message on its own, we use the
already notify-wrapper to send a message to Android if the
authentication was cancelled by bauth to allow a proper operation
of the fingerprint-service.

Some devices (hero, hero2) with the fingerprint scanner embedded in
the home button need this for the "config_fingerprintWakeAndUnlock"
option to work reliably.

Change-Id: Id5ec866a7608885925687a1927e0e6085e9b6cff
Ref: BUGBASH-1422
2018-04-10 00:22:33 +02:00
Victor Lourme
5869cd357e audio: return EINVAL to avoid get_presentation_position spamming logs
Change-Id: I32ec0c5651395c7af3dc4b80d25204bf0fcc1977
2018-04-01 02:23:39 +02:00
Michael Bestas
d5b988f3b2 mkbootimg: Include system/tools/dtbtool
* Moved from device/qcom/common

Change-Id: I9b301923aaebdbfbc8599e0f8524b2a38fe6cefa
2018-03-25 20:33:08 +03:00
Christopher N. Hesse
8179c011c6 audio: Use audio_route_{apply/reset}_and_update_path
We don't need to handle the mixer updates here anymore.

Change-Id: Id60759e31a6501e4772bbd7377505197c932545a
2018-03-10 00:09:15 +01:00
Christopher N. Hesse
ecb6050e40 audio: Update mixer knobs after re-applying output route
Change-Id: I35fbcc03e9666e579134512b443610e546c31441
2018-03-06 19:25:21 +00:00
Paul Keith
96ff312382 ril: service: Get off my back
* Checking numInts and numStrings for strict equality when
  we're not looping is dumb, because Samsung is notorious
  for sending extra information in their RIL
* Check if there's *enough* data rather than the *exact amount*
  to fix a bunch of invalid response errors

Change-Id: I14bc37240e5760b4629fcb74b64f25ad95d4fdfc
2018-03-06 19:25:04 +00:00
Christopher N. Hesse
d26f4c920f ril: service: Fix breakage introduced by f7c75aa4e0
Before:
    if (response == NULL || numStrings != 3) {
After:
    if (response == NULL || numStrings != mqanelements - 2) {

This patch fixes the logic so we don't change the value check.

"mqanelements" is not related to getOperatorResponse, so get get rid of
the affected code.

Change-Id: I86c6ae7b7492a5d04fbc8dc415c4f615e7d05bab
2018-03-06 19:20:50 +00:00
Christopher N. Hesse
719630aaf6 audio: Guard mixer path dependency fix
Change-Id: Id93d7941ae322a83488da3cea62c6eb36a6e9160
2018-03-04 13:54:52 +00:00
Christopher N. Hesse
62b70f8299 power: Allow POWER_HINT_DISABLE_TOUCH in low power mode
Remove the unused len var while we're at it.

Change-Id: Iabaf3b8704072a8758b213a54530eaffbf0c7ae5
2018-02-23 18:24:01 +00:00
Christopher N. Hesse
7f2c1bf988 ril: Add support for imsType parcel member
This is needed for Samsung devices like the Galaxy A5 2017.

Change-Id: I3b89cf8ac232fef5629b439dbf5d2f21bdb264a2
2018-02-22 21:02:29 +00:00
Christopher N. Hesse
ffe632e356 ril: Add support for roamingProtocol parcel member
This is needed for Samsung devices like the Galaxy A5 2017.

Change-Id: I549130b838377d8a8668ac59b51c314fe9e7f5ab
2018-02-22 21:02:04 +00:00
Paul Keith
c41b85cf57 AdvancedDisplay: Rename Negative to Accessibility
* Samsung now supports many more modes than just inverted colors
* Add strings for these extra modes while we're at it

Change-Id: If2a469c994658d521d98b91adec1a19badb8092f
2018-02-22 21:00:43 +00:00
LuK1337
d9b32260a3 AdvancedDisplay: Add support for new mDNIe scenarios
* BROWSER_APP
* eBOOK_APP
* EMAIL_APP
* TDMB_APP

Change-Id: I44be4d46f7a077295f0631a71ec652e61c3f9411
2018-02-22 21:00:34 +00:00
Paul Keith
763a8c3b46 AdvancedDisplay: Fix strings
* It just so happens that not all devices will have the
  same options available, so allow them to specify what
  they have without breaking tranlations by moving the
  scenario names into individual strings from the arrays
* Update a few strings to be actually translatable
* Fix an off-by-one error for every display mode after
  "LineageOS (default)": UI is the same thing as the
  default mode, so remove it to make the mode selection
  actually choose the user-selected mode

Change-Id: Id5d659d79c10ea097c35b7416ef7c1cc93937756
2018-02-22 20:59:56 +00:00
Christopher N. Hesse
4f7dc6ffec power: Silence excessive logging
Change-Id: I519122aaa77e73cf0290610a3d9d4aa79700e843
2018-02-19 22:24:14 +00:00
Christopher N. Hesse
d8d04fd497 audio: Support new and old mixer paths locations
Change-Id: Ifa2a55cbfe45ab9d53cd23098012443f9b32ca31
2018-02-16 11:59:28 +01:00
Christopher N. Hesse
2beff4222c audio: Print error in case of nonexistant mixer paths
Change-Id: I131ed6518ce8f26638a3490ee1be7a5d93b4e5b8
(cherry picked from commit 0524e26d2a1d155ce1dc9609b8e8741fd5f1500f)
2018-02-16 10:58:10 +00:00
Christopher N. Hesse
11ef211749 audio: Avoid mixer path dependency conflicts
On some devices, certain input and output mixer controls share the same
endpoint, which means that if an input stream is disabled (and the mixer
is updated), that shared endpoint may be disabled as well.

This would result in no audio, because no one is aware that the output
stream in fact does still need the shared endpoint to be enabled.

We prevent this by enabling the output mixers after disabling input mixers,
if any.

Change-Id: I4d80fcd0648a11099f27177da3cd29095b6a8c34
(cherry picked from commit 507e8ce5bffb36fae8b1cd4e5498fa19a6273ee6)
2018-02-09 15:23:07 +00:00
Christopher N. Hesse
56508259a6 wifiloader: Make sure WiFi firmware path is writable
Change-Id: Ib0ae2a004d4207a4ccb3d551c9a6a092920595ca
2018-02-05 14:05:28 +00:00
Christopher N. Hesse
5b6ec5682e wifiloader: Notify WiFi HAL on module load success
Change-Id: I0c7de00aec571a29f79137bb5b50178b0be91408
2018-02-05 14:05:01 +00:00
Christopher N. Hesse
4ada34bc6d dtbhtool: Print better warnings for PLATFORM/SUBTYPE mismatch
Change-Id: I486239d47255d5a5347e7b8ac7348afb8bc5bddb
(cherry picked from commit 8f74f0a7e9839d4f6f499aecdcc6c042ca4671a0)
2018-02-05 14:04:17 +00:00
Simon Shields
2440fd85c9 dtbhtool: implement unpackdtbhimg
Parses a DTBH image and outputs the information needed
for samsung_dtb.h and dumps all DTBs contained in the file.

Change-Id: Ia724f25c3b33423baeefec85c9b0d42967fce6f2
(cherry picked from commit 25b3f58c5bb9e9cfd2f0282047a2ea13141496cc)
2018-02-05 14:04:02 +00:00
Davis Mosenkovs
8b4ba0d6b6 Added new Murata MAC range
OUI a0:c9:a0 was observed on hero devices bought in December 2017

Change-Id: I0a2404780b1b5b017bb89468d235a2174a245989
(cherry picked from commit 939c81d0e0581a08b896636ce0f1d5bb96946dc9)
2018-01-29 01:01:07 +00:00
Davis Mosenkovs
2fa73d6973 Added another new Murata MAC range
Another herolte user observed OUI 8c:45:00

Change-Id: I7eaf4fef29c6dbc6a962de0ff745c9703f65fcfc
(cherry picked from commit 70d3e3166f748e96f72c1c96aa2971f4981e9981)
2018-01-29 00:57:57 +00:00
Sean hoyt
7ef59cea50 libsec-ril: Include liblog
Change-Id: I87df49446a2729f19a5d5611a88a4a80faf0350b
2018-01-21 13:29:29 +01:00
Martin Bouchet
f7c75aa4e0 libril: fix network operator search
The number of mQANElements should be defined in the system
prop ro.ril.telephony.mqanelements

Change-Id: Ie5bb8ba80c5ac93b7502da3b1bb3d2b4404ecd5e
2018-01-21 13:29:20 +01:00
Martin Bouchet
d912396454 libril: fix in call presentation
Change-Id: Ifd4a20c0bcd34f380716cc96cdd4c99b4b909266
2018-01-21 13:29:07 +01:00
Martin Bouchet
d53206c5bd libril: handle Samsung proprietary commands
Change-Id: Ief8402c8e75c677c7f2e32794f13867b924b209f
2018-01-21 13:28:25 +01:00
Martin Bouchet
0063444a40 libril: port Samsung responseDataCallList to O libril
Change-Id: I1a1980e25b2ae1c496420fe3bfb0e8999e62f864
2018-01-21 13:28:18 +01:00
Martin Bouchet
db968d4efd libril: port samsung changes to signalStrength
Change-Id: I39c1f5dcb44bcd0cf265243276d7649a9c2fdc8c
2018-01-21 13:27:52 +01:00
Martin Bouchet
c3c6ceeaad libril: add Samsung flags to makefile
Change-Id: I5deb1f7582b207acf908691a7ac69a9ebbc62505
2018-01-21 13:27:48 +01:00
Martin Bouchet
6e9a4971ec libril: bring back signalStrength v5 and v6
Change-Id: Ie0513986e9cabe9b363198e0192b18a0a8fe97de
2018-01-21 13:26:45 +01:00
Martin Bouchet
0d4bbaf7f1 ril: import Oreo AOSP libril
Change-Id: I00750bad812dc263e9c74a504b48512a892376c8
2018-01-21 13:26:31 +01:00
Christopher N. Hesse
e4a1c59a0b audio: Fix BT sample rate handling properly
This should now support both old and new headsets,
as we rely on codec negotiation in the bluetooth
stack for narrow/wide band switching.

Change-Id: Ie9d308dfc55726fd1591a7d158f610bd267340e6
(cherry picked from commit d462f7b86e957f858959ef5d80fd1744689ee6ea)
2018-01-20 22:32:04 +00:00
Christopher N. Hesse
6c0020c6a9 audio: End voice call in set_mode()
Previously, we would only end the voice call once the next output
stream happened (and parameters would be set).

Change-Id: Id0d2711605e57ad69d9b26b36afb562444349358
(cherry picked from commit 5169e86c10b7429b01d6ab0500a0509141dcbfe1)
2018-01-20 22:31:42 +00:00
Christopher N. Hesse
77880a2b13 audio: Fix incall device switch handling
The whole code block was no-op, since we would override
(in|out)_snd_device at a later point anyways.

Change-Id: Ieb2b0918c9c72f18d195d6b34b5c9768fce130b3
(cherry picked from commit f33a728b205f7656ca6211a07e3dd69c623b75ca)
2018-01-20 22:31:27 +00:00
Christopher N. Hesse
33affb806e audio: Improve code readability
Change-Id: I5b1f24ab6098a037559603a92b4a1a38987488f5
(cherry picked from commit 4b29ec95d88d7cb99a7c55f0d3297a3b8c2149c4)
2018-01-20 22:30:35 +00:00
Christopher N. Hesse
6a2a3079c0 audio: Initial support for amplifier HALs
Change-Id: I04ef5b89ca595a0df02f6a4a68748bd0d0cdb245
(cherry picked from commit 7a82a0e691d884045c78d1cb9f7ab0dd51a5d871)
2018-01-20 22:30:10 +00:00
Christopher N. Hesse
8f9268e598 libril: Fix multisim flags
Change-Id: Idb2ea518c115c1dbfbbbbb79094938ce006f40d8
(cherry picked from commit c98cc605c67e950bf14aa9f0d14966382ec45a0c)
2018-01-20 22:29:43 +00:00
Bruno Martins
f38167ac84 AdvancedDisplay: Restore back button to the action bar
Change-Id: I7ae2d1ccbb0a55fc28c31d4791aaae1169b8221f
2018-01-18 12:30:47 +00:00
Bruno Martins
6deaa3b648 AdvancedDisplay: Re-integrate into Settings
* Apply the default Oreo theme and inherit the layouts from Google
   for the Settings app, in order to keep UI consistency.

 * Get rid of SettingsDrawerActivity as it no longer fits in.

 * Add required appcompat and preference support libraries.

 * Integrate into display settings category using IA.

Change-Id: I8438e0ebec27085df2be4668f8f7170d2010fb20
2018-01-18 12:30:35 +00:00
micky387
4eacd85752 AdvancedDisplay: cyanogenmod -> lineageos
Change-Id: Ie6d64f0995f266d2dbe3e16c8032820cc5164c1f
2018-01-18 12:30:20 +00:00
Kevin F. Haggerty
c94f6eed4a dtbhtool: Use right local module class to avoid relocation packaging
* UTILITY_EXECUTABLES is not a thing anymore, but EXECUTABLES are
  not packed

Change-Id: I1b27c4e23c08579f478af0756e86263e9ab4d740
2018-01-05 17:57:29 +00:00
Kevin F. Haggerty
5f70b61eec dtbhtool: Define both host and target libdtbimg
* The utilities need it and not defining the target library results
  in a missing dependency

Change-Id: I745d8586a4a2cc5e3b8bdbe4a7e9dc19e1161db6
2018-01-05 09:59:33 -07:00
Kevin F. Haggerty
a04741b693 dtbhtool: Use BoringSSL instead of mincrypt
* mincrypt is gone as of LineageOS/android_system_core@6b11c13ae

Change-Id: Ia3b1dee747510daff45a345ae603181be5ab6023
2018-01-05 09:58:48 -07:00
Kevin F. Haggerty
523971c63b macloader: Stop allowing G and O write perms to the cidfile
* Only macloader should ever write to this, but others (e.g,
  libbt-vendor.so) read from it. 0644 is more than enough.

Change-Id: I3d2fb3dfec1ba81c9c382ed18c93114e641df4a0
2017-12-28 09:09:41 -07:00
Diego Wilson
ea125c30ea macloader: Move device dependent modules to /vendor
Change-Id: I184ec79c8fc4d6047146b84bcc935aef129fc7f4
2017-12-25 23:51:32 -07:00
LuK1337
bdb254d989 fingerprint: bauth: Bump version to 2.1
* Required for fingerprint HIDL HAL in O.

Change-Id: Iec8450521a51bbfddf2225274a7a6982baa42561
2017-11-26 19:22:54 +00:00
Diego Wilson
eb0e9d2340 consumerir: Move device dependent modules to /vendor
Change-Id: Ia05938d479babea4e0d7d25d52c818a43cedf362
2017-11-26 19:22:01 +00:00