Commit graph

761 commits

Author SHA1 Message Date
Kevin F. Haggerty
75e1e132b1 s3ve3g-common: Commonize camera packages and manifest entries
Change-Id: Ie8b564606e5c8e99d76bcc73d8fa020001b75337
2019-10-11 09:09:04 +02:00
Lucas Dupin
6caeef06f1 s3ve3g-common: Renamed config_dozeAfterScreenOff
New name is config_dozeAfterScreenOffByDefault
Bug: 73178121

Change-Id: Ie3d1ea5a2cc480655592bf6e49b37f5ea07f3f58
2019-10-11 09:09:04 +02:00
Bruno Martins
934cb67f14 s3ve3g-common: Update prefixes for audio system properties
* All vendor-specific properties are required to have vendor prefixes

Change-Id: I562639e93b8eca4914473575c13da958224181f8
2019-10-11 09:09:04 +02:00
pythonlimited
d207e44246 s3ve3g-common: sepolicy: use correct input devices regex 2019-10-11 09:09:04 +02:00
PythonLimited
339ab61225 s3ve3g-common: use correct paths for power_ext 2019-10-11 09:09:04 +02:00
PythonLimited
3e9160e4e1 s3ve3g-common: drop debug properties
this gets enabled once you build eng flavours.
On userdebug builds this leads to init starting the console service which crashes and drains battery due to high cpu usage.
2019-10-11 09:09:04 +02:00
Francescodario Cuzzocrea
78289922e5 s3ve3g-common: remove duplicated ro.bluetooth.hfp.ver
* Also set version to 1.7 according to what is found in stock rom
2019-10-11 09:09:04 +02:00
Francescodario Cuzzocrea
4361b53988 s3ve3g-common: remove troublesome audio props 2019-10-11 09:09:04 +02:00
pythonlimited
d429a7d0f5 s3ve3g-common: update media configuration from klte 2019-10-11 09:09:04 +02:00
pythonlimited
2e75d57fdd s3ve3g-common: update system propterties from g800h 2019-10-11 09:09:04 +02:00
Francescodario Cuzzocrea
7d50f4fbfa [SQUASH]: s3ve3g-common: initial bringup of s3ve3g-common repo from klte-common base
* Rename klte-common -> s3ve3g-common
 * Drop fingerprint related blobs
 * Drop camera shim, we do not need it
 * Drop CameraWrapper to msm8226-common, as all msm8226 devices uses it
 * Drop broadcom NFC
 * Add buildable libpn547_fw.c, libpn547_fw_pku.c, libpn547_fw_platform.c dumped from stock S III Neo sources
 * Update audio configs with stock S III Neo ones
 * Update power_ext for S III Neo
 * Drop broadcom WIFI for Qualcomm WIFI as we got a Qualcomm WIFI chip
 * Drop broadcom bluetooth as we goot a Qualcomm bluetooth chip
 * Update partitions for S III Neo
 * Update rootdir for S III Neo
 * Update overlay for S III Neo
 * Update liblights path for S III Neo
 * Update deviceperms for S III Neo
 * Drop consumerir as we do not got an IR blaster
 * Update TWRP files for S III Neo
2019-10-11 09:07:33 +02:00
Kevin F. Haggerty
91c93931d9
klte-common: proprietary-files: Rename muratafem1 wifi files
* Per the kernel, bare murata isn't a thing for BCM4354, but that's
  what macloader parses the OUIs as being. It's much easier to make
  the label match than to further complicate macloader.

Change-Id: I3474e610a0d38873b0274ccb24b24733047929d0
2019-02-08 21:59:03 -07:00
Kevin F. Haggerty
ae5d0de820
klte-common: proprietary-files: Correct BT FW filename
* semcove->semco3rd
* This is actually a "fake" blob, a copy of the un-labeled vesion,
  as are all except for wisol. These are needed because wisol is
  different and the picker will default to the last stat-ed file.
* Broadcom libbt-vendor was previously coded to look for a semcove,
  but that wasn't a value that macloader would write to
  /data/.cid.info
* This creates a file that aligns to the new Broadcom libbt-vendor
  code.
* Eliminate the src:dst syntax, since these are pinned anyway.

Change-Id: I6f5381ad19174b7aa074eae0ab0db41730b3d7d7
2019-02-08 20:26:07 -07:00
Kevin F. Haggerty
7c47b559fb
klte-common: Move change of ownership of ES705 UART later
* Samsung loads the firmware through the front door. Pie init
  runs faster than previously, so we need to wait to change
  the ownership until some point later, after the firmware has
  time to load, else the load gets blocked by a dac_override.

[haggertk: 15.1 backport - I noticed this now happening here too]

Change-Id: I37be9e22b49735388ce1f5b922132dbfd20e2dc3
2018-12-27 21:29:36 -07:00
Cal Archer
36fb5d9d18 fix USB audio support
fw/b changes in Oreo cause some USB audio devices
which were previously recognized as AUDIO_DEVICE_OUT_USB_DEVICE
or AUDIO_DEVICE_OUT_USB_ACCESSORY now to be recognized as
AUDIO_DEVICE_OUT_USB_HEADSET (0x4000000), causing this error:

