GitHub/LineageOS/android_hardware_samsung.git
4 years agosamsung: move livedisplay and touch from lineagehw to hidl folder
Jan Altensen [Mon, 27 Jan 2020 23:06:47 +0000 (00:06 +0100)]
samsung: move livedisplay and touch from lineagehw to hidl folder

 * to keep all hidl things in one place

Change-Id: I91e4918191781e697b0c6c6e5cfe5dbe72ea5e59

4 years agosamsung: Remove devicesettings resources from lineage.dependencies
LuK1337 [Wed, 22 Jan 2020 23:40:21 +0000 (00:40 +0100)]
samsung: Remove devicesettings resources from lineage.dependencies

* Synced by default since LineageOS/android@9bd031c

Change-Id: I822298f856f4d1012f847a8be311310f5e51f2bb

4 years agosamsung: add radio 1.3 service lineage-17.0
Willi Ye [Tue, 22 Oct 2019 20:48:05 +0000 (22:48 +0200)]
samsung: add radio 1.3 service

Change-Id: I9b8710c5f322ec928a2106072f002eaf0ecd7e82

4 years agosamsung: power: dont depend on liblights_helper
Jan Altensen [Tue, 26 Nov 2019 19:34:28 +0000 (20:34 +0100)]
samsung: power: dont depend on liblights_helper

 * this is partially a revert of 1226350ee7101a4dc42a4903e148f17c4bd54e4b

Change-Id: I0ab7f6dc7642f7778f802e18b2f2dda7c11d9b3b

4 years agosamsung: remove old fingerprint and lights hal
Jan Altensen [Tue, 26 Nov 2019 18:47:02 +0000 (19:47 +0100)]
samsung: remove old fingerprint and lights hal

 * there are hidl replacements available, use them

Change-Id: I36243259627aeb76c2dfbfc2b6b4e219c509cfb5

5 years agosamsung: remove old lineagehw java classes
Jan Altensen [Sat, 7 Sep 2019 19:15:44 +0000 (21:15 +0200)]
samsung: remove old lineagehw java classes

Change-Id: I69f3aeb20382c49c7e928d6d6f41f016adfbc9b1

5 years agosamsung: audio: Add libprocessgroup dependency to set_sched_policy users
Suren Baghdasaryan [Fri, 21 Dec 2018 23:07:18 +0000 (15:07 -0800)]
samsung: audio: Add libprocessgroup dependency to set_sched_policy users

Add libprocessgroup dependency to audio hal that uses set_sched_policy.
Include sched_policy_ctrl.h header which now contains set_sched_policy
definition.

Exempt-From-Owner-Approval: janitorial

Bug: 111307099
Test: builds, boots

Change-Id: I8286daed7065c405ca06e87c1b8f6f6c301dc388
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
5 years agosamsung: libril: Tuning of Binder buffer for rild.
Ruthwar Ambeer [Thu, 19 Jul 2018 10:23:23 +0000 (15:53 +0530)]
samsung: libril: Tuning of Binder buffer for rild.

Tuned the Binder buffer to 500KB as it is not
going to use the default allocated 1MB which
saves RAM for 32 bit processors.

Change-Id: Ifea2720f8e853643a37912c3459e923168677b1e
CRs-Fixed: 2283052

5 years agosamsung: Drop module eng tags
Erfan Abdi [Wed, 4 Sep 2019 12:50:32 +0000 (17:20 +0430)]
samsung: Drop module eng tags

Change-Id: I2e84d598b2412e617e5575bfdefd804612f76889

5 years agosamsung: hidl: Add fingerprint 2.1 HAL
Jan Altensen [Tue, 20 Aug 2019 21:20:25 +0000 (23:20 +0200)]
samsung: hidl: Add fingerprint 2.1 HAL

Change-Id: Ibd1b7fe7e1847ec28b2450fbf44cc740e5f364ef

5 years agosamsung: hidl: Add keymaster 4.0 HAL
LuK1337 [Sun, 18 Aug 2019 22:08:08 +0000 (00:08 +0200)]
samsung: hidl: Add keymaster 4.0 HAL

Change-Id: Ib754acda4b6f3e8d1911432523a9b06ba1509aa6

5 years agoloki: Standardize ifeq logic among makefiles
Nolen Johnson [Sun, 11 Aug 2019 20:46:48 +0000 (20:46 +0000)]
loki: Standardize ifeq logic among makefiles

* Also resolve a typo.

Change-Id: Ic32740db8a9216751b5735ad472a7fcc48e6a738

5 years agomkbootimg: Add Loki support
Nolen Johnson [Thu, 8 Aug 2019 03:56:48 +0000 (23:56 -0400)]
mkbootimg: Add Loki support

* I want my target-files built images to be Loki'd if the device
  needs Loki.
* With this, devices that rely on Loki can ship Lineage Recovery
  officially.
* Import loki_tool from: https://github.com/Stricted/android_external_loki.

Change-Id: I45ef363e05566268c8f24f7e8939a2d785478fbe

5 years agosamsung: hidl: light: battery has lowest priority
Jan Altensen [Wed, 7 Aug 2019 09:33:32 +0000 (11:33 +0200)]
samsung: hidl: light: battery has lowest priority

