Commit graph

761 commits

Author SHA1 Message Date
Bruno Martins
fb460c7500 klte-common: Declare camera HAL instance as legacy
Change-Id: I02ea93f480658282ddfb10d8a877a7c721a7e3d3
2017-12-26 13:45:45 -07:00
Rashed Abdel-Tawab
c2eb30c314 klte-common: CameraWrapper: Include nativebase headers
* This is required as of android-8.0.0_r23

Change-Id: Ic76cfff3a5bfe46c0ea6974e1ffce9fb7ed069c6
2017-12-26 13:45:45 -07:00
Kevin F. Haggerty
44c978a05d klte-common: Move thermal-engine configs to vendor/
* Auto-hex thermal-engine on extract

Change-Id: I373b8a3933a3e5ce58783c8914f4d85f35ad36bf
2017-12-26 13:45:38 -07:00
Kevin F. Haggerty
0b73a22c27 klte-common: Move proprietary binaries to vendor
Change-Id: If8f69a66f6168869e2a7578110d1200510b73ddd
2017-12-24 10:31:18 -07:00
Paul Keith
4821531912 klte-common: Use opensource libril and rild
Change-Id: I2f68ce9e37806edd90727bc3ddedc173ef666967
2017-12-24 10:31:18 -07:00
Bruno Martins
52569e9c1e klte-common: Include DRM service
Change-Id: I4999809c288c84d6e9c39383ff76f9ee85a97cae
2017-12-23 10:41:09 -07:00
Adrian DC
924baf9ba2 klte-common: Only use AUDIO_FORMAT_PCM_16_BIT in policy configuration
* The updated audio HAL sources (for instance 8.0.0_r33) use
   the formats directly through the pcm_format_from_audio_format
   inline functions to resolve and validate provided formats,
   however in our case the formats include values outside
   of the allowed AUDIO_FORMAT_PCM_... values and fail

 * Crash situation was happening upon 3.5 Jack plug only

Change-Id: I4b613c25ea7fd202a434c18c2fdd06e55a57c456
Signed-off-by: Adrian DC <radian.dc@gmail.com>
2017-12-23 10:41:02 -07:00
D. Andrei Măceș
739a62ccb2 klte-common: bluetooth: Add custom vendor configuration fixes
The current HIDL implementation needs BT_WAKE_VIA_PROC_NOTIFY_DEASSERT,
and PROC_BTWRITE_TIMER_TIMEOUT_MS = 0, same as angler.

Change-Id: I1b5d12788ab2689b3fb1779957d263c804def590
2017-12-23 10:09:49 -07:00
Pawin Vongmasa
a9add7876d klte-common: Disable Treble OMX by default.
Test: Manual use of Camera, Movies, Photos and YouTube apps.

Test: With CtsMediaTestCases.apk installed,
adb shell am instrument -e size small -w
'android.media.cts/android.support.test.runner.AndroidJUnitRunner'

Bug: 31399200
Change-Id: Ib2d43fcfc7bbd00d47cf81a98b415d2be2e0e12a
2017-12-23 10:03:39 -07:00
Kevin F. Haggerty
405894f9eb klte-common: Add configstore to manifest
Change-Id: Ie2e8947f49f1e96a087f0cbf51f3b6ee98ff024a
2017-12-23 09:59:12 -07:00
Kevin F. Haggerty
90ddf6e3d8 klte-common: Add power HAL to manifest
Change-Id: Ie1241e8d9bd441d67731f8abedf4e8b9bf4077ad
2017-12-23 09:57:45 -07:00
Rashed Abdel-Tawab
4bb30996c5 klte-common: Add keymaster HAL impl
Change-Id: I2fcd62b1dd6cbe292d89cf97085c9549bf69ba31
2017-12-23 09:53:17 -07:00
Kevin F. Haggerty
316e26f265 klte-common: proprietary-files: Blob out libstlport.so
Change-Id: I2f0040d00213555f4c7a250d55fc47f09b314437
2017-12-23 09:11:23 -07:00
Ningyuan Wang
d9dfb2c43c klte-common: wifi: Add wificond to products
We need our new wifi native daemon wificond for Android O.
This CL gets it installed on the device.