AudioPolicyManagerCustom: setDeviceConnectionState() could not find HW module for device 04000000

BUGBASH-2398

Change-Id: If1f6c760e28a2daeb3855c86fc561c7e5e85f0bf
2018-10-17 10:55:19 +02:00
Kevin F. Haggerty
630ee7fda6
klte-common: proprietary-files: Update source package note
* G900FXXU1CRH1_G900FOXA1CRH1_BTU

Change-Id: I0748584777ce61a4a10566d372dc6b6498ef6bb7
2018-09-19 22:36:44 -06:00
Kevin F. Haggerty
452e013f50 klte-common: Use TARGET_COPY_OUT_VENDOR instead of explicit path
Change-Id: I5835a05b7f357cfe666090907a1a4a89781a68dc
2018-08-20 06:33:17 -06:00
T H
8a4570cb82 klte-common: Use sensors MultiHAL
Change-Id: I527e72e2e0419931ba21137826774f5b65299f92
2018-08-04 02:08:10 +02:00
Danny Baumann
ed5ede4467 klte-common: Update call recording overlay.
Change-Id: I3428fa6e47318b195a8dc46731e0aabc14a9a8e7
2018-07-23 19:53:45 -06:00
Kevin F. Haggerty
67f1192cd0 klte-common: Remove hwui properties
Change-Id: Id5f75dd39c0d385f30e6e8efe7dbe92ad017a688
2018-06-28 15:32:59 +02:00
Paul Keith
dd53dc40b1 klte-common: Add support for klteactivexx
Change-Id: I2414653ab03dc45209dc4908166bc4c9d7de0e4d
2018-06-27 16:20:37 +02:00
Paul Keith
005ba34fb8 klte-common: Reorder tetherable connection types
* In O, the default setting for mobile data always active was
  changed from off to on, meaning that when non-WiFi tethering
  is being attempted, more than one connection can be active
* Since the first active connection type in this overlay is used,
  reorder the values to get WiFi connections first, and then
  any type of mobile data connection, instead of vice versa

Change-Id: I41f31ba1a2793e209ff439c9ba28a390fecdeecb
2018-06-23 08:49:32 -06:00
Nolen Johnson
873171b878 klte-common: Define Vendor security patch level
* This is needed for Trust, as we don't have a Vendor image that sets a
  valid vendor security patch level.

* Taken from the G900FXXU1CRA2_G900FOXA1CRA2_BTU Factory Image.

Change-Id: I105cc7e464e581683c6784e3aef8f7297b90aea0
2018-06-23 07:15:41 -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
Paul Keith
4cab6270ec klte-common: Stop abusing global contexts for fingerprint
* vcs_device is used to label /dev/vcs*, which are virtual consoles
* Create and use our own label for /dev/vfsspi so our fingerprint
  hal can access it, and rename vcs_data_file while we're at it

Change-Id: I01f0e8c4924d3847383319ce59dbbf802f89a36b
2018-05-15 14:02:21 +02: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
d6249aa5b2 klte-common: Use passthrough manifest for all NFC chips
* And make a common nfc board stub while we're at it

Change-Id: I4ef9c69ebbff539924ba4dc10c8035521dbf5424
2018-04-11 01:44:00 +02: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
Cal Archer
d091dbd3db klte-common: camera: add video HDR, phase-af and DRC
Note video HDR setting in Snap is only available
in Snap advanced settings at the very bottom of the menu.

Change-Id: Ia2d907aa5b20be6134bc3594684a423cf199f925
2018-03-05 21:23:23 -07:00
Cal Archer
4c4b746349 klte-common: fix camera ISO setting in Snap
Change-Id: I95ee3e06078ea1910d6bc11d9269313d43d59cdb
2018-03-05 21:23:23 -07:00
Cal Archer
8b8ab824ca klte-common: fix camera hal shim
* fixes binary garbage in CameraParams
* fixes HDR

Change-Id: Ia33924414b3616682c6eeab6b732ee55df8bb2ce
2018-03-05 21:23:23 -07:00
Kevin F. Haggerty
9d1c38d6ab klte-common: sepolicy: Label sysfs nodes for power HAL
Change-Id: I0fa2297ebb219421ad59a49836b9a39ece0843af
2018-03-01 04:42:08 +00: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
74f7c031d8 klte-common: Set proper permissions for mDNIe nodes
Change-Id: Ib5d2825bb50c90b6743157bd624e7156c6d5ad01
2018-02-22 20:13:06 -07: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
9da1285c16 klte-common: init: restorecon .wifiver.info on boot
* We're messing with ownership and permissions here, so let's go
  ahead and fix the context of this near worthless thing.
* The kernel will create it, we also write it here which will create
  if it doesn't exist, so this is more manageable than chasing the
  type_transition path
* The file is already labeled as a wifi_data_file, so fix this to
  eliminate the below denial

