Commit Graph

635 Commits

Author SHA1 Message Date
Kevin F. Haggerty 815710a224 klte-common: setup-makefiles: Loop through device blob lists
* Allow splitting of blob list into multiple to better manage
  situations like klte which has multiple variant blob sets.

Change-Id: I74f2d0c3a414ba6c250ef9dbee3218db07fc51c2
2017-03-12 08:58:20 -06:00
Kevin F. Haggerty a27086acba klte-common: Add releasetools extension to install variant blobs
* General idea shamelessly kanged from m8
* Copy instead of symlink because we need the libril shim and doing
  that for each variant is non-scaleable
* Will only be used if explicitly called-for by dependent devices

Change-Id: I15b4b25d3e1b8856a9f8df2f2c6b72c0e55a6d66
2017-03-11 18:39:55 +00:00
Kevin F. Haggerty 020350a1f3 klte-common: sepolicy: Add file_contexts entries for variant blobs
Change-Id: I7d93e2d8e1fda33065fa0063062c7c441a2b73bf
2017-03-11 18:39:33 +00:00
OzzysCmAcc 56e35ca852 klte-common: kang brightness overlays from bacon
Change-Id: I55f2113bf346e109359881a062a0af26dc3c80e4
2017-03-04 20:23:27 +00:00
Kevin F. Haggerty b539b7f340 klte-common: Add informational note to proprietary files list
* Let everyone know which revision of blobs we expect to build against
* Now to remember to maintain it...

Change-Id: I9820a828d07b978349731b2bc28e890e996ad170
2017-03-04 16:34:08 +00:00
OzzysCmAcc e347df7643 klte-common: make swap working as it should
* init: write_file: Unable to write to 'proc/sys/vm/swappiness':
Invalid argument

Change-Id: I05fc36074646ed23acb89d3089870aaedcce07b9
2017-02-26 17:28:25 +00:00
OzzysCmAcc 1a6fed40cd klte-common: no need to fail enabling all cpu
*[  147.362325] init: write_file: Unable to write to '/sys/devices/syste
m/cpu/cpu1/online': Invalid argument
 [  147.362380] init: write_file: Unable to write to '/sys/devices/syste
 m/cpu/cpu2/online': Invalid argument
 [  147.362436] init: write_file: Unable to write to '/sys/devices/syste
 m/cpu/cpu3/online': Invalid argument

Change-Id: I9e597d32cbd29ccb2845b4859e5e19a48582ac25
2017-02-26 15:26:05 +00:00
OzzysCmAcc 8f7265e77a klte-common: move ril prop to system_prop
Change-Id: I74599eeaede5461438b1a3c56429fd45b36ef65f
2017-02-26 10:14:50 +01:00
Kevin F. Haggerty aa966f2656 klte-common: liblights: Add new brightness tuneables
Change-Id: Id021c6f8ad7b21704b440f8a5f21d63b4388769a
2017-02-24 19:12:10 +00:00
Kevin F. Haggerty 69b4d3bed0 klte-common: Move to commonized, overlay-based GPS config
* This is one main step toward future consolidating of some klte*
  builds
* Approach taken from Nexus/Pixel devices, values based on
  previously functional variant gps.conf files combined with
  LPP_PROFILE tuning by carrier from marlin

Change-Id: I9a66eb156df69340d35c139d20f835fa8693a716
2017-02-20 05:31:08 -07: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 22ad6f2b18 klte-common: Squahed revert of shared driver repository
* Revert "klte-common: Fix vendor/qcom blob extraction/makefiles"

  This reverts commit 778de2bd68.

* Revert "klte-common: Switch to shared driver repository"

  This reverts commit bf8283252c.

