Commit Graph

845 Commits

Author SHA1 Message Date
Sandeep P S
5c426ff40e sm7250-common: Drop liboemcrypto blob
Unfortunately even though avicii shows as Widevine L1 status
It doesn't work. Apps like Netflix fail to load or in other cases reboot the device.

logcat shows errors such as:
E WVCdm   : [device_files.cpp(1111):RetrieveHashedFile] File does not exist: path = /data/vendor/mediadrm/IDM1013/L1/cert.bin
W WVCdm   : [device_files.cpp(144):RetrieveCertificate] Unable to retrieve certificate file

So DRM keys probably got wiped upon bootloader unlock as even stock ROM
this same behavior happens.

Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
2023-01-26 14:50:20 +00:00
Sandeep-FED
ea1d5db433 sepolicy: Allow system app read battery health status
Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
2023-01-19 14:20:04 +00:00
spkal01
5267f316f7 sm7250-common: Add support for smart charging and battery health
Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
2023-01-17 15:14:11 +00:00
Subbaraman Narayanamurthy
e936225bf0 sm7250-common: vendor-common: Add QTI health implementation
Add QTI health implementation so that it waits for battery power
supply for a max timeout of 5 seconds. This is to ensure by the
time health HAL service starts, battery power supply device is
available. Without this, health HAL couldn't find battery power
supply sometimes because of the time taken for battery charger
driver to probe on platforms where it can happen only after the
remote subsytem is bought out of reset.

Change-Id: I96ee53ef15dd61c98d317e9ec221456ca564249f
2023-01-10 14:08:10 +00:00
LuK1337
ddef1808a2 sm7250-common: Set ro.netflix.bsp_rev
* This prop makes Netflix select L1 instead of L3.

Change-Id: Idc0368803ca082e99392fb136f2cdc41a4cb0c87
Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
2023-01-07 15:27:32 +00:00
Woody Lin
8e51081fb2 sm8350-common: Enable zygote critical window
Bug: 141948707
Change-Id: I5dc57312118b0f6d95fc9fe164363ec7e15f1b51
Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
2023-01-07 15:24:57 +00:00
LuK1337
2ea94c59e9 sm8150-common: Set volume steps props according to OOS
Change-Id: Iaf1b90e8a0bccb1a67d94c09b99622560c4ac198
Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
2023-01-07 15:19:51 +00:00
LuK1337
9fce4ce0aa sm8150-common: Enable ro.audio.monitorRotation
Not enabled on OOS, but it's still nice to have.

Change-Id: I3084018f6caec67c42959dc97bde8dee00eba388
Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
2023-01-07 15:19:06 +00:00
Sandeep-FED
5f80fa25be Revert "sm7250-common: sepolicy: dontaudit untrusted_app to open ashmem_device"
This reverts commit c2a5c2be5c.
2023-01-07 15:12:16 +00:00
Sandeep-FED
8f2affc593 BoardConfig: switch compatibility matrix path to vendor/cherish
Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
2023-01-05 18:00:13 +00:00
Chandra Chaganti
9717e7b69e sm7250-common: overlay: enable oem fast charge
Signed-off-by: chandra <chandra.chaganti@hotmail.com>
Signed-off-by: firebird11 <hbgassel@gmail.com>
Change-Id: Iffdf0b53e08c9da6d80ff5b42fd1d4711c6bb17e
Signed-off-by: Sandeep P S <sandymankara11@gmail.com>
2023-01-05 23:25:15 +05:30
Danny Lin
a2a2312df4 sm7250-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 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 precious RAM on this
device.

Change-Id: I745e39b6ff212dfaf9213517d2a2be8ff7384e24
Signed-off-by: firebird11 <hbgassel@gmail.com>
2023-01-05 23:22:10 +05:30
Sebastiano Barezzi
314d9296b8 sm7250-common: overlay: Drop MMS user agent overlays
* They should be dealt with in ROM overlays and current profile URL points to a 404 page

Change-Id: I92f3ded52dda04f6cec5709d51c84b32f39d8095
Signed-off-by: firebird11 <hbgassel@gmail.com>
2023-01-05 23:22:03 +05:30
itsjoeoui
66c1596c56 sm7250-common: overlay: Enable adaptive sleep
* This allows the use of Screen Attention

