Commit Graph

777 Commits

Author SHA1 Message Date
Vaisakh Murali
30f7c41101 avicii: props: Use HintManager for HWUI
This will send HWUI timings to HintManager for better CPU scheduling.
Setting a 30% margin for CPU should heavily reduce CPU loads for HWUI and
use GPU for the rest.

Signed-off-by: drkphnx <dark.phnx12@gmail.com>
Signed-off-by: aswin7469 <aswinas@pixysos.com>
Signed-off-by: Sandeep P S <sandymankara11@gmail.com>
2023-04-22 07:24:38 +00:00
Daniel Jacob Chittoor
3bb091aab6 avicii: init: Enable suspend to RAM
Improves idle drain considerably.

Signed-off-by: Sandeep P S <sandymankara11@gmail.com>
2023-04-22 07:24:29 +00:00
Jake Weinstein
88ac1c66f8 avicii: Use speed tuning for performance critical applications
The default ART setting is quicken: run DEX code verification and
optimize some DEX instructions to get better interpreter performance.

This commit switches performance critical applications to speed:
run DEX code verification and AOT-compile all methods.

PRODUCT_DEXPREOPT_SPEED_APPS (New in Android O)
List of applications that have been identified as core to the products
and which are desirable to compile with the speed compiler filter.  For
example, persistent apps such as SystemUI get a chance to use
profile-guided compilation only at the next reboot, so it may be better
for the product to have these apps always AOT-compiled.

Change-Id: Ib2dc9a55dfb332ba3fb84a13544d564a63f37ad2
2023-04-22 07:23:43 +00:00
chandu078
2701c019cb avicii: overlay: Improve software rounded corners
Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
2023-04-22 07:22:35 +00:00
xdevs23
4631e662f0 avicii: add nodes to hide Magisk in banking apps
Some banking apps read the file /proc/net/unix to
find out whether things like Magisk are installed/running.

To prevent that, chmod it 440.
This file isn't needed by any other process when boot is finished.

I've tested this and banking apps that did not work before
and recognized Magisk being installed now don't recognize
that and work just fine.

Signed-off-by: aswin7469 <aswinas@pixysos.com>
Signed-off-by: firebird11 <hbgassel@gmail.com>
Change-Id: I8f4c3ce55fe206786018ffba5e3301c52158a844
Signed-off-by: firebird11 <hbgassel@gmail.com>
Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
2023-04-22 07:21:35 +00:00
Rahul Shahare
1b5c3d096d avicii: Add kpti=off to boot command line
This will OFF kernel page table isolation.

Notes from Kuba Wojciechowski <nullbytepl@gmail.com> in 86bb20a832:
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: Idd36c359d4955701e9ee3ee27a58177a8d622c86
Signed-off-by: Rahul Shahare <rshaha@codeaurora.org>
Signed-off-by: Hafidz Muzakky <ais.muzakky@gmail.com>
Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
Signed-off-by: Sandeep P S <sandymankara11@gmail.com>
2023-04-22 07:21:27 +00:00
Elliott Hughes
504f20f9c7 sm8250-common: rootdir: Fix EntropyMixer
/dev/hw_random should be readable by system_server for EntropyMixer to
be able to use it.

Bug: http://b/179086242
Test: adb shell logcat | grep Entropy
Test: android.permission.cts.FileSystemPermissionTest#testDevHwRandomLockedDown
Change-Id: I7dd7faf300f5ce3cab8d02c69be7915238cf61da
2023-04-22 07:21:08 +00:00
Ziauddin Sameer
a6c3a3b4d4 sm8250-common: Wipe resource cache on boot
Fixes resource derp issue
2023-04-22 07:20:56 +00:00
SagarMakhar
b961e7faa4 avicii: init: Enable fastchg_fw_update on boot
* `fastchg_fw_update` seems to be needed to initialize VOOC / Warp
   charging.

Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
2023-04-22 07:20:48 +00:00
Sandeep-FED
caa95249cc avicii: reduce TARGET SCREEN DENSITY
* matches pixels with similar display size

Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
2023-04-22 07:20:36 +00:00
Sandeep-FED
d3c8b9b0fe avicii: CherishOS Bringup
Signed-off-by: Sandeep-FED <sandymankara11@gmail.com>
2023-04-22 07:20:25 +00:00
KakatkarAkshay
8a23f186b3 avicii: Update QSSI Blobs from LA.QSSI.13.0.r1-09700-qssi.0
* Also use perf configs from OOS
2023-04-18 10:02:58 +00:00
MajorP93
b46c0d7987 avicii: Update from OOS AC2003_11_F.19
Change-Id: I6ff6b3a8bd998d3adcd8256fb781218812f177ce
2023-04-04 20:52:07 +02:00
KakatkarAkshay
db44c4b301 avicii: Don't use Bluetooth blobs from CAF
* Breaks detection of nearby share on other devices
2023-04-04 20:46:11 +02:00
Philipp Albrecht
c13053419d avicii: Update thermal config from AC2003_11_F.18
adb shell thermal-engine -o > thermal-engine.conf
2023-03-27 15:49:31 +02:00
MajorP93
0e5d1decfd avicii: Update blobs from LA.QSSI.13.0.r1-09200-qssi.0
Co-authored-by: KakatkarAkshay <akshayakakatkaraa@gmail.com>
2023-03-27 15:47:56 +02:00
Georg Veichtlbauer
3379f01504 avicii: Remove aptX(HD) encoder shared libs
Encoder shared libraries are no longer required as of Android 13 QPR2.