Change-Id: I90d61439f8a431f1836e439d34764b7eb7983db9

5 years agoAutomatic translation import
Michael Bestas [Sun, 4 Aug 2019 13:22:21 +0000 (16:22 +0300)]
Automatic translation import

Change-Id: Ieb32cc183acaf620e49ec4e2951e80df2ff6b694

5 years agosamsung: hidl: light service: Mark as shutdown critical
Steven Moreland [Fri, 16 Mar 2018 17:23:14 +0000 (18:23 +0100)]
samsung: hidl: light service: Mark as shutdown critical

Required because the lights need to be turned off late in boot
(e.x. during fsck for disk health), and before, blank_screen
accessing light encountered a race condition where if it didn't
get scheduled before all of the processes which were getting
shutdown were getting killed, the screen wouldn't blank.

Bug: 74976325
Test: adjusting brightness continues to work
Test: screen blanks during shutdown at the correct time
      including when an artificial 5s delay is inserted when
      the phone normally fscks (which can also be quick)

Change-Id: I57ebc11d7ecf57ee327c681455712f4b53de6fd3

5 years agosamsung: hidl: light_service: Add interface specification for lights hal
Steven Moreland [Fri, 5 Jan 2018 01:31:57 +0000 (02:31 +0100)]
samsung: hidl: light_service: Add interface specification for lights hal

So that init knows how to start it and to provide
an example of how to specify interfaces since there
are no lazy starting services on Pixel yet.

In order to make lights a lazy service, it would also
have to be marked as 'oneshot'.

Test: manually using Light as a lazy service
Bug: 64678982
Change-Id: I846a7e2d9545b42af9b985adb74883bda1b8c355

5 years agolineagehw: hidl: livedisplay: run clang-format
Jan Altensen [Fri, 19 Jul 2019 23:01:03 +0000 (01:01 +0200)]
lineagehw: hidl: livedisplay: run clang-format

Change-Id: I2abd96bb87321c8cfb86aa155b5423665dfb5c2e

5 years agolineagehw: hidl: touch: run clang-format
Jan Altensen [Fri, 19 Jul 2019 23:00:46 +0000 (01:00 +0200)]
lineagehw: hidl: touch: run clang-format

Change-Id: If7126936fc4e0804c29061c7ecc706228654af15

5 years agohidl: add hidl lights hal
Jan Altensen [Tue, 9 Jul 2019 20:43:47 +0000 (22:43 +0200)]
hidl: add hidl lights hal

Change-Id: I333c8d3e20bb451d208f15661afc06ac47e1a377

5 years agohidl: livedisplay: Fix reading mode string comparison
LuK1337 [Wed, 10 Jul 2019 08:36:49 +0000 (10:36 +0200)]
hidl: livedisplay: Fix reading mode string comparison

* Since we are trimming the string it will
  never match one with trailing space at the end.

Change-Id: Iea76092112555ed8b858560f07ef8e88f0ff593b

5 years agoAutomatic translation import
Michael Bestas [Sat, 6 Jul 2019 08:57:26 +0000 (11:57 +0300)]
Automatic translation import

Change-Id: I7b217eb210fe710ba73511bcf96d9c4e4abe17bc

5 years agoAutomatic translation import
Michael Bestas [Sat, 8 Jun 2019 15:56:55 +0000 (18:56 +0300)]
Automatic translation import

Change-Id: I3c6060e02b5a290f9485994035750c96d9a5a118

5 years agohidl: livedisplay: Restore default display mode in DisplayModes constructor
LuK1337 [Fri, 24 May 2019 21:51:02 +0000 (23:51 +0200)]
hidl: livedisplay: Restore default display mode in DisplayModes constructor

Change-Id: I5a6303f7f67a8b6d35663d2d86346d585f367cd3

5 years agohidl: livedisplay: Move .displaymodedefault to /data/vendor/display
LuK1337 [Fri, 24 May 2019 21:30:00 +0000 (23:30 +0200)]
hidl: livedisplay: Move .displaymodedefault to /data/vendor/display

* By default hal_lineage_livedisplay_default does not
  have permissions to write to /data/misc.

Change-Id: I5599a5e6602ea326322328aeda1c6eb0411a5568

5 years agohidl: livedisplay: Add binderized service implementation
Jan Altensen [Sun, 20 Jan 2019 01:40:07 +0000 (02:40 +0100)]
hidl: livedisplay: Add binderized service implementation

* Change default ::implementation namespace to ::samsung
* Fill in required methods for used impls
* Cleanup passthrough code for used impls
* Remove unused impls
* Add and setup binderized service

Change-Id: I545a7c0ac8bf4fce04da73a0d39d4ac1938496f2

5 years agosamsung: Add dummy lineagehw HIDL interfaces for vendor.lineage.livedisplay
Jan Altensen [Sun, 20 Jan 2019 00:40:51 +0000 (01:40 +0100)]
samsung: Add dummy lineagehw HIDL interfaces for vendor.lineage.livedisplay

* Generated from hidl-gen with added LineageOS copyrights

Change-Id: I150c3a65b92586fa2715c0f8ef27d2bcc6ba5d70

