Commit graph

779 commits

Author SHA1 Message Date
Giammarco Senatore
3bb90fc389
sdm710-common: Update permissions from xiaomi-sdm845 2021-08-16 21:55:22 +02:00
Yan Wang
9586b17baa
sdm710-common: iorap: Turn pinner on for camera
Bug: 157667363
Test: Check the pinner in dumpsys
Change-Id: I6313e4c7a0ad0e8236390d773f29b2109a82c615
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2021-08-16 21:55:22 +02:00
jjpprrrr
e34b106c55
sdm710-common: Update all common blobs
ADSP, CDSP, charger, CNE, Configstore, Display, DPM, DRM,
ESE, Adreno, Vulkan, IMS, Media, Peripheral, Power-off Alarm, QMI,
RIL, SCVE, Soter, Time services, TEE, TUI, VPP, Widevine, WFD
2021-08-16 21:55:18 +02:00
jjpprrrr
c34f2ca228
sdm710-common: Pack libwfdaac_vendor for WFD
move WifiOverlay to wifi

Change-Id: I828918c42e1eb2963829d62a9dbeee83e2f0e600
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2021-08-14 14:38:22 +02:00
victor10520
0a5ec27313 sdm710-common: releasetools: flash firmware images 2021-08-12 00:25:29 +03:00
UtsavBalar1231
6215927695 sdm710-common: WifiOverlay/wcnss: Relax RSSI thresholds
* Fixes random WIFI crashes
E/WifiVendorHal(1633): stopRssiMonitoring(l.2100) failed {.code = ERROR_NOT_AVAILABLE, .description = }
V/WifiClientModeImpl(1633): stopIpClient IpClientWithPreConnection: false
V/WifiClientModeImpl(1633): java.lang.Throwable
V/WifiClientModeImpl(1633): 	at com.android.server.wifi.ClientModeImpl.stopIpClient(ClientModeImpl.java:1068)
V/WifiClientModeImpl(1633): 	at com.android.server.wifi.ClientModeImpl.stopDhcpSetup(ClientModeImpl.java:1083)
V/WifiClientModeImpl(1633): 	at com.android.server.wifi.ClientModeImpl.handleNetworkDisconnect(ClientModeImpl.java:2760)
V/WifiClientModeImpl(1633): 	at com.android.server.wifi.ClientModeImpl.access$5600(ClientModeImpl.java:163)
V/WifiClientModeImpl(1633): 	at com.android.server.wifi.ClientModeImpl$ConnectModeState.processMessage(ClientModeImpl.java:4284)
V/WifiClientModeImpl(1633): 	at com.android.wifi.x.com.android.internal.util.StateMachine$SmHandler.processMsg(StateMachine.java:992)
V/WifiClientModeImpl(1633): 	at com.android.wifi.x.com.android.internal.util.StateMachine$SmHandler.handleMessage(StateMachine.java:809)
V/WifiClientModeImpl(1633): 	at android.os.Handler.dispatchMessage(Handler.java:106)
V/WifiClientModeImpl(1633): 	at android.os.Looper.loop(Looper.java:223)
V/WifiClientModeImpl(1633): 	at android.os.HandlerThread.run(HandlerThread.java:67)
D/DhcpClient(2452): doQuit
D/QCNEJ/WlanStaInfoRelay(2529): Received action: android.net.wifi.STATE_CHANGE
D/QCNEJ/WlanStaInfoRelay(2529): reset CountryCodeRetriever
D/ApfFilter(2452): (wlan0): shutting down
I/WifiClientModeImpl(1633): disconnectedstate enter
E/WifiScoringParams(1633): Invalid frequency(-1), using 5G as default rssi array
D/WifiNetworkAgent(1633): NetworkAgent: NetworkAgent channel lost
I/GnssNetworkConnectivityHandler(1633): Network connection lost. Available networks count: 0
I/GnssNetworkConnectivityHandler(1633): updateNetworkState, state=CLOSED, connected=false, network=100, capabilities=[ Transports: WIFI Capabilities: NOT_METERED&INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN&VALIDATED&NOT_ROAMING&FOREGROUND&NOT_CONGESTED&NOT_SUSPENDED LinkUpBandwidth>=65000Kbps LinkDnBandwidth>=65000Kbps SignalStrength: -71 AdministratorUids: [] SSID: "Skymedia_19" RequestorUid: -1 RequestorPackageName: null], apn: , availableNetworkCount: 0
I/LocSvc__AGnssRilInterface(823): ===> updateNetworkState_2_0 line 110
D/QCNEJ/DefaultNetworkInfoRelay(2529): Default network lost: 100
D/QCNEJ/NativeHalConnector(2529): -> SND notifyDefaultNetworkChanged(1)
D/QCNEJ/WlanStaInfoRelay(2529): network lost: 100
D/QNEJ/WlanStaInfoRelay(2529): onLost: unbind the process to WIFI
D/AppCenter(10415): Network 100 is lost.

