Commit Graph

510 Commits

Author SHA1 Message Date
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
LuK1337 4c3543572a msm8976-common: Add vendor_ prefix for our custom AIDs
Change-Id: Ie1dd9c1f6a79d04b42e12e0fd9dabdc22b2f6927
2018-08-16 12:15:12 +02:00
Jerry Zhang 4e8ecc64e8 msm8976-common: Set sys.usb.ffs.aio_compat
The kernel does not support aio with ffs.
Set the property so adb/mtp know to use the compatible
functions, and the same while in recovery.

Bug: 37916658
Test: Use adb / use adb in recovery
Change-Id: Id35a05fcb9952dcf7239bd15a61cc620537419bc
2018-08-16 12:15:12 +02:00
Mathieu Chartier 450c6669dd msm8976-common: Fix shared vdex name
The files in arm/arm64 are symlinks and pinning symlinks is not
supported. Pin the target vdex file intead.

Bug: 73990433
Test: manual
Change-Id: I313e1f53487c0a21b615f65dc64c21a1ecb4b7d5
2018-08-16 12:14:04 +02:00
Isaac Chen 2646b604f5 msm8976-common: Set TARGET_2ND_ARCH_VARIANT to armv8-a
Samsung 8976 targets are armv8 devices. Setting TARGET_2ND_ARCH_VARIANT
to armv8-a, instead of armv7-a-neon, can silence the related warning
during build.

Bug: 68012286
Change-Id: I18ae3aa985fd6bff11f043a155f3685d9f6644b8
2018-08-16 12:14:04 +02:00
Hung-ying Tyan 63a7d4fc15 msm8976-common: configstore: Uprev configstore (1.0 -> 1.1)
Bug: 69691076
Test: Built and tested on walleye
Change-Id: I16f06827ef83711c9e29698540ffcec658081fda
2018-08-16 12:14:04 +02:00
Roshan Pius d8be2cbe4d msm8976-common: Don't start supplicant with interfaces
Framework will now add interface to supplicant (via HIDL) when it
needs to control an interface, so don't specify them in the startup
params.

Bug: 69426063
Test: Device boots up and able to connect to wifi.
Change-Id: I817d28093f8b982e3806c212babd888c0f5eb7c0
2018-08-16 12:13:02 +02:00
Roshan Pius 50495a3b51 msm8976-common: wpa_supplicant(hidl): Add support for starting HAL lazily
Bug: 72394251
Test: Able to start supplicant from framework using
ISupplicant.getService()
Change-Id: I19b8434e7241b9028e7dc86316ec9d5512affcca
2018-08-16 12:13:01 +02:00
Roshan Pius fcef5e9305 msm8976-common: Uprev to supplicant 1.1
Bug: 65673412
Test: Device boots up and connects to wifi networks.
Change-Id: I2e51291b30fd242edbeae2c69ef9545383895bb3
2018-08-16 12:13:01 +02:00
Jeff Vander Stoep bf39ae8cb5 msm8976-common: wpa_supplicant: Move control sockets to /data/vendor
Treble compliance.

Bug: 70228425
Bug: 70393317
Test: complete wifi test in b/70393317
Test: Test wifi on 8996 targets
Test: verify sockets exist in /data/vendor/wifi/wpa/sockets

Change-Id: I0bfc3a351419f0a03498e79664949f353369bf1b
2018-08-16 12:13:00 +02:00
Etan Cohen 639e26e44f msm8976-common: Uprev Wi-Fi HAL to 1.2
New HAL APIs are planned. This requires a HAL uprev.

Bug: 65647646
Test: builds and Wi-Fi runs
Change-Id: Ib7efd3d5263e73d1ad40e1a5a687bdb6c133c812
2018-08-16 12:12:59 +02:00
Jeff Vander Stoep 6c2e7b1be7 msm8976-common: wifi_supplicant: Deprecate entropy.bin
Wpa_supplicant's random pool is not necessary on Android. Randomness
is already provided by the entropymixer service which ensures
sufficient entropy is maintained across reboots. Commit b410eb1913
'Initialize /dev/urandom earlier in boot' seeds /dev/urandom with
that entropy before either wpa_supplicant or hostapd are run.

Bug: 34980020
Test: Use wifi and wifi tethering on 8996 targets
Change-Id: Ib5caf362bc939911b357db186a274957d3fbf186
(cherry picked from commit 1f2b2f3a780bb7a6ed489bf86e18e77382f37514)
2018-08-16 12:11:42 +02:00
LuK1337 82d63d1c6b msm8976-common: Remove device/qcom/common from lineage.dependencies
* We aren't building power.$(TARGET_BOARD_PLATFORM)
  therefore there's no reason to sync this repository.

Change-Id: Icc2cff368c05ed3bf68e4c718dbcbcdab42244da
2018-08-15 11:12:59 +02:00
LuK1337 4a56058afb msm8976-common: lineagehw: Update ReadingEnhancement for new API
Change-Id: I8afaa7dfebfe765ef3d670f544344b7dea732ac2
2018-08-10 13:36:15 +02:00
syphyr be2d161200 msm8976-common: Disable wifi firmware and packet logging
The wifi packet logging option has high overhead and several
security issues related to it.  Also, packet logging has issues
when the device goes into low power mode and can cause connectivity
problems when the screen turns off.  It is best to disable it.

