Commit graph

327 commits

Author SHA1 Message Date
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
Francescodario Cuzzocrea
ffd3e6104b msm8226-common: allow livedisplay to handle screen power reduce
Change-Id: I7294f3449c0566e78f3d291d819fa8acd2294755
2019-12-15 21:16:30 +01:00
Francescodario Cuzzocrea
8296402cb4 msm8226-common: resolve sepolicy denials
Change-Id: Iea4bbd17a420a06d55658a4a52bdcabf14cf4d2c
2019-12-15 18:41:15 +01:00
Francescodario Cuzzocrea
320c019e22 msm8226-common: rootdir: restore secontex of /efs
- also fix file permissions

Change-Id: If94b70a4008fcd1d00ca15e203c37ac8e94211ae
2019-12-15 18:30:17 +01:00
Francescodario Cuzzocrea
ead4fb50ef msm8226-common: selinux: add backlight path for panel and button brightness to file_context
This fixes backlight dimming not working on enforcing builds

Change-Id: Ic0b99ddaa502727ac8e4f34ce2dcf3e3187c060d
2019-10-18 22:07:52 +02:00
pythonlimited
709a208448 msm8226-common: rootdir: correct charger seclabel 2019-10-17 16:13:03 +02:00
PythonLimited
8bc870910c msm8226-common: update and cleanup sepolicy 2019-10-17 16:12:48 +02:00
Francescodario Cuzzocrea
1247fdbd54 msm8226-common : drop livedisplay manifest entry to device specific tree
some msm8226 devices (like the grand 2 and the S5 Mini duos) supports full mdnie display capability, while other (like the s3 neo) not.
drop the livedisplay manifest entry to device specific tree so every device can enable the service that it suports
2019-10-16 12:32:04 +02:00
Francescodario Cuzzocrea
d5a4d8d567 msm8226-common: fix offline charging 2019-10-16 12:32:04 +02:00
Francescodario Cuzzocrea
d79f3a2047 msm8226-common: cleanup filesystem mounting when starting in offline charger mode 2019-10-16 12:32:04 +02:00
Francescodario Cuzzocrea
87854edbce msm8226-common: remove unnecessary stock samsung services for charger 2019-10-16 12:32:04 +02:00
Francescodario Cuzzocrea
6f5c6b7b59 msm8226-common : set the compiler filter for shared apks to quicken
* Rationale: speed has a lot of dex code expansion, it uses more ram and space compared to quicken.
    Using quicken for shared APKs on Go devices may save RAM.
    Note that this is a trade-off: here we trade clean pages for dirty pages, extra cpu and battery.
    That's because the quicken files will be jit-ed in all the processes that load of shared apk and the
    code cache is not shared. Some notable apps that will be affected by this are gms and chrome.

As seen here : https://android.googlesource.com/platform/build/+/refs/tags/android-9.0.0_r48/target/product/go_defaults_common.mk#45
2019-10-16 12:32:04 +02:00
Jorim Jaggi
f974d0793f msm8226-common: Pin HOME application
Test: adb shell dumpsys pinner after boot
Bug: 111132016
Bug: 78585335
Change-Id: I4ed0587ae5348bbe03ad9ac5f1c5b1726dbb8246
2019-10-16 12:32:04 +02:00
Francescodario Cuzzocrea
1db45ac09f msm8226-common: set supported HFR video parameters 2019-10-16 12:32:04 +02:00
Harshit Jain
ae9edc11c6 msm8226-common: Strip off some debug packages
* Ref: https://source.android.com/devices/tech/dalvik/configure#compilation_options

Change-Id: Ia19ac5ab253337186492dccdc166c2b824563e82
Q: PRODUCT_MINIMIZE_JAVA_DEBUG_INFO what tf does this do?
A: https://android.googlesource.com/platform/build/+/master/target/product/go_defaults_common.mk#68
2019-10-16 12:32:04 +02:00
pythonlimited
42aaf85caa msm8226-common: pre-optimize more system apps for speed
* This should fix the light stuttering were getting in the trebuchet ui when launching certain apps like setting or snap.
2019-10-16 12:32:04 +02:00
Wei Wang
522d3b30a9 msm8226-common: add SysUI and Settings to PRODUCT_DEXPREOPT_SPEED_APPS
Test: Build
Change-Id: I088938462b389e1ebe783997f773dc5946345666
2019-10-16 12:32:04 +02:00
Adrian DC
e8e44209b9 init: Resolve kernel trace_marker permissions on post-fs
* The permissions were not set to 222 instead of 220,
    thus introducing regular logs from libcutils:
    "cutils-trace: Error opening trace file: Permission denied (13)"

 * Refers to frameworks/native/cmds/atrace/atrace.rc

Change-Id: I236ea25d2f2068f9f86a43492807f5f05e92da96
2019-10-16 12:32:04 +02:00
pythonlimited
7806fec660 msm8226-common: drop pre MM shim 2019-10-16 12:32:04 +02:00
Francescodario Cuzzocrea
a13a92fd8f msm8226-common: add BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE 2019-10-16 12:32:04 +02:00
Francescodario Cuzzocrea
239f611e92 msm8226-common: move init.ril.sh to vendor 2019-10-16 12:32:04 +02:00
Michael Bestas
66e4c61446 msm8226: Move init.qcom.bt.sh to vendor
Change-Id: I6b9c508e3c2b3573fba0a5bdf9281be8947fffc0
2019-10-16 12:32:04 +02:00