Commit graph

3533 commits

Author SHA1 Message Date
Yingjie Wang
31e059f021
sdm660-common: Remove gnss hidl entries in manifest.xml
Remove all android.hardware.gnss
entries in manifest.xml, since these manifest fragments
are moved to gps git projects.

Change-Id: Ieb3b0b4244ff075ba254d2e3ad1209c92fd3a4d6
CRs-fixed: 2548467
2020-12-13 18:25:07 +06:00
Jimmy Chen
b049da5759
sdm660-common: TetheringOverlay: revise p2p tether interface regex pattern
cheryl does not use separate interface for a group, it will share main
p2p0 interface.

Bug: 141382930
Test: run P2P with cheryl as GO
Change-Id: I061ed0ac66f8ae75c84d7683f66d4baffd3a3112
2020-12-13 18:25:07 +06:00
Jimmy Chen
26da0c2fb1
sdm660-common: TetheringOverlay: add p2p regex for tethering modes
Bug: 137602441
Test: CtsVerifier - Wi-Fi Direct
Change-Id: I215da71e96348b6bba19d4a3c6fd8c8048ff46d6
2020-12-13 18:25:07 +06:00
LuK1337
2a552a7449
sdm660-common: TetheringOverlay: Remove bnep\\d from tetherable BT interfaces
Change-Id: Iac714d2de9a4d225da6fc3463d3fb99a4bb714a7
2020-12-13 18:25:07 +06:00
LuK1337
8062c98553
sdm660-common: TetheringOverlay: Disable BPF offload
The new trafficController design is based on per-cgroup eBPF filter as well as xt_bpf netfilter module inside the kernel.
However, support for per-cgroup eBPF is available on only on kernels >=4.9 . Disable BPF offloading support completely
as without proper per-cgroup eBPF, the stats returns errors continuously.

E TetherController: Error processing tether stats from BPF maps: Get firstKey map -1 failed: Bad file descriptor

Ref:
[0]: https://source.android.com/devices/tech/datausage/ebpf-traffic-monitor
[1]: 4e0a5f13fc/server/TetherController.cpp (L1047)

Change-Id: Ic7db658130f42fc0737bfb52aef7235c6fea0db2
2020-12-13 18:25:07 +06:00
LuK1337
9614c2d4c9
sdm660-common: rro_overlays: Redo TetheringOverlay's blueprint
This now matches WifiOverlay.

Change-Id: I9e4e859b7aca75d41556ea5807e34a4eb4598266
2020-12-13 18:25:07 +06:00
Weilun Du
d008a7e9a6
sdm660-common: Add TetheringOverlay
BUG: 163800715
Signed-off-by: Weilun Du <wdu@google.com>
Change-Id: Ia0834f5215ff8c3b13effa591bd2f84d93419a06
2020-12-13 18:25:07 +06:00
Roshan Pius
9ddf8cdc12
sdm660-common: Add WifiOverlay
Bug: 148617260
Test: Device boots up and connects to wifi networks.
Change-Id: Iec27a6d947a232a42451ef095dc73d1a52327db5
2020-12-13 18:25:07 +06:00
Roshan Pius
f35725bd0c
sdm660-common: overlay: Remove wifi related internal overlays
These are replaced by formal mainline module overlays.

Bug: 143464763
Test: Send for  Wifi regression tests
Change-Id: I45881ed210132252b9c5c7d6be03ed845e33f971
2020-12-13 18:25:06 +06:00
Ahmed ElArabawy
5d20308705
sdm660-common: Wifi: Replace config_wifi_dual_band_support
As part of the 6GHz band support, there is now more than 2 bands and
hence config_wifi_dual_band_support is misleading.
This commit replaces this config with config_wifi5ghzSupport which is
more reflecting to the device support check.

Bug: 145936758
Bug: 139354972
Test: Builds and Wifi runs successfully.
Change-Id: I6a1a18965b8020049f9b395ae97b6d84e4f5ae94
2020-12-13 18:20:07 +06:00
Jimmy Chen
4bd1b3c00f
sdm660-common: wifi: move wpa_supplicant VINTF definition to wpa_supplicant module
Bug: 36505680
Test: atest FrameworksNetTests
Test: atest VtsHalWifiSupplicantV1_3TargetTest
Test: connect EAP access point and verify PMK cache works correctly.
Change-Id: I2c382765b8e84951fc17bb9f1c3785dcd66e7b51
2020-12-13 18:19:24 +06:00
Ahmed ElArabawy
6d3c70edd1
sdm660-common: Wifi: Remove IWifi hidl entry from manifest.xml
This CL removes the definition for the IWifi hidl interface from
manifest.xml and rely on vint-fragements entry.
This is to avoid the need to modify the revision in future

