Commit graph

3510 commits

Author SHA1 Message Date
David Su
e4cd8c3832
sdm660-common: Don't sign Wifi RROs with platform cert
Preinstalled overlays needn't be signed with the same cert
as the package it overlays, simply being preinstalled is
enough. Sign with the default cert instead for now, which
provides fewer special privileges.

Bug: 162195999
Test: verify values still overlaid correctly
Change-Id: I017491fd383551c5aadf8648edb900e0c12a27b8
2021-01-21 03:26:34 +06:00
Michael Bestas
7e5df23224
sdm660-common: TetheringOverlay: Drop custom dhcp range
Qcom extends default range to add wigig support,
which is not supported.

Change-Id: I17324e41b8345de508e8d2627ea282c65ab1262b
2021-01-21 03:26:34 +06:00
Roshan Pius
568cd29a8b
sdm660-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.
Change-Id: I62dbd2bd3789c454e9683320d3a58f67019ea7ee
2021-01-21 03:26:34 +06:00
Ethan Chen
beb0438736
sdm660-common: Remove wigig components
Change-Id: If730bffdf749f30ddf0dfeec8ce769848b19b17e
2021-01-21 03:26:33 +06:00
Luca Stefani
5892ec1c90
sdm660-common: Remove unused libqsap_sdk
Change-Id: Ib543425786c498eec8ef421f85047bcb1cb0cae3
2021-01-21 03:26:33 +06:00
Ethan Chen
a578eeb694
sdm660-common: Remove bogus ebtables/ethertypes/libebtc packages
* These don't exist.

Change-Id: I08f319e26867eb0b8fcdfaa632b4f6061f33b982
2021-01-21 03:26:33 +06:00
Michael Bestas
245f7306df
sdm660-common: Remove libantradio from PRODUCT_PACKAGES
* It's proprietary and already included in vendor makefiles.
* Remove antradio_app target which is dead

Change-Id: Ic19703a39e3e691a04b226b2cb2a27b02703724d
2021-01-21 03:26:33 +06:00
Nolen Johnson
b9217c9674
sdm660-common: Don't declare BOARD_VENDOR
* Only matters when it differs from the device OEM.

Change-Id: Id9af8263cb42dc7a0e3a9ce8677385e224910302
2021-01-21 03:26:33 +06:00
LuK1337
989bd8fa1d
sdm660-common: Kill BOARD_HAS_LARGE_FILESYSTEM
* No longer exists.

Change-Id: I7f5088b8daedd87107c94f4bddd45286d7453834
2021-01-21 03:26:33 +06:00
Arne Coucheron
5d7ac0edbd
sdm660-common: Remove deprecated TARGET_BOARD_PLATFORM_GPU
Change-Id: I40a14bce12ee4725af17a3e8fbc05143e5577f8e
2021-01-21 03:26:33 +06:00
Kilian von Pflugk
f9b529e057
sdm660-common: Remove TARGET_USES_64_BIT_BINDER
The TARGET_USES_64_BIT_BINDER option is deprecated and can be removed

Change-Id: I6b828da1fbcc8c054c5b35ff78c870a689f7ed9f
2021-01-21 03:26:33 +06:00
Daniel Mentz
4593610a06
sdm660-common: Remove ineffective BOARD_KERNEL_TAGS_OFFSET variable
Remove various variables related to where kernel and ramdisk are loaded
by the bootloader. There are two reasons for this:

1. The B1C1 bootloader ignores all the offset values for kernel, ramdisk
and tags. The default B1C1 memory layout has been designed to accomodate
a larger KASAN kernel.

2. The variables BOARD_KERNEL_TAGS_OFFSET and BOARD_RAMDISK_OFFSET are
ignored by the Android build system (unless they are copied into the
BOARD_MKBOOTIMG_ARGS variable). This is in contrast to the variables
BOARD_KERNEL_BASE, BOARD_KERNEL_PAGESIZE and BOARD_MKBOOTIMG_ARGS which
are referenced by build/make/core/Makefile

