Commit Graph

442 Commits

Author SHA1 Message Date
Srinivas Girigowda d262e94dcc msm8976-common: Modify DTIM config ini values
Modify gMaxLIModulatedDTIM and gEnableModulatedDTIM.

Bug: 28106261
Change-Id: Id3ae5d57a52cfc72e19f16cdca044131ffd57ef8
Signed-off-by: Srinivas Girigowda <sgirigow@codeaurora.org>
2019-07-27 22:38:08 +02:00
Alex Naidis 30b15467b2 msm8976-common: wifi: smarter decisions on whether to use a 2- or 5Ghz AP
Implement a smarter system on whether to connect
to the provided 2Ghz or 5Ghz network.

Change-Id: Idd41e3d9a5e2bde3ea9b4873dffc4274d1530324
Signed-off-by: Alex Naidis <alex.naidis@linux.com>
2019-07-27 22:38:01 +02:00
Alex Naidis 205aa5b1aa msm8976-common: wifi: set beacon missed count threshold
Setting the beacon missed count threshold
with a difference of 10 to improve stability
of the WIFI connection.

Change-Id: Iea459ead3505bcea1a41f9b0e713957092bf4745
Signed-off-by: Alex Naidis <alex.naidis@linux.com>
2019-07-27 22:37:54 +02:00
syphyr db8e9918ab msm8976-common: Adjust link activity timeouts
Change-Id: I6a49222c996f14d6de95db70e83d08b8786360e3
2019-07-27 22:37:08 +02:00
syphyr cb065c796b msm8976-common: Fix max dwell time for passive scan beacon report
Do not excceed two beacon intervals

Change-Id: I0cf91cd577ac36c7e5be87f6163b9f858c6136d3
2019-07-27 22:36:57 +02:00
syphyr c591e3a1b6 msm8976-common: Increase continuous packets dropping threshold
Set to maximum value to prevent kickout.

Change-Id: Ib8953e5723aadfc3544bcc513938b542cdf5a018
2019-07-27 22:36:48 +02:00
LuK1337 a7e7fcdd35 msm8976-common: hal_lineage_livedisplay_default -> hal_lineage_livedisplay_sysfs
Change-Id: If8954290c41913b7453a1cba4d67f7a63d08d2dd
2019-06-16 16:52:22 +02:00
LuK1337 51a2a13e22 msm8976-common: comhal_lineage_livedisplay_default.te -> hal_lineage_livedisplay_default.te
* Dunno how that even happened tbh.

Change-Id: I1b042a79d6ce95a6af906ba00c553e01020b0b73
2019-06-16 16:02:05 +02:00
Kevin F. Haggerty 74c3327190 msm8976-common: Build Samsung LiveDisplay service
Change-Id: I74d38aa0df3179bb00b942135e8ff055aa8a5658
2019-05-24 23:32:30 +02:00
LuK1337 c2e3a7b743 msm8976-common: sepolicy: Remove no longer needed rules
Change-Id: Ib0e310d26d153bf7477110d592e5d18e7042bfad
2019-02-25 17:03:23 +01:00
LuK1337 38786d49b8 Revert "Revert "msm8976-common: Binderize camera & graphics composer""
This reverts commit f10851da4f.

Change-Id: Ia054b3433e8bd3652ad6557180e739a0ea5bd49c
2019-02-25 16:55:49 +01:00
LuK1337 9a5ff95ac6 msm8976-common: Add TZ.BF.3.0.3-00074 to trustzone assert
Change-Id: I54a0e0d2c750ef476959e743bd38a88a930333f1
2019-02-12 19:03:29 +01:00
LuK1337 900aee2784 msm8976-common: recovery: Drop pathmap dependency
* It's unlikely to be merged anyway.

Change-Id: Id6c968ff54d4dc51a45a1f04fe64cade2ae3c464
2019-02-11 11:56:36 +01:00
LuK1337 407b78f2f4 msm8976-common: Disable ANT+ for now
* Theoretically I may revisit it soon (TM)

Change-Id: I9895ef8e10b2e75a4cd4f3a61255eacfb60daa13
2019-01-21 17:00:41 +01:00
LuK1337 f10851da4f Revert "msm8976-common: Binderize camera & graphics composer"
* Since someone was funny enough to label display.qservice
  as 'service' instead of 'vndservice' in legacy qcom sepolicy
  I'm forced to move these back to passthrough ;-;

This reverts commit a8fd5e61e0.

Change-Id: I4fb729fce584450499b55cc7b8815e9768dac846
2019-01-21 16:16:06 +01:00
LuK1337 9b22aa359f msm8976-common: sepolicy: Allow vendor_init to create files in /data/misc/radio
Change-Id: I537ef9612c1b7994510bc8e91e5c09953a56b384
2019-01-19 13:18:48 +01:00
LuK1337 7efa7c4142 msm8976-common: sepolicy: Allow vendor_init to load firmware files
Change-Id: Ic687c9bdc58023b0745fedd23b99811cdb87a325
2019-01-19 13:18:48 +01:00
Tom Cherry 7aa66e91ba msm8976-common: sepolicy: Add restricted permissions to vendor_init
The core SEPolicy for vendor_init is being restricted to the proper
Treble restrictions.  Since this is a legacy device, it is tagged as a
data_between_core_and_vendor_violators and the needed permissions are
added to its device specific vendor_init.te

