Commit graph

96 commits

Author SHA1 Message Date
Paul Keith
e45f248077 klte-common: Enforce presence of msm8974-common BoardConfigCommon.mk
* This should always be present in the source tree

Change-Id: I898d721ac66f83c1bc5b11bebddec53e2a4483ea
2020-03-30 16:51:39 +02:00
LuK1337
da5b228e5a
klte-common: Drop TARGET_EXFAT_DRIVER flag
* No longer needed.

Change-Id: Icb0df10fece66ee2ded0fe9c4ae329c50b3d2571
2020-02-17 22:27:12 -07:00
Paul Keith
08b32f10ed klte-common: Set a default fingerprint
* Some variants have autogenerated fingerprints that are >= 92 chars
  on official nightlies, and overriding them in init is failing
* To workaround this, force a build fingerprint that's shorter

Change-Id: If3909ad6f6f00b77559aff16feb6291b42ddbc47
2019-03-02 17:17:39 +01:00
nx111
2e8f6982f1
klte-common: Set SDK API level for rild
* P made changes to pthread_mutex_init() that are incompatible
  with our libsec-ril libraries. In order for rild to even see a
  radio as being availble we need the legacy behavior.
* Even though our libsec-ril libraries are from 5.0, which is API
  level 21, we do not appear to require any of the other behaviors
  from API levels earlier than 27.

Change-Id: I3b3d0160236df09bdae95c5d9f10a61bf91ebc72
2018-10-08 19:12:18 -06:00
Kevin F. Haggerty
787f55dbbd
klte-common: Set SDK API level for required executables
* This singularly handles both text relocation (M) and mutex (P)
  linker restrictions
* mediaserver - Needs text relocations
* mm-qcamera-daemon - Needs both text relocations and mutex restrictions
  relaxed

Change-Id: I97a79fb57aaadf5cf62894489522b2de6d8c2e36
2018-09-22 10:04:36 -06:00
Kevin F. Haggerty
e0733f9f48
klte-common: Commonize camera packages and manifest entries
Change-Id: Ie8b564606e5c8e99d76bcc73d8fa020001b75337
2018-09-15 12:02:15 -06:00
Kevin F. Haggerty
bb32b1c672
klte-common: Remove irrelevant BOARD_HAVE_NEW_QCOM_CSDCLIENT flag
* This only exists in audio-caf/msm8960. It's not for us.

Change-Id: I5ddbbb6b45f42bd485ddb09619e918c74fb82369
2018-09-07 13:18:00 -06:00
Kevin F. Haggerty
89f2e08531 klte-common: Drop libshim_cutils_atomic
* We have included the appropriate android_atomic methods in libril,
  so the symbols are loaded into the process space and the libsec-ril*
  dependencies for all builds are handled.

Change-Id: I93289af789df7e263488e1db29bdbde0d0964e97
2018-06-15 15:12:48 -06:00
Kevin F. Haggerty
f3442d4a1b klte-common: Rework shims
* Recent binder changes caused our approach of shimming libcutils to
  re-add the non-inlined android_atomic* methods to start getting
  slapped, at least with NDK apps. This looks oddly similar to the
  heads-up we received in 7.0, so no clue why it let us do it in 8.*
  prior to now.
* See: https://developer.android.com/about/versions/nougat/android-7.0-changes#ndk
* We did this because all of the libsec-ril* blobs and libuiblur
  needed it and doing each and every libsec-ril seemed fragile and
  fraught with the potential for error, but "fragile and fraught with
  the potential for error" is better than "phone breaking". And blur
  doesn't seem to ever be coming back.
* We'll leave the "standard" libsec-ril.so here and let the
  individual devices handle anything specific if they have variant-
  specific blobs

Change-Id: Ib11048e4924f34ade20f44b707f0106e139f2f82
2018-06-14 06:28:11 -06:00
Kevin F. Haggerty
12e09aa4d8 Revert "klte-common: Enable legacy mediaserver"
This reverts commit aee12a34df.

* No Samsung msm8974 device is going to develop an OSS camera HAL
  at this point. Move this common stuff to msm8974-common.

Change-Id: Ib0bb18fe819e2ebbb39c9b278ccf687444f65488
2018-04-23 22:37:03 -06:00
Paul Keith
aadb44c0dc klte-common: Use sdfat for exfat and vfat
Change-Id: I660c5b3008636a651a2812fe1739ff8a2ea845cb
2018-03-28 14:06:25 -06:00
Michael Bestas
31947756a3 klte-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-27 21:44:24 -06:00
Kevin F. Haggerty
30d27eb628 Revert "klte-common: Enable legacy f_adb interface support"
This reverts commit 2a20e4cfc5.

