Commit Graph

1223 Commits

Author SHA1 Message Date
Bharath
2f4762110b sm6150-common: Disable HID RAW support
This is a new feature which requires support on vendor and kernel
side. Since there is no support, drop declaring support for this.

Test: run cts -m CtsAccessibilityServiceTestCases -t android.accessibilityservice.cts.BrailleDisplayControllerTest
Change-Id: I9036cc09f095674d5e912fccf6453d93bb92204c
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-06-18 11:38:23 +00:00
Hridaya Prajapati
a66ba6499b sm6150-common: sepolicy: remove duplicate IR rules
Change-Id: I825fac0d61b9dac2fb3e875ccc9df4232d335f50
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-06-09 03:08:00 +00:00
therealmharc
8e9a497211 Revert "sm6150-common: Move to Xiaomi fingerprint AIDL"
This reverts commit 20d156bcab.

- also drop fcm entry

Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-11 01:11:54 +00:00
therealmharc
8cc6a4d870 sm6150-common: declare missing FCM entries
- generated using https://gist.github.com/SebaUbuntu/ec053a00a9988eaea091fb1cc1f19324

The following HALs in device manifest are not declared in FCM <= level 6:
  android.hardware.biometrics.fingerprint.IFingerprint/default (@4)
  android.hardware.bluetooth.audio.IBluetoothAudioProviderFactory/default (@4)              android.hardware.drm.IDrmFactory/clearkey (@1)
  android.hardware.health.IHealth/default (@3)                                              android.hardware.ir.IConsumerIr/default (@1)
  android.hardware.power.IPower/default (@5)                                                android.hardware.thermal.IThermal/default (@1)
  android.hardware.usb.gadget.IUsbGadget/default (@1)                                       android.hardware.wifi.IWifi/default (@2)
  android.hardware.wifi.hostapd.IHostapd/default (@2)                                       android.hardware.wifi.supplicant.ISupplicant/default (@3)
COMPATIBLE

Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-10 11:01:01 +00:00
therealmharc
5be0d339b7 sm6150-common: Migrate TARGET_CAMERA_PACKAGE_NAME to soong_config_set
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-10 08:54:16 +00:00
yingjiew
db725d07f5 sm6150-common: gps: Avoid access of deprecated LocUnorderedSetMap entry
When there is no client listens to some DataItemId, we will remove
the map entry. Can't access the deleted entry's iterator anymore.

Change-Id: Id64aadebf7362667fbcf0fd5191f888ed9241727
CRs-Fixed: 3886536
(cherry picked from commit 0049d459cc1772f328e29a4c6b6d129af132e7b8)
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-10 08:54:16 +00:00
Michael Bestas
d417b91b3f sm6150-common: Migrate camera override format from reserved to soong_config_set
Signed-off-by: lemezohaib <zhbkhan644@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-10 08:54:16 +00:00
Yumi Yukimura
e671eb6c69 sm6150-common: Run hvdcp_opti in recovery mode
* Enables charging in recovery mode
  (will be useful when the main OS is not downstream Android...)

Change-Id: Ife2b7b82439ccedf2456080d8106966cdad7669f
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-10 08:54:16 +00:00
Yumi Yukimura
bbd0dfb1d0 sm6150-common: Switch to $(TARGET_COPY_OUT_RECOVERY)
Change-Id: I2a5b7a1a7ea431ba3a0f12bef5af04c5c465bc6f
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-10 08:54:16 +00:00
LuK1337
31012e1be4 sm6150-common: Switch to NCM USB tethering
Change-Id: I20b6b2b2e26a45d8b28c7483afc83ad4da4b8643
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-10 08:54:16 +00:00
lemezohaib
d7ee1dc415 sm6150-common: Migrate libcameraservice extension lib via soong_config_set
Signed-off-by: lemezohaib <zhbkhan644@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-10 08:54:15 +00:00
Michael Bestas
370c890d03 sm61510-common: Migrate Lineage Health to soong_config_set
Signed-off-by: lemezohaib <zhbkhan644@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-10 08:54:15 +00:00
donjohanliebert
336b724bde sm6150-common: add ViPER4AndroidFX support
Change-Id: I0c49956f5e88d8208bfb9f23da2a011338264d58
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-10 08:54:15 +00:00
Simao Gomes Viana
d4fc693590 sm6150-common: Set appropriate dalvik props for 8GB ram device
* Based on 14a6b59647
* Let's use this instead of the old one we've been using before

