Commit Graph

874 Commits

Author SHA1 Message Date
Steve Kondik e2db03e00f klte-common: Don't set swappiness to 100
* Don't do this, it destroys performance!
 * Android uses memory cgroups to manage ZRAM. Memcg allows you to
   view stats as well as set options like swappiness on a per-cg
   basis. In the main init.rc, the background cgroup already has it's
   swappiness set to 100. This patch sets it globally, which will
   aggressively swap even foreground tasks into ZRAM which has a huge
   amount of overhead.

Change-Id: I9f39b830e5817f796a42c377696864aec9bf2f22
2017-12-22 09:17:07 -07:00
Paul Keith 878439b046 klte-common: Add support for sec nfc chips
* kltesprsports has this

Change-Id: I5a12c2911347f626153131a677c73c47cba5d7c0
2017-12-22 09:16:55 -07:00
Paul Keith c06ff2c9f1 klte-common: Add kltesprsports to makefile guards
Change-Id: I77b691da7592ee76095bd0df91534a3efb759734
2017-12-22 09:16:43 -07:00
Paul Keith 13e2e6227e klte-common: Allow setting custom copyright years per-variant
Change-Id: I191f8cfa443586447d49ef328cc36c1c2068256d
2017-12-22 09:16:25 -07:00
Artem Borisov aae26bb6aa klte-common: Use 64-bit binder API
AOSP and mainline are going towards removing old 32-bit binder API support.
64-bit binder is 100% compatible with 32-bit kernel and userspace,
so there is no reason for us to keep using the old solution anymore.
We've switched to new API in our kernel, same thing should be applied to our userspace.

Change-Id: I3c95bd7fbd023c5cb08e856b3a3889c03228e843
2017-12-10 09:59:20 -07:00
Kevin F. Haggerty 2a20e4cfc5 klte-common: Enable legacy f_adb interface support
Change-Id: I6ebd3e4fcd8382b71a32853d79ebe22d802da052
2017-11-26 15:30:48 +00:00
Kevin F. Haggerty cea7d22cb3 klte-common: Remove libsecril-client*
* These are only required for some OEM blobs, and not even any
  that we make use of:
  * system/bin/smdexe matches
  * system/bin/vpnclientd matches
  * system/bin/connfwexe matches
  * system/bin/at_distributor matches
  * system/bin/wpa_supplicant matches
  * system/etc/irremovable_list.txt:/system/lib/libsecril-client.so
  * system/lib/hw/lights.msm8974.so matches
  * system/lib/hw/audio.primary.msm8974.so matches
  * system/lib/libcpve-client.so matches
  * system/lib/libaudio-ril.so matches
  * system/lib/libsecril-client.so matches

Change-Id: I7488681c9c1c15c1a42ba9a718c426c80526db19
2017-11-07 06:15:19 +00:00
Rashed Abdel-Tawab 50054e9d47 klte-common: Add radio services to manifest
These are built by default

Change-Id: I2fcd62b1dd6cbe292d89cf97085c9549bf69ba35
2017-11-04 12:58:43 -06:00
Myles Watson ed58a79f48 klte-common: Add libbt-vendor in klte.mk
Bug: 36810308
Test: build
Change-Id: Iae4a6340a184dde818603b546470c8cf883f2f7b
2017-11-04 12:58:43 -06:00
Rashed Abdel-Tawab b574fd9567 klte-common: Add bluetooth service
Change-Id: I2fcd62b1dd6cbe292d89cf97085c9549bf69ba38
2017-11-04 12:58:43 -06:00
Rashed Abdel-Tawab 2d0a03ffbf klte-common: Add DRM HAL impl
Change-Id: I2fcd62b1dd6cbe292d89cf97085c9549bf69ba28
2017-11-04 12:58:43 -06:00
Rashed Abdel-Tawab d5adb2c433 klte-common: Add audio and display HIDL manifest
Change-Id: I2fcd62b1dd6cbe292d89cf97085c9549bf69ba25
2017-11-04 12:58:43 -06:00
Rashed Abdel-Tawab e43a08af7a klte-common: Add empty HIDL manifest
Change-Id: I2fcd62b1dd6cbe292d89cf97085c9549bf69ba24
2017-11-04 12:58:38 -06:00
Mohammad Afaneh 9606d62123 klte-common: Build fingerprint 2.0 service
Change-Id: I2fcd62b1dd6cbe292d89cf97085c9549bf69ba19
2017-11-04 12:52:07 -06:00
Diego Wilson 40b5c1299f klte-common: fingerprint: Move device dependent modules to /vendor
Change-Id: I7a28b65a55cf808a01b6defdce1f7ff1f64bc565
2017-11-04 12:39:20 -06:00
Kevin F. Haggerty 8450ca7c7d klte-common: libshims: Drop libshim_ril
* O cannot use the old blobbed RIL and this prep makes the rest of
  bringup easier

Change-Id: Ic11b3fcbc6e7923d80eb49ef709ccabe4c81a14d
2017-11-03 22:24:18 -06:00
Bruno Martins a79e72b246 klte-common: CameraWrapper: Move module to vendor
* Use LOCAL_MODULE_RELATIVE_PATH as well

Change-Id: I20c7f8b772ade2466dcb2ea7a8b23a07e8d60568
2017-11-03 08:08:20 -06:00
Diego Wilson d191dea121 klte-common: gps: Move device dependent modules to /vendor
Change-Id: I8229a6e4a9512a03cbc6c9522bb1dc0ce988d1c9
2017-11-03 08:01:42 -06:00
Roshan Pius d0396fd1a9 klte-common: Change ownership of wifi firmware reload sysfs paths
This will let the wifi hal run as wifi user and not need root
permissions to access this path for firmware reloads.

Change-Id: I2fcd62b1dd6cbe292d89cf97085c9549bf69ba23
2017-11-02 06:02:42 -06:00
Roshan Pius cd9495cec7 klte-common: wifi: Move wpa_supplicant to vendor partition
Change-Id: I2fcd62b1dd6cbe292d89cf97085c9549bf69ba41
2017-11-02 05:30:45 -06:00
Christopher Wiley cba57d536c klte-common: wifi: Do not define superfluous wpa_supplicant service
Change-Id: I2fcd62b1dd6cbe292d89cf97085c9549bf69ba40
2017-11-02 05:30:45 -06:00
Rashed Abdel-Tawab 921c9a6c47 klte-common: Get rid of net_bt_stack
Change-Id: I2fcd62b1dd6cbe292d89cf97085c9549bf69ba22
2017-11-01 17:13:42 -06:00
Adrian DC 737bd8c396 klte-common: camera: Use wrapper parameters instead of CameraParameters
* Get inline with the lack of CameraParametersExtra.h
    support in AOSP, avoid using device header to inject
    additional parameters, especially with the introduction
    of Android.bp compilation for libcamera_client
    which ignores the device headers override

Change-Id: I754116f55ed32d54d1b1ad44407993137a07fb69
2017-11-01 16:45:05 -06:00
Kevin F. Haggerty dac4f861a3 klte-common: Drop all of our releasetools stuff
* The OSS RIL gets us down to a single blob that we can instruct
  rild to make use of using a property. We've done that, so this
  has ceased to serve its purpose.

Revert "klte-common: releasetools: Use toybox's cp"

This reverts commit fbb95e0b01.

Revert "klte-common: releasetools: Move variant ident logic to hook"

This reverts commit 167e45f1c0.

Revert "klte-common: Add releasetools extension to install variant blobs"

This reverts commit a27086acba.

Change-Id: I070d03063afc3d8bf12cbd70599600930b3edd47
2017-11-01 16:45:05 -06:00
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