Commit Graph

513 Commits

Author SHA1 Message Date
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 c2173e97ca klte-common: proprietary-files: Pin hexed sensors.msm8974.so
* The 4 bytes at 0x76c8 were edited to 00 00 00 00 (NOP) to cancel the
  call to __android_log_print, eliminating LightSensor logspam, when the
  sensor registers 0 lux
* Inspiration taken from k3gxx

Change-Id: I4bb25b1e6818e74e4a5eab18215e870d0b7f9c0f
2017-08-25 22:05:57 -06:00
Kevin F. Haggerty e9c0171983 klte-common: Use the OSS GPS HAL
* Use bacon's GPS blob stack
* Build the package
* Drop our custom gps.h

Change-Id: Ib781b06310a4b11a5e69fe759549a89ce65fb1c8
2017-08-14 05:37:56 -06:00
Kevin F. Haggerty 94204fcfc6 klte-common: Import OSS GPS HAL
* KANGed from oneplus/bacon at 828ecdcd9d9716681f38fd96af3ac6b3b9a0126b

Change-Id: If20523e4268fee9cda5f15ce7e359090bb3a9a21
2017-08-13 15:57:00 -06:00
Kevin F. Haggerty c3cbdaeaf3 klte-common: Move QC Framework blobs to -common
Change-Id: I5a595fed62940bd39038ccab3b5813610038c38c
2017-08-13 15:57:00 -06:00
Kevin F. Haggerty cac2b65c70 klte-common: media_profiles: Actually let h264 encode 2160p
* Values verified against stock dump

Change-Id: I49726325a2e8deb6d60974fd132bb1e32329afc6
2017-08-02 17:33:25 -06:00
Andrea Arcangeli a984faaba1 klte-common: fingerprint: fix missing sensor_init()
vcs_stop_auth_session() was called invoking qseecom securefp app without
first calling sensor_init(). That crashes soft-reboot.

Add some more other robustness too and close the fd.

Change-Id: I586139f52d3dc841b8960e1de8c50d596e98d210
2017-07-26 18:15:00 -06:00
Kevin F. Haggerty 3ec82b7254 klte-common: proprietary-files: Update Adreno blobs
* LA.BF.1.1.3_rb1.12 from OnePlus onyx OxygenOS 3.1.4
* OnePlus Package Version: OnePlusXOxygen_14_201611071506

Change-Id: I4a286eb7f7e7eef12c82fef10ca54e4a5554e189
2017-07-15 16:35:35 -06:00
Bruno Martins 0dd0f42631 klte-common: Grant rmt_storage proper unix perms
Do not grant DAC override permission which would allow this daemon
unix permissions to everything.

avc: denied { dac_override } for pid=2664 comm="rmt_storage" capability=1 scontext=u:r:rmt_storage:s0 tcontext=u:r:rmt_storage:s0 tclass=capability permissive=0

Add wakelock group to access:
/sys/power/wake_lock
-rw-rw----  1 radio  wakelock 4096 2017-06-28 00:37 wake_unlock

Change-Id: Ib02b4aedab479f5ad8aca3a2100b5c489397002a
2017-06-29 08:48:53 +00:00
Kevin F. Haggerty 48083594ee klte-common: proprietary-files: General housekeeping
* Update primary blob source note
* Describe where pinned blobs come from
* Copy, don't pin, the alternative BT blobs. This will make it more
  clear that something should be fixed if BT firmware actually gets
  updated in the future

Change-Id: Ice23b6135c84256848ef6d58d880d32b07969e33
2017-06-23 13:57:32 -06:00
Patrick Lower ade8f08978 klte-common: Force SCO WBS samplerate to 8kHz
* Fixes voice calls in car

Change-Id: I61e8ecab7342b32404871db8b45ba0a0a36b92c8
2017-06-23 17:05:55 +02:00
Kevin F. Haggerty 33247487a3 klte-common: Update package version note in proprietary files list
Change-Id: I77aae401bf494562f7c5868e9a001f8e6ebf35d0
2017-06-20 04:54:16 -06:00
Martin Hoffmann 25f75c05d4 klte-common: bluetooth: Enable WBS
BUGBASH-308