Bug: 62875318
Test: boot 8976 targets without audits
Change-Id: I13aaa2278e71092d740216d3978dc720afafe8ea
2019-01-19 13:18:48 +01:00
LuK1337 0c5cb53a04 msm8976-common: sepolicy: Address healthd denials
Change-Id: I56f87d9b879d066bd04bea905a0b8df50b56dc33
2019-01-19 13:18:48 +01:00
LuK1337 26e4e5df4a msm8976-common: sepolicy: Address hal_fingerprint_default denials
Change-Id: If0218356eedc43f53d180c2415c777c2b7f8bf10
2019-01-19 13:18:48 +01:00
LuK1337 b0d28dc4c4 msm8976-common: sepolicy: Address camera related denials
Change-Id: If1dea9ad887987b4e4e05aa52d4b2271e4025080
2019-01-19 13:18:48 +01:00
LuK1337 8ae15d9d5d msm8976-common: Switch to regular camera provider impl
Change-Id: If6dd0c24b20e8520c01e72b83a8bc623d14ff518
2019-01-19 13:18:47 +01:00
Demon000 22b76720e4 msm8976-common: camera: Store user pointer and pass it when needed
The new camera interface calls set_callbacks with a pointer
to it's internal CameraDevice and expects following calls to
the callbacks to use that pointer.

Store the pointer in the camera wraper and intercept the
callbacks calls to pass it along.

Change-Id: I99f02484e12a3f72cf1be13f1c724f474a452d7f
2019-01-19 13:18:27 +01:00
LuK1337 dafcd292e6 msm8976-common: sepolicy: Allow timekeep to read since_epoch
Change-Id: I66af18e6c82f8ea6a2951a93e468f2533432b3c7
2019-01-19 12:58:40 +01:00
LuK1337 3c733e2cc6 msm8976-common: sepolicy: Address timekeep denials
Change-Id: I1f6b24c2586106535415a1913d9b6d6841bc8392
2019-01-18 23:22:57 +01:00
Demon Singur 9d3d34ab77 msm8976-common: rootdir: Do not symlink sdcard legacy path
Solves the following denial.
denied  { write } for  pid=548 comm="init" name="storage" dev="rootfs" ino=15996 scontext=u:r:vendor_init:s0 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0

Change-Id: If246f497bd8384f0fee81469d8d29dcb528d4d4e
2019-01-18 23:22:35 +01:00
Bruno Martins 9b27fadfb2 msm8976-common: Only include legacy QC sepolicy
* This has now turned into a separate repository (maintained only
   for legacy devices, those that never got official Orea updates).

Change-Id: I981b452b697bc3610d7aa97b74ed182c6b70ca30
2019-01-18 23:22:24 +01:00
codeworkx c1d6909b63 msm8976-common: Do not cleanup unused fingerprints
Change-Id: I6095236b31dcc8fb4ae966fde5502df73c53ecb5
2019-01-18 23:20:58 +01:00
LuK1337 3866a7d974 msm8976-common: rootdir: Update camera provider HAL service name
Change-Id: Idc1a1e3da87c6c57e23c5c4cedcd77f4e0da5119
2019-01-11 14:41:26 +01:00
LuK1337 70e7d5daf4 msm8976-common: Drop TARGET_EXFAT_DRIVER flag
* No longer needed.

Change-Id: Icb0df10fece66ee2ded0fe9c4ae329c50b3d2571
2018-12-17 02:52:30 +01:00
LuK1337 381b77f356 msm8976-common: Correct SDK version override for camera HAL service
Change-Id: Ieb854202a1039e61fb995fd54af512e6e75707ec
2018-10-19 11:30:35 +02:00
RAJATH R 52c75ef1c8 msm8976-common: Support for new rules related to vendor props
- Add new bluetooth controller related property.

Change-Id: Ib15d5543bf7d94c900727d89b5cda7c99697f410
2018-10-19 11:09:51 +02:00
LuK1337 b23351f18a msm8976-common: Update wcnss_filter blob
Change-Id: If230d61d60941a0cb049e42d50aeaf90bcea29dd
2018-10-19 11:09:41 +02:00
Danny Baumann 03ea84933e msm8976-common: Mark camera-related processes as API level 23.
Our camera blobs trigger some checks for broken behavior (destroyed
mutex usage, invalid pthread usage) present in newer API levels.