Change-Id: Ic0a8f057d8ef059bf6ccbc2db6f0fa39c08de452
2017-02-16 16:10:11 +00:00
OzzysCmAcc 14c78877a8 klte-common: fix rmt_storage denial
*this fixes no sim card after caf rebase
*avc: denied { dac_override } for pid=314 comm="rmt_storage"
capability=1 scontext=u:r:rmt_storage:s0 tcontext=u:r:rmt_storage:s0
tclass=capability permissive=0

Change-Id: I09ab419bd2fd1fb9ddeb3b8c670df15075a73a51
2017-02-16 13:21:22 +00:00
Kevin F. Haggerty 1fd5d958dc klte-common: Add aptx libraries to proprietary files list
* Samsung paid for the buzzword, so let them eat cake

Change-Id: Ib0acbce98cf296d736e5c87e05ed1cdeeb473e2a
2017-02-15 18:14:49 -07:00
Kevin F. Haggerty e69e367bbb klte-common: Add FlipFlap
Change-Id: Ie7e44e1f317b1c88cbf3a02733c3cd1162e37f27
2017-02-10 15:33:45 -07:00
Kevin F. Haggerty 9ad0c9b223 klte-common: fstab: Assign fota partition for /misc
* This partition doesn't cause the world to die...

Change-Id: I069eef35f586d2da02112c1558701b96e0059551
2017-02-09 22:12:20 -07:00
Kevin Haggerty 6fb8c3ef89 Revert "klte-common: fstab: Assign unused pad partition to /misc"
This reverts commit 92828016a3.

* Do not ever ever ever use this partition for anything, not even if
  someone has a gun to your head. It will cause misery and make
  EVERYONE want to murder someone. And only you will know it is you.
* This was the cause for the "gapps upgrade makes klte unuseable"
  problem.

Change-Id: Ibd69a528a1f3df4d8146472d1dc977676c72bbed
2017-02-05 16:42:01 +00: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
Kevin F. Haggerty 9c5f6f270a klte-common: Pin murata, semco* BT firmware files in blob list
* These branded firmware files don't actually exist in stock images,
  but it is important for libbt performance that they live in the
  builds. Prevent oopses.

Change-Id: I8e8cb62f978e898f4b3ef95938cb6ece6c5b51fa
2017-02-02 12:47:12 +00:00
Gabriele M 778de2bd68 klte-common: Fix vendor/qcom blob extraction/makefiles
Squash of the below two commits

* msm8226-common: Generate graphics vendor Makefile if missing

  This allows to build CM without cloning vendor repos.

  Change-Id: I87777485edc5f29c5899091176e55d28e36bb263