Signed-off-by: Simao Gomes Viana <xdevs23@outlook.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-10 08:54:15 +00:00
hac4us06
5f0d3a8304 sm6150-common: properties: Tone down CamX and CHIUSECASE logging
Signed-off-by: hac4us06 <hac4usanime@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-10 08:54:15 +00:00
darkphnx
8e718d2dd9 sm6150-common: propertiee: Disable FPS capping to 60 for Games on A15
Signed-off-by: darkphnx <dark.phnx12@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
Sourajit Karmakar
f63e443b8d sm6150-common: properties: Disable FRP
* This should really be disabled after unlocking the bootloader.

Signed-off-by: Sourajit Karmakar <sourajitk@statixos.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
Praveen Chavan
7f0bb2ee92 sm6150-common: properties: Add a property to enable prefetching video
persist.mm.enable.prefetch, if set to true, will enable
prefetching of video input from upstream source to help
improve playback performance for high frame-rate and
high bitrate content

Signed-off-by: Praveen Chavan <Praveen Chavan@users.noreply.github.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
Dobsgw
63d0170500 sm6150-common: rootdir: Fix PowerHAL nodes
Fix for:
W libperfmgr: Failed to write to node: /dev/stune/top-app/schedtune.boost with value: 10, fd: -1
W libperfmgr: Failed to write to node: /dev/stune/top-app/schedtune.prefer_high_cap with value: 0, fd: -1

Change-Id: Ieb385110f236ab12549aea198639708068fb6156
Signed-off-by: Dobsgw <george.w.dobson@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
Erik Drozina
73fa702f31 sm6150-common: sepolicy: Label some RIL property
W/libc: Access denied finding property "{ro.fota.oem,ro.product.marketname}"

Change-Id: I7272823540980a927cfb8243122de941e16a97c2
Signed-off-by: Erik Drozina <erikdro41@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
Jeferson Oliveira
8767b80032 sm6150-common: rootdir: Restrict apps access to /proc/net/unix
* Banking apps read the file /proc/net/unix to
  check system modifications, (in our case, custom rom)
  Let's avoid this by chmod it 440.

Test: Install a banking app as of Brazilian Nubank or PicPay, login.
Observed no side effects on any other proccess or apps

Change-Id: Iec7897faf487785bdc202b146a50d9ac5fd1ea85
Signed-off-by: Jeferson Oliveira <jroliveira.oliveira301@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
PainKiller3
9a48c665f4 sm6150-common: properties: Disable vsync for CPU rendered Apps
* Choreographer VSync has some performance impact for CPU rendered apps
as the app has to wait for VSync to start a new frame draw. When the
frame draw time exceeds one VSync, this has a direct impact on the FPS.
debug.cpurend.vsync property controls the VSync for CPU rendered apps.

Disable VSync for CPU rendered app, by setting this property to false.

Change-Id: If8c6f9e182eac6d015dbb69fe2a74fc9b3a85c1f
Signed-off-by: PainKiller3 <ninadpatil100@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
Luk1337
9596641a8a sm6150-common: wifi: Disable RX wakelock feature
Change-Id: I1866ad612b5326e552ac616be886d2339902f8c1
Signed-off-by: Luk1337 <priv.luk@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
kerneltoast
d0aa61420c sm6150-common: wifi: Relax WiFi re-association RSSI thresholds
Change-Id: I13273eae3d0dfe50fb2a7562d7b674ea503c2b7d
Signed-off-by: kerneltoast <sultan@kerneltoast.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
dlwlrma123
996e6fb49c sm6150-common: overlay: Disable intrusive gms components
* these processes were not allowed to run in background and yet they still persist everytime causing logspam and unnecessary broadcast, we may want to disable "GmsIntentOperationService" but some users on xda reported broken notifications on stuffs like google keep and maybe other google apps that relies on GmsIntentOperationService broadcasts.

07-24 09:29:26.041  2997  5548 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.stats.service.DropBoxEntryAddedReceiver
07-24 09:29:26.042  2879  2879 I Zygote  : Process 8201 exited due to signal 9 (Killed)
07-24 09:29:26.043  2997  3023 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver

Change-Id: I17c1ab2bfb98375d9b5a6c6de91776244b12cf52
Signed-off-by: dlwlrma123 <alexfinhart@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
PainKiller3
283238a868 sm6150-common: wifi: No BSS flush for 2018 devices
Bug: 73301881
Test: Verify that the connected MAC randomization ~3 seconds delay problem is gone

