Commit Graph

851 Commits

Author SHA1 Message Date
danielml
84cbd43575 Revert "sm6150-common: parts: Enable doze_status on screen off"
* Manually setting the doze status before entering the low-power mode
  makes the doze mode not to be set correctly on sweet.

* The doze status is automatically set when entering the low-power mode

This reverts commit 10f101e143.

Change-Id: I4dfee2ffb351b9bc426268e437a26f9eaefec319
2023-06-05 11:38:04 +02:00
danielml
f4e2098486 sm6150-common: sepolicy: Rename sys.panel.display to vendor.panel.display
Change-Id: I1765a9f867dad4ec7bdea40c50671e6416f871cb
Signed-off-by: danielml <daniel@danielml.dev>
2023-06-05 11:38:04 +02:00
Sebastiano Barezzi
c87372b3db sm6150-common: sepolicy: Drop camera.sensor* properties
* These were renamed to vendor.camera.* properties whose definition
  already exists in our current policy

Change-Id: I4392a7880d36b6b6d6aff4a6d9b43c1fc2bab950
2023-06-05 11:38:04 +02:00
Sebastiano Barezzi
6d2810da32 sm6150-common: sepolicy: Bringup property_contexts for Android 13
Change-Id: I60070ba7658ce262be66ee3bdd0cb6cdcf9b8c49
2023-06-05 11:38:04 +02:00
danielml
187b64e74f sm6150-common: sepolicy: Remove no longer existing properties
Change-Id: Icf3ef6dbf497671fec757f0de56d58df432d1d87
Signed-off-by: danielml <daniel@danielml.dev>
2023-06-05 11:38:04 +02:00
Weikai Kong
af694709f1 sm6150-common: 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
2023-06-05 11:38:04 +02:00
Sebastiano Barezzi
855585a84b sm6150-common: libqti-perfd-client: Move to C
* Why bothering with C++ mangling when we can just build it as a standard C library?

Change-Id: I45ea977edf7ea7fab6fece76f3049654a8d24c5d
2023-06-05 11:38:04 +02:00
Chenyang Zhong
40e96f346b sm6150-common: libqti-perfd-client: return a dummy value
Return a positive integer for perf lock acquire and release so
that Goodix/FPC fingerprint sensor blobs will not complain.

Goodix:
E [goodixHAL][gf_hal_milan_f_series]: goodix_perf_lock_acquire: Failed to acquire perf lock, err: 0
E [goodixHAL][gf_hal_milan_f_series]: goodix_perf_lock_release: Perf lock release error 0

FPC:
E fpc_tac : fpc_perf_lock_acquire: Incorrect params, Failed to acquire perf lock, err
E fpc_tac : fpc_perf_lock_release: Perf lock release error 0

Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
Change-Id: I861672e9a738c2204755d802670f4b28b662f286
2023-06-05 11:38:04 +02:00
Bruno Martins
d477ef0667 sm6150-common: libqti-perfd-client: Remove namespace declaration
It's pointless when using extern "C".

Change-Id: Ibdf9f06a70aa3a75687b33781c78cf2172bb334d
2023-06-05 11:38:04 +02:00
Lucchetto
d1c9828f55 sm6150-common: Create dummy libqti-perfd-client
* proprietary perfd blobs can finally be nuked without breaking goodix
* we could even map the functions to use libperfmgr powerhints in the future

Change-Id: I124652f3041761966a3e3bd97c757fecc39cc5fb
2023-06-05 11:38:04 +02:00
Michael Bestas
014ef5ee19 sm6150-common: overlay: Enable multiple vibration strength levels support
Change-Id: If17503f2dd4bd4d6e333891f9649a7db8d809852
2023-06-05 11:38:04 +02:00
basamaryan
4fd45a6d3a sm6150-common: sepolicy: Label fpc wakeup node
Change-Id: I6c7b7d5d2777bfae02b3bd8b0d875ccc2564f337
2023-06-05 11:38:04 +02:00
Nolen Johnson
be567c8301 sm6150-common: Drop vestigial FM board-flags
* No longer read anywhere.

