Commit graph

181 commits

Author SHA1 Message Date
Sebastiano Barezzi
c80ba49394 sdm660-common: props: Rearrange properties
- No longer productconfig, hence prepare for boardconfig

Change-Id: I78b4cc1bda325f141b3fa33897e57c6bbd6ce34f
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
Chenyang Zhong
e0adc52cce sdm660-common: Relax sysprop owner enforcement
Quoting commit afc09932f6fa07c5f6beffbcdc2bb4691e527321 in
system/sepolicy [1]:

"Devices launching with R or eariler can this by setting following
under BoardConfig.mk"

It is impractical to replace every prop definition from qcom to
vendor_property_type for old platforms like SDM660, so relax the
enforcement to avoid triggering millions of neverallows.

ref:
[1] afc09932f6

Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
Sultanxda
c9311ea840 sdm660-common: Remove QCOM_BT_USE_BTNV
We're not using this.

Change-Id: Ie4b2179c6a3ba15276d83f812bdfaeb1a94d71f2
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
pix106
33feccae52 Revert "sdm660-common: boardconfig: disallow vintf metadata"
This reverts commit 3b747333e8.

Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
pix106
1650ba5854 Revert "sdm660-common: Still use BUILD_COPY_HEADERS"
This reverts commit ee0b64d99d.

Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
Omar Hamad
86f4c82b51 sdm660-common: Improve QCOM Product - Board Declaration
This is to avoid failed QCOM HAL resolution.
Some roms uses BoardConfigQcom.mk and some roms uses BoardConfigQcom.mk.
So adding it into poth product and broad won't be an issue.

Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:32 +01:00
clarencelol
26bc76a375 [TMP]sdm660-common: Temporary enable neverallows
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:32 +01:00
Omar Hamad
d6024e9fa9 sdm660-common: set RELAX_USES_LIBRARY_CHECK true
required libraries in build system is [] vs qcom.fmradio in 8920992b43/fmapp2/AndroidManifest.xml (L63)

note for me: reset this and rm qcom.fmradio library from fm-commonsys

Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:32 +01:00
Omar Hamad
6136e1b039 sdm660-common: Allow copy broken prebuilt files
wfdservice won't copy without this flag

Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:32 +01:00
Omar Hamad
da423f515e sdm660-common: Build missing required modules
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-11-13 11:40:19 +01:00
Omar Hamad
da1f7c6beb sdm660-common: Adapt sepolicy flags to Android 12
private/public

Signed-off-by: pix106 <sbordenave@gmail.com>
2021-11-13 11:40:19 +01:00
Nolen Johnson
5ba050a01e sdm660-common: Kill deprecated TARGET_USES_MKE2FS
* This has been useless since some time in Pie.

Change-Id: Ic02238aa0f1c25cfad20a2b827c3c2fe128f3543
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-11-13 11:32:12 +01:00
LuK1337
1dadab54b8 sdm660-common: Drop leftover WiFi state related flags
* WIFI_DRIVER_OPERSTATE_PATH is no longer needed,
  also it's not ported to 17.0.

Change-Id: Idfa7fb69428642300da2ddc6825774c9e692e648
(cherry picked from commit b0843343defd26622b503606b73a1a8080f1a70b)
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-11-13 11:32:12 +01:00
Albert I
ce01f38f2e sdm660-common: Optimize build specifically for target CPU
* kyro -> cortex-a73

Signed-off-by: Albert I <kras@raphielgang.org>
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-11-13 11:32:12 +01:00
LuK1337
f53e9dc2b2 sdm660-common: Enable TARGET_QTI_USB_SUPPORTS_AUDIO_ACCESSORY
We can handle analog audio just fine, no need to
inform the user that their device is not supported.

Signed-off-by: pix106 <sbordenave@gmail.com>
2021-11-13 11:31:51 +01:00
Ethan Chen
cb34a7cbfa sdm660-common: Remove leftover PRODUCT_VENDOR_MOVE_ENABLED directive
Change-Id: I07e660f6fab0734c8e590e86862406c043cfe9dd
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-11-13 11:31:51 +01:00
Bruno Martins
2eba640188 sdm660-common: Remove redundant Treble override flag
Treble is fully enabled for all devices launched with API level 26 or higher
(which applies to all the targets of this common tree), therefore there's
really no need to override it.

Change-Id: Ia79aebda7fb922762f83948d0c19a6356ce343a8
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-11-13 11:31:51 +01:00
Sebastiano Barezzi
5b74396ddc sdm660-common: Remove BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED
* Defaults to true if full VNDK is enabled