Change-Id: I73dbeb9e9d0e740883c81384f3fee9b074292cd2
Signed-off-by: PainKiller3 <ninadpatil100@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
Abhinav Kumar
f53b3774fd sm6150-common: wifi: Remove entry for gEnableNUDTracking
Currently Min, Max and default values of gEnableNUDTracking in
code are:
Min: 0 (Driver will not track the NUD failures, and ignore the same)
Max: 2 (Driver will track the NUD failures and if honoured will roam
	away from the connected BSSID to a new BSSID to retain the
	data connectivity).
Default: 2

In order to enable NUD tracking after NUD failure by default,
remove entry for gEnableNUDTracking from ini file.

Change-Id: Ie8ed6d12f373891d11727b1f903825a7fc145750
CRs-Fixed: 2559325
Signed-off-by: Abhinav Kumar <abhikuma@codeaurora.org>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
Sunil Ravi
4b59c38e74 sm6150-common: 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: I9b043b6dd6db2a251e425123e3d2c0ac238760ce
Signed-off-by: Sunil Ravi <sunilravi@google.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
Roshan Pius
3b094c12dd sm6150-common: wifi: Increase max bss count
QCOM's driver can support a max of 512 scan results. Ensure that
wpa_supplicant is in sync with that number.

Bug: 74724482
Test: Device boots up and connects to wifi networks.
Change-Id: I8935b220c9f2b94716ffb762068a5859e2263b08
Signed-off-by: Roshan Pius <rpius@google.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
Ashish Kumar Dhanotiya
d177cb38a6 sm6150-common: wifi: Remove TxPower2g and 5g
Ini config values TxPower2g and TxPower5g are not
getting used anymore.
Remove TxPower2g and TxPower5g from WCNSS_qcom_cfg.ini
for all the targets.

Change-Id: Id85bec3e4ae3bb8012e13844bb0afa682a593fee
CRs-Fixed: 2607679
Signed-off-by: Ashish Kumar Dhanotiya <adhanoti@codeaurora.org>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
Mathieu Chartier
e4ee8bf32e sm6150-common: Speed profile services and wifi-service to reduce RAM and storage
Change-Id: I0bd3c9fde925dba8fa7dd11a7623f1a59ef57782
Signed-off-by: Mathieu Chartier <mathieuc@google.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
Adithya R
9a0b90df10 sm6150-common: rootdir: Bind mount Wifi Aware feature permissions.
- Fixes issues when GPS and Wifi are switched on simultaneously.
- Also kills logspam regarding NAN.

Change-Id: Id56b2bbc720bf2de96aad825956bc63db3d4e694
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
johnmart19
eee0d82aac sm6150-common: rootdir: Provide thermal profile permissions
Change-Id: I216b4438047657137b02497d0654faed890126e3
Signed-off-by: johnmart19 <johnivan19999@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
Sebastiano Barezzi
6265148309 sm6150-common: Disable kpti
* As per qualcomm - SM8150/SM8250/SM8350/SM7250/SM7150/SM6150 - KPTI Not required.
* It can also help increase performance by a lot in some scenarios.

Change-Id: Idde48b8e8676f596217edd5100fec3aa07729dbe
Signed-off-by: Sebastiano Barezzi <barezzisebastiano@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
Pig
9d4975a21a sm6150-common: Move DPM feature property to /system_ext
* DPM blobs are under /system_ext.

Change-Id: I4664b7f3246f1184a61b180d226ed42d524d227a
Signed-off-by: Pig <pig.priv@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
roynatech2544
f73f2097e1 sm6150-common: audio: Disable DRC
* DRC is audio policy to 'compress' volume table, which causes low max volume. Disable it for now

Change-Id: I2e2d8729a8cc5886861e09bf71f5a170f1deb121
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
Vivekachooz
e0c219a422 sm6150-common: properties: Enable perf hint large composition cycle
Change-Id: I258fbed42de936bb059ed45839a5bb39aa4794fe
Signed-off-by: Vivekachooz <vivekachooz@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
Pranav Kapoor
d47a0ff840 sm6150-common: properties: Disable debug.sf.enable_hwc_vds
* Fixes lags in native screen recorder
* Also set debug.sdm.support_writeback=0
* THIS MIGHT BREAK WIFI DISPLAY
* CHECK WHEN WFD BOOT JARS CAN BE BUILT

Change-Id: I82c5b8b4-b0b0-4ff9-8869-8cb4f11e9012
Signed-off-by: Pranav Kapoor <pranavkapoor001@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
Alexander Koskovich
561ef31407 sm6150-common: Opt out of VIDEO_ENCODE flag for DeviceAsWebcam
DeviceAsWebcam is using USAGE_VIDEO_ENCODE [1] for buffers and
this results in combined usage: (VIDEO_ENCODER | CAMERA_OUTPUT).

On Qcom devices DeviceAsWebcam has red & blue colors swapped.