BUG=29220405
TEST=compile

Change-Id: I2fcd62b1dd6cbe292d89cf97085c9549bf69ba39
2017-12-22 23:31:07 -07:00
Rashed Abdel-Tawab
46efb4c651 klte-common: Add wifi and supplicant services
android.hardware.wifi is built by default

Change-Id: I2fcd62b1dd6cbe292d89cf97085c9549bf69ba37
2017-12-22 23:29:03 -07:00
Kevin F. Haggerty
1d8a6bce95 klte-common: Convert system_prop.mk to property file
Change-Id: Iea7a502eb0ddfa619b314800aa3c386e18c88928
2017-12-22 22:31:11 -07:00
Luca Stefani
ccb9bf10e5 klte-common: audio: Fix audio effect libs path
Change-Id: I8f50ea750405ae920ef5a74dda31ca5ac85e3af0
2017-12-22 22:31:11 -07:00
Bruno Martins
488b4cdfc6 klte-common: Move audio configuration files to vendor
Change-Id: Ib0609d248c690ae76f3e089f376655da463d6f4c
2017-12-22 22:31:11 -07:00
Kevin F. Haggerty
adf0999b2a klte-common: Sort makefile sections sanely
Change-Id: Idb20e4befc873925003f2ede74c154aba2417d99
2017-12-22 22:31:11 -07:00
Rashed Abdel-Tawab
3c4c6b5df6 klte-common: Add vibrator HAL impl
Change-Id: I2fcd62b1dd6cbe292d89cf97085c9549bf69ba33
2017-12-22 22:31:11 -07:00
Rashed Abdel-Tawab
00d1639b17 klte-common: Add NFC HAL
Change-Id: I2fcd62b1dd6cbe292d89cf97085c9549bf69ba43
2017-12-22 22:31:11 -07:00
Kevin F. Haggerty
7ea4ffa388 klte-common: Build fingerprint 2.1-service
Change-Id: Ifffe781deef90d861a0ad68f8649c265c249d0c5
2017-12-22 18:43:10 -07:00
Kevin F. Haggerty
7a56477e86 klte-common: fingerprint: Resolve compilation warnings
* fingerprint_enumerate had an incorrect signature
* Quit partially initializing fingerprint_msg_t instances

Change-Id: I09a05f3656c5bdc1e17fa76b5e68c56e0b7277de
2017-12-22 18:42:50 -07:00
Kevin F. Haggerty
09e4b79ed7 klte-common: fingerprint: Bump version to 2.1
Change-Id: Id355acaf78387917252c56476da0ff8d3828f5d0
2017-12-22 18:33:01 -07:00
Bruno Martins
76fb2fe806 klte-common: Switch to hwbinder graphics allocator
Change-Id: Ic8124cebc5d9dab8e7571ec453be3f5a18b03d69
2017-12-22 18:33:01 -07:00
Kevin F. Haggerty
b68341a429 klte-common: Add lights HAL impl
Change-Id: Ia5370244fc64a612e3b83fac6d68798cdc7ed3c8
2017-12-22 17:32:31 -07:00
Sam Mortimer
5a176177c4 klte-common: overlays: Update for new LED capabilities
*) frameworks/base bool config_intrusiveBatteryLed is no longer
   used so it has been removed.

*) Use LIGHTS_BATTERY_LIGHT capability in lineage-sdk instead.

*) Update config_deviceLightCapabilities comments

*) Move bool config_intrusiveNotificationLed out of Lineage-specific
   overlays because it's an AOSP config

Change-Id: Ia813cdd0596ece07ff38e1087d9cdf9e135f20be
2017-12-22 17:32:30 -07:00
Bruno Martins
2e4fb8b3fd klte-common: overlay-lineage: Apply LineageOS rebrand
Change-Id: I1e34ecb738c8b68440fb5cc61083b985fbe3fad9
2017-12-22 17:31:59 -07:00
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