Change-Id: I385391f278086520530cc9215ca6fdae55c40b73
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Signed-off-by: raghavt20 <raghavtandon2000@gmail.com>
2021-08-12 00:22:38 +03:00
Giammarco Senatore
09cd80eeb5
sdm710-common: Go enforcing
- major cleanup
- sepolicy from xiaomi-sdm845-common
- label both goodix and fpc
- allystar GPS uart port and ontim nodes
2021-08-11 22:41:19 +02:00
LuK1337
1aaa277c78
sdm710-common: Drop mkdir /data/{fota, hostapd}
* vendor_init isn't allowed to create files under system_data_file
  context, leading to early init panic.

Change-Id: Ie344cc4ece2783bb7d372f64c2c23b4d5ea2cda0
2021-08-11 13:59:58 +02:00
victor10520
6c070458d4
sdm710-common: overlay: Decommonize power_profile 2021-08-07 15:30:05 +02:00
victor10520
ea68db46ed
sdm710-common: proprietary-files: Decommonize device specific camera blobs 2021-08-07 15:30:02 +02:00
victor10520
f877dd3c88 sdm710-common: proprietary-files: Decommonize device specific sensors blobs 2021-08-07 12:57:31 +03:00
Giammarco Senatore
d41291f099
sdm710-common: proprietary-files: Decommonize cnss-daemon 2021-08-05 14:57:48 +02:00
Minchan Kim
40863d5577
sdm710-common: Enable zram writeback job scheduler
Bug: 140882488
Change-Id: I5489a7ce7a8d73306a6ecf69f57d338b2b0eaad2
Signed-off-by: Minchan Kim <minchan@google.com>
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2021-08-02 12:19:37 +02:00
jjpprrrr
ca14a6656d
sdm710-common: overlay: cleanup unused auto brightness values
Removed unused values that no longer exist in the current frameworks
2021-08-02 12:07:24 +02:00
Dyneteve
906e32bca8
sdm710-common: audio: Add HIFI mixer controls [1/2]
Signed-off-by: Henrique Pereira <hlcpereira@pixelexperience.org>
2021-08-02 11:57:44 +02:00
Henrique Pereira
65cb7a78e4
sdm710-common: Split system properties from vendor 2021-08-02 11:57:36 +02:00
Kra1o5
02b355647f
sdm710-common: Define display features via property
Android 10 deprecates the ConfigStore HAL as we can see here:
https://source.android.com/devices/architecture/configuration

Signed-off-by: Mesquita <mickaelmendes50@gmail.com>
Change-Id: Ia9d862190e0da544096023b28f18323c58352546
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2021-08-02 11:57:26 +02:00
Giammarco Senatore
986619b274
sdm710-common: Add support for kunlun2_row 2021-08-01 22:25:35 +02:00
Giammarco Senatore
f6f497c743
sdm710-common: Initial commonized tree
* minor cleanup in overlay and init rc
* drop dolby
2021-07-25 21:56:17 +02:00
Bruno Martins
470c614f62
sdm710-common: Add PocketMode app 2021-07-25 02:07:25 +02:00
Giammarco Senatore
78fe8f26f8
kunlun2: update thermal engine conf from Pixel 3A XL
change sensors to the one we use, no need to change in dtsi like google does
2021-07-21 15:18:20 +02:00
Giammarco Senatore
ecf3a4d1fa
kunlun2: Do not copy Gcam anymore 2021-07-21 15:18:17 +02:00
Giammarco Senatore
1f26a4e822
kunlun2: Partially revert "Drop android.hardware.thermal HAL"
We still need thermal engine

