Commit Graph

396 Commits

Author SHA1 Message Date
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
Kevin F. Haggerty 8a46a39656 msm8976-common: Use kernel exfat
Change-Id: Ifbd2df2abbbfbb0909fd5c5441732072c1e27603
2018-02-26 19:20:55 +01:00
Paul Keith a3186e740e msm8976-common: Transition to TARGET_LD_SHIM_LIBS
* Limits security exposure from shims

 * As a bonus, we no longer need noatsecure
   to make LD_SHIM_LIBS persist through services

Change-Id: I877192422062f3e59c81a7130ad1a2b4be5d1647
2018-02-17 09:34:47 +00:00
LuK1337 af54e51b92 msm8976-common: Restart HIDL camera provider after decryption
* HIDL camera provider starts too early for our 7.0 camera HAL.

Change-Id: Ia757e9d07de26008f426fca582439d68b6d6fecb
2018-02-16 16:37:51 +01:00
LuK1337 28e78fdbb1 msm8976-common: Disable ffmpeg
Change-Id: I4113323228fdfd21506eae005342a10c1de60a49
2018-02-13 11:48:15 +00:00
LuK1337 8cb4e8acff msm8976-common: Disable speaker protection feature
Change-Id: Id3a4b8dabb0307daf1e4ff8edb1ac9142182dabf
2018-02-12 18:05:42 +00:00
LuK1337 7cc79d324b msm8976-common: Remove libmmcamera_cac3_lib.so
* Our new OpenCL doesn't really like it.
2018-02-12 18:34:14 +01:00
LuK1337 61c854e076 msm8976-common: Update graphics stack to O
* OpenCL kept on 7.0 due to crashing camera daemon.
* From kugo-user 8.0.0 OPR1.170623.026
2018-02-12 18:34:14 +01:00
Jesse Hall a0ff78a960 msm8976-common: Declare Vulkan compute level 0 system feature
Bug: 38396207 (VK_KHR_variable_pointers)
Bug: 64982680 (maxPerStageDescriptorStorageBuffers >= 16)
Test: CtsGraphicsTestCases:.VulkanFeaturesTest (ag/2810565)
Change-Id: I61cde61f53f0e9a1c657e6bd6658a4393360b0a6
2018-02-12 18:34:14 +01:00
LuK1337 4d85a068c6 msm8976-common: rootdir: Remove audiod service
* Dropped by Qualcomm in O.

Change-Id: Id1c6e9d475b59b41c0cc4e4633e2ce7faabd19ef
2018-02-12 18:34:14 +01:00
LuK1337 8a6d90945c msm8976-common: Correct charger groups 2018-02-12 18:34:13 +01:00
LuK1337 703ea171cf msm8976-common: rootdir: Remove tabs 2018-02-12 18:34:13 +01:00
LuK1337 b8623ef48f msm8976-common: Move fstab to /vendor
Change-Id: I2e86c3be08d0d4f19a6cf89a931f4a1e6ac12cdf
2018-02-12 18:34:13 +01:00
Abhishek Arpure 653d154f45 msm8976-common: Move uevent.qcom.rc to /vendor
Change-Id: Iab2699bf26ca4402b835d1af8d4493f9b28595d9
2018-02-12 18:34:13 +01:00
Abhishek Arpure 1ea17708fe msm8976-common: Move hardware specific .rc files to /vendor/etc/init/hw
The reason these files are moved to /vendor/etc/init/hw and
not /vendor/etc/init is because 'init' scans the /vendor/etc/init folder
for vendor service .rc fragments to import. That would either result
in duplicate imports or out-of-order imports of these hardware
specific .rc files and that *may* have unintended consequences.

In order to preserve the current import order for MTP, we move all
hardware specific .rc files to /vendor/etc/init/hw which is not
autoscanned by init BUT leave the init.${ro.hardware}.rc (i.e.
init.qcom.rc in this case) in root for 'init' to find.

Change-Id: I14531da05e2a3a256f734f8de96e1f1969c753f9
2018-02-12 18:34:13 +01:00