Change-Id: I2ce1c0706f38559ab80370cf414234b85bf9d850
2017-06-20 02:44:54 -06:00
Gabriele M a4fd548352 KlteRIL: Handle RIL_UNSOL_NITZ_TIME_RECEIVED
* This fixes auto time zone
* This is related to how it was handled in the
  old SamsungQualcommRIL class (deprecated) but
  the Parcel is fixed rather than handling it
  directly in the RIL subclass
* This is done because after we handle it,
  it's still handled by processUnsolicited
  in the super class, which undoes our changes
* The extra "garbage" that is sent in the
  RIL_UNSOL_NITZ_TIME_RECEIVED parcel seems
  to be country MCC code for whatever reason

Change-Id: I70982873e6304d81794bdd03eb8d9a1c1d3f3a55
2017-06-13 07:36:32 -05:00
jrior001 02f25ecebc klte-common: adapt to FlipFlap overlay changes
Change-Id: I9bba4335b0d02d8a6abd5cdba6dc912a241d0fea
2017-05-30 02:15:42 +00:00
Kevin F. Haggerty f523c22fa9 klte-common: Kill Gello
Change-Id: I18b9f2fbac6835c5bc40d5b5ceb69fcafffa035e
Signed-off-by: Kevin F. Haggerty <haggertk@lineageos.org>
2017-05-12 19:59:40 -07:00
Kevin F. Haggerty 0940aac26a klte-common: Restore ownership/perms of bcm2079x dev node
* Commit 722ab7ae6d inadvertently
  removed the entry in ueventd.qcom.rc that sets ownership and
  permissions for the NFC device node used in kltedv and kltespr
  devices

Change-Id: Iae2758603b9cb91aa011e105b0d964561d9e362d
2017-04-25 00:45:15 -06:00
Kevin F. Haggerty acef8ae01f klte-common: Update package version note in proprietary files list
Change-Id: I0fe4346ea0623c7e42578a9e1218f49b25bcf56d
2017-04-01 11:27:59 -06:00
Kevin F. Haggerty 167e45f1c0 klte-common: releasetools: Move variant ident logic to hook
* Reverse dependencies are bad, ummkay?

Change-Id: I4a1e576cecec84b4997582208ca218bb279fe937
2017-03-25 14:59:52 +00:00
OzzysCmAcc d6b31929f5 klte-common: fix init denial
*denial is caused by rild update from m package

Change-Id: I42f6ac07d48e6bea17e44a88f379fb6647fb27b8
2017-03-25 11:15:55 +00:00
OzzysCmAcc 722ab7ae6d klte-common: cleanup init files
Change-Id: I11ca4869c0d449f1efa6cd9eb76d9c5b5a53739e
2017-03-25 11:15:17 +00:00
OzzysCmAcc e562c96ae6 klte-common: updates from m package CQBW
Change-Id: I80cc2729517d63986c98a00eafb901b8eda59fb6
2017-03-23 18:17:45 +01:00
OzzysCmAcc 8faa168986 klte-common: remove duplicates
*also use same format like all other mods

Change-Id: I65bb985e00a64a3113c2aed968317cad99c6bf24
2017-03-23 18:17:35 +01:00
OzzysCmAcc 82383f6e2f klte-common: remove modifications for not existing files
Change-Id: Iea45daaf3ae4381bff75733531e041093918cedb
2017-03-23 18:17:27 +01: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
Kevin F. Haggerty b7ad52fa70 klte-common: proprietary-files: Update Widevine blob list
* Pinned to Samsung Package Version G920FXXU5EQBA_G920FOJV5EQBB_XSG

Change-Id: I45267d09869e9d2a45ad6f0db482ff446389e3bd
2017-03-19 20:50:02 +00:00
Kevin F. Haggerty e5968e6e79 klte-common: fw/b overlay: Change GPS capabilities bitmask
* Disable MSB. Quicker and stronger lock. Winning.
* All regions/carriers are now (GEOFENCE|ON_DEMAND_TIME|SCHEDULING)
* CDMA carriers were already set to this value

Change-Id: I2b060a11795a97889e96b3d7de26b0ed28392841
2017-03-15 13:09:58 +00:00
Kevin F. Haggerty 807302aa7f klte-common: extract-files: Loop through device blob lists
* This really should have been in the last commit...

Change-Id: I48961062e3aee7119e1ea0f8a52219d6465d3772
2017-03-12 09:25:58 -06:00
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