Bug: 117832711
Change-Id: I3404a4e084ed063d51077a3a80229854362c768b
2021-01-21 03:26:33 +06:00
OdSazib
4727f2e446
sdm660-common: Don't use QTI_BT for aosp bt stack 2021-01-21 03:26:33 +06:00
Michael Bestas
0f110dcda2
sdm660-common: sepolicy: Resolve camera HAL denials
Change-Id: I47490bfa19bfb6162d161ba0c5e9f48556ab6eff
2021-01-21 03:26:33 +06:00
Jeff Vander Stoep
e48e418541
sdm660-common: sepolicy: camera HAL is a client of configstore
Addresses:
avc:  denied  { find } for
interface=android.hardware.configstore::ISurfaceFlingerConfigs pid=817
scontext=u:r:hal_camera_default:s0
tcontext=u:object_r:hal_configstore_ISurfaceFlingerConfigs:s0
tclass=hwservice_manager permissive=0

Bug: 65454046
Test: camera app
Change-Id: I84b92e5809b89b7f755322d485b92f5e7175a06a
2021-01-21 03:26:33 +06:00
Tim Murray
cc63e83983
sdm660-common: biometrics: keep biometrics in system-background
The fingerprint HAL is insensitive to increased CPU throughput, but it also
has a tendency to spin while waiting for FP hardware. Limit FPC to the
system-background cpuset in order to avoid increased power consumption
when accidentally touching the fingerprint sensor.

bug 76115243
Test: fingerprint in system-background cpuset

Change-Id: Iaffe6f63bd76b7a1c4acaf0cae980840af515961
Signed-off-by: Manish4586 <manish.n.manish45@gmail.com>
2020-12-30 22:06:56 +06:00
Manish4586
adfe7cf0e4
sdm660-common: props: enable vsync and disable backpressure
* As seen with December patch some system apps including user apps started to lag (like screen tearing).
* Enabling Vsync and disabling backpressure resolves the issue

Signed-off-by: Manish4586 <manish.n.manish45@gmail.com>
Change-Id: Ieea19e65020643353494336079104f3f53bd1e4c
2020-12-30 22:06:56 +06:00
OdSazib
b6ab9f6f80
sdm660-common: Decommonize sensor blob
* Temporary workaround for jason
2020-12-30 22:06:56 +06:00
Martijn Coenen
6580fdc5be
sdm660-common: Disable dm-verity hash prefetching.
Prefetching appears to have a slightly negative effect on boot time, and
actually makes boot time much worse when the available dm-bufio cache
shrinks. Since we anticipate the dm-bufio cache will shrink (because of
an increasing number of APEX dm-verity targets), disable prefetching
completely.

Boot time w/o this change:  12.085
Boot time with this change: 11.958

Boot time w/o this change with 128kB dm-bufio cache: 22.82
Boot time with this change with 128kB dm-bufio cache: 12.007

Test: atest google/perf/boottime/boottime-test
Bug: 136247322
Change-Id: I12e342c5692fa89855d9c217f2e94287ff5642a6
2020-12-30 22:06:56 +06:00
Sami Tolvanen
841ea5390b
sdm660-common: verity: call verity_update_state
Needed to set up partition.%s.verified properties.

Bug: 29277442
Change-Id: I295668c454e7e16018e1e4c3bafce5e317616069
2020-12-30 22:06:56 +06:00
pix106
4396258ea5
sdm660-common: add /misc to fstab_A.qcom
Fixes "failed to find /misc partition" when trying to reboot to recovery on lavender
2020-12-30 22:06:56 +06:00
Sap1k
3f8347eb45
sdm660-common: Temporary ignore Neverallows
Change-Id: Ie17c06f031d4e474fb7463eb3a6f37c5d4e752c5
2020-12-30 22:06:56 +06:00
OdSazib
97ba5db521
sdm660-common: Enable RRO overlays for lineage-sdk and Snap 2020-12-30 22:06:56 +06:00
Danny Baumann
1c4a536afa
sdm660-common: overlay-lineage: Enable call recording
Change-Id: I1b4478b330b13cf5d0fe1ed0d40f43e4b3825f33
2020-12-30 22:06:56 +06:00
Nick
e20c7de20e
sdm660-common: Drop telephony injection for now
* Recent telephony changes has dropped this
  Dropping injection fixes RIL for now

