Commit Graph

750 Commits

Author SHA1 Message Date
Kevin F. Haggerty 1bf14f5889 klte-common: Set a default rild.libpath in build.prop
* This is overridden with property_override() in init
  for unified builds

Change-Id: I4173d7c8ffef14ec24da8f61de49bdc61d3a40f2
2017-11-01 16:45:05 -06:00
Kevin F. Haggerty a3c4d27f06 klte-common: add BOARD_KERNEL_IMAGE_NAME
Change-Id: I581c5d02ad4c68e867a09b35bf0c0406b1bea073
2017-11-01 16:42:01 -06:00
Kevin F. Haggerty c6995d2d02 klte-common: Set BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE to ext4
* There is some kind of race condition during build and f2fs is kind of
  junk anyway.

Change-Id: I51931c7d2005e987da3e1fbeb9f1051a67ca7da7
2017-11-01 16:42:01 -06:00
Dan Pasanen dc1bbbf7e0 klte-common: compress recovery ramdisk with lzma
Change-Id: I1e590c22f0a68ecdbbb1c8057d6e55d9ec43b79f
2017-11-01 16:42:01 -06:00
Kevin F. Haggerty f8805ade87 klte-common: nfc: Enable CLANG compilation
Change-Id: I4c98e33b2e1970fd358d27e14635db3d9504a4c7
2017-11-01 16:42:01 -06:00
Kevin Tang c89f8e0a1e klte-common: gps: LOC logging macro changes
The current logging macro always uses LOGE, which is
confusing to external developer looking at our logs.
Also changed LOC_LOGx definition to follow the same
syntax as that of LOC_LOGX.

Bug: 29499503

Change-Id: I803233a9d0b241bf9aeb2ee0d4bd2e7cc52ed75b
CRs-Fixed: 1113702
2017-11-01 16:42:01 -06:00
David Ng f580266809 klte-common: gps: Add explicit liblog dependency
Explicitly add liblog as dependency for modules that use Android
logging.  Also remove obsolete build flag.

Change-Id: I91a458b44ff34c91a8f6875f5c3e931f620c613a
2017-11-01 16:42:01 -06:00
Saurabh Srivastava d0681412e1 klte-common: gps: Enabling CLANG compilation and fixing all resulting errors
Removing statement to set LOCAL_CLANG flag explicity to
true. It will be true by default.

Change-Id: I2eaba5a89e64088e3383b962dceaaa7e975e997a
CRs-Fixed: 989476
2017-11-01 16:42:01 -06:00
Michael Bestas e1215f76fa klte-common: gps: Cleanup makefiles and remove useless files
Change-Id: I66848d2e220817ae61642d7211f7eabf5e4efcea
2017-11-01 16:42:01 -06:00
Adrian DC 6a9844f06e klte-common: display: Disable EGL buffer_age extension support
* Due to commit I9b346b4053ec12c8a78a143a4dc0e708c44888a2
    "Support EGL_KHR_partial_update without EGL_EXT_buffer_age"
    in libhwui, EGL_EXT_buffer_age extension was forcibly enabled
    if EGL_KHR_partial_update was available, even if the EGL driver
    was not providing EGL_EXT_buffer_age support

 * On older Adreno drivers, renderthread sources could use bufferAge
    specific swap behaviours and would result in partially missing
    display redraws upon animations and rotated screens,
    for instance flashing action bars, blinking loading bars
    and half black displays in landscape rotations

Change-Id: I16fe13f0726792522e382716f8f24eccf2a27701
Signed-off-by: Adrian DC <radian.dc@gmail.com>
[haggertk]: adapt to system_prop.mk
Signed-off-by: Kevin F. Haggerty <haggertk@lineageos.org>
2017-11-01 16:42:01 -06:00
Simon Shields 45e3438b26 klte-common: camerawrapper: Add missing libs for headers
Change-Id: Ifdaf82855e9ccc3b9d8e13f4124e3670b803109d
2017-10-31 20:14:23 -06:00
Kevin F. Haggerty 7b46da8589 klte-common: extract-files: Inherit from vendor/lineage now
Change-Id: I13b5e54247a6b4a08b4c5dffb0ba377c4c5d9108
2017-10-31 20:14:23 -06:00
Paul Keith 291e3c2c90 klte-common: Nuke adreno renderscript libs
* These doesn't work, libRSDriver_adreno is missing symbols
* We could try to shim/kang around this, but AOSP's is fine