5 years agohidl: touch: Add binderized service implementation
Paul Keith [Tue, 8 Jan 2019 23:11:40 +0000 (00:11 +0100)]
hidl: touch: Add binderized service implementation

* Change default ::implementation namespace to ::samsung
* Fill in required methods for used impls
* Cleanup passthrough code for used impls
* Add and setup binderized service

Change-Id: Iadc3b6e385233d103c3349ce31a08d6d040886c7

5 years agosamsung: Add dummy lineagehw HIDL interfaces for vendor.lineage.touch
Paul Keith [Tue, 8 Jan 2019 22:45:03 +0000 (23:45 +0100)]
samsung: Add dummy lineagehw HIDL interfaces for vendor.lineage.touch

* Generated from hidl-gen with added LineageOS copyrights

Change-Id: Ia1073b57ecbafee0e599788b1ead5cc4b2dbda57

5 years agoAutomatic translation import
Michael Bestas [Sun, 7 Apr 2019 18:57:34 +0000 (21:57 +0300)]
Automatic translation import

Change-Id: I9a691863f0f09b859ec07c1f421f5c41dc3fdbdd

5 years agoAutomatic translation import
Michael W [Sun, 10 Mar 2019 23:20:08 +0000 (00:20 +0100)]
Automatic translation import

Change-Id: Ic3b685df13f3fd3564b1301bfb1276f7c369196b

5 years agoAutomatic translation import
Michael Bestas [Tue, 26 Feb 2019 17:00:24 +0000 (19:00 +0200)]
Automatic translation import

Change-Id: I95f8b2c7aa1c76cef2d14b6b9c2e971cc5f66d46

5 years agoAdd anpother semco oui mapping
ivanmeler [Wed, 13 Feb 2019 15:30:38 +0000 (16:30 +0100)]
Add anpother semco oui mapping

Change-Id: Ie6d58fe13af35716a406feb262e6e18954c26c36

5 years agoaudio_hw: Prevent referencing input devices from empty list
Vasyl Gello [Sun, 1 Jul 2018 07:57:35 +0000 (10:57 +0300)]
audio_hw: Prevent referencing input devices from empty list

Fixes audioserver crash in in_get_capture_position() if PCM input
device was not properly opened.

Signed-off-by: Vasyl Gello <vasek.gello@gmail.com>
Change-Id: I2f2d9bc8151cf61af112a9544268513effacacb5

5 years agoAudio: fix voip calls over bluetooth for Wolfson Microelectronics codecs.
stenkinevgeniy [Mon, 9 Jul 2018 14:48:19 +0000 (14:48 +0000)]
Audio: fix voip calls over bluetooth for Wolfson Microelectronics codecs.

Some devices, that using wm* codecs like i9500, t805, p601 and others
need open CP pcm's when using BT SCO in IN_COMMUNICATION mode.

Change-Id: I64935aabf1c52e66409e727f02752cd325f8ef58
Signed-off-by: stenkinevgeniy <stenkinevgeniy@gmail.com>
5 years agoAudio: fix voip calls over bluetooth headset.
stenkinevgeniy [Mon, 9 Jul 2018 11:20:36 +0000 (11:20 +0000)]
Audio: fix voip calls over bluetooth headset.

Current HAL start/stop bt_sco session only for incall mode -
rewrite logic to start/stop bt session when system switch to
one of the bluetooth devices.
Move bt_sco_active and pcm_sco_rx/tx to main audio_device structure.
Remove bt_sco_capture profile.

Change-Id: I7bbe4273f759e255bb857f8292f2921df31d4b0b
Signed-off-by: stenkinevgeniy <stenkinevgeniy@gmail.com>
5 years agoAudio: fix call recording.
stenkinevgeniy [Thu, 12 Jul 2018 05:55:33 +0000 (05:55 +0000)]
Audio: fix call recording.

Change-Id: I312d2a36009ec1415dd5ccba4fbb68ae4a10e2ab

5 years agoaudio: Re-worked sound pre- and post-processing
Basil Gello [Mon, 21 May 2018 15:29:12 +0000 (18:29 +0300)]
audio: Re-worked sound pre- and post-processing

In order to activate proprietary sound pre- and post-processing,
the following parts of audio HAL were revised:

* Activated ENABLE_PREPROCESSING directive in Android.mk
* Removed unused variables and functions
* Re-written set_preprocessor_echo_delay() function

Change-Id: I868087f422764895df7d2bc6bbf4bbd76672b8e7

5 years agoRevert "audio: Fix incall device switch handling"
stenkinevgeniy [Wed, 30 May 2018 15:43:14 +0000 (15:43 +0000)]
Revert "audio: Fix incall device switch handling"

This commit cause bug - no sound after end voice call when
using speaker. Sound come back after audioflinger send
standby and hal reenable speaker for new stream (usecase).

Reason - hal need reenable speaker (or other devices) for
other streams (usecases).

This reverts commit f33a728b205f7656ca6211a07e3dd69c623b75ca.

Change-Id: Icde4e83ab824008e931b681cdbb6e11d6a2a7aa5