Signed-off-by: cjh1249131356 <cjh1249131356@gmail.com>
Signed-off-by: firebird11 <hbgassel@gmail.com>
Change-Id: Ie6a1aa33151bdb854fd94dd0bb17f1cc85a5a00e
Signed-off-by: firebird11 <hbgassel@gmail.com>
Signed-off-by: Sandeep P S <sandymankara11@gmail.com>
2023-01-05 23:21:55 +05:30
Suren Baghdasaryan
c82cb6f4bd sm7250-common: Replace writepid with task_profiles command for cgroup migration
writepid command usage to join a cgroup has been deprecated in favor
of a more flexible approach using task_profiles. This way cgroup path
is not hardcoded and cgroup changes can be easily made. Replace
writepid with task_profiles command to migrate between cgroups.

Bug: 191283136
Test: build and boot
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: I22cbf3383f3686c4964e4b55e53d4cdb8ea5a7da
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
Signed-off-by: firebird11 <hbgassel@gmail.com>
2023-01-05 23:20:43 +05:30
LuK1337
6c804a71dc sm7250-common: wifi: Enable DFS channel scanning in P2P search
- Fixes P2P when connected to 5GHz access point.

Signed-off-by: firebird11 <hbgassel@gmail.com>
Change-Id: I5d13c82d56db4dd8bc4cc350bcb28b82d1f66b37
Signed-off-by: c79 <vexed@riseup.net>
2023-01-05 23:19:44 +05:30
Hernán Castañón Álvarez
e2ff0a3e1c sm7250-common: Set Alert Slider UI positions
Signed-off-by: CryllicBuster273 <cryllicbuster273@pixelexperience.org>
Signed-off-by: aswin7469 <aswinas7469@gmail.com>
Signed-off-by: aswin7469 <aswinas@pixysos.com>
Signed-off-by: c79 <vexed@riseup.net>
2023-01-05 23:17:06 +05:30
Anirudh Gupta
3f8be4a11d sm7250-common: overlay: Enable status bar burn in protection
Also set interval to 40 instead of default 60 since HBM mode is a thing

Change-Id: Idade7f5e786c350e58160e0ed49cd3e7de98951c
Signed-off-by: firebird11 <hbgassel@gmail.com>
Signed-off-by: c79 <vexed@riseup.net>
Signed-off-by: Sandeep P S <sandymankara11@gmail.com>
2023-01-05 23:16:30 +05:30
Chandra Chaganti
0ddf517896 sm8250-common: Set right verizon APNs
Signed-off-by: firebird11 <hbgassel@gmail.com>
Signed-off-by: c79 <vexed@riseup.net>
2023-01-05 23:13:06 +05:30
James.cf Lin
944c8c2034 sm7250-common: Set the device does not support RCS User Capability Exchange
Bug: 178239287
Test: build
Change-Id: I595cb214eae7ab1a5e5b861283b80ab447e81b9d
Signed-off-by: aswin7469 <aswinas@pixysos.com>
Signed-off-by: c79 <vexed@riseup.net>
2023-01-05 23:11:45 +05:30
ZeeLog
57edc27fec sm7250-common: silence excessive logs
Change-Id: If9e202a4b9f8568e1c79283ddb688f728f1dbabc
Signed-off-by: starlight5234 <starlight5234@protonmail.ch>
Signed-off-by: aswin7469 <aswinas@pixysos.com>
Signed-off-by: Sandeep P S <sandymankara11@gmail.com>
2023-01-05 23:06:46 +05:30
SGCMarkus
f7553528c2 sm7250-common: overlays: enable 5G SA and NSA
Change-Id: Icf55910aebae8d0ae519f0a0c20708aa81ae0bfc
2023-01-05 22:54:06 +05:30
Cassie
5761196822 sm7250-common: overlay: Use the new auto network selection UI
Change-Id: I76698911103601d5f3ad67e1099790af8c2fdc18
Signed-off-by: Sandeep P S <sandymankara11@gmail.com>
2023-01-05 22:52:49 +05:30
KakatkarAkshay
efd25e2bc1 sm7250-common: Update carrierconfigs from latest OOS 2023-01-05 22:48:04 +05:30
TheScarastic
8924d1d3b4 rootdir: Disable few debug services
Change-Id: I7de43f5849a97ee2b1894caeec1c7ecbb5df2777
Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
2023-01-05 22:47:56 +05:30
Kshitij Gupta
c2a5c2be5c sm7250-common: sepolicy: dontaudit untrusted_app to open ashmem_device
- Fixes scroll lag in many apps, such as Twitter:
    W RenderThread: type=1400 audit(0.0:12371): avc: denied { open } for path=/dev/ashmem dev=tmpfs ino=10848 scontext=u:r:untrusted_app:s0:c123,c256,c512,c768 tcontext=u:object_r:ashmem_device:s0 tclass=chr_file permissive=0 app=com.twitter.android