avc: denied { read } for name=".wifiver.info" dev="mmcblk0p26"
  ino=12 scontext=u:r:hal_wifi_default:s0
  tcontext=u:object_r:system_data_file:s0 tclass=file permissive=0

Change-Id: Ie736b68f7d4d8559237b5cce072c6bf26f7ac4e7
2018-02-16 07:21:09 -07:00
Kevin F. Haggerty
01ebfad97a klte-common: sepolicy: Allow FP HAL more privs for vcs_data_file
avc: denied { read } for name="validity" dev="mmcblk0p26"
  ino=219889 scontext=u:r:hal_fingerprint_default:s0
  tcontext=u:object_r:vcs_data_file:s0 tclass=dir permissive=0
avc: denied { write } for name="validity" dev="mmcblk0p26"
  ino=219889 scontext=u:r:hal_fingerprint_default:s0
  tcontext=u:object_r:vcs_data_file:s0 tclass=dir permissive=0
avc: denied { create } for name="finger.db"
  scontext=u:r:hal_fingerprint_default:s0
  tcontext=u:object_r:vcs_data_file:s0 tclass=file permissive=0

Change-Id: I2e0caa8b3763b8cdcd19b40d174f1a8fc3dc332e
2018-02-15 21:45:17 -07:00
Kevin F. Haggerty
61eedfac83 klte-common: sepolicy: Allow tee more privs for vcs_data_file
avc: denied { add_name } for name="5dsokxEEDXgQhkN50bp-Z2K5InM_"
  scontext=u:r:tee:s0 tcontext=u:object_r:vcs_data_file:s0 tclass=dir
  permissive=0
avc: denied { create } for name="5dsokxEEDXgQhkN50bp-Z2K5InM_"
  scontext=u:r:tee:s0 tcontext=u:object_r:vcs_data_file:s0 tclass=dir
  permissive=0
avc: denied { write } for name="validity" dev="mmcblk0p26" ino=81441
  scontext=u:r:tee:s0 tcontext=u:object_r:vcs_data_file:s0 tclass=dir
  permissive=0
avc: denied { create } for name="AdVIudLPitjpV7ZB04m7UvhkKdg_"
  scontext=u:r:tee:s0 tcontext=u:object_r:vcs_data_file:s0 tclass=file
  permissive=0

Change-Id: I4798dd5cff58b7948222124b6879d8303c36af27
2018-02-15 21:44:53 -07:00
Kevin F. Haggerty
b4fa870ac0 klte-common: Move acdbdata files to vendor/etc/acdbdata
* Updated libacdbloader.so kanged from hlte-common

Change-Id: I6fbe98759b94be483d26d9f1b353e3ea9bbe176a
2018-02-12 06:35:08 -07:00
Kevin F. Haggerty
3f95d688fb klte-common: proprietary-files: Update source package note
* G900FXXU1CRA2_G900FOXA1CRA2_BTU

Change-Id: Idb93067673aa1861db44125b9953be0312a0101e
2018-02-10 17:40:02 +00:00
Paul Keith
4f9a109870 Revert "klte-common: Set TARGET_BOOTANIMATION_HALF_RES to true"
* Moved up to msm8974-common

This reverts commit 458617d999.

Change-Id: I88a23580a482eba2b56e88caca8b0d954a20903b
2018-02-10 17:01:57 +01:00
Kevin F. Haggerty
817309ffc5 klte-common: bluetooth: Sort vnd_hlte.txt alphabetically
* For great sanity

Change-Id: I27ff1355e6bf668200d98bee09d0ad85631e6330
2018-02-09 10:55:41 -07:00
Paul Keith
c453c83a25 klte-common: Update ril.h to be inline with msm8974-common
Change-Id: I736f34d0acd1428bb7a78417c4c35bf5bccc5cec
2018-02-08 03:57:56 +01:00
Kevin F. Haggerty
8153e77961 klte-common: Drop libril
* We're going to use the shared version from msm8974-common now

Change-Id: Ie4e6336209a5fb6881cd52807082ea2acffd1c8c
2018-02-05 21:30:06 -07:00
Kevin F. Haggerty
b056056922 klte-common: power: Add legacy qcom HAL compat code
* msm8974-common may end up going back and forth between legacy
  and HIDL HALs, so let's be compatible with both for the time
  being.

Change-Id: I5067fc474d7878a0f68e25c70b723de0e813d7c1
2018-02-06 00:33:30 +00:00
Kevin F. Haggerty
96de9ccf0d klte-common: sepolicy: Move common items to msm8974-common
* The bulk of this policy isn't specific to klte, so let's move
  it somewhere that allows the maintenace of it to help other
  impacted devices.

Change-Id: I57b0d24d25e5871c5aa69d415b94ca21f89c1794
2018-02-03 15:15:57 -07:00
Michael Bestas
16c0928bde klte-common: Move permissions to vendor
Change-Id: Idf4022e03ba376f7971d02be973444e70dbc4521
2018-02-03 15:15:57 -07:00