5 years agoAudio: get_input_snd_device - use all bt sco devices for voice calls.
stenkinevgeniy [Tue, 22 May 2018 18:06:48 +0000 (18:06 +0000)]
Audio: get_input_snd_device - use all bt sco devices for voice calls.

Use  AUDIO_DEVICE_OUT_BLUETOOTH_SCO
     AUDIO_DEVICE_OUT_BLUETOOTH_SCO_HEADSET and
     AUDIO_DEVICE_OUT_BLUETOOTH_SCO_CARKIT
and not only AUDIO_DEVICE_OUT_BLUETOOTH_SCO_HEADSET for voice calls.

Remove default voice_mic for sco devices - why we need default mic
for sco output devices if now we handle all sco output devices.

Change-Id: Ibf4eb42eebcf7dc229649d8afe6e8b3ea9354165

5 years agoAudio: remove separated bt_sco playback profile
stenkinevgeniy [Sun, 20 May 2018 14:18:53 +0000 (14:18 +0000)]
Audio: remove separated bt_sco playback profile

Myabe this related to htc flounder hw but this
not needed for samsung and this cause bug when
hal trying open bt pcm device for system sounds
while voice call active on sco and bt pcm device
opened with start_voice_session_bt_sco.

Change-Id: I75482dad42feccae5e8ca9df2623ef4693a7bdb0

5 years agoAudio: check and route usecases
stenkinevgeniy [Tue, 8 May 2018 12:02:35 +0000 (12:02 +0000)]
Audio: check and route usecases

Add check_and_route_usecases -

this function is to make sure that all the usecases that are active on
the hardware codec backend are always routed to any one device that is
handled by the hardware codec.

Example:
When voice call starting - we need earpice -
hal enable earpice, but befor - we put call button -
and hal enable speaker and play sound - "click"
And now we have speaker and earpice enabled.
Later when audioflinger send standby (default after 3 sec) to stream
which use speaker - hal disable speaker while voice call active - and
we have no sound in earpice.
check_and_route_usecases will not allow such situations.

Change-Id: Ibc534bb14c25e4a4ffb4f3487d1424e9e1ed6a67

5 years agoAudio: HAL should handle other streams (when call active)
stenkinevgeniy [Tue, 8 May 2018 11:51:29 +0000 (11:51 +0000)]
Audio: HAL should handle other streams (when call active)

Change-Id: I70fbd41ac386d7ea9a7fa0abb540151727461ac1

5 years agoAudio: remove out stream resampler.
stenkinevgeniy [Tue, 8 May 2018 07:17:53 +0000 (07:17 +0000)]
Audio: remove out stream resampler.

This never use - because -
out->sample_rate and out->config configured in adev_open_output_stream
out->config = can have deep or no pcm config with only 48000 sample rate.

Change-Id: Ie1c4025585ab6e1b7a900486181c1bceeff88139

5 years agoaudio: Directly link voice data <-> session
Christopher N. Hesse [Mon, 29 Jan 2018 02:28:10 +0000 (03:28 +0100)]
audio: Directly link voice data <-> session

This is part of a cleanup series.
In the future, we should reconsider the struct usage and (maybe?) move
the members into one common place.

Change-Id: I3218d75acb0c4965332ba0de30b40ca7821596a7

5 years agoaudio: run ril_set_call_clock_sync() in stop_voice_session()
Usaamah Patel [Tue, 19 Dec 2017 15:42:38 +0000 (15:42 +0000)]
audio: run ril_set_call_clock_sync() in stop_voice_session()

Some devices like the Samsung Galaxy S6, require this
to be run at the end of the voice session. However some
devices also need this to be run at the start of the
voice session whereas the S6 does not (see previous commit).

Change-Id: I833b57e262795fcbd8be6f44afb17b0f1ca6fee3
Signed-off-by: Usaamah Patel <ussyp2015@gmail.com>
5 years agoaudio: Fix WBS sample rate usage
Martin Hoffmann [Wed, 26 Jul 2017 10:10:37 +0000 (12:10 +0200)]
audio: Fix WBS sample rate usage

Fixes: BUGBASH-302

Correctly use 16khz for the WBS-SCO pcm_config.
No more garbled or mute in-call sound on bt.

Apply together with a device specific port of:
https://review.lineageos.org/#/c/177996/
and REMOVE any definitions of
SCO_WBS_SAMPLE_RATE
https://review.lineageos.org/#/c/178371/

This requires testing for all devices using:
android_hardware_samsung
(universal audio HAL part)

Change-Id: I84fb1b234bf2880bf98bf99f1e4ff6c05500b0e3

5 years agomacloader: Add 3 more semco mac ranges
ivanmeler [Sun, 3 Feb 2019 10:22:51 +0000 (11:22 +0100)]
macloader: Add 3 more semco mac ranges

Confirmed with https://www.wireshark.org/tools/oui-lookup.html
 48:13:7E SamsungE Samsung Electronics Co.,Ltd
 E8:3A:12 SamsungE Samsung Electronics Co.,Ltd
 F8:E6:1A SamsungE Samsung Electronics Co.,Ltd

Change-Id: Ic7225951cee415d68a917031d5f969f45a9cc7ec