This partially reverts commit 11d6885d93.
2021-07-20 01:26:53 +02:00
CrisBalGreece
850f0539ad
kunlun2: Kang media codecs from Nokia 8.1
from PNX_00WW_FIH-user-11-RKQ1.200906.002-00WW_6_210-release-keys

 and nuke old deprecated vp8-vp9 media codecs
2021-07-19 12:39:06 +02:00
Weikai Kong
af9d08a137
Add back ro.vendor.extension_library definition
* We aren't using QCOM's perfd but our blobs still check for this.
 * To avoid unnecessary errors, let's just add it back.

Change-Id: Icc44b330f21a658cfa8ded691a6628d8f62c3649
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-17 21:07:54 +02:00
Giammarco Senatore
6bfcf3971c
kunlun2: copy calib xml to vendor 2021-07-17 21:07:42 +02:00
Jesse Chan
224544bcb7
overlay: configure SQLite to operate in MEMORY mode
This change yields considerable SQLite performance gains. It
should be generally safe as this device has irremovable battery.

Some OEMs have been doing this for years.

Signed-off-by: Jesse Chan <jc@lineageos.org>
Signed-off-by: DennySPb <dennyspb@gmail.com>
Change-Id: I50d9b3d9f019772fedc7066675249116d5e441e4
2021-07-17 18:55:33 +02:00
Bruno Martins
cdd81c7801
Use CodeAurora ImsService implementation for RCS
There is no evidence that Qualcomm devices running a rather recent IMS
stack need to include AOSP RCS packages. RCS already worked before this
change and continues to do so, but the main goal was to get rid of some
of the RCS related log spam, which was accomplished here.

Change-Id: I219546e29d288373877e9bcd194a60ef5e09f224
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-17 18:54:38 +02:00
Han Wang
66bdd28b09
Revert "kunlun2: Add AOSP RCS packages"
* This is built by default in 11.

Change-Id: Ib7c0d62988849902b6907509a6a6016a909d8f66
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-17 18:53:11 +02:00
Ethan Chen
4efd4900c5
kunlun2: Enable Pixel atrace HAL
Change-Id: I34691e5e909b6ca76dc97fd5c45328e3f80b67e1
Signed-off-by: Henrique Pereira <hlcpereira@pixelexperience.org>
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-17 18:48:16 +02:00
Hai Shalom
a811bb4204
kunlun2: Disable WPA2 to WPA3 auto-upgrade in P18 and P19 devices
Disable WPA2 to WPA3 auto-upgrade in P18 and P19 devices.
These devices do not support roaming in WPA3 networks. Reduce the
probability of roaming issues by using WPA2 and not upgrading to WPA3.

Bug: 169948620
Test: atest ClientModeImplTest ScanResultMatchInfoTest WifiCandidatesTest
Change-Id: I9f7ec5c0007efcc5c6669d013c8b24347b15f7c4
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-17 18:47:05 +02:00
Mingguang Xu
d76a37d4c8
kunlun2: WifiOverlay: enable minimum confirmation duration
for sending network score to connectivity service

Bug: 166152800

Test: verified feature works on device

Signed-off-by: Mingguang Xu <mingguangxu@google.com>
Change-Id: I646709894682e73cce6e181098b75587551d7604
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-17 18:45:29 +02:00
Sunil Ravi
438c054c19
kunlun2: wifi: Disable TDLS offchannel.
TDLS off-channel feature is needed only for
certification. Disable the feature in production
builds.

Bug: 161320896
Test: Basic wifi sanity test.
Change-Id: I99e34efdc1137e10d31de985771e84b8b1aa3d86
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-17 18:45:01 +02:00
David Su
38ba53ff7c
kunlun2: Don't sign Wifi RROs with platform cert
Preinstalled overlays needn't be signed with the same cert
as the package it overlays, simply being preinstalled is
enough. Sign with the default cert instead for now, which
provides fewer special privileges.

Bug: 162195999
Test: verify values still overlaid correctly
Change-Id: I017491fd383551c5aadf8648edb900e0c12a27b8
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-17 18:44:35 +02:00
Bruno Martins
b032505ae4
kunlun2: Add missing IMS symlinks
Change-Id: Id29022e1c46d5b386aeaec78f80b244e220c55c6
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-17 18:42:52 +02:00
Nolen Johnson
4f4b23a436
kunlun2: bluetooth: Disable clean turn on
* This isn't needed anymore.

