Commit Graph

249 Commits

Author SHA1 Message Date
David Sehr
2ba5c28817 sm6375-common: props: Use dex2oat64
Enable dex2oat64 usage on device

Bug: 153380900
Test: boot and install an application.
Change-Id: Ifff726eb2f8bd315a42c02bdca9ff10cf027a06c
Signed-off-by: Ahmad Rulim <personal@rulim34.dev>
2023-06-28 09:06:06 +07:00
Ahmad Rulim
250fe83eb3 sm6375-common: Fix bluetooth power config on props
* Also remove the leftover config from overlay

Signed-off-by: Ahmad Rulim <personal@rulim34.dev>
Change-Id: Ie45534295809edf55def61efe0c0f0b9b899c36c
2023-06-27 21:15:20 +07:00
Omkar Chandorkar
88cbb7dbff sm6375-common: props: Optimize package manager dexopt properties
* first-boot is set to quicken to reduce first boot times
* we are installing with speed-profile to have balance
  between time taken to optimise and runtime performance
* once device is in idle+charging, bg dexopt will compile
  for maximum runtime performance

[ghostrider-reborn]
2023-06-27 21:11:21 +07:00
baalajimaestro
b733ab1915 sm6375-common: props: Optimise dex flags
This is a squash of the following commits:
1. Optimise dex flags for a faster boot

* Used multiple threads and speed profile to hasten the first boot

Signed-off-by: baalajimaestro <me@baalajimaestro.me>
Change-Id: I2cce5ddf7d50308511e81436fcac613b2c6537bf

2. Rework dex flags again

When I went through https://source.android.com/devices/tech/dalvik/configure my previous configs felt wrong, this one should be perfect (I hope).
Even though there is a slight trade-off for boot time by using the speed profile, we do make up for it by using 8 threads.
PRODUCT_DEX_PREOPT_DEFAULT_COMPILER_FILTER attempts to compile all prebuilts fully optimised to speed level, thus the phone doesnt need to deal with it.
I also do know that this might be a trade-off on size, but I do see the first boot time is more worthy to trade-off.
The speed level mentioned here runs dex verification and compiles all AOT methods.

Signed-off-by: baalajimaestro <me@baalajimaestro.me>
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
Change-Id: Ic0156ff8956a7c5f53820be6db438f6f6399d3c0

3. Switch certain dexopt profiles to verify

Prebuilt apps like Gmail/Google App, will be updated by google play, and there is no need spend time and space optimising what is going to be replaced.
Switch to Google's recommendation of using verify for an OTA package.
Applications still stay on speed.
Instead, replace the install profile with speed-profile making apps perform better.

Signed-off-by: baalajimaestro <me@baalajimaestro.me>

Change-Id: I2cce5ddf7d50308511e81436fcac613b2c6537bf
2023-06-27 21:10:49 +07:00
Alexander Koskovich
49165fdb0f sm6375-common: props: Drop radio properties that are already default 2023-06-27 21:09:18 +07:00
Juhyung Park
ef73c11fa4 sm6375-common: props: Drop perf pre-rendering feature
* ref: P-404/android_device_qcom_common@87fc9c5

This causes weird inconsistent scrolling behaviors, even on v5.4

Change-Id: I1025014bb31aae15c79579c31cd134c35c2d527f
2023-06-27 21:07:11 +07:00
madmax7896
b0af1f9053 sm6375-common: Set corrert soc manufacturer props
Signed-off-by: kleidione <kleidione@gmail.com>
2023-06-27 21:04:11 +07:00
kubersharma001
5e4750a7fc sm6375-common: Import wcg_composition_dataspace from MIUI
-  Its set in default.prop

Change-Id: I8d94738978b3ef3f146a938a592500437bfc1b00
2023-06-27 21:01:38 +07:00
ririxidev
9334afadf4 sm6375-common: wifi: Switch gEnablePowerSaveOffload to 5
This should improve VoIP calls performance.
Reference: https://android.googlesource.com/device/google/marlin/+/android-7.1.0_r4%5E%21/