Change-Id: Iac7bdb000c0e22ba9930365b6d8477b4c12a3248
2018-07-10 20:59:30 +02:00
LuK1337 f595ccf475 msm8976-common: Use correct ANT+ wireless device
* Stock ROM uses qualcomm-uart instead of vfs-prerelease.

Change-Id: I835763de40d8dcf24d859f29357598fc87ecf9d2
2018-06-24 17:36:46 +02:00
syphyr 7c73e79eda msm8976-common: Use legacy powersave wifi feature
The qcacld Qpower firmware feature may cause tcp resets while
the device is in sleep mode which indirectly causes random
wifi disconnects. Use the legacy powersave option instead.

Change-Id: Ic7f2e5f777fea083cb99ed9f2da7b6261fd953f0
2018-06-14 12:12:38 +02:00
LuK1337 35d8e578c1 msm8976-common: overlay: Remove bnep\\d from tetherable BT interfaces
Change-Id: Iac714d2de9a4d225da6fc3463d3fb99a4bb714a7
2018-06-13 14:19:06 +02:00
LuK1337 189b80f213 msm8976-common: overlay: Add ncm to tetherable USB interfaces
Change-Id: I8d9ed1f322741116a68d507e1e9d486179626bbe
2018-06-13 14:19:06 +02:00
LuK1337 8fcc1971af msm8976-common: Update TARGET_LD_SHIM_LIBS list
Change-Id: I88a3fc8bde7e729b034217caa8159a453de8802c
2018-06-10 14:35:05 +02:00
LuK1337 6b011f9573 msm8976-common: Set vendor security patch level
Change-Id: I5e492dfb8210932ac4883bf2eb4bd749b373d1a9
2018-06-10 11:59:39 +02:00
syphyr 37954d7869 msm8976-common: Remove unused WLAN config
Change-Id: Ibdf90ee8dee990e112bcb103cb88ec2705c383bf
2018-06-08 12:26:21 +02:00
LuK1337 eb0bd0ac80 msm8976-common: overlay: Update config_deviceLightCapabilities comment
Change-Id: I7e1c26cb9215be45793cf1d7995a2df80c8477c1
2018-06-05 21:40:26 +02:00
Lukas0610 3ea218a6b7 msm8976-common: lineagehw: Add mDNIe-backed ReadingEnhancement implementation
Change-Id: I88ad232434130382e95f056097cfd1b914211645
2018-06-02 21:17:46 +02:00
LuK1337 e13be46cf4 msm8976-common: sepolicy: Remove BT_QCA6174 sysfs labels
* Labeled in device/qcom/sepolicy @ legacy-common.

Change-Id: Ib857f32cfeb594b092fd72e4545f1cfcf05dc5d2
2018-05-22 15:13:19 +02:00
LuK1337 2f40aa1c30 msm8976-common: sepolicy: Remove unnecessary cache block device label
* Already labelled in device/qcom/sepolicy.

Change-Id: I9302885ec1e2f546dadd3c9aab75cbc1563845cd
2018-04-28 20:31:54 +02:00
Giuseppe Barillari c9d2148237 msm8976-common: sepolicy: Remove debugfs_rmt rules
* Already present in device/qcom/sepolicy/legacy-common

Change-Id: Ie776556d6c3f64b8e4553990c9507ea0dcf9ca0a
Signed-off-by: Giuseppe Barillari <joe2k01dev@gmail.com>
2018-04-21 13:37:09 +02:00
Sean McCreary da54607843 msm8976-common: Address timekeep denials
Change-Id: I93f89536ff380127e639d09dfa38e458510aea9a
2018-04-10 06:46:20 -06:00
LuK1337 b15744fd7b msm8976-common: Go back passthrough sensors implementation
* Apparently hwbinder causes issues with adaptive
  brightness. Going back to passthrough seems to fix
  this issue.

Change-Id: I47d60d2d7fb52b5001df8a0d385acddebaa0ec84
2018-04-10 14:07:12 +02:00
Paul Keith 64262acc1d msm8976-common: Set BOARD_CUSTOM_BOOTIMG to true
* This is required to properly apply the changes to the boot
  and recovery images, as well as generating the right
  recovery-from-boot patch file to allow auto updating of recovery

Change-Id: Ifaaead6d68aae115e8fb4b01ee50d09861e5df1c
2018-03-26 02:36:55 +02:00
Bruno Martins 604a950fd3 msm8976-common: Remove non-existing HAL service
Change-Id: I26da013dfa359ec8f184a20bc881558be0144b4a
2018-03-22 15:49:56 +01:00
Michael Bestas 3a418b2310 msm8976-common: Get rid of recovery-only fstab
* Mounting /system partition is handled in kernel now,
   however removing the entry from fstab caused issues building
   the OTA. The workaround was to have a separate fstab, but turns out
   that simply setting the recoveryonly flag does the trick because
   those are then ignored during a normal Android boot.

Change-Id: I2944384d0a1c41bc9f9f51e2e29daff2bed0a0f4
2018-03-10 14:06:55 +01:00
LuK1337 93fd4d8045 msm8976-common: Enable additional mDNIe scenarios
Change-Id: Iab858ab093cde86c63e685f61a721667bd6ec6e9
2018-02-26 19:38:56 +01:00