Change-Id: I2d59cbae13eb3712fd13ab09eea582c8d5768e8f
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-11-13 11:31:51 +01:00
SebaUbuntu
2e43901320 sdm660-common: Remove USE_XML_AUDIO_POLICY_CONF
* Dead since Q, where XML audio policies weren't enforced yet

Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-11-13 11:31:51 +01:00
pix106
0cdb83b716 Revert "sdm660-common: Enable TARGET_QTI_USB_SUPPORTS_AUDIO_ACCESSORY"
This reverts commit 57aed4aadb.

Reference: e741d463e9

Signed-off-by: pix106 <sbordenave@gmail.com>
2021-11-13 11:31:51 +01:00
Martin Štrobl
256827eaf3 sdm660-common: Flatten APEXes if updatable APEX is not present
* Should fix bootloops on ROMs which require APEX to boot, such as EvoX

* If APEX is being flattened, disable it manually as well since some ROMs have it enabled by default, even if we flatten it.
2021-11-13 11:31:51 +01:00
Edwin Moquete
d3e2fdbd1e sdm660-common: Enable vendor ril service
Change-Id: I0f0cf1ed92888ed96198ef15bf4d832e0ff561d4
2021-11-13 11:31:51 +01:00
Sebastiano Barezzi
3605a9c720 sdm660-common: Move to SPDX license identifier
Change-Id: If335a7b83289edf4759d0195a8b065c8dac6631b
2021-11-13 11:31:51 +01:00
Sebastiano Barezzi
caaa0bef4e sdm660-common: Kill console parameters
Change-Id: I7e959d2bdfd6a29961a6fab739a4b112fd2daf9b
2021-11-13 11:31:51 +01:00
ghostrider-reborn
79c64bc007 sdm660-common: Introduce kernelspace battery saver
* Needs Kernel side support
 * This activates kernelspace battery saver via powerhal whenever
   battery saver is enabled in userspace, thereby lowering power
   consumption at kernel-level by disabling boosts and such

Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Change-Id: I2623503db27d7518de519bcaa3f5af6ab83879d0
2021-11-13 11:31:49 +01:00
clarencelol
efd182dee0
sdm660-common: Switch back to exfat
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Change-Id: I926a2300e8aee2b2dc09da9774b2c62c87432f0f
2021-08-12 02:25:42 +06:00
OdSazib
3a1dcd4857
Revert "sdm660-common: Enable AOSP surfaceflinger"
This reverts commit dabf68b62a
2021-07-12 08:26:54 +06:00
OdSazib
92b5929b8b
sdm660-common: Remove obsolete directory flag
All system directory are handled by build/core/board_config.mk
Unless we have an explicit different directory from OEM like vendor path
which is symlinked to the system as well, we can leave it.

Reference: https://android.googlesource.com/platform/build/+/refs/heads/master/core/board_config.mk#521
2021-06-30 05:50:02 +06:00
LuK1337
57aed4aadb
sdm660-common: Enable TARGET_QTI_USB_SUPPORTS_AUDIO_ACCESSORY
We can handle analog audio just fine, no need to
inform the user that their device is not supported.
2021-06-27 22:21:00 +06:00
pix106
e93c49f7eb
Revert "sdm660-common: Set linker to LLD"
This reverts commit 7c910f5de2.
2021-06-15 17:32:47 +06:00
Kuba Wojciechowski
68f90e68cf
sdm660-common: Disable KPTI feature
It can also help increase performance by a lot in some scenarios.

Signed-off-by: Kuba Wojciechowski <nullbytepl@gmail.com>
2021-06-07 09:21:11 +06:00
Rajshekar Eashwarappa
6042373a5f
sdm660-common: Set swiotlb to default size
swiotlb size set to 64MB default value.

Change-Id: Ib256f5d2a1642ba2e635e632e7d1486aa2dd8f13
2021-06-07 09:21:11 +06:00
Chris Fries
b99317d79e
sdm660-common: Set printk.devkmsg=on on kernel cmdline to avoid ratelimit
init and friends are getting ratelimted on /dev/kmsg.  Let's keep
the logs by setting printk.devkmsg=on.

Bug: 62952768
Test: Check for init logs in kernel during boot
Change-Id: I103e3cc1d73880af1d9a0cdc4dae05223eb4c427
2021-06-07 09:21:11 +06:00
Subhajeet Muhuri
913e29df35
sdm660-common: Set TARGET_KERNEL_VERSION to 4.19
* Needed by HALs