Change-Id: Id947f330d516f507b8eff543ffb154e90e1206a2
Signed-off-by: Ahmad Rulim <personal@rulim34.dev>
2023-06-27 20:48:54 +07:00
TheCrazyLex
b820ea37f7 sm6375-common: wifi: Smarter decisions on whether to use 2/5Ghz AP
* Implement a smarter system on whether to connect to the provided 2Ghz or 5Ghz network.

Change-Id: I4f8363c712d07c64b2bad25538474003a56976b3
Signed-off-by: Ahmad Rulim <personal@rulim34.dev>
2023-06-27 20:48:28 +07:00
Abhinav Kumar
6f3c3d2b93 sm6375-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: Ahmad Rulim <personal@rulim34.dev>
2023-06-27 20:47:56 +07:00
kerneltoast
82809aa069 sm6375-common: wifi: Relax WiFi re-association RSSI thresholds
Signed-off-by: DarkAngelGR <asavvo01@gmail.com>
Change-Id: I90e02a27c54230c6b316aca75ce34c8c621a76e5
Signed-off-by: Ahmad Rulim <personal@rulim34.dev>
2023-06-27 20:47:22 +07:00
Luk1337
e35dffe666 sm6375-common: wifi: Disable RX wakelock feature
Signed-off-by: DarkAngelGR <asavvo01@gmail.com>
Change-Id: I9f9327905007f91cd9c39c589b723609f595b9e5
Signed-off-by: Ahmad Rulim <personal@rulim34.dev>
2023-06-27 20:46:53 +07:00
TheCrazyLex
889a772048 sm6375-common: wifi: Enable QPower and Deep sleep at the same time
* This enables Deep Sleep mode, additionally to QPower
* With this configuration, QPower manages the new Deep sleep mode
 -> Leads to amazing power savings

Signed-off-by: DarkAngelGR <asavvo01@gmail.com>
Change-Id: Ie7b8bec94da2707e5ae507682169d0ad26b99163
Signed-off-by: Ahmad Rulim <personal@rulim34.dev>
2023-06-27 20:46:21 +07:00
Roshan Pius
f3eeeaf45e sm6375-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.

Signed-off-by: xNombre <kartapolska@gmail.com>
Signed-off-by: Marco Zanin <mrczn.bb@gmail.com>
Change-Id: I7cc7f0f604a0a16036080256e672d0b3127840bc
Signed-off-by: Ahmad Rulim <personal@rulim34.dev>
2023-06-27 20:45:53 +07:00
Ecco Park
c91f04ca90 sm6375-common: wifi: Add parameters for Hotspot 2.0
Those parameters need to set for Hotspot 2.0 network

interworking=1 : Enable Interworking
hs20=1: Enable Hotspot 2.0
auto_interworking=0 : Do not automatically go through Interworking
                      network selection in wpa_supplicant
Bug: 118633353
Test: live test with Passpoint AP
Signed-off-by: Ecco Park <eccopark@google.com>

Change-Id: I04e77be3d008d012690d4f4185a4c80d9b660df2
Signed-off-by: PainKiller3 <ninadpatil100@gmail.com>
Signed-off-by: Ahmad Rulim <personal@rulim34.dev>
2023-06-27 20:45:20 +07:00
PainKiller3
f99ef70cc1 sm6375-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: Ahmad Rulim <personal@rulim34.dev>
2023-06-27 20:44:46 +07:00
boedhack99
fad8458572 sm6375-common: Decommonize init device-specifics scripts
* we got different configs

Change-Id: Ibd7715bc72d7575afec209cdb962d9cebebec37a
2023-06-27 13:45:56 +07:00
boedhack99
8acb8e3a94 sm6375-common: Decommonize NFC build target
* moonstone/sunstone use NFC.st HALs

Change-Id: I2d21f1ad9d3ababd22d8b7f9eac5d45e95052984
2023-06-27 13:04:19 +07:00
boedhack99
761047ace4 sm6375-common: Add support sunstone
* Redmi Note 12 5G
* This device using Snapdragon 4 Gen 1 aka SM4375 ( holi base platform )
* So.. add that device because use same platform

Change-Id: I77d39cf4954f71e2c238e3ff352b9574747ff92c
2023-06-26 21:40:11 +07:00
boedhack99
30ebfaabf8 sm6375-common: Add support moonstone
* POCO X5 5G