- Apps are no longer allowed open access to /dev/ashmem, unless they
  target API level < Q.

- 8b12ff5f21

Change-Id: I6405786fea05891642d8437acafcd8c891d75912
2023-01-05 22:47:50 +05:30
Alex Naidis
1add6a0350 sm7250-common: wifi: tune bmps listening interval
Tune the BMPS listening interval for the moderate power level to achieve
power savings during wifi idle.

Change-Id: I0f5f8fafb6f6b3eaa6a855aa1a7dc12c3886ddce
Signed-off-by: Alex Naidis <alex.naidis@linux.com>
Signed-off-by: Albert I <krascgq@outlook.co.id>
Signed-off-by: karthik1896 <karthik1896@outlook.com>
Signed-off-by: Cykeek <Cykeek@proton.me>
2023-01-05 22:47:44 +05:30
manikantaraavi
0c74aa8e55 sm7250-common:overlay:config_roundedCornerMultipleRadius
Signed-off-by: manikantaraavi <raavimanikanta6595@gmail.com>
2023-01-05 22:47:34 +05:30
Sandeep-FED
97d87e7a6e sm7250-common: set kernel toolchain path
*git clone --depth=1 https://github.com/kdrag0n/proton-clang prebuilts/clang/host/linux-x86/clang-proton

Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
2023-01-05 22:47:29 +05:30
Siddeswar Aluganti
0b6bc1943b sm8250-common: gpt-utils: Update PTN_SWAP_LIST and handle multiimg(oem/qti)
* Update PTN_SWAP_LIST to reflect partition entry changes
   to BOOT LUN and handle "multiimgoem", "multiimgqti"
   partitions, similar to other BOOT LUN partitions.

Change-Id: I3fb2934c44f3c2555ef36437ae97c9a47bb874ed
Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
2023-01-05 22:47:23 +05:30
Sandeep-FED
53550a2c1b sm7250-common: cleanup some sepolicy
Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
2023-01-05 22:47:16 +05:30
Ziauddin Sameer
10ad5b35cd sm8250-common: Wipe resource cache on boot
Fixes resource derp issue

Signed-off-by: manikantaraavi <raavimanikanta6595@gmail.com>
2023-01-05 22:47:11 +05:30
manikantaraavi
6452684b14 sm7250-common: Use Proton CLANG
Signed-off-by: manikantaraavi <raavimanikanta6595@gmail.com>
2023-01-05 22:47:06 +05:30
Kujou Yuko
d7f24cb3e5 sm7250-common: Enable Audio Support for Hearing Aids central support
Signed-off-by: Kujou Yuko <i@779.moe>
Change-Id: I792a9715f17c1f17fb8b9a524cabed901d3e6f4a
2023-01-05 22:46:57 +05:30
Sal Savage
78f9472446 sm7250-common: Update LE Audio profile properties to match spec and implementation
Bug: 217448211
Test: atest BluetoothInstrumentationTests
Change-Id: I1260e95d357bd86099f75b910e0d744f97513fbc
2023-01-05 22:46:50 +05:30
Sal Savage
d905efc99b sm7250-common: Enable bluetooth profiles with system_ext.prop
Bug: 217448211
Test: make -j
Change-Id: I0d06b46910e42346653bea3484636f4129592ce3
Signed-off-by: manikantaraavi <raavimanikanta6595@gmail.com>
2023-01-05 22:46:44 +05:30
weichinweng
8a68b5c624 sm7250-common: Align ASHA prop with BluetoothProperties
* Modify bluetooth.profile.asha.central to
  bluetooth.profile.asha.central.enabled