* msm8226-common: Fix blobs extraction with no vendor repos

  Commit bff1cb1def84 ("msm8226-common: Generate graphics vendor
  Makefile if missing") fixed only the generation of the makefiles,
  but it didn't take care of the actual extraction of the blobs.

  Change-Id: Idd38fbff554c0dac4b7cb8a867abb017bf37afc3

Change-Id: I3d6b70c8fdedfb624791fe3281c02df1c190d598
2017-02-01 06:23:24 -07:00
Andreas Schneider 789145442f klte-common: init: Symlink telephony directories instead of files
* Symlinking the files seems to be horrendously brittle. Sometimes
  after a nandroid restore, the OS would helpfully "upgrade" the
  symlink to the new location, causing self-directed symlink for these
  criticial files.
* This actually handles the nandroid restore path.

Change-Id: If53d7ddfb7493df1526b7578be3ccf9a63997234
2017-01-30 15:38:45 -07:00
Phillip Berndt 7dff3c94cb klte-common: Fix HDR mode
This is a follow-up to Ifb15e64b4c351d7195e5ad3f5d5315419790d0f8.
The change fixed a crash upon deactivation of torch mode by removing
code that forecully set or unset Zero Shutter Lag. This change results
in HDR not working anymore, but SEGFAULTing the camera instead. The
commit addressed this by disabling HDR entirely.

The present change reinstates the removed code, but executes it
conditionally only if the camera is not in torch mode. This prevents the
crash upon disabling torch mode and simultaneously leaves HDR in a
working condition.

Torch mode can only be reliably detected when it is activated by checking
whether the requested settings have a "flash-mode" of "torch" set.
Deactivation simply asks to deactivate the flash, which cannot be told
apart from the camera app requesting the same before taking a photo. The
CameraWrapper however stores the current settings, so by checking if
they contain a "flash-mode" of "torch", it is still possible to detect
the mode's deactivation. The only possible problem with this approach
could arise if the camera went directly from torch mode to camera mode
with HDR, but this apparently does not happen.

Change-Id: I71611257868b3bf86041adf7aed931cf92880ddc
2017-01-20 17:29:34 +01:00
Kevin F. Haggerty 5b372192ba klte-common: Re-enable blur
Change-Id: Ic4fda0b7d4bcebd13ace493ce25f3d7b71de97e5
2017-01-19 18:27:31 -07:00
Kevin F. Haggerty 0dd9e67761 klte-common: add fw/b overlay value to specify no permanent menu key
* Autodetection code is not working properly, leading apps (e.g., TI
  Backup) to not present the appropriate menu button/icon
* Credit to XDA user Zoomed for noting the problem and appropriate
  overlay

Change-Id: I62b035f88ad212fdfe0d00ab0473f8b7119c50cb
2017-01-18 18:03:17 -07:00
Kevin F. Haggerty 44fd7b1e96 klte-common: set INITIAL_COPYRIGHT_YEAR in setup-makefiles.sh
Change-Id: I001ff6a5f3ab21ec25159ed462826e9061a48eca
2017-01-16 21:55:19 -07:00
Paul Keith e831cc5130 klte-common: Fix rotation sensor
* Our sensor firmware is weird, and breaks
  when there's a batch size set
* Let's opt-out of setting a batch size in
  order to fix rotation on our devices

Change-Id: I3e930087f989a2b52078872219366ea59f53a6f3
Signed-off-by: Paul Keith <javelinanddart@gmail.com>
2017-01-15 20:48:53 -06:00
Kevin F. Haggerty 2575fdfcf7 klte-common: Fix file contexts related to our telephony symlink mess
Change-Id: I1344b960de72a2b70da9cf6ce1bf947e8b39a71d
2017-01-11 08:12:59 -07:00
OzzysCmAcc 9e2cb1b51d klte-common: restore 2160p profile
Change-Id: Ibdf0bf4bb78b3bfd9b3ba17fda4750ef4005a6b3
2017-01-08 09:28:52 +01:00
OzzysCmAcc 6d642fbf05 klte-common: remove VideoEditor from media_profiles
N does not support parsing VideoEditorCap or ExportVideoProfile

Change-Id: I347a22249f0e9b80efd4ac852143bcfa5461e2b5
2017-01-08 09:23:22 +01:00
OzzysCmAcc 8e29a7edc9 address rild denial
Change-Id: Ia2f37457138d3878021d3c72592e27e694acba49
2017-01-06 12:31:42 +01:00
Kevin F. Haggerty aa0d8bb332 klte-common: Update sap.conf configutation
* Allow INS positioning filter
* Enable sensors usage with GPS

Change-Id: I99942c91a2c556a9b247bdad708e644cafcb29d9
2016-12-27 11:59:04 -07:00
Kevin F. Haggerty 4aacf9f7c8 klte-common: Import GPS-related configutation files into device tree
* These aren't any more proprietary than the audio configuration and
  should be able to be edited as such

Change-Id: I08e3a2c751e680acfda591452a925553c94e57f9
2016-12-27 11:59:03 -07:00
Kevin F. Haggerty c02d46d9d5 klte-common: Add GPS blobs to common-proprietary-files.txt
Change-Id: I42e695b2ee7ae2de4a1f2d025eaaf74f87da2dbb
2016-12-27 10:10:12 -07:00
OzzysCmAcc 13825b4138 klte-common: updates from mm stock CPK1
Change-Id: I93b840ee6ab9053cbafe4808e8efa57d5fb68903
2016-12-24 01:44:05 -08:00
OzzysCmAcc 45cead0eb7 klte-common: address rild denial
*[   12.591018] init: avc:  denied  { set } for property=persist.ril.
radiocapa.tdscdma pid=334 uid=1001 gid=1001 scontext=u:r:rild:s0
tcontext=u:object_r:default_prop:s0 tclass=property_service permissive=1

Change-Id: I106a93dbae498244dce087b35ebe818558db9db5
2016-12-20 22:27:39 -08:00
OzzysCmAcc 5fb6b3295b klte-common: update blob list
Change-Id: I22d81f828033477e3a25c514bf7fe2f978a26e0a
2016-12-20 11:28:16 -08:00
OzzysCmAcc 1315cde569 klte-common: address kernel denial
Change-Id: Ice6ae3ec441bef079c6c9e83498d523c66d57af6
2016-12-20 09:46:24 -08:00
OzzysCmAcc b5b3b195c3 klte-common: address init denial
Change-Id: I156d3ff44fa85eb956127974a7f934a1232f63df
2016-12-20 09:45:49 -08: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
Zhao Wei Liew 06544bfcaa klte-common: Fix max panel brightness path
* The previous path worked only because of
  failsafe methods in the lights HAL.
* Point the define to our actual max brightness path.

Change-Id: Ic80ecaf4f26859a597f4fc29cd6f7143d4daac6a
Signed-off-by: Paul Keith <javelinanddart@gmail.com>
2016-12-14 11:19:15 -06:00
Kevin F. Haggerty 5ea408ae71 klte-common: Add kltekor to makefile guards
Change-Id: If3e0675fde78aa285ba9694a5a1c74d45ba7812a
2016-12-09 20:40:52 -08:00
Kevin F. Haggerty aef5a1c3d2 klte-common: Remove config_enableAutoPowerModes from fw/base overlay
* Enabled globally now

Change-Id: Iac75105a11b9e85af096d8fa8480b3d02449d328
2016-12-09 04:33:18 -07:00
Kevin F. Haggerty 099f6d65ae klte-common: liblights: Define PANEL_MAX_BRIGHTNESS_NODE
Change-Id: I7065d8c8bf023ce9d357fe7702bf5752f342408d
2016-12-09 04:24:11 -07:00
Kevin F. Haggerty d73bd4f052 Revert "klte-common: Add libprotobuf-cpp-full to PRODUCT_PACKAGES"
This reverts commit e3be430481.

* Included globally by https://review.cyanogenmod.org/#/c/174078/

Change-Id: If314e58d202ce13998e17770b2c366b78702fb86
2016-12-08 05:52:09 -07: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
Zhao Wei Liew 373d03d366 klte-common: Switch to the unified LED capabilities overlay
The old overlays have now been removed in favour
of a single unified and extensible overlay.

Change-Id: I56f5bfa2baa7bb9bf546bd5e59cebb74ac71732f
2016-12-03 07:57:14 -08:00
Paul Keith 2727bf94f7 consumerir: Remove device level HAL
* This is in hardware/samsung now

Change-Id: I65f15fe6b29853c90187c0de3cce42ea964d7b9e
Signed-off-by: Paul Keith <javelinanddart@gmail.com>
2016-11-26 11:43:50 -06: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
Christopher N. Hesse fd1a0e28f4 Initial consumer IR HAL commit
* Initially written by crpalmer
* Changes and improvements made by:
 - zwliew: Cleaned up styling
 - javelinanddart: Added configs
   to make hal more universal

Change-Id: Ic835901ba1537e1ae04b772e789cdaf2726d8133
Signed-off-by: Paul Keith <javelinanddart@gmail.com>
2016-11-21 07:20:33 -06:00