Signed-off-by: OdSazib <odsazib@gmail.com>
2020-12-30 22:06:56 +06:00
OdSazib
e44cb6d696
sdm660-common: Refactor apex
Signed-off-by: OdSazib <odsazib@gmail.com>
Change-Id: I8373415681ebf71732657cf86067be5cc4c14625
2020-12-30 22:06:56 +06:00
erfanoabdi
a6f2b3478b
sdm660-common: Refactor BoardConfigQcom to ProductConfigQcom
* Required if rom switched to ProductConfigQcom to build hals

Change-Id: Iddbc6ae3e21cebab3f55b4907abc08527523b81a
Signed-off-by: OdSazib <odsazib@gmail.com>
2020-12-30 22:06:56 +06:00
OdSazib
635c08ae00
sdm660-common: Awaken-ify
Signed-off-by: OdSazib <odsazib@gmail.com>
2020-12-30 22:06:56 +06:00
OdSazib
f2fa84055e
sdm660-common: sepolicy: Address more denials 2020-12-30 22:06:56 +06:00
Danny Trunk
2e38a35b69
sdm660-common: bluetooth: Use default value for HID profile
Do not explicitly set HID profile to false for SDM660 SoC based Xiaomi devices

Change-Id: I38dc9b68cad05624a6a22051af2079cfd4a9e698
2020-12-30 22:06:56 +06:00
Ryan Mitchell
1e203fcfbe
sdm660-common: Use component-override to configure Bluetooth
Runtime Resource Overlays (RROs) can no longer change the value of
resources in manifest when read during PackagerParser.

This change uses component-override to enable the service by default.

Remove usages of profile_supported_* from overlays as they no
longer configure the enable state of Bluetooth components.

Bug: 135048762
Test: adb shell pm query-services \
      com.android.bluetooth/.avrcpcontroller.AvrcpControllerService
      adb shell pm query-services \
      com.android.bluetooth/.hid.HidDeviceService
      adb shell pm query-services \
      com.android.bluetooth/.sap.SapService

Change-Id: I284d254a921b14d1533745611a083f4b5a27d9dc
2020-12-30 22:06:56 +06:00
OdSazib
256c2fbfed
Revert "sdm660-common: Switch to QTI bt stack and enable a2dp offload"
This reverts commit a85c69a8b5.
2020-12-30 22:04:27 +06:00
OdSazib
f6cb7bb46a
sdm660-common: Nuke lineage livedisplay
* Better version is already exist in device settings

Signed-off-by: OdSazib <odsazib@gmail.com>
2020-12-22 20:57:05 +06:00
OdSazib
d40220f154
sdm660-common: Enable block-based 2GB zRAM for EAS
* Guard the post boot script for HMP only

Partially reverts commit fd809eba57.
Signed-off-by: OdSazib <odsazib@gmail.com>.
2020-12-22 20:57:05 +06:00
Subhajeet Muhuri
729fdc8f6c
sdm660-common: Update perfd from taimen RP1A.201005.004
Signed-off-by: OdSazib <odsazib@gmail.com>
2020-12-22 20:57:05 +06:00
OdSazib
a7fd6033cc
sdm660-common: Add powerhint for sdm660 and sdm636
* Add EAS_POWERHINT_VARIANT := sdm636 for whyred in device.mk

Co-authored-by: Subhajeet Muhuri <kenny3fcb@gmail.com>
Signed-off-by: OdSazib <odsazib@gmail.com>
Change-Id: I3591038a29326b15ce00de0051208219d9f3830d
2020-12-22 20:57:05 +06:00
Subhajeet Muhuri
f8945482b8
sdm660-common: Remove TARGET_USES_INTERACTION_BOOST flag
* Doesn't exist in power-libperfmgr

