Commit graph

583 commits

Author SHA1 Message Date
Rashed Abdel-Tawab
d39af7a072 klte-common: Move Lineage specific overlays to overlay-lineage
Change-Id: I2fcd62b1dd6cbe292d89cf97085c9549bf69ba18
2017-12-22 17:31:55 -07:00
Rashed Abdel-Tawab
783402f469 klte-common: Add sensors HAL impl
Change-Id: I2fcd62b1dd6cbe292d89cf97085c9549bf69ba30
2017-12-22 16:38:17 -07:00
Mohammad Afaneh
2d5186e1f1 klte-common: Add consumer IR impl
Change-Id: I2fcd62b1dd6cbe292d89cf97085c9549bf69ba20
2017-12-22 16:38:12 -07:00
Rashed Abdel-Tawab
5ee3d1d904 klte-common: Add USB service
Change-Id: I2fcd62b1dd6cbe292d89cf97085c9549bf69ba36
2017-12-22 15:29:00 -07:00
Rashed Abdel-Tawab
c724309890 klte-common: Build GPS impl
Change-Id: I2fcd62b1dd6cbe292d89cf97085c9549bf69ba32
2017-12-22 14:31:10 -07:00
Kevin F. Haggerty
5ab94096fe Revert "klte-common: init: Remove writes to non-existant cpufreq nodes"
This reverts commit b7f109ed9f.

* So, that was 100% my derp. The cpufreq directories come and go as
  cores go on- and off-line.
* Now, I wish I had notes as to whether I made this change in the
  first place because of an error in a log or just based on manual
  inspection.

Change-Id: I2782fefa80560bf9e20001e72ad378553d787ac0
2017-12-22 10:34:08 -07:00
Rashed Abdel-Tawab
f0e4836605 klte-common: Add Camera HAL impl
Change-Id: Ie817e4d10631359f3b6c3c42249d75ebf73c596e
2017-12-22 10:34:08 -07:00
Paul Keith
701a321c54 klte-common: Add camera hal shim
* Allows camera hal to load

Change-Id: Ia1e4c05fe128c1b5abf885d6018e29a0fb9c881b
2017-12-22 10:34:08 -07:00
Demon000
d4dadbaff0 klte-common: CameraWrapper: 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
2017-12-22 10:33:52 -07:00
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