Originally we tried swapping HAL_PIXEL_FORMAT_YCbCr_420_SP_VENUS
with HAL_PIXEL_FORMAT_YCrCb_420_SP_VENUS in libgrallocutils,
however that inverted regular camera recording colors in some cases.

[1] d079a82ba4

Change-Id: I6c5f03fe7016f687855351c7ba15270050ea02e2
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
Yumi Yukimura
f85f0d8b63 sm6150-common: Setup DeviceAsWebcam
Change-Id: Icf8e10cd21c4eef9a66af624971ffe9c4d39d992
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
rounak1619
04bc6b3b36 sm6150-common: properties: Fix lag while app opening and Qs lags
Change-Id: Ib90ffd7748ae7fe9d84e143c4e28a25b5d170042
Signed-off-by: rounak1619 <rounakmehata9@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
K A R T H I K
e54f0bd80d sm6150-common: sepolicy: Fix up libperfmgr crash on logs
W/libperfmgr(798): Failed to write to node: /dev/stune/camera-daemon/schedtune.boost with value: 0, fd: -1
W/libperfmgr(798): Failed to write to node: /dev/stune/camera-daemon/schedtune.prefer_high_cap with value: 0, fd: -1
W/libperfmgr(798): Failed to write to node: /proc/sys/kernel/sched_energy_aware with value: 1, fd: -1
W/libperfmgr(798): Failed to write to node: /dev/stune/camera-daemon/schedtune.boost with value: 0, fd: -1
W/libperfmgr(798): Failed to write to node: /dev/stune/camera-daemon/schedtune.prefer_high_cap with value: 0, fd: -1
W/libperfmgr(798): Failed to write to node: /sys/class/devfreq/soc:qcom,cpu6-cpu-l3-lat/min_freq with value: 1516200000, fd: 10
W/libperfmgr(798): Failed to write to node: /proc/sys/kernel/sched_energy_aware with value: 0, fd: -1

Change-Id: I55c65018f1635353ebd6082e1a45c363424f881c
Signed-off-by: K A R T H I K <karthik.lal558@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
basamaryan
9071d99bac sm6150-common: Switch to the pixel power-libperfmgr
Change-Id: Ic018a0151f7156eab2bb983e3de52cd7b8756710
Signed-off-by: basamaryan <basam.aryan@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
Daniel Jacob Chittoor
72abec5589 sm6150-common: rootdir: Enable suspend to RAM
* Reference - https://www.kernel.org/doc/html/v4.18/admin-guide/pm/sleep-states.html
* Improves idle drain considerably.

Change-Id: I3f2d3a8dadf2ff2e26b70839ce0bfde9002cf36e
Signed-off-by: Daniel Jacob Chittoor <djchittoor47@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
Andreas Schneider
459a1fbd6f sm6150-common: sepolicy: Allow SF to read firmware
Change-Id: Ied30071128943db56056e3c3ee9f6e2d5fe55f00
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
minaripenguin
be212a0677 sm6150-common: properties: Enable APK fs-verity
* for some reason, some apps automatically detects that we're rooted due to verityUtils failing to measure the apps apk fs-verity.

Change-Id: Ib716d6e375c9d1063a958523ad2de028115bcb3c
Signed-off-by: minaripenguin <minaripenguin@users.noreply.github.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
Joey Huab
1a909e840e sm6150-common: overlay: Enable Smart Pixels
Change-Id: I502019b1807edf54764580cddf709cf020177637
Signed-off-by: Joey Huab <jhuab@edukasyon.ph>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
John Galt
cff093c1e3 sm6150-common: camera: Cap max_brightness
* Our maximum brightness is 500.
* However, for safety related reason, I have capped this to 255.
* 255 is more than sufficient, and I do not want to be responsible for LED damage.

* Finding the default percentage took some trial and error, in this case, 59% correlated to 75.

Co-authored-by: rahul <rahul@aospa.co>
Change-Id: Ie20969362c531391e4c51b22365b74d62ccb8e5e
Signed-off-by: John Galt <johngaltfirstrun@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
John Galt
1df19d885b sm6150-common: camera: set saner values
80 was default for torch, so set 80 as default.

Change-Id: I6711c8a77ed04f01a9afeff14325e62404f66ff7
Signed-off-by: John Galt <johngaltfirstrun@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
Cyber Knight
b0c78fda81 sm6150-common: sepolicy: Allow cameraserver to search directories in sysfs_leds
- This fixes a SEPolicy denial.

Change-Id: Ie2cba0bdc7b7f43e6d958268054aec26cbac1dee
Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00