Bug: 138243400
Test: builds and wifi works

Change-Id: Id36fb384bbbf55a976d315d6a374d5fb66f4e1bb
2020-12-13 18:18:04 +06:00
lesl
aba8853a3b
sdm660-common: Wifi: Remove hostapd hidl entry from manifest.xml
This CL removes the definition for the hostapd hidl interface from
manifest.xml and rely on vint-fragements entry.
This is to avoid the need to modify the revision in future

Bug: 145780363
Test: builds and wifi softap works
Change-Id: I2b0d28b143e232ce60c56cbabfed3f685ab6bab9
2020-12-13 18:17:07 +06:00
Jimmy Chen
a38fe7fd69
sdm660-common: wifi: move supplicant service init to wpa_supplicant
Bug: 138790309
Test: boot and wifi function is ok
Change-Id: I35cf3e03566443e20799623045eacd423fd7f5c4
2020-12-13 18:15:48 +06:00
Davide Garberi
86cc5f4fc7
sdm660-common: Remove energy awareness daemon
All this does is to disable msm_core and set the
polling_interval to 0, which makes the driver useless.
We can achieve the same result by disabling the driver.

Change-Id: Ic19c505ed74811a3d1b76703255af3aa5cb37bf9
Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@gmail.com>
Signed-off-by: OdSazib <odsazib@gmail.com>
2020-12-13 18:15:48 +06:00
OdSazib
89d62afca0
Revert "sdm660-common: Change USB autosuspend delay to 7s by commandline."
This reverts commit cf25291f1c.
2020-12-13 18:15:47 +06:00
OdSazib
1491895fd9
sdm660-common: overlay: Update lineage-sdk overlay 2020-12-09 09:52:25 +06:00
OdSazib
e05dac84b8
sdm660-common: Add service-sysfs for LiveDisplay 2020-12-09 09:52:25 +06:00
PradyX
0a02b30038
sdm660-common: Camera package list for aux lens
* Fixes google camera aux lense too

Signed-off-by: odsazib <odsazib@gmail.com>
2020-12-09 09:52:25 +06:00
lightvortex
6fdb4938ed
sdm660-common: Remove whatsapp from hal1 packagelist
* Fixes  QR code scanning for WhatsApp web login
* Whatsapp video calls now support hal3, so hal1 is no longer required

Signed-off-by: OdSazib <odsazib@gmail.com>
2020-12-09 09:52:25 +06:00
Subhajeet Muhuri
b7aac65519
sdm660-common: Uprev android.hardware.soundtrigger to 2.2 2020-12-09 09:52:25 +06:00
OdSazib
0be032e211
sdm660-common: DeviceSettings: Set correct symbol in DreamManager
Signed-off-by: OdSazib <odsazib@gmail.com>
2020-12-09 09:52:25 +06:00
OdSazib
3bc41ddf25
sdm660-common: strings: Add formatted="false" for multiple substitutions
* Either fix the position of the multiple substitution
* or add formatted="false" in non-positional localized string

Bug: error: multiple substitutions specified in non-positional format;

Signed-off-by: OdSazib <odsazib@gmail.com>
2020-12-09 09:52:25 +06:00
OdSazib
31ae2abcb0
sdm660-common: DeviceDoze: Reduce wakelock timeout and wakeup interval
* Faster response in raise to wake getsure

Signed-off-by: OdSazib <odsazib@gmail.com>
2020-12-09 09:52:25 +06:00
OdSazib
13c782153e
sdm660-common: DeviceSettings/Doze: Update Translations
Translated by:
* Rizky (Xtprion) - Indonesian
* Vitaliy Kovel (Vitaliykovel777) - Russian
* Marek Prachnár - Slovak
* Lucas Almeida (Luxced) - Brazilian Portuguese

Co-authored-by: Vitaliykovel777 <vitaliykovel@gmail.com>
Co-authored-by: Xtprion <ksc.kybam@gmail.com>
Co-authored-by: Luxced <dekaps@outlook.com>
Signed-off-by: OdSazib <odsazib@gmail.com>
2020-12-09 09:52:25 +06:00
OdSazib
6892aefb4a
sdm660-common: DeviceSettings: Fix tint according to theme 2020-12-09 09:52:25 +06:00
OdSazib
870343eb33
sdm660-common: DeviceSettings: Switch to SecureSettingSwitchPreference
* SharedPreference cannot be used untill device is unlocked
* This causes crashing the app at boot