Change-Id: Ib77e5212099d82bbc07aea6044eb35109faff5cb
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-17 18:42:08 +02:00
DennySPb
96b8fa6c22
Kang renderscript drivers from crosshatch
2x faster then generic implementation

Change-Id: Id1eb5820479c3e5cc7f01502f79181f432398237
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-17 18:40:33 +02:00
Giammarco Senatore
f63ead3994
kunlun2: Remove unnened lenovo init scripts
and some cleanup
2021-07-17 18:14:46 +02:00
Giammarco Senatore
c119216557
kunlun2: Address some initial denials
- Nuke folder creation that breaks encryption
- Nuke permissivers and other creepy things
- Properly label light and fp HALs
- Address initial fingerprint denials
- Label camera zui prop
2021-07-17 18:11:00 +02:00
Fiona Campbell
e6d6a83f22
kunlun2: Add brightness float values to config file.
Test: manual testing - ensure that the brightness value in
Settings>Display>Brightness Level can go the full range from 0% to 100%.

Change-Id: I9e57760f9eb78bf944cea4e808866c16e3ffa695
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-17 11:27:27 +02:00
Pig
d06a7361f4
light: Remove backlight support in favour of hwcomposer
Signed-off-by: DennySPb <dennyspb@gmail.com>
Change-Id: Ia05d24423bb80bb5df6a5352ea68bd8e971d5b32
2021-07-16 23:40:47 +02:00
Bruno Martins
0e256fece3
Ditch vendor.rild.libpath prop
This is only needed for AOSP rild services. It's currently
unused since the move to QCRIL.

Change-Id: I5eb4d0bc2d086d5a2f29e3c3f5ee2d8f0220f5f5
2021-07-16 23:38:58 +02:00
DennySPb
0ab66457c6
kunlun2: Sort and cleanup vendor.prop 2021-07-16 23:32:06 +02:00
Bruno Martins
961898527d
sepolicy: Add thermal-engine rules
Signed-off-by: DennySPb <dennyspb@gmail.com>
Change-Id: I4ef5664b036d0cff81ebb39646276b208da4986b
2021-07-16 23:25:14 +02:00
DennySPb
37b5c61917
sepolicy: Fix camera properties for vendor build
Signed-off-by: DennySPb <dennyspb@gmail.com>
Change-Id: I9eda9aa87102c44400c4dfb48588835d6ecb834f
2021-07-16 22:07:31 +02:00
GiaSen
57e6de12d3
sepolicy: address some more denials
and nuke neverallows
2021-07-16 18:44:08 +02:00
Bruno Martins
cb9efcce49
kunlun2: Opt-in for QC RIL service
Change-Id: I8f25446824efad6a14211cc77264524f908df7cd
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-16 18:44:07 +02:00
Alex Naidis
24a8008375
wifi: enable QPower and Deep sleep at the same time
* This enables Deep Sleep mode, additionally to QPower
* With this configuration, QPower manages the new Deep sleep mode
 -> Leads to amazing power savings

Signed-off-by: Alex Naidis <alex.naidis@linux.com>
Signed-off-by: Henrique Pereira <hlcpereira@pixelexperience.org>
Signed-off-by: DennySPb <dennyspb@gmail.com>
Change-Id: I052498f312b3b3f7c6d843c9b69a9aca9aecb72a
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-16 18:44:07 +02:00
George Chang
c78d20bfcd
rootdir: Default enable uicc se
It should be true in new versions.
uicc_se_enabled is true by default, but persist property
may remain false after ota

Bug: 149075883
Test: enable uicc_se
Change-Id: I78f8d51cb9ffb92f4eb7dea232920c2b69ce359d
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-16 18:44:07 +02:00
Adam Shih
84460e3bdf
sepolicy: gmscore_app: suppress denials on firmware
Bug: 149543390
Bug: 149062700
Bug: 151195371
Test: boot with no gmscore_app avc error
Change-Id: I4c667b86863121529f7c3a24b9daf615260104c7
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-16 18:44:07 +02:00