5 years agoAdd unlisted SEMCO3RD mac address
ivanmeler [Thu, 31 Jan 2019 11:58:17 +0000 (12:58 +0100)]
Add unlisted SEMCO3RD mac address

Confirmed with https://www.wireshark.org/tools/oui-lookup.html

 08:C5:E1 SamsungE Samsung Electro-Mechanics(Thailand)

Change-Id: Ief2ec0a19c554aeb4266a64cd58aec56baf9cfe5

5 years agomacloader: Add mac addresses observed on new revisions of Galaxy S7
ivanmeler [Mon, 28 Jan 2019 12:11:54 +0000 (13:11 +0100)]
macloader: Add mac addresses observed on new revisions of Galaxy S7

verified on https://www.wireshark.org/tools/oui-lookup.html

10: 98:C3 MurataMa Murata Manufacturing Co., Ltd.
24: 18:1D SamsungE Samsung Electro-Mechanics(Thailand)
30: 07:4D SamsungE Samsung Electro-Mechanics(Thailand)
94: 76:B7 SamsungE Samsung Electronics Co.,Ltd
Change-Id: I3e3aebfca89b68fcb188ff955efdb1b8d32d16af

5 years agobauth: Add enumerate function
Lukas0610 [Thu, 18 Oct 2018 18:20:59 +0000 (11:20 -0700)]
bauth: Add enumerate function

Change-Id: I452a651b2a1b11d3619ecde50f448812bf032b66

5 years agoAutomatic translation import
Michael Bestas [Sat, 12 Jan 2019 18:02:17 +0000 (20:02 +0200)]
Automatic translation import

Change-Id: I12060711239cbd686b461a6e99369a2fb4cbf0f4

5 years agomacloader: Add new mac addresses for semcosh and and murata
ivanmeler [Tue, 27 Nov 2018 10:55:20 +0000 (11:55 +0100)]
macloader: Add new mac addresses for semcosh and and murata
Observed on new s7 models

Change-Id: Ic2d2068d6e7ba4f1dedb1e3fd83c9a5797523d86

6 years agopower: Add Lineage power hints
Stricted [Thu, 6 Sep 2018 23:16:30 +0000 (01:16 +0200)]
power: Add Lineage power hints

Change-Id: I3365592d4c54444dcff3b6daa1c383273f2aa3c9

6 years agopower: remove getFeature functionality
Stricted [Thu, 6 Sep 2018 23:14:27 +0000 (01:14 +0200)]
power: remove getFeature functionality

Change-Id: I5b98e89e48f942ae0dc96b4b2945284a366023c4

6 years agolibril: Replace strncpy with strlcpy.
Gohulan Balachandran [Thu, 15 Feb 2018 21:12:26 +0000 (13:12 -0800)]
libril: Replace strncpy with strlcpy.

Use strlcpy instead of strncpy when copying strings to make sure
the copy is always null-terminated.

Change-Id: I12d4883c22a180e2136dc8c85bc0394ddcdcb706

6 years agolibril: Change rild initial sequence to
terrycrhuang [Fri, 4 May 2018 05:47:06 +0000 (13:47 +0800)]
libril:  Change rild initial sequence to
 guarantee non-null function pointer before rild register its hidl service

Test: Build and local test
Bug: 78886552
Change-Id: I1137cc0f4f09f0304662a2227b84c2b5b228d45d

6 years agolibril: Add DISABLE_RILD_OEM_HOOK.
Steven Moreland [Tue, 20 Mar 2018 18:20:05 +0000 (11:20 -0700)]
libril: Add DISABLE_RILD_OEM_HOOK.

OEM hook is deprecated, so adding a way to disable it to
this radio implementation.

Bug: 75322118
Test: boot device w/ DISABLE_RILD_OEM_HOOK works, lshal
Change-Id: Ie7ade48476d2c330df608e9cc8dab805f84dd81d

6 years agolibril: Store the system time when NITZ is
Amit Mahajan [Sat, 24 Feb 2018 01:12:15 +0000 (17:12 -0800)]
libril: Store the system time when NITZ is
 received.

If cached value for NITZ is used, the time at which it was
received needs to be cached too.

Test: Basic telephony sanity
Bug: 72283604
Change-Id: I8f443171c4583e3eab9be7973d7714ae6c7ab6af

6 years agolibril: Fix double freeing of memory in SAP
Gohulan Balachandran [Fri, 20 Oct 2017 16:37:52 +0000 (09:37 -0700)]
libril: Fix double freeing of memory in SAP
 service and add null-checks.

The payload of a SAP request could be freed twice in certain scenarios.
Also, add null-checks to prevent dereferencing of null pointers.

Bug: 64729356
Test: Manually run the fuzz tests and ensure that there is no crash in
      rild

Change-Id: Ib7ae269fa5297d6acea267337b220b8858c82bae

6 years agolibril: Remove unused code
Pengquan Meng [Wed, 6 Sep 2017 23:46:30 +0000 (16:46 -0700)]
libril: Remove unused code

Bug: 62249769
Test: manually

Change-Id: Ibeae8537ee87dc9c3481538df0fcdb4f3d50f50c