Change-Id: Ic315c4fe3980855c53102290f9e9a532583042f8
2017-10-28 01:04:53 +00:00
Paul Keith 46455aa5f8 klte-common: Use QC soundfx libs
* These work a lot better than the AOSP ones

Change-Id: Ifb2dbeaacd09329541aeb664a89d4827cf403d77
2017-10-28 01:04:29 +00:00
Kevin F. Haggerty e977716068 klte-common: proprietary-files: Commonize shared radio blobs
* libril and libsec-ril are the only ones that need to be split
  by variant

Change-Id: Ic81a83b615683bbfa358aead7df5dbaa571aab0d
2017-10-24 01:18:35 +02:00
Kevin F. Haggerty f08a5db2e7 klte-common: Build libsecnativefeature and libsecril-client from source
Change-Id: Ifafcd8109503952873177b9626578c8d1f7a8393
2017-10-24 01:18:35 +02:00
Ziyan a52ac565ce klte-common: ril: add squash of OSS libsecnativefeature
klte-common: ril: add open-sourced libsecnativefeature, used by libsec-ril

 Change-Id: I2f487db23b31c63ba919863f393ca37cc9a81191

 libsecnativefeature: fix build with clang

 Change-Id: Ibda3234af2b1184e094913e35cb919a75f972c87

Change-Id: Iaaa06fa527cedce6609a95b21d787c13dda6a30a
2017-10-24 01:18:35 +02:00
Paul Keith 0ce39c7328 KlteRIL: Cleanup RIL class
* Remove some old hacks
* Remove an unused ril prop
* Move to using a prop for mQANElements
* Reorganize structure based on AOSP RIL.java

Change-Id: Id837ea9b9fc82ebb74212d51974da385b40180a5
2017-10-24 01:18:35 +02:00
Corinna Vinschen a5bfcfc37b klte-common: sepolicy: Add external fs permissions for shell
Avoid SELinux denials when accessing external exfat FS from adb shell.

Change-Id: I5f7d804dae4847807fdee763fa91e85cac049cf5
Signed-off-by: Corinna Vinschen <xda@vinschen.de>
2017-10-20 10:04:39 +02:00
Paul Keith fbb95e0b01 klte-common: releasetools: Use toybox's cp
* It doesn't make sense to rely on utils in recovery
  when we can't guarantee they'll always work right,
  and need to hack around them for secontexts
* Just use toybox's cp from /system, as it works
  right, and is something that we have control over

Change-Id: I1536eebc7c974a549012aaba643b34d732665cfd
2017-10-19 20:46:36 +02:00
Kevin F. Haggerty c660c43409 Revert "klte-common: Disable sdcardfs"
This reverts commit 4f33809cf6.

* The cause for the apparent space leak (until unmount) is caused by
  asymmetric access by Android to the upper vs. lower filesystems on
  external storage and the fact that sdcardfs maintained upper/lower
  icache and dcache that are not synched. While normally only visible
  to users on external sdcards, it could be forced on internal storage
  by twiddling /data/media/0 and /sdcard.
* See https://review.lineageos.org/#/c/193137/ for resolution.

Change-Id: Ia642815aef2f7e7ab76507a27cdc7cd1d4648028
2017-10-13 05:50:31 -06:00
Kevin F. Haggerty f98d6e2b5a Revert "klte-common: init: Disable Adapative LMK"
This reverts commit 3c04b582d7.

* The real cause for the seeming Adaptive LMK misbehavior was a merge
  derp in the kernel that did not take into account zcache pages. This
  is corrected with LineageOS/android_kernel_samsung_msm8974 1355fda449

Change-Id: I9441538de0d2d0dfc775519a7e8e17b584a2b833
2017-10-11 20:43:24 -06:00
Kevin F. Haggerty 4f33809cf6 klte-common: Disable sdcardfs
* There is some kind of subtle bug related to unlink where the newly-
  freed space is not propagated to lower-level storage until unmount.
* This has been observed across multiple underlaying filesystems, and
  I've spent too much time already doing A/B testing, so let's do the
  sane thing.
* This is a logical revert of 936ea50b37,
  but it's better to leave the prop explicitly defined to false in the
  event that the system-level default changes to true in the future.