Change-Id: Iaf5d8cda03e055c4331e3a20e33c8058037b09b2
2023-06-05 11:38:04 +02:00
Georg Veichtlbauer
016949aaa4 sm6150-common: Remove max ZRAM compression streams setting
Kernels >4.7 will create a comp stream for each online CPU
and ignore /sys/block/max_compression_streams. This has been
backported to many 4.4 kernels as well.

Any device running a kernel with the upstream commit can safely remove
the parameter.

Upstream commit: 43209ea2d1

Change-Id: Ibb29b54a31f0fb5bd941d7709d15d571dd77ebf5
2023-06-05 11:38:04 +02:00
Alexander Koskovich
587bd40505 sm6150-common: init: Don't mount TraceFS twice.
* AOSP already mounts TraceFS in system init, so mounting it twice
   causes SEPolicy denials. See the comments in this change.

   https://android-review.googlesource.com/c/platform/system/sepolicy/+/1294195

Change-Id: Ic5d9ac2dbd36e404a93a8d48aa0ea933fd7fa701
2023-06-05 11:38:04 +02:00
SebaUbuntu
9d72a6566e sm6150-common: overlay: Drop MMS user agent overlays
* Current profile URL points to a 404 page

Change-Id: I92f3ded52dda04f6cec5709d51c84b32f39d8095
2023-06-05 11:38:04 +02:00
Danny Lin
d220c17b24 sm6150-common: overlay: Don't pin camera app in memory
The default camera app can be *huge* in some cases, e.g. when the app in
question is Google Camera. The system will only pin up to the first 80
MiB of the APK file, as well as the first 80 MiB of its odex. There are
several problems with this:

  - We could easily end up with 160 MiB of camera app files pinned,
    which is a tall order with the 8 GiB of usable RAM that we have
  - The data that gets pinned may not even be the most critical data for
    launching the camera

Let's disable pinning of the camera app to save RAM.

Change-Id: I745e39b6ff212dfaf9213517d2a2be8ff7384e24
2023-06-05 11:38:04 +02:00
Arian
5dee55fd0a sm6150-common: overlay: Set preferred refresh rate on keyguard to 60
This ensures that the device doesn't switch to hrr while
doze mode is active.

Change-Id: I8488e86e56a46aea95f2835d8667c23401625f0b
2023-06-05 11:38:04 +02:00
SamarV-121
87320fdb23 sm6150-common: Disable continuous transaction tracing on all build types
Change-Id: I95657a00e38f1229675682e784b20cca12c119b0
2023-06-04 10:55:57 +02:00
Ady Abraham
0bd5d02b54 sm6150-common: Enable GL comp backpressure
Enable backpressure for client composition to avoid jank due to
HWC queue stuffing.

Test: 1. Open Camera
      2. Swipe horizontally to go back to previous app.

Bug: 138083790
Change-Id: I3d26aa470c1660b23bd97133f39858f92638aca8
2023-06-04 10:55:57 +02:00
SamarV-121
0b9591f89f sm6150-common: Remove obsolete debug.sf.disable_backpressure
* It has been removed in Android S
 * 2ec5391acf

Change-Id: I23a210a37ad257f0c8b7a3c5e1d59b2ac20cde9a
2023-06-04 10:55:57 +02:00
Alex Sarraf
e6630baeb0 sm6150-common: Disable SF client composition cache
Disable SF client composition cache. Helps with framework
client target fence management.

Change-Id: I73e03e76f51d00fafad38479be00f4005be50665
2023-06-04 10:55:57 +02:00
Danny Lin
904d052076 sm6150-common: Disable EGL image tracking
This is a surfaceflinger debugging feature that we don't care about, so
disable it to reduce overhead.

Change-Id: Iaf6417d101f1a79bfadf85f779a614ed0460c56d
2023-06-04 10:55:46 +02:00
Midas Chien
be8d0f020d sm6150-common: Don't latch unsignal buffers
Set debug.sf.latch_unsignaled=1 is used to allow surfaceflinger to
latch unsignal buffers that can give more time for buffer to render.
But if the buffer takes longer time to finish, it will block whole
display pipeline result to jank.