6 years agolibril: Fix Const-Correctness for
Nathan Harold [Tue, 1 Aug 2017 02:44:46 +0000 (19:44 -0700)]
libril: Fix Const-Correctness for
 RIL_RadioFunctions

Re-add constant for function pointer table to
RIL_RadioFunctions. Const was accidentally removed
during a warnings cleanup.

Bug: 64231560
Test: compilation
Change-Id: I93675980c51d9162f624495d12fe3c97f1da8031

6 years agolibril: Remove LOCAL_CLANG
Lennart Wieboldt [Tue, 25 Jul 2017 19:12:10 +0000 (21:12 +0200)]
libril: Remove LOCAL_CLANG

clang is the default compiler since Android nougat

Change-Id: I0555fa8067352fd43b47aabe80be1224597da17e
Signed-off-by: Lennart Wieboldt <lennart.1997@gmx.de>
6 years agoSending empty strings instead of NULL for some RIL requests
Ruthwar Kumar Ambeer [Thu, 23 Mar 2017 12:08:56 +0000 (17:38 +0530)]
Sending empty strings instead of NULL for some RIL requests

Some vendor RILs expect empty string instead of NULL pointer
for certain RIL requets. For RIL_REQUEST_ENTER_SIM_PIN,
RIL_REQUEST_ENTER_SIM_PUK, RIL_REQUEST_ENTER_SIM_PIN2,
RIL_REQUEST_ENTER_SIM_PUK2, RIL_REQUEST_CHANGE_SIM_PIN,
RIL_REQUEST_CHANGE_SIM_PIN2,
RIL_REQUEST_ENTER_NETWORK_DEPERSONALIZATION
RIL_REQUEST_SETUP_DATA_CALL,
RIL_REQUEST_SET_INITIAL_ATTACH_APN, RIL_REQUEST_SET_DATA_PROFILE,
RIL_REQUEST_ENTER_NETWORK_DEPERSONALIZATION,
RIL_REQUEST_SET_FACILITY_LOCK,
RIL_REQUEST_CHANGE_BARRING_PASSWORD, sending empty string instead
of NULL.

Test: Manual
Bug: 3778268365653485
Change-Id: I6627c8a12e096b9ac8ebe08e734782cfa951c488

6 years agolibsecril-client: remove unused variables/functions
Stricted [Tue, 28 Aug 2018 05:37:46 +0000 (07:37 +0200)]
libsecril-client: remove unused variables/functions

Change-Id: Ie0d982b85bd114e3d70a45e10db9896cc9cce4d9

6 years agolibsecril-client-sap: remove unused variables
Stricted [Tue, 28 Aug 2018 05:36:40 +0000 (07:36 +0200)]
libsecril-client-sap: remove unused variables

Change-Id: I6670ccdf7386730cd672a9dede92417542754732

6 years agolibril: remove unused variables/functions
Stricted [Tue, 28 Aug 2018 05:35:42 +0000 (07:35 +0200)]
libril: remove unused variables/functions

Change-Id: I63230b917614bcfa2aa09f3d894804252d963caa

6 years agoAdding WiFi MAC address for new S7 devices
ivanmeler [Tue, 28 Aug 2018 18:27:39 +0000 (20:27 +0200)]
Adding WiFi MAC address for new S7 devices

Some new S7 devices are sold with cc:c0:79 MAC Address.
Adding this address in file macaddr_mappings.h is required in order to load proper drivers.
Without it, the WiFi does not work properly : signal is weak

Change-Id: I9845f8739cf3e5a4caea9eeb989576877d088731
(cherry picked from commit f66c95bcae5f4a0453b5c5f035f02e476145667b)

6 years agodtbhtool: fix unused variable 'model' warning
Stricted [Mon, 24 Sep 2018 18:50:26 +0000 (20:50 +0200)]
dtbhtool: fix unused variable 'model' warning

Change-Id: I0ac347428d01789622487d803ae13d433240063c

6 years agodtbhtool: Add new DTBH_MODEL entry
Christopher N. Hesse [Thu, 19 Jul 2018 21:08:14 +0000 (23:08 +0200)]
dtbhtool: Add new DTBH_MODEL entry

This allows us to distinguish not only by platform and subtype at build
time, but also by device-specific model.

It is required because two devices may share the same kernel sources and
thus build the same dtbs, but the resulting dt.img should be devie
specific and only contain the specific dtbs for that device.
Otherwise we are likely to violate dt.img size constraints by including
too many dtbs (which is the case for a5y17lte and a7y17lte right now).