Change-Id: Ie4d60caf8b69757ef1dea109a5c146d6953faa74
2020-12-22 20:57:05 +06:00
Subhajeet Muhuri
9e9d75e6cd
sdm660-common: rootdir: Add proper permissions for dt2w nodes
* Fixes DT2W with power-libperfmgr

Change-Id: Ie5a66319213c6f8f2f9258deafa0229864acca66
Signed-off-by: OdSazib <odsazib@gmail.com>
2020-12-22 20:57:05 +06:00
OdSazib
653193fee0
sdm660-common: rootdir: Set permissions for nodes used by power HAL
* Reference:
   LineageOS/android_device_essential_mata@958fc78

Change-Id: I35ef4b2fcd83efaf10931f670801c6fc32339ea1
Signed-off-by: OdSazib <odsazib@gmail.com>
2020-12-22 20:57:05 +06:00
Subhajeet Muhuri
06dfda6946
sdm660-common: Add sepolicy rules for power-libperfmgr
Signed-off-by: OdSazib <odsazib@gmail.com>
2020-12-22 20:57:05 +06:00
Subhajeet Muhuri
e647430c7f
sdm660-common: Enable power-libperfmgr
Change-Id: Ia5f8fb4a2afc7a453eb09d2092a7872fd8442bc9
2020-12-22 20:57:05 +06:00
Subhajeet Muhuri
2a18634782
sdm660-common: power-libperfmgr: Add back powerstats
Change-Id: I4343db7974eee74b6987e86e101cdfe6daff21a7
2020-12-22 20:57:05 +06:00
Subhajeet Muhuri
207ce8c7fd
sdm660-common: power-libperfmgr: Remove ATRACE instances
Change-Id: I50eaf5fd6c3763ab005ec965c3dfa173808313e3
2020-12-22 20:57:05 +06:00
LuK1337
dd610eb720
sdm660-common: power-libperfmgr: Follow symlinks when writing to dt2w toggle path
* Some devices tend to symlink touchpanel related toggles
  to common path due to having to deal with different panels.

Change-Id: I429e4c5acfbcd3ff26a019f919fbe880692160bd
2020-12-22 20:57:04 +06:00
Steve Kondik
1bb29d8296
sdm660-common: power-libperfmgr: Add support for tap-to-wake feature control
Signed-off-by: Subhajeet Muhuri <kenny3fcb@gmail.com>
Change-Id: Ideb02c659d64cdde4ee2f46c2631f7b42d003b05
2020-12-22 20:57:04 +06:00
Subhajeet Muhuri
b5e7add355
sdm660-common: power-libperfmgr: Remove dumpstate support
Change-Id: I28416d1b09c1157119ea3ac0de3d015b71896c02
2020-12-22 20:57:04 +06:00
Subhajeet Muhuri
b44a490cf4
sdm660-common: power-libperfmgr: completely remove camera hints handling
Change-Id: I1749eb76b0a3aa4afd68fc532b98f1022c4e773a
2020-12-22 20:57:04 +06:00
Demon Singur
e97910bdff
sdm660-common: power-libperfmgr: remove VR hints handling
Change-Id: I4da9b175c3df713f5befd9364ff75b5c1b41a48d
Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@gmail.com>
2020-12-22 20:57:04 +06:00
Jesse Chan
94b25521ed
sdm660-common: power-libperfmgr: remove Google-specific camera and audio hints
Change-Id: I65285ca8c7248bd1e55d3800862e96c00f00effd
2020-12-22 20:57:04 +06:00
Jesse Chan
fca3c97945
sdm660-common: power-libperfmgr: remove Google-specific display LPM control
Change-Id: If58f38b99bf6fbd73f6b6ab2144293c63e18b600
Signed-off-by: Jesse Chan <jc@lineageos.org>
Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@gmail.com>
2020-12-22 20:57:04 +06:00