Commit graph

916 commits

Author SHA1 Message Date
hh2333
f0b5986f56
sdm710-common: Disable settings provider model
* When it is enabled, if we have multiple SIM cards, the networks
  settings UX will only show the first SIM card.
2021-10-30 12:23:22 +02:00
Chenyang Zhong
cfb696ab83
sdm710-common: disable blurs
Blurs on android12 are extremely janky, even with EXPENSIVE_RENDERING
raising GPU frequency.

W FrameTracker: Missed SF frame:1
W FrameTracker: Missed SF frame:4
W FrameTracker: Missed SF frame:68
W FrameTracker: Missed SF frame:68
W FrameTracker: Missed SF frame:65
...

Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2021-10-23 13:55:54 +02:00
Rick Yiu
ae1bd89aa2
sdm710-common: rootdir: Remove some camera-daemon commands
Those commands have moved to init.rc.

Bug: 170507876
Bug: 171740453
Test: build pass
Change-Id: Ib7acc0fd83adca37e247cd9f3113c1f117e5196e
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2021-10-21 19:39:24 +02:00
Wilson Sung
711c2be171
sdm710-common: Set SOC properties for SDM710
Bug: 158284209
Bug: 180589452
Change-Id: I31ec2aff20a4efb3c502ee5c8c6463e31c892bd5
Signed-off-by: Wilson Sung <wilsonsung@google.com>
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2021-10-21 19:37:13 +02:00
Chenyang Zhong
ed065abb05
sdm710-common: sepolicy: allow vendor_init to read persist_debug_prop
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2021-10-20 22:42:05 +02:00
Chenyang Zhong
2ebb67f1d4
sdm710-common: relax sysprop owner enforcement
Quoting commit afc09932f6fa07c5f6beffbcdc2bb4691e527321 in
system/sepolicy [1]:

"Devices launching with R or eariler can this by setting following
under BoardConfig.mk"

It is impractical to replace every prop definition from qcom to
vendor_property_type for old platforms like SDM845, so relax the
enforcement to avoid triggering millions of neverallows.

ref:
[1] afc09932f6

Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2021-10-20 22:38:25 +02:00
Yan Wang
c912954421
sdm710-common: iorap: Enable iorapd prefetching
Bug: 141987657
Bug: 139831359

Change-Id: I71c32bf3f1b1c406dd27ac643638ea909b849ee6
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2021-10-20 22:38:25 +02:00
jjpprrrr
397dc77a48
sdm710-common: build the missing libs
Not sure why these aren't there by default anymore.
2021-10-20 22:38:25 +02:00
Nicolas Geoffray
72825aa852
sdm710-common: overlay: Remove odex/oat files from pinner list.
The pinner now asks the runtime for these files.

Test: adb shell dumpsys pinner
Bug: 144773394
Change-Id: Ie633ea788dab3389a3407ec9a461b5837befca46
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2021-10-20 22:38:25 +02:00
Kevin Jeon
40828afa14
sdm710-common: overlay: Update SurfaceFlinger pin
This change replaces the '/system/lib64/libsurfaceflinger.so' pin, as
the file was removed in ag/12524602. The updated pin relies on
go/aog/1552085, as system_service needs read access to SurfaceFlinger.

Bug: 176197656
Test: adb shell dumpsys pinner (coral)
      - shows that /system/bin/surfaceflinger is successfully pinned
      adb logcat | grep PinnerService (coral)
      - no longer shows a file-not-found error in PinnerService
Change-Id: Iae2a96c5fe4b1f5698d21de9970140321d11c460
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2021-10-20 22:38:25 +02:00
Edwin Wong
d9972b2bd9
sdm710-common: Update clearkey plugin to drm HAL v1.4
Test: atest
  atest CtsMediaTestCases:android.media.cts.MediaDrmClearkeyTest#testGetPlaybackComponent