Change-Id: Ie7cbce4673de7ea7d6746ae79f2cda333c96b2f6
2017-10-10 00:45:35 +00:00
Paul Keith a2b7c30c15 klte-common: Add GPS configuration for China
* Use Asia NTP server
* Use Nokia SUPL server

Change-Id: I781a251bb20885c1a9e545b6678018b64ddce760
2017-10-06 16:06:52 +02:00
Kevin F. Haggerty 3c04b582d7 klte-common: init: Disable Adapative LMK
* This is being overly aggressive, so let's go ahead and disable by
  default. It is still available in kernel, so those "advanced users"
  can go ahead, use it, and tweak things to their heart's content.

Change-Id: Ife119211a49479e0edb5d0c8ac04773d01d10f28
2017-10-05 19:27:44 -06:00
Paul Keith 353209be9d klte-common: Remove unused gps configurations
* These aren't copied to the final build, drop them
  to avoid confusion of where to look for configs

Change-Id: I20a117fc2ef230e04838283be721a45405d8768f
2017-10-05 17:06:51 +02:00
Paul Keith 2d60675042 klte-common: Refactor common gps configurations into gps.conf
* No need to clutter up the overlay

Change-Id: I888ef88c249cb09404336e7273088eeea4fc7d3d
2017-10-05 17:06:51 +02:00
Kevin F. Haggerty b7d9a63fa5 klte-common: Update TWRP makefile/compatibility
* Move TWRP fstab to twrp directory and use TARGET_RECOVERY_DEVICE_DIRS
* Remove variables set globally in Lineage tree
* Set TW_NO_LEGACY_PROPS to true in preparation for O compatibility

Change-Id: I8b11be9dbfdb4fd9e1cde7b4a5610d5188fddd9e
2017-10-04 21:29:54 -06:00
Paul Keith 0850adfbca klte-common: Nuke some unused libs
* DivX DRM is dead
* Color conversion libs were last used in JB

Change-Id: I3aa858576b9d571b01dcd4e8f41c4ce39c42264d
2017-10-04 00:04:40 +00:00
Kevin F. Haggerty 1c198278b3 klte-common: proprietary-files: Update bluetooth firmware
* Pinned to G900VVRU2DQH2_G900VVZW2DQH2_VZW
* Update general source note

Change-Id: I093d6cd52afe0a1e2d6df7530a32a3d287050f58
2017-09-29 13:22:13 -06:00
Kevin F. Haggerty ed880e6a7d klte-common: Use https for XTRA download
Change-Id: Ie16206b51e3eef729851fd5c8e3defd768581771
2017-09-26 11:18:06 -06:00
Kevin F. Haggerty d66d9d918a klte-common: sepolicy: Clean-up policy for external sdcards
* Yes, this looks horrendously wide-open, but this only applied for the
  complete sandbox that is external sdcard

Change-Id: Ibd1fe240eeed65f079e810a3da5157a4e64944f2
2017-09-26 09:00:39 -06:00
Kevin F. Haggerty bf67c969ca klte-common: Use kernel exfat
Change-Id: Ifbd2df2abbbfbb0909fd5c5441732072c1e27603
2017-09-23 00:25:22 -06:00
Joey Rizzoli 9b03812f16 klte-common: enable burnIn protection support
Change-Id: I117e29da2efb91a9f58558624827d6c22b856741
Signed-off-by: Joey Rizzoli <joey@lineageos.org>
2017-09-23 05:32:57 +00:00
Kevin F. Haggerty b7f109ed9f klte-common: init: Remove writes to non-existant cpufreq nodes
* cpu0 is the only one with cpufreq/scaling_governor or
  cpufreq/scaling_min_freq, so let's not try that for all 4 of them

Change-Id: I5820a5e436e231d77de94babbea347d63ff9853a
2017-09-17 17:34:10 +00:00
Kevin F. Haggerty 6daa361afe klte-common: Add bootdevice to kernel cmdline
Change-Id: I9590770e63c00cb9b376d0a8522ea3ccab78b1fe
2017-09-17 17:33:41 +00:00
Kevin F. Haggerty 33b1555d76 Revert "bluetooth: Our kernel is missing CLOCK_BOOTTIME_ALARM (alarmtimer)"
This reverts commit 5f382ba670.