For now, the feature will be optional (existing samsung_dtbh.h headers
don't have to be changed) but that might change in the future.

Change-Id: I2d804f9f1a14051e60f4de4f3d2d4f11c9b3c23f
(cherry picked from commit 2db58d0208abf3dc0f1a7c23ff34a60bcda91db1)

6 years agosamsung: hardware: Adapt for local LineageHW java overlays
Bruno Martins [Sun, 2 Sep 2018 22:40:59 +0000 (00:40 +0200)]
samsung: hardware: Adapt for local LineageHW java overlays

Change-Id: Icb2b9810217f4b4d442ab83a16f455bd2ed82071

6 years agowifiloader: remove unused variable
Stricted [Tue, 28 Aug 2018 05:31:29 +0000 (07:31 +0200)]
wifiloader: remove unused variable

Change-Id: I88926520b7eb47533478ac3ff68acac25c60f201

6 years agopower: remove unused variable/mark unused parameter
Stricted [Tue, 28 Aug 2018 05:30:40 +0000 (07:30 +0200)]
power: remove unused variable/mark unused parameter

Change-Id: I9fc0ab96a735b98c0868acb77cb74776c5e5464c

6 years agolibril: add missing return statement
Stricted [Sun, 26 Aug 2018 09:42:23 +0000 (11:42 +0200)]
libril: add missing return statement

Change-Id: Icfdc5fae064f66bfcaf061bff0d0d1e5554f126d

6 years agoliblights: remove unused variable
Stricted [Tue, 28 Aug 2018 05:29:24 +0000 (07:29 +0200)]
liblights: remove unused variable

Change-Id: I2ce04975d4ff0a796e9f7c531f37c32ff88eaf10

6 years agoAdvancedDisplay: Set LOCAL_PRIVATE_PLATFORM_APIS
Anton Hansson [Wed, 21 Feb 2018 14:11:44 +0000 (14:11 +0000)]
AdvancedDisplay: Set LOCAL_PRIVATE_PLATFORM_APIS

This change sets LOCAL_SDK_VERSION for all packages where
this is possible without breaking the build, and
LOCAL_PRIVATE_PLATFORM_APIS := true otherwise.

Setting one of these two will be made required soon, and this
is a change in preparation for that. Not setting LOCAL_SDK_VERSION
makes the app implicitly depend on the bootclasspath, which is
often not required. This change effectively makes depending on
private apis opt-in rather than opt-out.

Test: make relevant packages
Bug: 73535841
Change-Id: Id4757bcca09eda716e0a1098d9290928fa87f22d

6 years agoAdvancedDisplay: Migrate to AAPT2
LuK1337 [Sat, 25 Aug 2018 10:31:48 +0000 (12:31 +0200)]
AdvancedDisplay: Migrate to AAPT2

Change-Id: I59dabea4484dd1f1e5c57ae2ac37b9939d2c875d

6 years agoAutomatic translation import
Michael Bestas [Sun, 5 Aug 2018 14:34:02 +0000 (17:34 +0300)]
Automatic translation import

Change-Id: Idc62dba34bdbe82a70e3b0e53755348a48659334

6 years agomacloader: Correct classification of f0:25:b7
Paul Keith [Wed, 1 Aug 2018 19:41:08 +0000 (21:41 +0200)]
macloader: Correct classification of f0:25:b7

* CIS table says 33 33, which is semco not semco3rd

Change-Id: I944df6b13a8c1294ef47016d15f13f79c5ed5f7d

6 years agoaudio: improve log message to support for devices that dont have an amp
Christopher N. Hesse [Thu, 12 Jul 2018 11:51:43 +0000 (13:51 +0200)]
audio: improve log message to support for devices that dont have an amp

Change-Id: I3fe824c4dbdb57bb0d63b395cfcef2f9dbbe556b
Signed-off-by: Abhay Ruparel <abhayruparel2000@gmail.com>
6 years agoAudio: remove unsupported aec loopback stuff.
stenkinevgeniy [Tue, 3 Jul 2018 07:38:08 +0000 (07:38 +0000)]
Audio: remove unsupported aec loopback stuff.

Change-Id: Ibabe4c5fc3b23cd5a0e33fc90b76db93a72099a6

6 years agolibril: Fix freeing of strings for roaming protocol flag
Paul Keith [Thu, 28 Jun 2018 16:45:29 +0000 (18:45 +0200)]
libril: Fix freeing of strings for roaming protocol flag

Change-Id: Id6150885203a64733bffeb7ce6dc4e91fab305df

6 years agoMAC: add new Murata range
Vahempio [Fri, 29 Jun 2018 17:17:40 +0000 (19:17 +0200)]
MAC: add new Murata range

New herolte OUI observed: 1c:70:22
Checked on hwaddress.com

Change-Id: I4a2c15e315b46af81f815114cf85f0d1cced87f3
(cherry picked from commit ba6c738c2f39fc1011ae5f61067f84b1bf430111)

6 years agomacloader: load nvram_net.txt from /vendor
micky387 [Wed, 7 Feb 2018 13:18:24 +0000 (14:18 +0100)]
macloader: load nvram_net.txt from /vendor

Change-Id: I688f42059459c400834cac0b4c8933ef216827a5

6 years agoAdd missing murata and semco3rd mac addresses
ivanmeler [Thu, 28 Jun 2018 09:22:17 +0000 (02:22 -0700)]
Add missing murata and semco3rd mac addresses

Users found this on few herolte/hero2lte revisions

Change-Id: I2cda3a3b39c951c1215622ae1b55483fbbfc94a8

6 years agoril: service: Fix RIL_UNSOL_NITZ_TIME_RECEIVED Parcel
Paul Keith [Sun, 22 Oct 2017 03:25:25 +0000 (05:25 +0200)]
ril: service: Fix RIL_UNSOL_NITZ_TIME_RECEIVED Parcel

* Sometimes, the modem is sending 1-2 extra fields with
  the country mcc, which confuses ServiceStateTracker
* Drop the extra data here, instead of in our RIL class

[haggertk]: Forward port to ril-caf on lineage-15.

Change-Id: Ifbec67bb0dac271226bd8b5471deaf6a2ef33f2b

6 years agoril: service: Add workaround for "ring of death" bug
Paul Keith [Tue, 24 Oct 2017 00:27:29 +0000 (02:27 +0200)]
ril: service: Add workaround for "ring of death" bug

[javelinanddart]: Forward port to ril-caf on lineage-15.1

Change-Id: Ifeeee11ee83deddb8eff565847641c45a105378f

6 years agoAudio: out_open_pcm_devices - use out->config instead of pcm_device->pcm_profile...
stenkinevgeniy [Tue, 8 May 2018 06:52:05 +0000 (06:52 +0000)]
Audio: out_open_pcm_devices - use out->config instead of pcm_device->pcm_profile->config.

Current get_pcm_device return always first finded pcm_profile.
And out->pcm_dev_list always have only pcm_device_playback pcm_profiles.

But if we need use deep_buffer pcm device
we need use deep_bufer pcm_config - current hal
don't did this...

And we configure out->config in adev_open_output_stream
function with proper pcm_config (deep or no).

Change-Id: I86fdb18202afb0e83393f32830d57c929f174ae6
(cherry picked from commit 39d1d019965d04ddfad2c643de53cd5501803aa4)

6 years agoAudio: remove unsupported hotword/soundtrigger stuff.
stenkinevgeniy [Mon, 7 May 2018 18:00:13 +0000 (18:00 +0000)]
Audio: remove unsupported hotword/soundtrigger stuff.

Change-Id: Ie21f94e80a18f5a5805a3ee00e12e83fa2fc3f1a
(cherry picked from commit 35dbc1e39fa7d355edbebe0071145aac45cc1075)

6 years agofingerprint: send cancel-message to system
Lukas0610 [Wed, 7 Mar 2018 12:04:55 +0000 (13:04 +0100)]
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

6 years agoaudio: return EINVAL to avoid get_presentation_position spamming logs
Victor Lourme [Mon, 26 Mar 2018 17:36:07 +0000 (19:36 +0200)]
audio: return EINVAL to avoid get_presentation_position spamming logs

Change-Id: I32ec0c5651395c7af3dc4b80d25204bf0fcc1977

6 years agomkbootimg: Include system/tools/dtbtool
Michael Bestas [Sun, 25 Mar 2018 17:33:08 +0000 (20:33 +0300)]
mkbootimg: Include system/tools/dtbtool

* Moved from device/qcom/common

Change-Id: I9b301923aaebdbfbc8599e0f8524b2a38fe6cefa

6 years agoaudio: Use audio_route_{apply/reset}_and_update_path
Christopher N. Hesse [Fri, 9 Mar 2018 22:20:55 +0000 (23:20 +0100)]
audio: Use audio_route_{apply/reset}_and_update_path

We don't need to handle the mixer updates here anymore.

Change-Id: Id60759e31a6501e4772bbd7377505197c932545a

6 years agoaudio: Update mixer knobs after re-applying output route
Christopher N. Hesse [Tue, 6 Mar 2018 19:16:00 +0000 (20:16 +0100)]
audio: Update mixer knobs after re-applying output route

Change-Id: I35fbcc03e9666e579134512b443610e546c31441

6 years agoril: service: Get off my back
Paul Keith [Tue, 6 Mar 2018 19:19:57 +0000 (20:19 +0100)]
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

6 years agoril: service: Fix breakage introduced by f7c75aa4e0
Christopher N. Hesse [Fri, 23 Feb 2018 18:07:27 +0000 (19:07 +0100)]
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

6 years agoaudio: Guard mixer path dependency fix
Christopher N. Hesse [Mon, 12 Feb 2018 00:47:48 +0000 (01:47 +0100)]
audio: Guard mixer path dependency fix

Change-Id: Id93d7941ae322a83488da3cea62c6eb36a6e9160

6 years agopower: Allow POWER_HINT_DISABLE_TOUCH in low power mode
Christopher N. Hesse [Mon, 19 Feb 2018 22:20:14 +0000 (23:20 +0100)]
power: Allow POWER_HINT_DISABLE_TOUCH in low power mode

Remove the unused len var while we're at it.

Change-Id: Iabaf3b8704072a8758b213a54530eaffbf0c7ae5

6 years agoril: Add support for imsType parcel member
Christopher N. Hesse [Fri, 16 Feb 2018 11:40:06 +0000 (12:40 +0100)]
ril: Add support for imsType parcel member

This is needed for Samsung devices like the Galaxy A5 2017.

Change-Id: I3b89cf8ac232fef5629b439dbf5d2f21bdb264a2

6 years agoril: Add support for roamingProtocol parcel member
Christopher N. Hesse [Tue, 13 Feb 2018 22:51:12 +0000 (23:51 +0100)]
ril: Add support for roamingProtocol parcel member

This is needed for Samsung devices like the Galaxy A5 2017.

Change-Id: I549130b838377d8a8668ac59b51c314fe9e7f5ab