Commit graph

737 commits

Author SHA1 Message Date
Giammarco Senatore
df5cd8ff7e
sdm710-common: Drop unneeded sensors libs
we use prebuilt 2.0
2021-08-16 21:55:24 +02:00
Giammarco Senatore
31177d1229
sdm710-common: Drop unwanted codec2 seccomp policy
and lib
2021-08-16 21:55:24 +02:00
Giammarco Senatore
07b514cd94
sdm710-common: Drop health entry in manifest
we use 2.1 that has fragment vintf
2021-08-16 21:55:23 +02:00
Giammarco Senatore
6b05d70854
Revert "Add build broken flags in BoardConfig.mk"
This reverts commit ce11e64add.
2021-08-16 21:55:23 +02:00
Demon000
6687ec44b2
sdm710-common: Build separate system and vendor HIDL libs
and cleanup sdm710.mk

Change-Id: If8e2211e643bdb0ff67fb248e7fe33b78077a06e
2021-08-16 21:55:23 +02:00
Robert Shih
d5172c8756
sdm710-common: Enable v1.3 drm plugins
Bug: 139134043
Test: MediaDrmTest
Change-Id: Iacab99903846ef5d63e7535f163190a9bd476f79
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2021-08-16 21:55:23 +02:00
Chenyang Zhong
3cacb8f7b0
sdm710-common: clean up display stack
libdisplayconfig was replaced by libdisplayconfig.qti on R. While
we are at it, build vendor.disiplay.config@1.0.vendor as well so
that QSEECOMD is happy.

E QSEECOMD: : Init dlopen(libsecureui.so, RLTD_NOW) is failed.... dlopen failed: library "vendor.display.config@1.0.so" not found: needed by /vendor/lib64/libsecureui.so in namespace (default)

Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2021-08-16 21:55:23 +02:00
David Ng
08f71ce1db
sdm710-common: Add common config.fs AID/fs configuration file
Common config.fs/$TARGET_FS_CONFIG_GEN AID/fs configuration
file for all chipset inheriting from base.mk.

Since legacy device-specific android_filesystem_config.h and
config.fs do not co-exist, temporarily include config.fs only
if legacy file is absent.  Once all legacy, device-specific
files have been deleted, config.fs can be made unconditional.

Change-Id: Ie100d0cd9db808b82d99be7139f0709390c7f3a2
2021-08-16 21:55:23 +02:00
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