Change-Id: I62e73aa1a39597b54945eafed3dfaf1fc96536b6
2021-06-07 09:21:11 +06:00
OdSazib
478a2b33b6
sdm660-common: sepolicy: Rework sepolicy (No more neverallow)
- Thanks to LineageOS and our sdm660 community

Change-Id: I54c7d76260041b7c383428449e149aa35d51de9b3c
2021-05-18 05:03:51 +06:00
OdSazib
53c3064ba1
sdm660-common: audio: Update audio configs and enable soundtrigger 2021-05-15 07:20:19 +06:00
OdSazib
24bb52ba53
sdm660-common: Switch to sdfat driver for exfat
* Switched to latest sdfat 2.4.5 in kernel
2021-03-25 05:59:26 +06:00
OdSazib
0047cdbf79
sdm660-common: Update common tree and adapt changes
* Adjust with wayne-common
* Switch to standalone extract utils from pa
* Update FCM level to 3
* Move IR Blaster to device specific repo

Co-authored-by: Erfan Abdi <erfangplus@gmail.com>
Co-authored-by: Michael Bestas <mkbestas@lineageos.org>
Signed-off-by: OdSazib <odsazib@gmail.com>
2021-03-21 23:27:59 +06:00
Dyneteve
dabf68b62a
sdm660-common: Enable AOSP surfaceflinger
* AOSP SurfaceFlinger is smoother than CAF

Signed-off-by: Dyneteve <sound0020@gmail.com>
2021-03-18 07:33:30 +06:00
OdSazib
1c6c38bcab
sdm660-common: Use default clang set by build/soong 2021-03-08 00:27:43 +06:00
PIPIPIG233666
8c0971fdfc
sdm660-common: Build new GNSS stack
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
2021-03-03 00:01:41 +06:00
sbwml
d7334ac1eb
sdm660-common: Set loop max part to 7
loop.max_part must be less than 8, otherwise twrp generates warning with endless loop for apex

Reference: https://source.android.com/devices/tech/ota/apex#required_kernel_configuration_options
2021-03-02 23:47:30 +06:00
etahamad
e923bda27e
sdm660-common: Move IPA flag to sdm660 make file
to fix error: build/make/core/base_rules.mk:329: error: device/xiaomi/sdm660-common/data-ipa-cfg-mgr/hal: MODULE.TARGET.SHARED_LIBRARIES.liboffloadhal already defined by vendor/qcom/opensource/data-ipa-cfg-mgr/hal.

Signed-off-by: etahamad <220190166@fa-hists.edu.eg>
2021-03-02 23:43:22 +06:00
etahamad
1c6b82775f
sdm660-common: apex: Generate APEX image 2021-02-20 11:55:48 +06:00
sohamxda7
53a8793b1d
sdm660-common: drop sched_enable_hmp/power_aware boot argument
* As we are using EAS, this is useless
2021-02-10 09:05:14 +06:00
SakilMondal
e5222049af
sdm660-common: Drop non-functional soundtrigger
* Fixes google assistant voice match in android 11
2021-02-09 20:53:21 +06:00
OdSazib
313ca103eb
sdm660-common: Use QCOM_WLAN HAL instead of AOSP 2021-02-04 13:21:01 +06:00
Andrew Chant
ea89963af3
sdm660-common: Change USB autosuspend delay to 7s by commandline.
b/71936484 has audio accessories failing to connect
when there's a transition to suspend when they're attempting
to enumerate.

Avoid this problem by increasing autosuspend delay
from the default 2s to 7s.

The longest I've seen a device take to enumerate after
vbus is ~3 seconds, this gives a 2x margin.

Test: booted on Walleye, saw no more messages:
[  472.412555] c0   5675 msm-dwc3 a800000.ssusb: DWC3 in low power mode
between device connection and enumeration.

Bug: 71936484
Change-Id: Ie585f2ce5dec429510cc6c00452dc4d49f1372a0
2021-01-27 13:13:52 +06:00
Erfan Abdi
6492dcfc37
sdm660-common: Fix typo in console kernel parameter
Change-Id: Ia38914588a0b0e3bc30c51df9a7b8681f5bf9d76
2021-01-21 03:26:34 +06:00
Bruno Martins
8b69365830
sdm660-common: Remove deprecated telephony flag
The custom jar is dead for good in Android 11.

Change-Id: I7f0f7afd186b00f01183bf4479092d03897e074a
2021-01-21 03:26:34 +06:00