Bug: 182525516
Change-Id: I3adf55199301768bacb38103c3ef4ba24807df2f
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2021-10-20 22:38:25 +02:00
Giammarco Senatore
5b5fd7d902
sdm710-common: Drop updatable APEX 2021-10-20 22:38:24 +02:00
Giammarco Senatore
ddee12f5a5
sdm710-common: Permissive SELinux 2021-10-19 23:37:11 +02:00
Giammarco Senatore
9c817e7254
sdm710-common: Drop WfdCommon boot jars for now 2021-10-19 17:43:01 +02:00
Jeongik Cha
d88dc70552
sdm710-common: Specify version for aidl_interface explicitly
Bug: 150578172
Test: m
Change-Id: I4a9bf218b92252403e9ebbe8f89b10ee1899283f
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2021-10-19 17:39:33 +02:00
victor10520
53414d84bc sdm710-common: fix package names of rro_overlays
Users complaining about what oneplus sdm845 doing in lenovo builds
2021-09-24 19:54:48 +03:00
Bruno Martins
f28ae5e99e
sdm710-common: Build offline charging daemon dependency
This must be explicitly built as of R. Fixes off mode charging. (not yet here)

Change-Id: Ie013d25d55105b4eb2191b9fd625ed8e02c863c5
2021-08-22 15:50:36 +02:00
Shrikara B
927562f4ae
sdm710-common: media: Update performance points
Update performance points of few video encoders and
decoders

Change-Id: I2bd73a07baf46d5b86e3aacb10fc6ebe38e49c00
2021-08-22 15:23:58 +02:00
Mahesh Lanka
ff8808f4eb
sdm710-common: omx: Publish performance points
Publish performance points for HW codecs

Change-Id: I76fb57f4ff26428982264a3aaebbbcbf3941fa04
2021-08-22 15:23:56 +02:00
Manikanta Kanamarlapudi
3e460972c2
sdm710-common: Change secure max instances to 3
change secure max instances to 3

CRs-Fixed: 2293050
Change-Id: I590fcadaddd4cbe7ffb8b29e99fec0b7fad569e0
2021-08-22 15:23:40 +02:00
uixdess
9f4635840e
sdm710-common: Merge QCOM media codecs configs with ones being parsed
(nuke whole vendor configs here)

 * Without CodeAurora's modifications in frameworks/av, the vendor suffixed
   media codecs configs are not parsed at all. Move select vendor additions
   into the main files in order to enumerate support for hardware-backed
   HEVC encoder.
2021-08-22 15:23:19 +02:00
Giammarco Senatore
030df1de92
Revert "kunlun2: drop livedisplay"
This reverts commit 835641f2cf.
 And remove sunlight
2021-08-19 13:51:58 +02:00
jjpprrrr
13d3363ece
sdm710-common: powerhint: set /dev/cpu_dma_latency value in hex
/dev/cpu_dma_latency accepts values in either s32 or hex format,
so convert 67 (dec) to 43 (hex).

sdm845-common comment:

I assume Google meant to set cpu dma latency to 44 in decimal
rather than hex because 44 is the lowest valid latency value for
C3 LPM state, according to qcom,latency-us in sdm845-pm.dtsi.

The pm qos request is only active when the fd is kept open, so
the dummy value of 100 does not really matter. Keep it as is.

Test: hexdump -C /dev/cpu_dma_latency

00000000  2c 00 00 00                                       |,...|
00000004

Test: kernel pr_err() in pm_qos_power_write() before
      pm_qos_update_request()

Inspired by Artem's commit "qos: Workaround for faulty libperfmgr
config".

Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2021-08-19 00:45:23 +02:00
Giammarco Senatore
b799885863
sdm710-common: Update dependencies 2021-08-19 00:23:23 +02:00
Giammarco Senatore
c2918e4349
sdm710-common: Add file_contexts for neuralnetworks hal 2021-08-18 13:16:08 +02:00
Giammarco Senatore
ea5649d744
sdm710-common: Add missing init.msm.usb.configfs.rc from stock
- files are same on both jd2019 and kunlun2
2021-08-17 22:36:47 +02:00
Giammarco Senatore
32471d788e
sdm710-common: Fix green screen WFD 2021-08-16 21:55:24 +02:00
Giammarco Senatore
b3fae0714c
sdm710-common: Drop duplicated gralloc1 config 2021-08-16 21:55:24 +02:00
Udaya Bhaskara Reddy Mallavarapu
4cd1b6296d
sdm710-common: Enable 64 bit DRM plugins compilation
Enable 64 bit compilation for DRM plugins.
This will generate DRM plugins, HALs & oemcrypto_test in 64 bit.

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