Change-Id: I8705437e0a5c6d80b86748bff559ce1e8a7bf716
2018-10-19 11:09:28 +02:00
LuK1337 32550d35d9 msm8976-common: overlay-lineage: Increase amount of visible notification icons
* I believe our screen is big enough to fit 12/13 notification icons ^.^

Change-Id: Idba2312a6c48061a343b39e779670e160a558804
2018-10-19 11:09:20 +02:00
LuK1337 a4ddd171d2 msm8976-common: Add TZ.BF.3.0.3-00071 to trustzone assert
Change-Id: I22464cad0801ae7b935db2aef714bc80a5e5a271
2018-10-16 15:53:31 +02:00
LuK1337 74773f0e3e msm8976-common: Add list of supported TrustZone versions
Change-Id: I1703c80f39d6cfc994a8ca7428bb3e76a7039a34
2018-09-30 01:12:24 +02:00
LuK1337 00999089ce msm8976-common: Fix build of librecovery_updater_samsung
Change-Id: I308fca4987b049266ebaae04de8b3e0efbf836ba
2018-09-30 01:12:24 +02:00
LuK1337 938eecdcc6 msm8976-common: recovery: Update for O
Change-Id: I1f01837e18acd6971c0aaf410db87a54ad34afbc
2018-09-30 01:12:24 +02:00
Michael Bestas d5bf5103a2 msm8976-common: recovery: Use project pathmap for recovery
Change-Id: Ifb7176454b5237ec366e5634e0188a6ce24740dd
2018-09-30 01:12:24 +02:00
dianlujitao e7edb4e11d msm8976-common: Calculate TrustZone size at runtime
Change-Id: I0e9154efb96f07347f87f7ca9d6829803815b40f
2018-09-30 01:12:24 +02:00
Ethan Chen 34842dbf45 msm8976-common: Add assertions on TrustZone version
Change-Id: I1ae8c415028ba0b5e781f53c3a26225bcdc98100
2018-09-30 01:12:24 +02:00
Michael Bestas ced29a900f msm8976-common: Switch to 1.1 power HAL
Change-Id: I4690a5b913141427a828d6a3a4af407d35a10775
2018-09-28 14:38:35 +02:00
Kevin F. Haggerty 417865e108 msm8976-common: Allow additional gralloc 1.0 buffer usage bits
* Our camera requires 0x02000000U. Per headers from exynos5420,
  this appears to be USAGE_PRIVATE_NONSECURE.

Change-Id: Ie5a8a46fef1c0f28ebd2cd3b3d29cc19763bc2a3
2018-09-12 20:26:12 +02:00
Bruno Martins 33ae2f241a msm8976-common: Switch to common basic USB HAL
Change-Id: I2a3d3ea205d821ec60b33ccc9cc40c077d43bd47
2018-09-12 20:25:57 +02:00
Bruno Martins e99f341d92 msm8976-common: Adapt for local LineageHW java overlays
Change-Id: Icb2b9810217f4b4d442ab83a16f455bd2ed82071
2018-09-12 20:25:13 +02:00
syphyr ac868500a3 msm8976-common: Use VoIP paths for camcorder mic
Fix low volume for recordings

Change-Id: I255a23a81ad75b2079d58b4e603de2960cf439bf
2018-09-01 19:27:49 +02:00
syphyr abb08b0b9c msm8976-common: camera: Enable narrow search range
enable narrow search range for video encoding

Change-Id: Ica0de8c893fdabf1b4393abe72291814bb708f74
(cherry picked from commit 819706119048a5818560ff7dbd1cc5feb0229da0)
2018-08-20 21:02:45 +02:00
Paul Keith 3668a9c288 msm8976-common: Hex-edit libmmcamera2_isp_modules for P's mutex restrictions
* Google has been tightening up mutexes by disallowing calling
  pthread_mutex_destroy on an already destroyed mutex in P
* This normally isn't an issue, but Qualcomm, in their infinite
  wisdom, decided to destroy a mutex in a loop in isp_module_stop_session
  when they were freeing some related memory allocations
* This results in a SIGABRT in mm-qcamera-daemon from a
  __fortify_fatal call in HandleUsingDestroyedMutex in libc
* To work around this, the CBNZ instruction (aka, the break condition)
  in the loop was moved before the call to phtread_mutex_destroy so
  that the during the 2nd (and final) iteration of the loop, it exits
  *before* rather than *after* the calls to pthread_mutex_destroy
* ASM instructions:
 - Before: https://gist.github.com/javelinanddart/9afdc8577134bf8ecd48b15213d66491
 - After: https://gist.github.com/javelinanddart/789ba3bde8494ff4ba0b7967c93daa14

Change-Id: I36dfab9f3afb8c9e010da8c6b02c2d9eff856c07
2018-08-17 21:19:35 +02:00
LuK1337 04f4dfb4cd msm8976-common: camera: Add missing Fence destructor
* Our camera HAL depends on it.

Change-Id: Iedf3dae40e3f2beb284549f486b8721c69837cd0
2018-08-16 12:15:43 +02:00