Bug: 157964883
Test: scrolling, launch
Change-Id: I56c3e05921de5fc9569bf3f93fde03022a64b6a4
2023-06-04 10:55:39 +02:00
Sebastiano Barezzi
bb60b16ec9 sm6150-common: Uprev bluetooth audio HIDL impl to 2.1
* We get free LC3 support, isn't it poggers?

Change-Id: I0f1713ee542102374183ef8088bcad62d3859c2f
2023-06-04 10:55:32 +02:00
LuK1337
b2babf0134 sm6150-common: Make trust use dwc3 usb_data_enabled
Change-Id: I8fab94faf383c57e872596f8bb3c448afc6d75de
2023-06-03 21:42:43 +02:00
Arian
6c5731d55c sm6150-common: parts: Handle gestures category similar to pickup and proximity
Change-Id: I37d67cb457da7d04b83045e81693d35c58842471
2023-05-18 14:49:19 +02:00
Arian
0ceaa3e801 sm6150-common: parts: Get rid of nested PreferenceCategory
getPreferenceScreen().findPreference() does not find preferences
within another PreferenceCategory. That breaks hidin the proximity
category on devices which do not support it.

Change-Id: Ic7d840df7a71905b5b697954a279de51d8d0408a
2023-05-18 14:49:19 +02:00
raghavt20
4a67b5eb26 sm6150-common: sepolicy: Label Spi IR node
Change-Id: I550e823b11bbc8e37cffa164a2047d57d8a5499a
Signed-off-by: raghavt20 <raghavt20@aospa.co>
2023-05-18 17:09:45 +05:30
Sebastiano Barezzi
5ef61b13a0 sm6150-common: Go away Megvii
* Nuke Megvii proprietary files and build stub ones from hardware/xiaomi

Change-Id: I53f8f0897b25517741a06c5962c02fe8fda61072
2023-05-18 12:52:52 +02:00
Arian
90aaab2933 sm6150-common: Add lineage dependencies
Change-Id: I7ec06f31eac4e579076e65cc000638749dbfb7d7
2023-05-18 12:43:09 +02:00
Arian
34422f17c8 sm6150-common: Include sdmsteppe-perf_defconfig
Change-Id: I23c9bbdf101f2a4d31c7aeaba7a5cca3716a745d
2023-05-18 12:39:56 +02:00
ad1tyas1ngh
ad8e3baf84
sm6150-common: Fix libGLESv2_adreno.so symlink
Change-Id: I957655c449ff695481de81b128fcf00c0398e055
Signed-off-by: ad1tyas1ngh <adityasingh1768@gmail.com>
Signed-off-by: raghavt20 <raghavt20@aospa.co>
2023-05-10 22:41:30 +04:00
raghavt20
bd277e428a
sm6150-common: Kang libril-qc-hal-qmi.so from Redmi Note 10
From: mojito_global:12/SKQ1.210908.001/V14.0.2.0.SKGMIXM:user/release-keys
Change-Id: If1f1003ed4765831653c3cf90b79a73d3d97deca
Signed-off-by: raghavt20 <raghavt20@aospa.co>
2023-05-10 22:41:29 +04:00
raghavt20
e5ce6d0995
sm6150-common: Decommonize liboemcrypto
Some devices like violet didn't recieve Android 11 update
hence breaks Widevine L1 with liboemcrypto from Sweet[Redmi Note 10 Pro]

Change-Id: I3bfbd76bf9575e72be8d4d61586830198bfcf47a
Signed-off-by: raghavt20 <raghavt20@aospa.co>
2023-05-10 22:41:29 +04:00
Arian
979b46dab0
sm6150-common: Patch ims.apk from sweet V14.0.2.0.TKFMIXM
Patched to remove com.qti.permission.BIND_QTI_IMS_SERVICE and
Landroid/telephony/TelephonyBaseUtilsStub;->isMiuiRom()

Full patch: https://paste.myself5.de/zitiketuto.diff