Change-Id: I893a9000070cb2582ada0af91547f5176e6fea84
2023-03-22 20:26:24 +00:00
MajorP93
3246114bb0 Revert "avicii: Set TARGET_KERNEL_CLANG_VERSION to r416183b"
This reverts commit 4b00eff5aa.
2023-03-22 20:24:54 +00:00
KakatkarAkshay
8957e9dd1f avicii: Update blobs from CAF
* VENDOR from LA.UM.9.12.r1-14400-SMxx50.QSSI13.0
* QSSI from LA.QSSI.13.0.r1-09000-qssi.0
* Split CAF proprietary files
* Update Keymaster to 4.1
* Use FBE v2
* Use Non 20801/20804 (Nord) libs/firmwares
* Do not use odm/vendor dir for WCNSS_qcom_cfg.ini
2023-03-02 00:45:07 +05:30
chandra
f96475f3a1 avicii: Enable fast charge 2023-03-02 00:45:07 +05:30
Anirudh Gupta
7013d9d304 avicii: Show audio panel on left side
Change-Id: I3664e03ea6973263e78b617e4c4ac475ee7b5fad
2023-03-02 00:45:07 +05:30
Chenyang Zhong
865dccc4e4 avicii: overlay: enable screen-off udfps by default
It has been changed to false on the PE side recently.

Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
Change-Id: I9be2efa11f7824701322c288d0510a18fc296aa1
2023-03-02 00:45:07 +05:30
zlewchan
8549c6d1f6 avicii: Remove config_restartActionsList
- Unsupported by PE

Signed-off-by: zlewchan <x@zlew.tf>
Change-Id: I9fb1be754dcb9e19ae0a92099629f93190da12fe
2023-03-02 00:45:07 +05:30
d34d
4c903a5c88 avicii: Configure fingerprint sensor location
Change-Id: I9618710e446fea31041883e8be9186c66809e163
2023-03-02 00:45:07 +05:30
Ruchit Marathe
173e243067 avicii: correct SystemUI package name and pinner service
apk name and path was changed as seen here
8be4fc80c0

This causes errors in logs since pinner was trying to pin old app.

PinnerService: Could not pin file /system_ext/priv-app/SystemUI/SystemUI.apk

PinnerService: Failed to pin file = /system_ext/priv-app/SystemUI/SystemUI.apk
2023-03-02 00:45:07 +05:30
Jesse Chan
61fb9f4c18 avicii: 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.

Change-Id: I541709fc771d4b501b56b8555e5e8a04486d0293
2023-03-02 00:45:07 +05:30
KakatkarAkshay
226b9ea61f avicii: PixelExperience Bringup 2023-03-02 00:45:07 +05:30
Vishalcj17
744525f2b6 avicii: Generate thermal config from OOS.
* Generated using the command
   "adb shell thermal-engine -o > thermal-engine.conf"

 * We don't use thermal daemon from OOS which has these
   changes inline, instead, make CAF thermal-engine happy
   with the config.

Change-Id: I02e45dfbf9880c8e8418c4d8d9b4d827b4d7066d
 thirteen
2023-03-02 00:45:07 +05:30
Michael Bestas
4b00eff5aa avicii: Set TARGET_KERNEL_CLANG_VERSION to r416183b
Change-Id: Ic1eb6f7e3cb54bdb67da2fb963426a240f2edda3
2023-03-02 00:45:07 +05:30
LuK1337
34746647c1 avicii: overlay: Configure aux camera for Aperture
Change-Id: I543f078dd4dba30e1b22737d5c22d591e3fb34e6
2023-03-02 00:45:07 +05:30
LuK1337
4c4efe0257 avicii: Override available touchscreen gestures list
Change-Id: I14b0e034094c0cf4b60a86f5f26fc8d77ab50e43
2023-03-02 00:45:07 +05:30
KakatkarAkshay
c69a60d5e4 avicii: Sync CarrierConfig with AC2003_11_F.18
Change-Id: If09c1190b4c75a8ab7723893b413920308ef5499
2023-03-02 00:45:07 +05:30
Jake Weinstein
39398ef84f avicii: overlay: Only allow 5G SA on Jio
Change-Id: I42a9d602abdd8fc0835e5c6444a54946fc5561d3
2023-03-02 00:45:07 +05:30
KakatkarAkshay
8def651d0e avicii: Update blobs from AC2003_11_F.18
* Use prebuilt audio stack for now