Change-Id: I1527e0a8dfff1b3394bb53c8a30bb30d6d078213
2023-06-26 21:40:11 +07:00
Ramii Ahmed
319561f173 [DNM] sm6375-common: prebuilt kernel
Change-Id: I41ba81f75180de6de45aebfae5ef715288f9180f
2023-01-19 02:27:04 +00:00
Ramii Ahmed
e5140688fc sm6375-common: add missing nfc library
* F linker  : CANNOT LINK EXECUTABLE /vendor/bin/hw/android.hardware.nfc@1.2-service: library vendor.nxp.nxpnfclegacy@1.0.so not found: needed by main executable
2023-01-19 02:27:04 +00:00
Nate Jiang
d75f3a5ca9 sm6375-common: Enable set channel on NDP setup
Bug: 190354626
Test: build, CtsVerifier
Change-Id: Ieff18b96ec0f24c1c20c40add4e47a532ece8922
2023-01-19 02:27:04 +00:00
Les Lee
fa11054a90 sm6375-common: wifi: Configure correct overlay configuration.
ag/16564596 will change default value to false.
Configure correct overlay configuration.

Bug: 212488775
Test: manual test & build
Change-Id: Iaf1a0a23dae69fde5995e591a757a8ef5374d5b5
2023-01-19 02:27:04 +00:00
Ramii Ahmed
62eb368550 sm6375-common: extract-files: allow extracting proprietary-files for recovery
* we'll be using this to extract touchscreen firmware for recovery

Change-Id: I64745ff5823adee79016eabb772265aae3c06f3c
2023-01-19 02:27:04 +00:00
Ramii Ahmed
7507289ebf sm6375-common: update to latest EEA blobs
* from veux_eea-user 12 SKQ1.211006.001 V13.0.3.0.SKCEUXM release-keys
2023-01-19 02:27:04 +00:00
Alexander Koskovich
b6a27c6776 sm6375-common: bootctrl: Update to Boot Control HAL v1.2 2023-01-19 02:27:04 +00:00
Sebastiano Barezzi
0727f730dc sm6375-common: Remove non-existing packages
Change-Id: Ia154904be35b6d6b65f5879be244d2168354bd7e
2023-01-19 02:27:04 +00:00
Bowgo Tsai
afc725b842 sm6375-common: Removing GSI keys
Those keys will be embedded into VtsSecurityAvb on host side
instead, to verify the GSI image used on the device.

Bug: 149806769
Test: build and checks those keys are removed from
      $OUT/recovery/root/first_stage_ramdisk/avb/
Change-Id: I8a002ba6f1421fb460056ccae6572050bdb0ce3c
2023-01-16 04:47:34 +00:00
Michael Bestas
d3779d845c sm6375-common: overlay: Update multiple vibration strength levels overlay for 13
Change-Id: If17503f2dd4bd4d6e333891f9649a7db8d809852
2023-01-16 04:23:09 +00:00
Sebastiano Barezzi
0190043c74 sm6375-common: Drop SDM LiveDisplay service
* We switched to AOSP colors so messing with color calibration will
  confuse QDCM

Change-Id: Ia22c4c06e922d1b7f9c60b257299634333cc3fe4
2023-01-16 04:23:09 +00:00
Sebastiano Barezzi
fdc643c743 sm6375-common: Add Aperture to config_cameraAuxPackageAllowList
* Also add .dev for debugging

Change-Id: I7ea8c1c29f58f908bd2db3632b42dd290e55a18d
2023-01-16 04:23:09 +00:00
LuK1337
ea231c46c4 sm6375-common: Migrate vendor.camera.aux.packagelist to sdk overlay
Change-Id: Iee884cc98b5fada492b27e8085de98ae08406cf4
2023-01-16 04:23:09 +00:00
Michael Bestas
d6642d3a5b sm6375-common: Remove bdroid_buildcfg.h
As of I3c7aed1bdb45db728d319f7d757400e44d232283 the Bluetooth stack
defaults to reasonable defaults that should work for all devices.