Change-Id: I1ecff29d7089bffa50d41acb6b55c6d8e36d1d9c
2023-05-10 22:41:07 +04:00
basamaryan
cc603690ad
sm6150-common: Update blobs from sweet V14.0.2.0.TKFMIXM
Change-Id: Ifeab003e6182e09b00dd88d09b69334dc66d1610
2023-05-10 22:40:58 +04:00
Roger Liao
f9aae1686c sm6150-common: Update kernel target level
Updating kernel target level to Android R

checkvintf Error
checkvintf E : files are incompatible:
    Runtime info and framework compatibility matrix are
    incompatible: Kernel FCM version is not specified, but kernel version
    4.19.95 is found. Fix by specifying kernel FCM version in device
checkvintf E : manifest. For example, for a *-r kernel:
checkvintf E : <kernel target-level="5"/>
checkvintf E : INCOMPATIBLE

Bug: 148823278
Change-Id: Ia30013045b0fe15abc859dda503aed790aaeeb76
2023-04-11 15:22:57 +02:00
Arian
3719d185b0 sm6150-common: hidl: Add xiaomi framework compatibility matrix
Change-Id: I6c8e4ecfc6391ea1d59c68ddb43bdca9f6180826
2023-04-11 15:22:06 +02:00
Arian
ca7d835016 sm6150-common: Include qcom and lineage framework compatibility matrix
Change-Id: I12ec7ed7ca6c1b6111f46b2441a2768b23ea85bc
2023-04-11 15:21:35 +02:00
Arian
41d34a2c85 sm6150-common: Unpin RIL blobs from surya
Change-Id: Iebb839ec7fe45504e0aac62c8dd2e4126d131b0d
2023-04-11 15:20:23 +02:00
Arian
d08208285a sm6150-common: Sort proprietary-files.txt
Change-Id: If4c6a47a9bc9efc2c77421f8ba2685cc1a5fb3f6
2023-04-11 15:20:23 +02:00
llololo
849e237ae3 sm6150-common: Remove A2DP input module in audio policy configuration
No Pixel device support A2DP sink functionality.

Bug: 163050296
Test: A2DP related test.
Change-Id: I269220cf29451ea79362fc004fa073713f72fdb2
2023-04-11 15:20:23 +02:00
Arian
535ef6ad80 sm6150-common: Redefine bluetooth a2dp offload capabilities
Drop unsupported aptx codecs and rank aac below aptx

Change-Id: Ic0c4cefce9f4c39b609490b124230882dec605e9
2023-04-11 15:20:23 +02:00
Alexander Martinz
779599957d sm6150-common: Drop aptx blobs
They live within the bluetooth apex now.

Change-Id: I01ef1d665ce05b7ce5b1ee03129ccf3ce6058634
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
2023-01-29 21:30:38 +00:00
Arian
a3ee287d54 sm6150-common: audio: Don't advertise aptX TWS in audio policy config
Android 13 QPR1 does not seem to like advertising unsupported codecs here.

Change-Id: I23a7f626a268a0c89199aaa5899df9b812d85ae2
2023-01-29 21:30:37 +00:00
basamaryan
52a5530afe sm6150-common: sepolicy: Label more wakeup nodes
Change-Id: I3fd5d4f44b28b7c0c8bff6adb8d39e9a389b1981
2023-01-27 01:32:59 +00:00
Paul Keith
4560af5d2f sm6150-common: livedisplay: Fix racy init
* It turns out moving this to class main doesn't work as well
  as some had thought it would, so restore the previous logic
  to use class hal, and restart if the backend isn't up yet

Change-Id: Ib8b417d89108dcf80d0d159e8d84e5327944b2a1
2023-01-27 01:32:59 +00:00
Edwin Moquete
5c5679a04e sm6150-common: properties: Remove unused persist.bluetooth.a2dp_offload.cap property
This prop has no effect as of T QPR1.

See: cf25e33147

Change-Id: Ic762812dd59429d344ccc55c01bf96b0ffd6dbab
2023-01-27 01:32:59 +00:00
basamaryan
598ab2e3be sm6150-common: audio: Drop 24 and 32 bit recording support
* This unfortunately causes some applications from Meta
  to record low volume audio in calls and voice messages.

Change-Id: I7e9ea6faa2ddbb5cf5f44bbf5060b41edd7bf1e9
2023-01-27 01:32:59 +00:00