Change-Id: I1c82dc15a46cc39e9641c7dc41fe49098c4bc4c7
2023-03-02 00:45:07 +05:30
KakatkarAkshay
dc38411a1e avicii: Switch to PN553 NFC
Change-Id: Ia90aa2163fc69e75b4378936386629ec47456a93
2023-03-02 00:45:07 +05:30
Daniel Jacob Chittoor
850e9e0cd5 avicii: Use 24bit pulse-code modulation for deep buffer playback
* Align with OnePlus' 24 bit-width audio enforcement.

Signed-off-by: Daniel Jacob Chittoor <djchittoor47@gmail.com>
Change-Id: Ia0e067a6f7f6ff4ca3bf97b896e38a851954d1a9
2023-03-02 00:45:07 +05:30
Daniel Jacob Chittoor
767cd605d5 avicii: audio: Set correct pulse-code modulation format for primary output
* OnePlus had made the corresponding change in the IO policy config
   but however it seems that policy side configuration was left as is
   due to which format routing to device was broken as the IO policy
   specificed a 24bit PCM format for primary audio meanwhile the policy
   config marked 16bit PCM as the format causing backend failures.

 * This will also align to OnePlus's 24 bit width audio enforcement.

Signed-off-by: Daniel Jacob Chittoor <djchittoor47@gmail.com>
Change-Id: Ic5e715311c6d3c46579b93346a9ffd814e022e91
2023-03-02 00:45:07 +05:30
iovxw
ee0a6fdc38 avicii: Remove FM Tuner from audio input devices
Change-Id: Id90fc9ac1ad24b5d439592aecfdf4f8912893935
2023-03-02 00:45:07 +05:30
LuK1337
b4e8d61cb8 avicii: audio: Disable ULL mode
* Ultra low latency playback is currently broken. Crackling audio
   can be well noticed while playing WhatsApp audio messages or even
   during some games.

 * This patch routes all audio that normally used audio-ull-playback
   paths to low-latency-playback paths instead, thus meaning we're
   switching from ULL to LL mode.

Change-Id: I7d672f1ff10b984c8096c9c4ca83475e730fd16f
2023-03-02 00:45:07 +05:30
KakatkarAkshay
41d0f8b345 avicii: Update Audio configs from AC2003_11_F.17
Change-Id: I753a992d7b4ab2451965e5cc7c00ef9452499239
2023-03-02 00:45:07 +05:30
KakatkarAkshay
b49a01f7ae avicii: Sync properties from AC2003_11_F.17
Change-Id: Ia7031f5e9847509f299a969a4efc897903959917
2023-03-02 00:45:03 +05:30
LuK1337
0beafc06ae avicii: Set more crypto props
Change-Id: I9b18c44e0508cf16b5b815ce5aaab08ed5e7c9c4
2023-02-19 14:19:36 +01:00
MajorP93
230d0f70f6 avicii: init: Update product model properties
Change-Id: I7372c6bb328e3cd4ff99f765fe73fe341275b2e7
2023-02-19 14:19:36 +01:00
MajorP93
0dade69964 avicii: init: Set hardware revision property for IN variant only
Sadly RF version can not act as a unique identifier for EU and GLO variant of avicii since OnePlus decided to use RF version 14 for both.
Due to this reason we're only setting the property for IN variant.

Change-Id: I9057f11f5728898530cd0504c4a0125091da6910
2023-02-19 14:19:36 +01:00
Grace Chen
238c4e5706 avicii: Enable DSDS by default
* Nord does not have a single sim variant

Bug: 197273281
Test: Confirm DSDS property.
Change-Id: I007ef6b81ddfdb3d9692f286bbcb85c2bae5dae5
2023-02-19 14:19:36 +01:00
KakatkarAkshay
b864dcb494 avicii: init: Update for lito
* Nord does not have CN, TMO versions so remove them

Change-Id: I1f02cee983a5ecb99bbf1619ac2c87b78e9d667d
2023-02-19 14:19:36 +01:00
Alexander Koskovich
f15a998417 avicii: Set USB product string to 'OnePlus Nord'
* This is better for user facing stuff than 'AC2003'.

Change-Id: I1f380699692c07b2fcc03fa83adc292b6d899cf7
2023-02-19 14:19:36 +01:00
Sal Savage
08f8cc3f26 avicii: Replace BTM_DEF_LOCAL_NAME with a sysprop
Change-Id: I2c90efac01e61500eb1be23bb0ae6f96c2acdc53
2023-02-19 14:19:36 +01:00
LuK1337
4c45de466f avicii: Set a default Settings.Global.DEVICE_NAME
Change-Id: I310c1ffc581b72653783d1093d9e7ebde544bb16
2023-02-19 14:19:36 +01:00
KakatkarAkshay
b9f447fb20 avicii: Set physical power button location
Change-Id: I73d96a78fdc0cef03024803fb4e6ef43723b1888
2023-02-19 14:19:36 +01:00