* blek fixed it

Change-Id: Id40a86d92d17b9fd2a5f5cf1f590038616b8b343
2018-02-28 21:21:52 -07:00
Paul Keith
435b4ae064 klte-common: Update kernel exfat flag
Change-Id: Ic182471b28ec91340b13cdc6cad64a64772f4641
2018-02-24 14:43:48 +00:00
Paul Keith
c8d45dba1c klte-common: Transition to TARGET_LD_SHIM_LIBS
* Limits security exposure from shims

Change-Id: I877192422062f3e59c81a7130ad1a2b4be5d1647
2018-02-16 16:44:53 +01:00
Kevin F. Haggerty
98a8598e79 Revert "klte-common: Add AID_QCOM_DIAG, AID_RFS, and AID_RFS_SHARED to config.fs"
This reverts commit c4a708a54f.

* Move this to msm8974-common

Change-Id: I43c92dfad3ba55b344572afaed5c1dbeca5969c1
2018-01-26 06:29:43 -07:00
Kevin F. Haggerty
d2dd4bd21e Revert "klte-common: Use 64-bit binder API"
This reverts commit aae26bb6aa.

* Moving this to msm8974-common

Change-Id: Iae09793d796e96d4724d10dace0eca819b3e3d81
2018-01-20 06:46:35 +00:00
Kevin F. Haggerty
5045387dec [DO NOT MERGE] klte-common: sepolicy: Rewrite for O
* WIP
* KILL that sepolicy/old/ before merging
* KILL the dontaudits before merging

Change-Id: I6694567fa1c834b262941b9be362c96cbd16625e
2018-01-19 16:07:35 -07:00
Paul Keith
31509201c1 klte-common: HAXX: "Fix" race condition in init
* In particular, the RIL on CDMA variants seems to only work reliably
  on first boot after flash, when things are all slowed down while
  dexopting. After that first boot, it's hit and miss whether a
  particular boot will have function RIL
* Slow things down by limiting ourselves to a single CPU on boot,
  bringing the rest online when boot has completed

Change-Id: Ie194740cf0487268dc0dbd3377bbb790cdd1b04d
2018-01-19 16:07:35 -07:00
Kevin F. Haggerty
a4695ab180 Revert "klte-common: Add bootdevice to kernel cmdline"
This reverts commit 6daa361afe.

* We're out of cmdline space and we don't even make use of the symlink
  that this used to automatically create.
* If we ever want to use the bootdevice symlink, just create it
  explicitly (without prop) in init.qcom.rc

Change-Id: I1c45c3ed3605f4020d824be2775639c04ba8b60d
2018-01-16 00:21:55 -07:00
Kevin F. Haggerty
6a8a736148 klte-common: Move common things to msm8974-common
* All of these are/can/will be shared by this, hlte, lt03lte for
  O and beyond

Change-Id: I096948538dcf14d6070bb6cc2102e7b7586fd0c7
2017-12-29 14:45:54 -07:00
Kevin F. Haggerty
86e804dce2 klte-common: Migrate to COMMON_PATH
* Replace the LOCAL_PATH instances with a variable not prone to
  getting stomped
* Replace all expanded values with the variable

Change-Id: I91ef536c038fb38d250633bfdad82c2a6537c1da
2017-12-28 20:19:20 -07:00
Ritesh Harjani
c4a708a54f klte-common: Add AID_QCOM_DIAG, AID_RFS, and AID_RFS_SHARED to config.fs
Change-Id: I9da576900ed29a2633bb997dbbea4565b489a418
2017-12-26 21:02:59 -07:00
Kevin F. Haggerty
992851037e klte-common: Move partition sizes to -common
* All of the variants are close enough to each other that
  carrying these in the device-specific trees doesn't
  add much.
* Sizes picked by selecting the smallest value from each
  of the device-specific trees for each variable.

Change-Id: Ibe024ec857db971ff1522d05cf55e8492816b7ec
2017-12-26 16:35:48 -07:00
Rashed Abdel-Tawab
f0a4e31300 klte-common: Update for early-mounted system partition
* This removes /system entry from fstab, since this partition
   is now early-mounted and the fstab entry is specified in device tree.

 * At the same time, also include a fully populated fstab, in order to avoid
   build breakage while generating recovery updater scripts.

