Commit graph

348 commits

Author SHA1 Message Date
matteo0026
9e95d65e33 msm8226-common: camera: fixes for matisse/millet devices
* They don't support ZSL and HFR, so disable them (it generated dark slugghish back camera)
* Set different required preview sizes for photos and videos
* Remove exposure hack (it doesn't work)
* Fix indentations and make code more readable by putting the settings of s3ve3g, ms01 and kmini3g all together and matisse and millet in another if
* Add support for matisse3gjv, matissewifiue, milletwifiue
2020-09-23 21:31:40 +02:00
Kevin F. Haggerty
3f083f4311 Revert "klte-common: HAXX: "Fix" race condition in init"
* It seems that this old "fix" for G900V RIL actually makes the Q
  "opengapps issue", normally only evident in encrypted legacy devices
  with secure startup, more pronounced. In such devices, your ability
  to progress beyond the boot animation to an actual homescreen after
  entering an unlock PIN is completely at chance, but with much better
  chances after an update (dexopting, maybe?). Only with this HAXX in
  place, the issue happens with unencrypted devices.
* A nice side effect will be that all klte* devices will boot much
  faster.
* The root cause of this is some kind of timeout, but the logs are
  seemingly worthless.

This reverts commit 31509201c1dc83cb4db5aa759f042459e87878b4.

Change-Id: Iaf2a19a3ab7f8f8cf2f0add1bd6e3b87d06310a7
2020-09-11 15:04:37 +02:00
matteo0026
b8c35dc703 msm8226-common: move init files to vendor 2020-09-11 14:54:04 +02:00
matteo0026
da487435ac msm8226-common: move some other files to vendor, delete unneeded
* E wcnss_service: source file do not exist /vendor/etc/wifi/WCNSS_qcom_cfg.ini
2020-09-11 14:41:02 +02:00
matteo0026
da562d069b msm8226-common: move flag to BoardConfigCommon 2020-09-11 14:35:50 +02:00
matteo0026
2cfa6596c7 msm8226-common: add/edit some entries in manifest.xml
* W hwservicemanager: getTransport: Cannot find entry android.hardware.audio@2.0::IDevicesFactory/msd in either framework or device manifest.
* W hwservicemanager: getTransport: Cannot find entry android.hardware.camera.provider@2.4::ICameraProvider/external/0 in either framework or device manifest.
* W hwservicemanager: getTransport: Cannot find entry android.hardware.health@2.0::IHealth/default in either framework or device manifest.
2020-09-11 14:33:51 +02:00
matteo0026
6e9dd2a812 msm8226-common: camera: fix if between BACK_CAMERA_ID and device check 2020-08-03 10:16:47 +02:00
Paul Keith
501d98f83d msm8226-common: Migrate all properties system.prop
* We already set props via system.prop, so let's not mix
  and match between that and PRODUCT_PROPERTY_OVERRIDES.

Change-Id: I92c6863b8393640e2239decd7f089ee890b3c7f7
2020-07-06 14:55:45 +02:00
prototype74
3f9e5e4c81 msm8226-common: use interactive governor by default
Co-authored-by: fcuzzocrea <bosconovic@gmail.com>

Change-Id: I478e141ff08125390b6f97bba524a7871bae3497
2020-07-06 14:54:35 +02:00
Arne Coucheron
87c911c2f8 msm8226-common: Build common legacy gnss hal
Change-Id: I56095b9c3bba065779c90b6aeb61ebfed6af7e77
2020-07-06 14:54:35 +02:00
Kevin F. Haggerty
78947fdca8 msm8226-common: Switch to GNSS HIDL HAL
Change-Id: I881206bed97e700d0022080ec5785fa3756c39bd
2020-07-06 14:54:35 +02:00
Katz Yamada
3aa997f296 msm8226-common: gps: Fix for buffer overrun crash at copying nmea string
Add zero clearing of allocated nmea buffer to ensure
the nmea string is null terminated.

Change-Id: Ie36010a7d3eca16dabb3067ae891a94e4b63b10c
CRs-Fixed: 2041933
2020-07-06 14:54:35 +02:00
Vijay Venkatraman
9f7ffbb539 msm8226-common: gps: Replacing copy headers with header libraries
Bug: 33241851
Test: Build target and pass CTS location tests
Change-Id: I75db5e6de3c4194a6a46e0d37fcd899ea1d1db04
2020-07-06 14:54:35 +02:00
Jiyong Park
a86caf4073 msm8226-common: gps: Don't rely on transitively included headers
One must explicitly include what it need.
time.h for struct tm.

Bug: 37629934
Test: build

Merged-In: Iacd5317d958f61df062fca40fbf2e8992c7fbb44
Change-Id: I19e1043f23dbe85836b73714a4f1440159ebe419
2020-07-06 14:54:35 +02:00
Dante Russo
3741d78175 msm8226-common: gps: Remove nmea log
Nmea log print is removed, as it can be
excessive during gps tracking.

Bugs: 29499503 29272976
Change-Id: Ia60295207b6bbbcb24bbede4f1802c0c7a2f2544
2020-07-06 14:54:35 +02:00
Dante Russo
baf122791a msm8226-common: gps: Return the correct length of nmea sentence
Return the correct length of nmea sentence in the
function loc_eng_nmea_put_checksum(). The correct
length is length of NMEA string including ‘$’
character alongwith length of checksum.

CRs-Fixed: 1020044
Change-Id: I50d80b9c4492de4664bb3ccb7295b0eb4fee15a9
2020-07-06 14:54:35 +02:00
Dante Russo
24699428c1 msm8226-common: gps: Default apn ip type to ipv4
If a apn ip type is not found for a agps
data connection, default to using ipv4
instead of invalid.

CRs-fixed: 1007417

Bug: 28986221

Change-Id: Icc71de1fab3fd5967901c39a5c11eaea17b7766c
Signed-off-by: D. Andrei Măceș <Andrei.Maces@alumni.nd.edu>
2020-07-06 14:54:35 +02:00
Aurimas Liutikas
3c5ae36566 msm8226-common: gps: Suppress unused-parameter warnings
Bug: 26936282
Change-Id: I7fdf58d232a59c0ba0d5f52c0f958f6eab0c4514
2020-07-06 14:54:35 +02:00
Dante Russo
f6d585b543 msm8226-common: gps: Remove owner of gps hal modules
Owner does not need to be specified for
this project.

Change-Id: I918a767ed3b83e134c5e63ded5b25070b3399ac8
2020-07-06 14:54:35 +02:00
jlask
6cc6f05cb7 msm8226-common: gps: Correct week rollover timestamps
This adjustment will help with applications checking the time coming from gps.
Some applictions will consider times in the far past as an error.

Change-Id: I69d6971249c4898ac3895f725e46f268cdb2b00d
2020-07-06 14:54:35 +02:00
Harikrishnan Hariharan
98897a72ab msm8226-common: gps: Fix race condition when GPS app is closed around an SSR event
Fix race condition to get avoid stuck in modem if GPS application
is closed right around a SSR event.This fix will prevent resume the
session once HAL loc_stop has been called.

Change-Id: I4e5c3f09c097b835d8a685a8b465eb86dd06cd7a
CRs-Fixed: 1058559
2020-07-06 14:54:35 +02:00
Saurabh Srivastava
a9c942667f msm8226-common: gps: Adding fix for KW warning
Fix for buffer overflow possibility for the thread name passed in to
pthread_setname_np() method.

Change-Id: Id323dd058eddcf50d6fd9ec8908e9997b30c561b
CRs-Fixed: 999457
2020-07-06 14:54:35 +02:00
Dante Russo
9116b4df67 msm8226-common: gps: Assure event mask is set properly to get positions
The event mask can be retrieved in the context of
client thread as zero and then queued up to go to
msg task thread. By the time the msg is actually
handled in msg task thread, the actual event
mask at LOC API layer may have already changed, but
this mask would then be overridden by zero. This
can cause no modem events to ever come, including
position reports.

The fix is to not retrieve the event mask in the
client thread, but instead wait for msg to be
handled in msg task thread before retrieving it.

Change-Id: I48562d028bbfa187732686c060b5cdd62c6d5a89
CRs-fixed: 2219519
2020-07-06 14:54:35 +02:00
Katz Yamada
a493c0051c msm8226-common: gps: Fix unable to clear existing event bitmasks
Fix for an issue updateEvtMask call chain is
unable to clear existing event bitmasks stored
in LocApiV02.

Change-Id: Id34e2d92a506e7300f3d9b3ec74a80a1f6822787
CRs-Fixed: 2085379
2020-07-06 14:54:35 +02:00
haohuang
55a9be1179 msm8226-common: gps: Add tech_mask in UlpLocation to support report
NLP position source to Android Framework.

Change-Id: I3811e03dddb721b64b5fa4330996087f6c17efec
2020-07-06 14:54:35 +02:00
Naresh Munagala
3061af4f97 msm8226-common: gps: NMEA report indication to ULP
Enabled NMEA report indication to ulp

Change-Id: Ia27fe0d805f53bf17c86f7c27eaaedd960101370
CRs-Fixed: 1055201
2020-07-06 14:54:35 +02:00
Kevin Tang
b04e14efe3 msm8226-common: gps: Making SUPL ES run time configurable
SUPL ES gets updated as part of the sim specific
AGPS config hot swap update. We keep that lastest
SUPL ES and send that as part of the NI request,
to let NI handler to know the config status.

Change-Id: I566725d5db9b3abdbd9a423b86c10b819217f4f6
CRs-Fixed: 1024879
2020-07-06 14:54:35 +02:00
Kevin Tang
b1a4abee28 msm8226-common: gps: Fixes SUPL_MODE
Carrier specific SUPL_MODE is not updated upon sim card insert.
gpc_conf must be updated with the new value for config to be
updated.

Change-Id: I2a5f10fa7d27be9253e9ca6f34c0c886285d1b11
CRs-Fixed: 953942
2020-07-06 14:54:35 +02:00
Madhanraj Chelladurai
8710c077bd msm8226-common: gps: Consider nsec while ranking the timer objects
We need to consider nsec as well while ranking timer objects

Change-Id: Ieaad5dfa80b26b90e998618b3cbe1e590fc00839
CRs-Fixed: 991345
2020-07-06 14:54:35 +02:00
Saurabh Srivastava
08092b61e7 msm8226-common: gps: Adding a new NMEA sentence : $GNGSA.
Currently only $GPGSA was being generated for GPS satellites.
This change adds $GNGSA for GLONASS satellites as well.

Change-Id: I7ab0e92c7ed4ce73be11909eefe0d570a1a0fc1e
CRs-Fixed: 978745
2020-07-06 14:54:35 +02:00
Arne Coucheron
e029a78af7 msm8226-common: gps: Set correct target for msm baseband
Change-Id: Ie52feed022db511abb6813f20418d23c0f5b3ba9
2020-07-06 14:54:35 +02:00
Arne Coucheron
295c9e5a07 msm8226-common: gps: Add Cleanstep.mk
Change-Id: I1af155718ae4f48c15317b0d05303d22ec458084
2020-07-06 14:54:27 +02:00
Francescodario Cuzzocrea
d935bc2e75 msm8226-common: sepolicy: don't allow init w_file_perms on sysfs_net
* this causes a mobile data slowdown after a couple of hours of usage

Change-Id: I167cd0f51997419ebe89b1c31ee41c00db66d0ad
2020-07-06 14:54:16 +02:00
Francescodario Cuzzocrea
8f812a1f82 msm8226-common: sepolicy: reorganize and fix mobiledata slowdown
Change-Id: I72aa18a88bb3bdf8d111efb83fb5d1d1ffd367c0
2020-07-06 14:54:06 +02:00
Daniel Jacob Chittoor
00a9d587ff msm8226-common: address Vibrator denial
* avc: denied { write } for name="enable" dev="sysfs" ino=25146 scontext=u:r:system_server:s0 tcontext=u:object_r:sysfs_vibamp:s0 tclass=file permissive=1

* also addres sysfs_input using the predefined macro

Change-Id: I99f56a6b8a85827be0eae758ae44aab3a461b13e
2020-07-06 14:53:52 +02:00
Daniel Jacob Chittoor
5ba00de905 msm8226-common: camera: set NDEBUG true
- stops the unnecessary logspam of camera parameters during boot
- we are in production state, so its kind of meaningless now

Change-Id: Id16020e604d3f9eb8d1dafb65517bc36149e957e
2020-07-06 14:52:59 +02:00
matteo0026
07e7eb47ed msm8226-common: switch to dynamic init functions 2020-07-06 14:52:22 +02:00
matteo0026
287c9358bc msm8226-common: Transition to consumerir HIDL hal 2020-05-15 22:50:03 +02:00
Kevin F. Haggerty
65977a1a8d msm8226-common: libinit: Drop unnecessary includes 2020-05-10 13:36:43 +05:30
Paul Keith
5b83619279 msm8226-common: enforce inclusion of qcom-common/BoardConfigCommon.mk
* This should always be present in the source tree
2020-05-10 13:36:27 +05:30
Daniel Jacob Chittoor
3c69986e8e msm8226: dependencies: add devicesettings resources
- Not synced by default on lineage-16.0
2020-05-10 13:36:07 +05:30
Daniel Jacob Chittoor
7a13d4a0dd msm8226-common: overlay: disable alpha compositing in Window Manager
- best to keep this disabled for old low/mid-range gpus
2020-05-10 13:35:54 +05:30
Francescodario Cuzzocrea
f4ad1a09bc msm8226-common: camera: add support for galaxy tab4 devices
Change-Id: I349ff302765a47d4b188d8deb0bfd88959da9c61
2020-01-06 08:36:31 +01:00
Francescodario Cuzzocrea
0c8fd6eca5 msm8226-common: fix more sepolicy denials
Change-Id: If81bc788428fdbbcd2c16d80f76316082e2c607f
2020-01-04 21:25:11 +01:00
isbon
54973f5b87 msm8226-common : allow sec_touchkey in sepolicy
Change-Id: Id2eeb041f04bb6f3b0919f31d50c9c1279b2e318
2020-01-04 14:57:38 +01:00
Francescodario Cuzzocrea
0b9054f915 msm8226-common: support fingerprint device
Change-Id: Ie1f37be4bff38c4cf343c76d1afc2bce84727c8f
2020-01-03 21:06:50 +01:00
BAProductions
a05beb8092 msm2886-commom: fix more sepolicy denial
Change-Id: Idb55755ced43fa48f12a9a7f1a7f7648f24cbd51
2020-01-03 17:58:59 +01:00
BAProductions
25a6078212 msm8226-common: use regex for brightness path 2020-01-03 17:58:04 +01:00
Francescodario Cuzzocrea
40cf4dda5e msm8226-common: add mdnie path to file_context 2020-01-03 17:57:48 +01:00
Arne Coucheron
5a837b6ab6 overlay: Add config_useSystemClockforRotationSensor
Change-Id: I866e8871f11e6ecfa6b9cfa3a74563009ec45237
2019-12-17 23:11:09 +01:00