Commit Graph

750 Commits

Author SHA1 Message Date
ripee 7ac90b93d6 klte-common: Drop config_lidControlsSleep 2021-11-28 23:02:28 +01:00
ripee d202dd9d5b Revert "klte-common: Add FlipFlap"
This reverts commit e69e367bbb.
2021-11-28 23:02:20 +01:00
ripee a24cc0b65a Revert "klte-common: adapt to FlipFlap overlay changes"
This reverts commit 02f25ecebc.
2021-11-11 07:42:44 -05:00
Kevin F. Haggerty aae79e881e
klte-common: proprietary-files: Update default source note
Change-Id: I50328ed0b62c14d09a1a696af976b6f19808d69b
2020-04-24 06:51:10 -06:00
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 a924001761
klte-common: Transition to consumerir HIDL hal
Change-Id: Ife68fd0ccd65eb16241694bbf911fc6810f7dd80
2020-01-29 20:13:33 -07:00
Kevin F. Haggerty 3ae430dc6e klte-common: Update duos-related Telecomm props
* Our device doesn't behave well with the "new" logic that tracks the audio
  input with the default SIM

Change-Id: I084305b0ac1bdeb9915d2f75cfdeda4ab7fd0244
2019-09-12 03:12:02 +02:00
Sam Mortimer 10e5d4b6e9 klte-common: Remove config_tether_upstream_types
* Made redundant by enabling config_tether_upstream_automatic
  in vendor/lineage

Change-Id: Idd22b0616ae1c8732139085c03f19e6c21c75feb
2019-08-21 17:54:37 +02:00
Nolen Johnson 4568f42b78 klte-common: Remove extraneous seperator
Change-Id: I641fce60768dac0bbd3ce5fa9cf589701ad341f7
2019-08-18 15:25:16 +02:00
Unpublished 3730fb1619
klte-common: Fix namespace errors
messages during build:
device/samsung/klte-common/configs/nfcee_access.xml:9: namespace error : Namespace prefix android for signature on signer is not defined

Change-Id: I7f3a1588b9cf05cb6aff11ccc59d14e75cc6e98e
2019-08-06 21:19:09 -06:00
Joshua Primero ba64a4008a
klte-common: Another Power profile Update for Pie
- missed on this commit: c27f8259a8
- thanks yodevil for pointing this out

Change-Id: Ib9f9832c0ffc4959773053c38e19453be2aded2e
Signed-off-by: Joshua Primero <jprimero155@gmail.com>
2019-05-29 21:18:52 -06:00
Han Wang 5b29e2d37d
klte-common: Remove creation of /data/misc/wifi and /data/misc/dhcp
* The creation of /data/misc/wifi and /data/misc/dhcp was moved long ago
  to the core init.rc script. Moreover, /data/misc/wifi is deprecated
  since wpa_supplicant now relies on /data/vendor/wifi.

Change-Id: Ic0a33af44ffe163d3dd06cebdc1e192dc9bcb11f
2019-05-29 21:18:52 -06:00
Wang Han 6f1374c382
klte-common: ueventd: Don't modify permissions of /dev/hw_random
This addresses an underlying problem since /dev/hw_random is used. The
issue is that EntropyMixer, which runs in system_server, needs to read
from /dev/hw_random, but thanks to our qualcomm ueventd, EntropyMixer
can never accress this node, resulting in warnings like this:

W EntropyMixer: Failed to add HW RNG output to entropy pool
W EntropyMixer: java.io.FileNotFoundException: /dev/hw_random (Permission denied)

AOSP ueventd handles this well, so just remove this line to get things
back to stage. This issue was never exposed because Google derps the
logging here, which is already fixed on Pie.

c78a463e87

Change-Id: I42c9aaa8f57306536e51c0a17febad57a5a77581
2019-05-29 21:18:52 -06:00
Adithya R 628eee0268
klte-common: Update power profile for Pie
* Match the changes made in LineageOS/android_frameworks_base@3d422c3

* Since Pie, AOSP is forcing us to define speeds and power values per CPU cluster.
  For single cluster chipsets like MSM8974, define cluster0 with only 4 cores
  to retain the existing behaviour.

Change-Id: Ida1edb9cc0335ffdb0ec6857da02b84a6a9d1633
2019-04-10 21:35:01 -06:00
Paul Keith d5275949a0
klte-common: Add IGloveMode to device manifest
* We support glove mode through hardware/samsung's implementation

Change-Id: I537ed4ee731207643d078d86afd32434dd52eeb9
2019-04-10 21:35:00 -06: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
Rashed Abdel-Tawab 319c53fa0d
klte-common: Set default hotspot name
Change-Id: Iecbefe61ffece88a6866ff2c8a1e79d99e535208
2019-02-25 20:55:10 -07:00
Bruno Martins 240381d13a
klte-common: Enable memory optimizations
* Delay service restart for devices with 2GB or less memory.