Thanks to java gawd StYlOg for help me fixing this

Signed-off-by: OdSazib <odsazib@gmail.com>
2020-12-09 09:52:25 +06:00
OdSazib
f2b7354ef6
sdm660-common: Tricking out device specific settings
* Rebrand to DeviceDoze
* Keep class for DeviceSettings

Signed-off-by: OdSazib <odsazib@gmail.com>
2020-12-09 09:52:25 +06:00
Markakash
f1e68ddfaa
sdm660-common: XiaomiDoze: Add drawable icons to doze menus!
* EvoX edits: Match fill color with that of DeviceSettings
* Added missing hand-wave drawable from: https://materialdesignicons.com/

Co-authored-by: OdSazib <odsazib@gmail.com>
Signed-off-by: AnierinB <anierinb@evolution-x.org>
Signed-off-by: OdSazib <odsazib@gmail.com>
2020-11-05 13:18:22 +06:00
AnierinB
297de8da99
sdm660-common: XiaomiDoze: Fix pickup status for raise to wake
Signed-off-by: AnierinB <anierinb@evolution-x.org>
Signed-off-by: OdSazib <odsazib@gmail.com>
2020-11-05 13:18:22 +06:00
OdSazib
f441fa06a2
sdm660-common: XiaomiDoze: Raise To Wake Gesture
- Adapted to Xiaomi SDM660
- Implemented with tilt sensor

SQUASHED COMMITS:
-----------------
* sdm845-common: Introduce raise to wake gesture
- Highly inspired by iOS raise to wake

* EvoX notes:
- Adapted to OnePlus sdm845
- Strings will be added to packages/resources/devicesettings which is where all current strings are located

* sdm845-common: doze: Add min interval for raise2wake
- avoid having early wakeup

* sd845-common: doze: raise2wake: Check proximity before wakeup
- To avoid having unnecessary wakeups when phone inside the pocket

* sdm845-common: doze: Enable pickup when raise to wake is toggled
- This is needed in order for raise to wake to function properly.

References:
* f45b58b511
* dc69b3678c

Co-authored-by: Nauval Rizky <enuma.alrizky@gmail.com>
Co-authored-by: AnierinB <anierinb@evolution-x.org>
Signed-off-by: Nauval Rizky <enuma.alrizky@gmail.com>
Signed-off-by: Joey Huab <joey@evolution-x.org>
Signed-off-by: AnierinB <anierinb@evolution-x.org>
Signed-off-by: OdSazib <odsazib@gmail.com>
2020-11-05 13:18:22 +06:00
AnierinB
88279b484c
sdm660-common: XiaomiDoze: Add Doze Tile
- Launches DozeSettingsActivity

* Reference: 827d11cc8b

Signed-off-by: AnierinB <anierinb@evolution-x.org>
Signed-off-by: OdSazib <odsazib@gmail.com>
2020-11-05 13:18:22 +06:00
Wileen Chiu
fe22a9fdc9
sdm660-common: Add new config overlay for call composer
- add a new config and set as true for mcc/mnc
which support call composer calls
- allow implicit broadcast of new intent, which
contains call composer information

Change-Id: I5d042f88d57d54f3b7a944d9a2f49061cd0313d3
CRs-Fixed: 2672216
2020-10-26 04:25:14 +06:00
Shrikara B
5350c9d183
sdm660-common: rootdir: Set Netflix and media property based on target
Add support to set "ro.netflix.bsp_rev" property at run time
depending on the target. This is needed when 2 or targets are
binary compatible, but have different Netflix proprty for
device whitelisting.

Change-Id: I9484f2886a8b7d986c762fa9031c0e541f15c7e1
2020-10-26 04:25:14 +06:00
Ashish Jain
94677f5db6
sdm660-common: init: Update ueventd rules and init rc for new audio drivers
Update uventd rules to move new audio drivers to audio group.
Update init rc to move audio sysfs node to audio group.

Change-Id: I8e5230e04090b3555e32c0404401dddacea1cd15
2020-10-26 04:25:14 +06:00
Pavan Kumar M
5a0956d86f
sdm660-common: config: Add permissions for RCS service
Add permissions to Rcs service to
access QMI IMSS service

