574 Commits

Author SHA1 Message Date
Akshat
2379247be1 sdm660-common: Adapt to Evolution X 9.x 2024-05-28 11:45:10 +05:30
Nolen Johnson
b200251f7e fixup! sdm660-common: Move telephony packages to /system_ext
Change-Id: Ica4dbe21d764f06723e4c435c970c28a4e32e1c8
2024-04-02 17:57:14 -04:00
Nolen Johnson
8588c4b5c8 sdm660-common: Drop legacy trust HAL
* Dead, will need to move to newer USB HAL at some
  point if we decide to.

Change-Id: Ic356186642f3a7fc777e2ddc956dbb49842ef451
2024-03-21 17:25:28 -04:00
Nolen Johnson
f282c8e3e4 sdm660-common: Move ANT+ deps to system_ext
Change-Id: I3a361c31e3d6a0ef121f75ad4e46c6a43b45aa3d
2024-03-21 16:57:24 -04:00
Bruno Martins
9c9826365b sdm660-common: Move telephony packages to /system_ext
Change-Id: I38329f6d4ebb7b1a0b0f01e40918fdb73ccbcba9
2024-03-21 16:56:40 -04:00
basamaryan
232911f650 sdm660-common: Don't explicitly include updatable_apex.mk
It is inherited by base_system.mk as of QPR2

Change-Id: I020a05b233f61ea28d03199cbc76051e6e97e1dc
2024-03-21 15:18:42 -04:00
Cole Faust
68ccc45a04 sdm660-common: Add BUILD_BROKEN_INCORRECT_PARTITION_IMAGES
Qcom has issues that prevent it from working with a hermetic
partition build.

Bug: 205632228
Test: Presubmits
Change-Id: I490a29da38a6f68e7dd3650d8140cb11adaa8c7a
2024-03-10 19:17:04 -04:00
Nolen Johnson
ae9070f272 Revert "sdm660-common: Disable compressed APEX"
This reverts commit f7986c0f7c.

Reason: Fixed kernel side.

Change-Id: Ie6aa6eeba71cd76ddfa4a63bc1c503c3d00343ff
2024-02-09 17:47:26 -05:00
Bruno Martins
fc1944dec0 sdm660-common: Allow extracting only firmware images
Change-Id: Icab3f013661304e3a9ec89b0816a8139f6b8e8e5
2024-01-02 22:26:04 -05:00
Michael Bestas
fb7b8a43d2 sdm660-common: Add firmware extraction support
Change-Id: If6cb6334a8f7b2fcc77c8947569eba1b2002190a
2024-01-02 22:16:06 -05:00
Nolen Johnson
6c52c46bed sdm660-common: Pin functional libdpmframework.so
* Don't know why newer one doesn't work, don't care.

Change-Id: I553b4beb498e5ac23ca5714bc3e446fd1de24641
2023-11-28 02:48:00 -05:00
Nolen Johnson
6d072cf4dc sdm660-common: sort-blobs-list
Change-Id: Iffb848c5cfe6c87450c9f9f020446391e96e87db
2023-11-28 07:42:07 +00:00
Nolen Johnson
639ec7134c sdm660-common: Don't explicitly build libandroid_net
* netutils already pulls this in as a dep.

Change-Id: I0cdbce9d7173340e8fe55218c2e089b60dc48436
2023-11-28 05:06:43 +00:00
Nolen Johnson
39427efc1d sdm660-common: Stop building neuralnetworks
* We never should have, slipped in with 13 bringup.

Change-Id: I7940f5144f5a082837cff359a0e9f0e558b73a61
2023-11-28 05:06:43 +00:00
Nolen Johnson
0cb850bba4 sdm660-common: Remove ccpreopts.sh
* We don't use system_other now, and never did properly.

Change-Id: Ie84d2d694dd2b528390d977de1e2d1ffd85553be
2023-11-28 05:06:43 +00:00
Nolen Johnson
58f9423103 sdm660-common: Cleanup proprietary-files source statement
Change-Id: I4794d3342122f95421fd3167a5a4ceac0d181d94
2023-11-28 04:18:09 +00:00
Nolen Johnson
cd27c953d3 sdm660-common: Decommonize CPU runtime variants
Change-Id: Iffc8a6d93fd8a19819df5f96fbc1962eec3dd5ee
2023-11-27 23:10:25 -05:00
Nolen Johnson
cf30786148 sdm660-common: Commonize kernel defconfig
Change-Id: I652b7c7b7f26a19bb6f9fe1e6cd874ced892ffc5
2023-11-27 22:48:33 -05:00
Nolen Johnson
c760fc1d51 sdm660-common: Sort and rename core makefile
* Make this match my other common trees.

Change-Id: Ie9546c31794704095b0378e8bde1fce5638091cd
2023-11-27 22:41:08 -05:00
Bruno Martins
b5d483d8d1 sdm660-common: Remove deprecated telephony flag
The custom jar is dead for good in Android 11.