Change-Id: I056d63c4c8a2727e384172e964dc0000b6773504
2023-01-16 04:23:09 +00:00
Josh Wu
5ed51524d9 sm6375-common: Switch BtAudio to AIDL
Test: m
Bug: 203490261
Change-Id: I4b8ac40d5ad410b89eb6a0573d740d86471ecfc7
Merged-In: I4b8ac40d5ad410b89eb6a0573d740d86471ecfc7
2023-01-16 04:23:08 +00:00
llololo
da9f420b78 sm6375-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-01-16 04:17:59 +00:00
althafvly
41d1076962 sm6375-common: libinit: Set default USB and Bluetooth name
Change-Id: I65948d08d95b138d9faed262ad3376305b9510a7
2023-01-16 02:54:36 +00:00
Bruno Martins
39a23fb4cb sm6375-common: overlay: Remove BT related configs
These have been migrated to sysprops in Android 13.

Change-Id: I34c1f6b882a61df6db95523997002512354d875e
2023-01-16 02:54:36 +00:00
Woody Lin
68aab527f2 sm6375-common: Enable zygote critical window
Bug: 141948707
Change-Id: I5dc57312118b0f6d95fc9fe164363ec7e15f1b51
2023-01-16 02:54:36 +00:00
LuK1337
25ddeceef9 sm6375-common: Pull appropriate USB props from vendor_product.mk
Change-Id: I93b25c5d0989c83d1c8d7b7946a083771febdddd
2023-01-16 02:54:36 +00:00
Bruno Martins
3a783849fa sm6375-common: Remove QTI BT stack bits
Change-Id: Ice6c2b0735aa7cb4b2e638a794c778883e706c97
2023-01-16 02:54:36 +00:00
Alexander Koskovich
4fa5583056 sm6375-common: Move BT profiles props to vendor
* Makes it GSI compatible

Change-Id: I8f7caf241d508af59c16482e6185c42f23f8a460
2023-01-16 02:54:36 +00:00
Edwin Moquete
86be16ca56 sm6375-common: Switch to legacy sepolicy_vndr
Change-Id: I13229c3057bf32c81b0fdace075f0791cb8ad380
2023-01-16 02:54:36 +00:00
Nolen Johnson
0b89dbe7fb sm6375-common: Move to libhidl shim in hardware/lineage/compat
Change-Id: Ia2cd305baf3ce0fa7ac52d440a4ff51f94654438
2023-01-16 02:54:36 +00:00
Sebastiano Barezzi
d8871fe982 sm6375-common: Use RSA4096 key also for vbmeta_system
* Per https://android.googlesource.com/platform/external/avb/+/master/README.md#build-system-integration, SHA256_RSA4096 is used if BOARD_AVB_ALGORITHM isn't defined
* We can assume bootloader is able to understand a RSA4096 key for vbmeta_system as well

Change-Id: I1d7a539731add04feb8d89c2234e8050e209c5c1
2023-01-16 02:54:36 +00:00
Sebastiano Barezzi
6e568f2f0c sm6375-common: Build default health HIDL recovery impl
Change-Id: I9710760a1b7895ed9a0c3da967c4b30ea655bf94
2023-01-16 02:54:36 +00:00
Sebastiano Barezzi
8a71d7d1cc sm6375-common: Remove non-existing or implicitly included IPACM packages
Change-Id: Iae06f09e101b237187638e76a6dd903ecdc2ca4f
2023-01-16 02:54:36 +00:00
Alexander Koskovich
1089a4c2ca sm6375-common: Drop PRODUCT_BUILD_SUPER_PARTITION
* Super image is not generated by a default 'm' build,
   but we at least want it for dist builds.

Change-Id: Ia12a5314632509fcd309d51ddf757efdc37499c3
2023-01-16 02:54:36 +00:00
Alexander Koskovich
6e1ef5ae16 sm6375-common: Add Bluetooth power overlays to sysprops
* These are currently in FrameworksResTarget, but were
   moved to sysprops in Android 13.

   976d33062b%5E%21/#F0

Change-Id: I5bff67a15c537e8a47a19f30776fca6bf2c9fbe5
2023-01-16 02:31:44 +00:00