Tag: #feature
Test: manual
Bug: 211570675
Bug: 218454632
Change-Id: I8e1f49034e5a675b29fba747e634c9f7c6c29c50
Signed-off-by: manikantaraavi <raavimanikanta6595@gmail.com>
2023-01-05 22:46:38 +05:30
Sal Savage
cae587bb82 sm7250-common: Set default the Bluetooth class of device
The class of device is a string with a list of uint8t values:
90,2,12

The meaning is as follows:
{Service Field, Major class, Minor class}

Service Field: 0x5A -> 90
    Bit 17: Networking
    Bit 19: Capturing
    Bit 20: Object Transfer
    Bit 22: Telephony
MAJOR_CLASS: 0x02 -> 2 (Phone)
MINOR_CLASS: 0x0C -> 12 (Smart Phone)

Bug: 217452259
Test: make -j; -- check that bluetooth.device.class_of_device is
correct

Change-Id: I07e83ca352ff969be0e53a0f63b6c940b6c34dfb
2023-01-05 22:46:29 +05:30
Etienne Ruffieux
5dbd0af893 sm7250-common: Added new vendors for Bluetooth config migration
Tag: #feature
Test: manual
Bug: 211570675
Change-Id: Id74ec5e1b30f21c534c35b212a2fb297e9d591fb
Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
2023-01-05 22:46:23 +05:30
Josh Wu
1c490fe100 sm7250-common: Switch BtAudio to AIDL
Test: m
Bug: 203490261
Change-Id: I4b8ac40d5ad410b89eb6a0573d740d86471ecfc7
Merged-In: I4b8ac40d5ad410b89eb6a0573d740d86471ecfc7
2023-01-05 22:46:16 +05:30
Akshay Kakatkar
8450fb0f17 sm7250-common: Switch to AOSP BT Stack
Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
2023-01-05 22:46:06 +05:30
Keertesh
c13e9f282a sm7250-common: SEPolicy: Address denial for hal_fingerprint_default
*W HwBinder:1461_1: type=1400 audit(0.0:546): avc: denied { write } for name="touch_hold" dev="proc" ino=4026534068 scontext=u:r:hal_fingerprint_default:s0 tcontext=u:object_r:proc:s0 tclass=file permissive=0
2023-01-05 22:46:01 +05:30
Keertesh
75162adc10 sm7250-common: Change gsi_keys to developer_gsi_keys
*Deleted in a13
2023-01-05 22:45:54 +05:30
Keertesh
abd911b9c0 sm7250-common: SEPolicy: Cleanup
*throws errors

Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
2023-01-05 22:45:47 +05:30
Gabriel Biren
413ca1aa8b sm7250-common: roodir: Update init script to use Supplicant AIDL interface.
Bug: 196235436
Bug: 213271543
Test: m
Change-Id: I35ffd5390ba835e3b35e55ea38b27f1ab924b291
2023-01-05 22:45:41 +05:30
Lucas Dupin
45a3b5eae8 sm7250-common: overlay: Fix Fingerprint Wake-up Animation
Test: visual
Fixes: 147705230
Change-Id: I81071e87a4d945cf243a288acf97586a4f63c3fa
Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
2023-01-05 22:45:36 +05:30
Sandeep-FED
058d8522b7 overlay: disable night light fod
Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
Signed-off-by: Sandeep P S <sandymankara11@gmail.com>
2023-01-05 22:43:49 +05:30
Jun Wang
e7f1277914 sm7250-common: perf: Enable the pre-rendering feature
* Pre-rendering feature can improve FPS and reduce the janks
   in scrolling cases.

Signed-off-by: aswin7469 <aswinas@pixysos.com>
2023-01-05 22:39:44 +05:30
zljing
b5ad74a0ce sm7250-common: Enable dex2oat64 to do dexopt
CR-Fixed: 2989784
Change-Id: Ibe30b53251b26d611ce93714d9521a933aca2227
2023-01-05 22:39:39 +05:30
aswin7469
196f4506d3 sm7250-common: remove unneeded ro.surface_flinger.use_color_management
* color management is turned on by default on android 12

Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
2023-01-05 22:39:24 +05:30