Change-Id: I7f0f7afd186b00f01183bf4479092d03897e074a
2023-11-27 22:14:56 -05:00
Nolen Johnson
e7fd229eed sdm660-common: Remove vestigial TARGET_USERIMAGES_SPARSE_EXT_DISABLED
Change-Id: Ia521de7ddf89f2db3ad5698166fa0af76fee3c57
2023-11-27 22:11:30 -05:00
Nolen Johnson
a323b124a8 sdm660-common: Include vendor BoardConfig
Change-Id: Ic357436d59c8dec9cceee0594f0d8059194a7480
2023-11-27 22:11:14 -05:00
Nolen Johnson
a3ca4fa4d1 sdm660-common: Drop useless triple framebuffer flag
* This is a sysprop, and we don't want it anyway.

Change-Id: Ie0d0061f6c2ed0d04eeba9a1ffb0a58c5f5b9aee
2023-11-27 22:10:50 -05:00
Alexander Koskovich
59a8105397 sdm660-common: Remove vendor RenderScript implementation.
* RenderScript is deprecated on newer platforms and
   is being officially replaced.

 * On April 19, 2021, Google announced that RenderScript
   will be deprecated in Android 12, and recommended
   porting existing code to Vulkan.

   https://android-developers.googleblog.com/2021/04/android-gpu-compute-going-forward.html

Change-Id: I19460ef266a646b046f1e7d2f0b4eab7c48ae536
2023-11-27 22:10:50 -05:00
Nolen Johnson
f4e6f0a02c sdm660-common: Drop USE_CAMERA_STUB
* We don't.

Change-Id: Ia57500d816f73a28032ae428da60e4991c3e8b71
2023-11-27 22:10:50 -05:00
Nolen Johnson
2823720548 sdm660-common: Drop unecessary Bluetooth flags
* BOARD_HAVE_BLUETOOTH is uneeded.
* BOARD_HAVE_BLUETOOTH_QCOM is only important if
  you build libbt-vendor which we don't.

Change-Id: Ib0465b3c0d5138a70cee6a3c3d5f08dd7ce9aa57
2023-11-27 22:10:50 -05:00
Nolen Johnson
e119903c86 sdm660-common: Reclassify some board flags
Change-Id: I4c804c4e92f4989c1a4bf3155587ce3477090d65
2023-11-27 22:10:50 -05:00
Anton Hansson
ddd729c17e sdm660-common: Set cpu "runtime variant" to cortex-a73
This makes bionic and various art tools that compile/runs cpu-specific
code choose the kryo variant at runtime. It does not affect
build-time compilation.

Bug: 120773446
Test: bionic benchmarks with and without this change
Change-Id: I670c8acd094090135515688c5f057c2cc08a083f
2023-11-27 21:48:08 -05:00
Anton Hansson
31083cbd5a sdm660-common: Make targets use generic arch variant
This makes the system image more generic. The intent is so to
add another set of flags to allow the vendor partition to compile with
more specific flags once the build system can support that.

Bug: 120773446
Test: make
Change-Id: I3c31669bf7e19504b802ec1db9283467418ed4bb
2023-11-27 21:38:00 -05:00
Nolen Johnson
2fbd5161f6 sdm660-common: COMMON_PATH -> PLATFORM_PATH
* Align with my other trees.

Change-Id: I0f6c14ef8d75eafcd90895fba400d58f63ba9eb8
2023-11-27 21:34:35 -05:00
Nolen Johnson
8ec10c4fc1 sdm660-common: Don't set BOARD_VENDOR
* Not needed.

Change-Id: Ieb260ff3ebbbf83c3bd5627f57468a133a1f38d0
2023-11-27 21:31:30 -05:00
Nolen Johnson
4ae3bc9cda fixup! sdm660-common: Switch to two-stage init mounting
Change-Id: I8ca5b301a25b479074f568b62e68564612f0200e
2023-11-26 15:44:11 -05:00
Bruno Martins
4c70629099 sdm660-common: Undeclare duplicated GNSS HAL interfaces
All of these are already declared in the GNSS HAL fragment manifests.

Change-Id: I72c97a605c24d02fa313d9208700744f0aa3b5df
2023-11-18 11:42:05 -05:00
LuK1337
dfb56d9f3f sdm660-common: Remove libprotobuf-cpp-full from PRODUCT_PACKAGES
We don't need to explicitly add it there.

Change-Id: Ic6bcc030429affdc8027b9a5f1c7b56a2a9a3198
2023-11-14 15:11:45 -05:00
Arian
d339583df0 Revert "sdm660-common: Switch to libprotobuf-cpp prebuilts from v29 VNDK"
We now provide non-versioned vendorcompat modules.

This reverts commit 27efffc1af.

Change-Id: I36ddf54844e6cb5028decfe038146a2d248d27a2
2023-11-14 14:56:27 -05:00
Gabriel Biren
a9927459da sdm660-common: Update makefile to use the AIDL Wifi Vendor HAL.
Bug: 274964641
Test: Pre-submit tests
Change-Id: I4d9114377fe75b593bbfe6a59f03d8f5d607d6a1
2023-11-09 18:02:36 -05:00
Sebastiano Barezzi
806f637f8c sdm660-common: Switch to two-stage init mounting
* Stop handling vendor mounting from kernel, first stage init is gonna
  do that, together with system (which is now /system)