Change-Id: Iee114d6c83a09d90ce68c6bcb971596c4df6cc74
2019-02-25 20:55:10 -07:00
Joshua Primero 94eebc7c42
klte-common: Nuke deprecated WiFi Display overlay
* Google killed it in Pie
* reference: LineageOS/android_frameworks_av@d0a98fa05

Change-Id: I9bfd354c3e3a3d4c193c3865ac7eae84719c02dc
Signed-off-by: Joshua Primero <jprimero155@gmail.com>
2019-02-25 07:58:51 -07:00
Pawin Vongmasa 6bd4683ada
klte-common: Create media_profiles_V1_0.xml
media_profiles_V1_0.xml is created from media_profiles.xml by replacing
the dtd schema inside media_profiles.xml with an external reference to
/system/etc/media_profiles_V1_0.dtd.

Change-Id: I0fbb03603a72d0108a96bfa0f0a4ceb12ef3d430
2019-02-23 15:19:59 -07:00
Kevin F. Haggerty abc3cb63c4
Revert "klte-common: Disable Treble OMX by default."
* This prop is deprecated.

This reverts commit a9add7876d.

Change-Id: Iecd9c511aa8db36c4f632bce98d4f6d9da67205e
2019-02-19 22:29:34 -07:00
Michael Bestas 071ed4dabc
klte-common: Move media configs to vendor
Change-Id: Iffa5bfcac6e363ddd320ef3af5ccdc8c55f7942f
2019-02-19 22:28:29 -07:00
Kevin F. Haggerty 35c936c895
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:54:32 -07:00
Kevin F. Haggerty 6b91278d5a
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:39:07 -07:00
Kevin F. Haggerty 176f43ef90
klte-common: nfc: Remove s3fwrn5 support
* This is horribly broken after N and if someone really wants to
  drag these devices forward they'll need to get a rules exception
  anyway.

Change-Id: Iec4e6927e019c9ec91cc16d3eeacb0990ffff6f5
2018-12-19 06:56:11 -07:00
jrior001 23bbc0212e
klte-common: nfc: pn547: Use prebuilt NFC HAL from 15.1
Change-Id: I03a252ff820d5bd8dde8faac5fa293242aaef1f2
2018-11-29 21:07:00 -07:00
Kevin F. Haggerty 1d071d7d7b
klte-common: Manually restorecon legacy telephony provider symlinks
* These need a manual restorecon after create else they do not pick
  up the radio_data_file label.
* avc: denied { read } for name="databases" dev="mmcblk0p26" ino=33320
  scontext=u:r:rild:s0 tcontext=u:object_r:system_data_file:s0
  tclass=lnk_file permissive=0

Change-Id: I3286f47521467f6a1d65befec8a5c6dd7ff00183
2018-11-29 21:07:00 -07:00
Kevin F. Haggerty e896b7a7db
klte-common: rootdir: Stop diddling with /sys/power/cpufreq_*
* These aren't used anywhere in the source tree and none of the blobs
  reference them. We can drop this instead of finding/inventing an
  appropriate selinux label to allow the setattr.

Change-Id: I9e238aadade4c051c2815bdf15891443cc649624
2018-11-29 07:24:40 -07:00
Kevin F. Haggerty 933059f487
klte-common: sepolicy: Label sysfs_fingerprint, resolve denials
* avc: denied { setattr } for name="type_check" dev="sysfs" ino=28060
  scontext=u:r:init:s0 tcontext=u:object_r:sysfs:s0 tclass=file
  permissive=0

Change-Id: Ide1be660eaa005a7268161a4ab8d301b793ba062
2018-11-29 07:01:06 -07:00
Kevin F. Haggerty b5bfa3d797
klte-common: sepolicy: Label sysfs_audio nodes
Change-Id: I46a0067241a3ce4567992c7437336f4a9c4bab8e
2018-11-25 08:10:41 -07:00
Kevin F. Haggerty dd67265c98
klte-common: restorecon I/O scheduler tunables before touching them
* early-init is before the global restorecon of /sys gets run, so
  we need to set a context on these before changing attributes

Change-Id: I493a9bb0c1bd2ea83a815e07169b8b689cf76a5d
2018-11-17 11:03:19 -07:00
Kevin F. Haggerty 06b36697e1
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.

Change-Id: I37be9e22b49735388ce1f5b922132dbfd20e2dc3
2018-11-15 21:17:29 -07:00
Kevin F. Haggerty 1075fc17bb
klte-common: sepolicy: Resolve fingerprint HAL denials
* avc: denied { write } for name=fpdata dev=mmcblk0p26 ino=106076
  scontext=u:r:hal_fingerprint_default:s0
  tcontext=u:object_r:fingerprintd_data_file:s0 tclass=dir
  permissive=1