Change-Id: I8e558458b984e97a45a920c3751a6b7c3f2ebc5c
2017-12-26 14:24:56 -07:00
Kevin F. Haggerty
0ccdd170ac klte-common: cmhw: Kill local addition to BOARD_HARDWARE_CLASS
* cmhw is dead, but we don't actually carry any local classes. Just
  stop appending to the variable altogether

Change-Id: I075ad79ed99b0b85a21af594db0036136c984542
2017-12-26 14:20:52 -07:00
Bruno Martins
ad1b0c1098 klte-common: Add compatiblity matrix
Change-Id: Ibf6053f1a7e9df5384664379772cb8757e897622
2017-12-26 13:45:45 -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
Kevin F. Haggerty
1d8a6bce95 klte-common: Convert system_prop.mk to property file
Change-Id: Iea7a502eb0ddfa619b314800aa3c386e18c88928
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
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
Rashed Abdel-Tawab
e43a08af7a klte-common: Add empty HIDL manifest
Change-Id: I2fcd62b1dd6cbe292d89cf97085c9549bf69ba24
2017-11-04 12:58:38 -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
bf67c969ca klte-common: Use kernel exfat
Change-Id: Ifbd2df2abbbfbb0909fd5c5441732072c1e27603
2017-09-23 00:25:22 -06: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
4f9d6d77c2 klte-common: Start using android_kernel_samsung_msm8974
Change-Id: I49fc5183b303e679cc1be6bdde65393c31ed3bf8
2017-08-25 22:07:02 -06:00
Kevin F. Haggerty
d8ff0658d0 klte-common: Add support for TWRP
* To build:
  * Clone https://github.com/LineageOS/android_external_busybox
    to external/busybox
  * Clone https://github.com/omnirom/android_bootable_recovery/
    to bootable/recovery-twrp
  * WITH_TWRP=true mka recoveryimage

Change-Id: I2dc2138dedc66042834a104a37da9496e708c1d8
2017-03-22 02:49:07 +00:00
OzzysCmAcc
5ea0290d08 klte-common: Move WiFi NVRAM paths to our own macloader header
Change-Id: Ia6af356646aed9a9df0eff3dac3397b65c815e0d
2017-02-17 10:12:11 +01:00
Kevin F. Haggerty
da60e64b2e klte-common: Quiet "KERNEL IS NOT SEANDROID ENFORCING" boot message
Change-Id: Ic26c2d15f9e4b95c2cf006b222a0e0018a20258a
2017-02-03 15:47:32 -07:00
Paul Keith
0c4712a18b klte-common: Remove vsync phase offsets
* Moved up to msm87974-common

Change-Id: I973290eafccdf40d47fbff09910eb18019ecd1b4
Signed-off-by: Paul Keith <javelinanddart@gmail.com>
2016-12-14 13:22:43 -06:00
Paul Keith
34292a9303 klte-common: Override consumerir header
* Board flag is deprecated

Change-Id: I3e1d685ec76a4221027a84d65fc70c998da62e1f
Signed-off-by: Paul Keith <javelinanddart@gmail.com>
2016-12-14 11:19:53 -06:00
Paul Keith
9e288a3114 liblights: Remove device level HAL
* This is in hardware/samsung now

Change-Id: I07d5bfef3a5af6cfc791e7b2f9b0adc9bc479be2
Signed-off-by: Paul Keith <javelinanddart@gmail.com>
2016-12-04 09:05:31 -08:00
Paul Keith
2aec4a1a02 klte-common: Build consumerir
* No more evil nasty blobs

Change-Id: Id9e6cad5fc7f759113d994f7d40b2227a3f82016
Signed-off-by: Paul Keith <javelinanddart@gmail.com>
2016-11-21 07:21:01 -06:00
Kevin F. Haggerty
2b078a3fde klte-common: Engage the SDCLANG
Change-Id: I18a3ea966d7cfda0943d5b0114d30deba3a267e6
2016-11-08 16:39:01 -07:00
Zhao Wei Liew
aee12a34df klte-common: Enable legacy mediaserver
Change-Id: I4881ce7a0342b0dc9a9c50d6870f1b072b45af82
2016-11-07 05:28:46 -07:00
Paul Keith
668eba32f5 klte-common: Add vsync phase offset
* Kanged values from hammerhead
* Reference:
  http://stackoverflow.com/questions/27947848/understanding-necessity-of-android-vsync-signals

Change-Id: I7c6e7998b4c0d7b593c9d36318624cdc506aac74
Signed-off-by: Paul Keith <javelinanddart@gmail.com>
2016-11-03 18:15:24 -07:00