* Use correct mount flags coming from kernel dts
* Move system and vendor mount points to /dev/block/by-name/, we don't
  have bootdevice symlink to that point in init
* Copy fstab to recovery for first stage init

Change-Id: Iaa0ecc3f13c3cfd3fe357ca509549d0f68a29cf0
2023-11-09 17:32:43 -05:00
LuK1337
bd92c0a28a sdm660-common: Use libutils-v33 for pm-service
Change-Id: Ia998fa72d8747de18010abe6491d2c374cb7aa0a
2023-11-09 17:05:34 -05:00
Bruno Martins
27efffc1af sdm660-common: Switch to libprotobuf-cpp prebuilts from v29 VNDK
Android moved to a versioned approach in R and vendorcompat libs were
still possible to build, but not anymore with the Android U release.

Change-Id: Ibe06bf8d22ab0ce24ac5d5d9f3394b8593ee46cb
2023-11-09 17:05:13 -05:00
Chenyang Zhong
d07e5a94a2 sdm660-common: Specify androidboot.boot_devices
So that /dev/block/by-name/ symlinks are created.

Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
Change-Id: I270c1899e4487ed5e7657038c4ed07e407476953
2023-11-09 17:03:05 -05:00
LuK1337
9351f9695e sdm660-common: Get rid of AVB 1.0
It's dead in U.

Change-Id: Id948fe50fd358837cafa3b1e18cf2adba32b927b
2023-11-09 17:01:34 -05:00
Sebastiano Barezzi
95c3f0c0a0 sdm660-common: Raise VINTF target level to 4
Change-Id: I4c4783dc112102f127f3b1d796e206dcac672faf
2023-11-09 17:00:48 -05:00
GlowingScrewdriver
1d06c0590b sdm660-common: Implement FastCharge HAL
This HAL makes use of the sysfs attribute /sys/class/qcom-battery/restricted_charging
to control whether fast charging is allowed or not.
When fast charging is disabled (i.e. 1 is written to the sysfs
attribute), current is restricted to 1 A (the value at
/sys/class/qcom-battery/restricted_current, in uA).

This has been tested on the Nokia 6.1 (PL2); however, it should work
on other Nokia SDM660 devices as well since they share the same
kernel source.

Adapted from the work at android_hardware_samsung:
https://github.com/LineageOS/android_hardware_samsung/tree/lineage-20/hidl/fastcharge

FastCharge interface definition:
https://github.com/LineageOS/android_hardware_lineage_interfaces/tree/lineage-20.0/fastcharge/1.0

Change-Id: I78ce842ef6263c19088f29a40abfa1ef6534cc99
2023-09-14 05:22:11 +00:00
Michael Bestas
d9172fdd4e sdm660-common: Build Lineage Health HAL
Change-Id: I70cc903a03ac9fa3303bb8fa039c9de4806449bf
2023-06-09 19:24:57 +02:00
Michael Bestas
b5d7d779c1 sdm660-common: ueventd: Remove all permissions from /sys/devices/soc0/serial_number
Change-Id: I688347cfe59f56e4de2e4bf3c3324ca465f7a897
2023-06-09 12:48:02 -04:00
Bruno Martins
43645169f4 sdm660-common: Use minimal GMS if building with it
Only minimal GMS fits.

Change-Id: If9ce99880bcd6949354f80882176aaaded9aad85
2023-04-14 12:43:40 -04:00
Nolen Johnson
17d0e2176d sdm660-common: sepolicy: Correct macro usage
Change-Id: I0159bf2e400c9c4b18f3062c4fad20f5017d2967
2023-04-14 03:52:51 +02:00
Nolen Johnson
1ac7784b2f sdm660-common: sepolicy: Deal with users being special
* So many people are doing _something_ that causes these to not
  be labeled how we intend them too, no matter the restorecons,
  no matter whatever-else we do, they find a way.

* I am tired of dealing with it and we allow neverallows anyway for
  said restorecons, so merry chrismas DRG users.

* Also, validly allow hal_fingerprint_default to read default_prop.

Change-Id: I174f9c583eeba4bb249aa89c1802573ae95b48fc
2023-04-14 03:49:35 +02:00
Michael Bestas
1df83857e5 sdm660-common: Remove no longer needed aptX blobs
As of Android 13 QPR2, AOSP Bluetooth APEX supports aptX/aptX HD

Change-Id: I03c210dd5a777f71becb691955c01f9caf0bd207
2023-03-19 14:32:24 -04:00
Bruno Martins
7765d16c04 sdm660-common: Drop custom APM flag
Custom audio policy manager is hard disabled by CAF
for 2 years now.

Change-Id: Idd34d1cbbdb735d6cf0de3b159c2670bf7ddd1e3
2023-02-14 17:05:32 +01:00