Change-Id: I624acde27d157daa473179980af30abd82b51131
2018-11-15 21:17:28 -07:00
Cal Archer 01be0409e2 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
(cherry picked from commit 36fb5d9d181a7e0ae8dd5f2e93a1f5f1a70d1302)
2018-11-05 05:34:46 +02:00
jrior001 a33190af8a
klte-common: nfc: remove unsupported MAX_RF_DATA_CREDITS config
Change-Id: I63eb31cfd62d135b63d04f3dafcd08de7319346d
2018-10-08 19:12:18 -06:00
Andre Eisenbach 8b0c1bcc23
klte-common: Rename libnfc-brcm.conf -> libnfc-nci.conf
Test: manual
Merged-In: I9655a14e021024540cf342022cb817e1f8d0f9ad
Change-Id: I9655a14e021024540cf342022cb817e1f8d0f9ad
2018-10-08 19:12:18 -06: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 7d0ac47ff7 klte-common: proprietary-files: Update source package note
* G900FXXU1CRH1_G900FOXA1CRH1_BTU

Change-Id: I0748584777ce61a4a10566d372dc6b6498ef6bb7
(cherry picked from commit 630ee7fda60d183721790187d4b2297046157dd7)
2018-10-08 15:25:39 +02:00
Kevin F. Haggerty 14c7605df9
klte-common: Stop building sensors.msm8974
* msm8974-common has moved to hwbinder mode for sensors, with the
  multihal statically linked into the impl. We don't need this
  version of the multihal anymore.

Change-Id: Id9e9103bb03351cef2a7cb0e81800057898fe862
2018-09-22 10:04:42 -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
Lucas Dupin b9ba70686a
klte-common: Renamed config_dozeAfterScreenOff
New name is config_dozeAfterScreenOffByDefault
Bug: 73178121

Change-Id: Ie3d1ea5a2cc480655592bf6e49b37f5ea07f3f58
2018-09-07 13:18:01 -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
Bruno Martins 2b748f4635 klte-common: Update prefixes for audio system properties
* All vendor-specific properties are required to have vendor prefixes

Change-Id: I562639e93b8eca4914473575c13da958224181f8
2018-09-07 21:00:37 +02:00
Glen Kuhne 0439e056e6 klte-common: Add p2p_no_group_iface=1 to p2p_supplicant_overlay
Configures wpa_supplicant to use p2p0 mgmt iface instead of dynamically
created p2p-p2p0-XYZ virtual interfaces for P2P group.

Bug: 65524423
Test: CtsVerifier WifiDirect
Test: Manual verification
Change-Id: I70582f114ab69684424aac41fbeb78fa7cc04847
Merged-In: Id9add59aa122adb7f39c80252061a8f5d3cc55cd
2018-09-07 20:59:28 +02:00
Roshan Pius 2edb480242 klte-common: wpa_supplicant(hidl): Add support for starting HAL lazily
Bug: 72394251
Test: Able to start supplicant from framework using
ISupplicant.getService()
Change-Id: I19b8434e7241b9028e7dc86316ec9d5512affcca
2018-09-07 20:59:02 +02:00
Roshan Pius 3a27833cd6 klte-common: Don't start supplicant with interfaces
Framework will now add interface to supplicant (via HIDL) when it
needs to control an interface, so don't specify them in the startup
params.

Bug: 69426063
Test: Device boots up and able to connect to wifi.
Change-Id: I817d28093f8b982e3806c212babd888c0f5eb7c0
2018-09-07 20:58:21 +02:00
Jeff Vander Stoep db257250cf klte-common: wpa_supplicant: Move control sockets to /data/vendor
Treble compliance.

Bug: 70228425
Bug: 70393317
Test: complete wifi test in b/70393317
Test: verify sockets exist in /data/vendor/wifi/wpa/sockets

Change-Id: I0bfc3a351419f0a03498e79664949f353369bf1b
2018-08-21 21:46:29 -06:00
Jeff Vander Stoep 3a48b9c130 klte-common: wifi_supplicant: deprecate entropy.bin
Wpa_supplicant's random pool is not necessary on Android. Randomness
is already provided by the entropymixer service which ensures
sufficient entropy is maintained across reboots. Commit b410eb1913
'Initialize /dev/urandom earlier in boot' seeds /dev/urandom with
that entropy before either wpa_supplicant or hostapd are run.

Bug: 34980020
Test: Use wifi and wifi tethering on 8974 targets
Change-Id: Iaa2a8a42e4e3fd941c5be0f8fa691245cdb429e9
2018-08-21 21:46:29 -06:00