Change-Id: I263a0b6413c1ae26ab57a96936bc983c68ef709e
2020-10-26 04:25:14 +06:00
Thomas (Wonyoung) Yun
a1008929de
sdm660-common: rootdir: Grant rw permission to hgsl node
qcom: User app needs to open /dev/hgsl node for doorbell enablement.

Change-Id: I9a83e76a441f4001f40ec805bd8081355aa1c79d
2020-10-26 04:25:14 +06:00
Pavan Kumar M
776967d080
sdm660-common: Add IImsFactory and uceservice HAL entry
Add entry for new factory HAL for ims
and minor version upgrade in
uceservice HAL.

Change-Id: I3df552f4e9fbb3319b33bd5ee213c17548c7a422
2020-10-26 04:25:14 +06:00
Taiyab Haque
823edb6d10
sdm660-common: Update LPA interface version
Update LPA version to enable new upgraded interface solution

Change-Id: If3ca25aab813b02d2cd994265624d27ec9051bbf
CRs-Fixed: 2663893
2020-10-26 04:25:14 +06:00
OdSazib
71e85a8f68
sdm660-common: Drop snap package 2020-10-19 11:36:07 +06:00
OdSazib
967c2a5c9a
sdm660-common: Adding XiaomiParts into the whitelist
* Adding XiaomiParts into whitelist to avoid it being killed by
doze. Also granting necessary permission to function properly.
* Required for Headphone & Mic Gain as it currently get killed
2020-10-19 11:36:07 +06:00
OdSazib
9bd430ff9b
sdm660-common: XiaomiParts: Add Headphone & Mic Gain
* This is manually ported by me from Lavender tree on Corvus-Devices
* Thanks @StyloGey for reviewing the java code and giving me a better solution
* Original repo: https://github.com/Corvus-Devices/device_xiaomi_lavender.git

To get it working, you need these two commits in your kernel:
> c04d6d6e61
> 8e25ac3318

Signed-off-by: OdSazib <odsazib@gmail.com>
Change-Id: I1bb48ced1f23728daa2e5170647ce08a04347110
2020-10-19 11:36:06 +06:00
OdSazib
7580f5f636
sdm660-common: XiamiParts: Add FPS Info Overlay
* Ported from: https://github.com/Corvus-Devices/device_xiaomi_lavender.git

Signed-off-by: OdSazib <odsazib@gmail.com>
2020-10-19 11:36:06 +06:00
OdSazib
471da74c21
sdm660-common: XiaomiParts: Remove dirac completely
* Fix XiaomiPart crash while using audio mod like v4a/dolby

Signed-off-by: odsazib <odsazib@gmail.com>
2020-10-19 11:36:06 +06:00
OdSazib
dd14ca3e30
sdm660-common: Address denials for Livedisplay
Signed-off-by: odsazib <odsazib@gmail.com>
2020-10-19 11:36:06 +06:00
OdSazib
492d436217
sdm660-common: Downgrade qti-telephony-common to LA.UM.8.2.r1-05100-sdm660.0
Updating blobs to LA.UM.8.2.r1-06700-sdm660.0 was leading to RIL breaks and show following error-

* E AndroidRuntime: java.lang.NoSuchMethodError: No virtual method getEssentialRecordsLoaded()Z in class Lcom/android/internal/telephony/uicc/IccRecords; or its super classes (declaration of 'com.android.internal.telephony.uicc.IccRecords' appears in /system/framework/telephony-common.jar)
2020-10-19 11:36:06 +06:00
Max Weffers
2a27848f87
sdm660-common: overlay: Remove doze Autobrightness values
This reverts commit 4cd252e878983e8da8337525858a97f1b3aaac88.

breaks display turn on when notification comes in

Change-Id: I300853bfd806afffd55c6c3bc0c7dfde3e1cb0cb
2020-10-19 11:36:06 +06:00
Aryan Gupta
dd312cedee
sdm660-common: Back to tulip
Change-Id: I0d7cd52f299092664d0cfb39f93c246475abb99d
2020-10-19 11:36:06 +06:00
Max Weffers
f19d201ccc
sdm660-common: prop: Disable a2dp offload by default
Change-Id: Ife2be50467bb2834c318265864b94963ac4a1d22
2020-10-19 11:36:06 +06:00
Max Weffers
ab0918680e
sdm660-common: overlay: Rework doze Autobrightness values
Change-Id: I95912ded870f645fd2eb86580203bcb2c3e7e0d4
2020-10-19 11:36:06 +06:00