Change-Id: I285522d8397fa71b363120a4180ea066ea14fe91
2017-08-27 10:12:41 -06:00
Kevin F. Haggerty 4f9d6d77c2 klte-common: Start using android_kernel_samsung_msm8974
Change-Id: I49fc5183b303e679cc1be6bdde65393c31ed3bf8
2017-08-25 22:07:02 -06:00
Kevin F. Haggerty c2173e97ca klte-common: proprietary-files: Pin hexed sensors.msm8974.so
* The 4 bytes at 0x76c8 were edited to 00 00 00 00 (NOP) to cancel the
  call to __android_log_print, eliminating LightSensor logspam, when the
  sensor registers 0 lux
* Inspiration taken from k3gxx

Change-Id: I4bb25b1e6818e74e4a5eab18215e870d0b7f9c0f
2017-08-25 22:05:57 -06:00
Kevin F. Haggerty e9c0171983 klte-common: Use the OSS GPS HAL
* Use bacon's GPS blob stack
* Build the package
* Drop our custom gps.h

Change-Id: Ib781b06310a4b11a5e69fe759549a89ce65fb1c8
2017-08-14 05:37:56 -06:00
Kevin F. Haggerty 94204fcfc6 klte-common: Import OSS GPS HAL
* KANGed from oneplus/bacon at 828ecdcd9d9716681f38fd96af3ac6b3b9a0126b

Change-Id: If20523e4268fee9cda5f15ce7e359090bb3a9a21
2017-08-13 15:57:00 -06:00
Kevin F. Haggerty c3cbdaeaf3 klte-common: Move QC Framework blobs to -common
Change-Id: I5a595fed62940bd39038ccab3b5813610038c38c
2017-08-13 15:57:00 -06:00
Kevin F. Haggerty cac2b65c70 klte-common: media_profiles: Actually let h264 encode 2160p
* Values verified against stock dump

Change-Id: I49726325a2e8deb6d60974fd132bb1e32329afc6
2017-08-02 17:33:25 -06:00
Andrea Arcangeli a984faaba1 klte-common: fingerprint: fix missing sensor_init()
vcs_stop_auth_session() was called invoking qseecom securefp app without
first calling sensor_init(). That crashes soft-reboot.

Add some more other robustness too and close the fd.

Change-Id: I586139f52d3dc841b8960e1de8c50d596e98d210
2017-07-26 18:15:00 -06:00
Kevin F. Haggerty 3ec82b7254 klte-common: proprietary-files: Update Adreno blobs
* LA.BF.1.1.3_rb1.12 from OnePlus onyx OxygenOS 3.1.4
* OnePlus Package Version: OnePlusXOxygen_14_201611071506

Change-Id: I4a286eb7f7e7eef12c82fef10ca54e4a5554e189
2017-07-15 16:35:35 -06:00
Bruno Martins 0dd0f42631 klte-common: Grant rmt_storage proper unix perms
Do not grant DAC override permission which would allow this daemon
unix permissions to everything.

avc: denied { dac_override } for pid=2664 comm="rmt_storage" capability=1 scontext=u:r:rmt_storage:s0 tcontext=u:r:rmt_storage:s0 tclass=capability permissive=0

Add wakelock group to access:
/sys/power/wake_lock
-rw-rw----  1 radio  wakelock 4096 2017-06-28 00:37 wake_unlock

Change-Id: Ib02b4aedab479f5ad8aca3a2100b5c489397002a
2017-06-29 08:48:53 +00:00
Kevin F. Haggerty 48083594ee klte-common: proprietary-files: General housekeeping
* Update primary blob source note
* Describe where pinned blobs come from
* Copy, don't pin, the alternative BT blobs. This will make it more
  clear that something should be fixed if BT firmware actually gets
  updated in the future

Change-Id: Ice23b6135c84256848ef6d58d880d32b07969e33
2017-06-23 13:57:32 -06:00
Patrick Lower ade8f08978 klte-common: Force SCO WBS samplerate to 8kHz
* Fixes voice calls in car

Change-Id: I61e8ecab7342b32404871db8b45ba0a0a36b92c8
2017-06-23 17:05:55 +02:00
Kevin F. Haggerty 33247487a3 klte-common: Update package version note in proprietary files list
Change-Id: I77aae401bf494562f7c5868e9a001f8e6ebf35d0
2017-06-20 04:54:16 -06:00
Martin Hoffmann 25f75c05d4 klte-common: bluetooth: Enable WBS
BUGBASH-308

Change-Id: I2ce1c0706f38559ab80370cf414234b85bf9d850
2017-06-20 02:44:54 -06:00