Commit graph

3129 commits

Author SHA1 Message Date
Max Weffers
599a611dd8
sdm660: sepolicy: Grant Vendor Toolbox fingerprint file acces in persist
Change-Id: I16afcc9bf2f822d741470ca5b741a4b283196575
2020-08-12 02:02:37 +06:00
Wang Han
7508218b60
sdm660-common: ueventd: Don't modify permissions of /dev/hw_random
This addresses an underlying problem since /dev/hw_random is used. The
issue is that EntropyMixer, which runs in system_server, needs to read
from /dev/hw_random, but thanks to our qualcomm ueventd, EntropyMixer
can never accress this node, resulting in warnings like this:

W EntropyMixer: Failed to add HW RNG output to entropy pool
W EntropyMixer: java.io.FileNotFoundException: /dev/hw_random (Permission denied)

AOSP ueventd handles this well, so just remove this line to get things
back to stage. This issue was never exposed because Google derps the
logging here, which is already fixed on Pie.

c78a463e87

Change-Id: I42c9aaa8f57306536e51c0a17febad57a5a77581
2020-08-12 02:02:37 +06:00
Matthew Leung
0ca316c45c
post_boot: Update htbp for Chitwan CDP
Change-Id: I3d20b83e3df9a8f47d34955e9024c12b58fbba26
2020-08-12 02:02:37 +06:00
anirudhr
8d58eb9228
gave system permissions to kgsl-3d0 nodes
gave system permission to kgsl-3d0 nodes for qvrservice
to read and write into the nodes

Change-Id: I207eb9f4915cf538c0b47ce45acb182a7ce95789
2020-08-12 02:02:37 +06:00
Santosh Mardi
25736871b4
post_boot: update L3 nodes for lagoon target
Update L3 dcvs node paths used for configurations
in lagoon target.

Change-Id: Ifcdcf3343f63aaee10269893dfea90e71199d0f6
2020-08-12 02:02:37 +06:00
Varun Garg
a675cfe4f7
sdm660: post_boot: Update memlat polling to 8 ms on Saipan
Update the polling_interval to 8 ms for all memlat
devices to inline with 4ms tick

Change-Id: I10182bae1771d6f3d75e92a63a8b63025f46bd2c
2020-08-12 02:02:37 +06:00
Sanjeev Jakkilinki
33ce327e4b
sdm660: init.qcom.post_boot: initialize the tuning settings for lagoon
perf/power tuning settings related sched and dcvs,lpm disabled

Change-Id: I2ba17b63e5294ec8c1a373a0e47df89589ea0965
2020-08-12 02:02:36 +06:00
Shashi Shekar Shankar
a3f6a8bf78
sdm660: post_boot: Update post_boot for sdm660 K4.14 upgrade
Post_boot changes for sdm660 K4.14 upgrade.

Change-Id: Ib891f1ca606cb686d38bba5f7fe101d395d8b6c3
CRs-Fixed: 2611111
2020-08-12 02:02:36 +06:00
Ravikanth Tuniki
7146cde30b
sdm660: post_boot: update hbtp platform for sm8150+sdxprairie V3
Add support to launch hbtp on subtype 3 / sm8150+sdxprairie V3.

Change-Id: Iead67c4d77538a97cfee086b00f9a55ec4ecee81
2020-08-12 02:02:36 +06:00
Pratham Pratap
1f24d3a000
sdm660: init.target.rc: Prevent enumeration in ADB only composition
During bootup the device first enumerates in ADB only composition
and then falls back to the persist.sys.usb.config.
Prevent this enumeration in ADB only composition during bootup
by setting the sys.usb.configfs from init.qcom.usb.rc

Change-Id: I4d9aa8454202b8118ff76dfda7f44c6413c42020
2020-08-12 02:02:36 +06:00
idabgsram
7e0da6d532
sdm660-common: Switch to Filebased-metadata encryption
Change-Id: I0fd387c6be606e9658fa4badeaf9ac75f7987af0
2020-08-12 02:02:36 +06:00
sbwml
00d8bed00b
sdm660-common: Update Graphics (SDM) from LA.UM.8.2.r1-06200-sdm660.0
Change-Id: I881d0316513971e47bac106354fb0139cc08ee79
2020-08-12 02:02:36 +06:00
ArianK16a
137c30aefe
sdm660-common: Update Blobs from LA.UM.8.2.r1-05700-sdm660.0
Change-Id: I0f55ebccbcbdca5f8cf912566963323ccd72c474
2020-08-12 02:02:36 +06:00
dianlujitao
6df111fbc1
sdm660-common: sepolicy: Adjust for lavender dt2w node
Signed-off-by: Sebita <kjjjnob.seba@gmail.com>
Change-Id: If08946adbf5c2fa619178b3f15ae0635bacdf8a8
2020-03-10 09:41:52 +01:00
LuK1337
2eb56727c3
sdm660-common: sepolicy: Add more /persist related contexts to toolbox rules
Change-Id: If9b28d1196eb352422e5acb0a570f2e005c2dcdf
2020-03-10 09:39:56 +01:00
LuK1337
1e7b6a0417
sdm660-common: sepolicy: Drop unnecessary rule
* This is already granted through init_daemon_domain(domain).

Change-Id: I6c2f1b3e267256da958b40af5014972785617cbe
2020-03-10 09:39:56 +01:00
Felix
ac571ee966
sdm660-common: Force restorecon for /mnt/vendor/persist
The restorecon_recursive directive in init is only applied if the
file_contexts file changed between builds, but not necessarily if any
file or folder inside /mnt/vendor/persist/ has changed.

The restorecon code checks whether an xattr named
"security.sehash" contains a string that matches the current
combined hashes of the SELinux context files and skips restoring labels
if there is a match, see
https://android.googlesource.com/platform/external/selinux/+/refs/tags/android-9.0.0_r35/libselinux/src/android/android_platform.c#1546

Force wiping that xattr so that restorecon always runs since it's not
very expensive (there are currently only about 50 files on /persist).

The restorecon is needed to fix issues such as wrong stock labels on
/mnt/vendor/persist/sensors/:
sensors_persist_file -> persist_sensors_file

Change-Id: Ic0cd848836ee550499d9236f56ed6e939e35f01e
2020-03-10 09:39:45 +01:00
Max Weffers
11f242fb9d
sdm660: prop: We don't have dual isp camera
* fixes portait mode in miui cam

Change-Id: I2e0518312528116b977a069a273168dc916160e1
2020-03-06 11:21:00 +01:00
Artem Borisov
e20a0bf5f0
sdm660: Snap: Enable support for bokeh mode
* Our HAL doesn't really support bokeh mode, but enabling this
  makes our auxiliary camera available in Snap again.
* Also update copyrights, as this was never an AOSP overlay,
  and that copyright was a typo.

Change-Id: I296d42e5e371711b7acb81cb3235ea572a2ded56
2020-02-27 17:01:42 +01:00
Thierry Strudel
e713c18a84
sdm660-common: init: Adjust charger state CPUs
Bug: 74771887
Change-Id: Ifd5d2ac499866ce897cfa99a655da592248e7bbd
Signed-off-by: Thierry Strudel <tstrudel@google.com>
Signed-off-by: Zainudin Shamilov <renascape@beatwo.men>
2020-02-27 17:01:42 +01:00
Wei Wang
bb85a5d86c
sdm660-common: init: powersave in charger mode
Bug: 72445880
Test: boot to charger
Change-Id: I154304deabf219a0428d68d0c59cb64c143b7de6
2020-02-27 17:01:42 +01:00
Aryan Gupta
d2272c9cb7
sdm660-common: Set loop max part to 16
Needed for apex to work properly

refer https://source.android.com/devices/tech/ota/apex

Change-Id: Iabcb7478cd96be8f4cd8ee1cf17185d7d5ba0cd9
2020-02-27 17:01:42 +01:00
khanfrd
1d210000b3
sdm660-common: overlay: Enable STATE_DOZE support
Signed-off-by: Zainudin Shamilov <renascape@beatwo.men>
Change-Id: Ia8474ddaff2e0a7a591eee26f9ba1e6a7d7b444a
2020-02-27 17:01:41 +01:00
Anant Goel
5eeebf4209
init.qcom.usb.sh: Set ADB as default composition for GVM targets
Set ADB as the default composition for GVM targets, as DIAG
over USB conflicts with the DIAG over IP used by the PVM.

Change-Id: I09389564db284b16ccb34243eaf34bb17860b30f
Signed-off-by: Anant Goel <anantg@codeaurora.org>
2020-02-27 17:01:41 +01:00
David Ng
34a9f96920
config.fs: Add sys_boot cap to peripheral manager
Enable sys_boot capability to allow system reboot
to peripheral manager.

Change-Id: I04b67543c4d2e541b9699b6faa3337b2638b3257
2020-02-27 17:01:41 +01:00
Sidipotu Ashok
eedaefc0f2
init: Define SYS_NICE caps for android.hardware.audio@2.0-service.
- Grant SYS_NICE capabilities to audio HAL processes as sound trigger
HAL threads need to run at real time priority as well as use the
CPU affinity, for far field voice.

CRs-Fixed: 2359951
Change-Id: Ie0da744978609c750e92aec2c6001ace1868ad31
2020-02-27 17:01:41 +01:00
Subhadra Jagadeesan
fac52b4226
init.qcom.post_boot: exclude CPUs 0-3 from isolation
- SnapdragonVoiceActivation feature for Far Field Voice version
affines its threads to 0-3 CPUs and so prevent them from isolation
for qcs605 target

Change-Id: I09ef5cc97ee245133315edc0821f3a2afc54e99b
2020-02-27 17:01:41 +01:00
Patrick Daly
20bc13de0e
post_boot: Ensure SLAB_STORE_USER is disabled for zram kmem_caches
ZRAM compression uses the linux slub allocator its internal data
structures. If these internal data structure consume a lot of memory,
ZRAM compression may increase memory usage, rather than decrease it
as expected. Decrease the chance of this occuring by ensuring the
SLAB_STORE_USER debug option is disabled.

Change-Id: I4684feda94b7bebacb6218b7f979c95771b0ee10
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
2020-02-27 17:01:41 +01:00
Divyanand Rangu
a293622e25
post_boot: Update nodes of read_ahead_kb configs
check populated dm-* nodes and Update read_ahead_kb
values to them. This is needed because on targets
with verity disabled dm-0 to dm-6 are populated,
while on enabled targets dm-3 to dm-6 are populated.

Change-Id: Ia4e262d7487120695db53b562b5764598fd40a87
2020-02-27 17:01:40 +01:00
Ravi Paluri
a0d3f4cd64
IMS: Enable IMS feature flags for supported carriers
Enable IMS feature flags for supported carriers

Change-Id: Ib5dd349e02946f432ea4bff5cb89bb8dd4037bd2
CRs-Fixed: 2595292
2020-02-27 17:01:40 +01:00
Venkata Rao Kakani
26f2e84b81
post_boot: change ddr freq from fixed to capped level.
Change-Id: I2e6b2112c54e019e72271bf34e22edb1a36488ea
Signed-off-by: Venkata Rao Kakani <vkakani@codeaurora.org>
2020-02-27 17:01:40 +01:00
zljing
b0de734ae5
post_boot: update zram setting avoid 32 bit overflow.
Change-Id: I790b5ef9fcf091e4af3ebaaac3341b8d4050c47e
2020-02-27 17:01:40 +01:00
Surabhi Vishnoi
3c2400960f
falcon_64: Add wowlan_triggers to wpa_supplicant conf
Add 'wowlan_triggers=magic_pkt' to wpa_supplicant_overlay.conf. With
this, wpa_supplicant will tell the linux kernel that the wifi driver
is wowlan capable, and will wakeup the host when a magic packet is
received. Most importantly, the kernel will no longer disconnect wifi
connections before suspending wifi.

CRs-Fixed: 2615975
Change-Id: I3226943940046ad98e4ab410897d4fdcb457ee5a
2020-02-27 17:01:39 +01:00
Sridhar Kasukurthi
93d67ec05b
Update QtiRadio HAL to Version 2.4
Change-Id: Id840d3b942f952fc2ee2441c1f02f081b62a419c
2020-02-27 17:01:39 +01:00
Ananthula, Madhu
8ab1a2d503
SDM660: Finetune mediacodec performance values.
Finetune mediacodec performance values as per CTS results

CR: 2584357
Change-Id: I71c75cfbfeaeb370eee8f6173520abbdf61544db
2020-02-27 17:01:39 +01:00
VijayaKumar T M
e3747252c9
sdm660_64: camera : Disable dual isp sync
sdm660 will not support dual isp sync.

Change-Id: I006eecf59437aa7cdbd378850ab5ce6e7f702a54
2020-02-27 17:01:39 +01:00
Josh Chasky
eef3c5c4d0
board: Update to Clang 10.0.4
Change-Id: I181212db478a025c09adf346b3e47d1cd6509ab7
2020-02-27 17:01:39 +01:00
Vulupala Shashank Reddy
7c2620f4ca
wifi: Update ini parameters for wifi
Update ini parameters related to wifi.

Change-Id: I238eb03d721ca81cfa9994566edce0a145e76521
CRs-Fixed: 2597219
2020-02-27 17:01:39 +01:00
Max Weffers
8958ec4e22
sdm660: prop: Do not Move input surface to CCodec
* fixes system side screenrecorder

Change-Id: I141c3a72507d53a1fc00a26247da2256a7f71826
2020-02-27 17:01:38 +01:00
dianlujitao
c4d7f31a89
Force enable mobile network settings v2
* AOSP defaults to true but 10 QC telephony extension sets it to false.
 * Restore AOSP behavior by enabling it with a system property which has
   higher priority over global system settings which is used by QCOM w/o
   modifying the jar.

Change-Id: I45854b91bb8cfafabfe811777cda9f1e1840febf

 Author:    dianlujitao <dianlujitao@lineageos.org>
 Date:      Tue Oct 22 21:11:54 2019 +0800

Change-Id: I1862e9021ccbc8430c9a1dcda21016fdbf2f0bad
2020-02-27 17:01:38 +01:00
Dyneteve
458fbf7f0d
sdm660-common: Switch to userspace LMKD
Change-Id: I63a284f3b956284e798fe0ecfb6cc05b4190db73
2020-02-27 17:01:38 +01:00
izainudinshamilov
e16c070073
sdm660-common: Update vibration pattern from sargo
Change-Id: Ie97c7673b4e38b0fb99b99c10e007df36e75ca5b
2020-02-27 17:01:38 +01:00
Max Weffers
52f60c1b4f
sdm660: overlay: Update Auto Brightness Values from Sargo
Change-Id: I2d04a985ef8acd8a1a2866147d63b8a41853abd3
2020-02-27 17:01:38 +01:00
Phil Burk
9342e80e43
sdm660: audio: add vendor property for mmap MMAP OUTPUT time offset
Try to fix glitches on AAudio MMAP output on bonito.
The DSP is returning a position/time pair that is too soon.

Bug: 122680738
Test: Should see glitch.count = 0 when you run this test.
Test: adb shell aaudio_loopback -tm -b999 -s20 -x -X
Change-Id: I3cf7698e4038b375a116c4d708eb0686cc72f40e
Merged-In: I3cf7698e4038b375a116c4d708eb0686cc72f40e
2020-02-27 17:01:37 +01:00
Pawin Vongmasa
4b0ead0844
sdm660: Move input surface to CCodec
Test: atest CtsMediaTestCases -- \
--module-arg CtsMediaTestCases:size:small

Bug: 131800183

Change-Id: I8783a7de4a4fdf7ff2eac6697c71f6592c9a9e06
2020-02-27 17:01:37 +01:00
Tomy Prasetyo
0f965351e0
sdm660: Add full Support Carrier Smartfren ViLTE
Change-Id: I6af854a07dfe521abfc624b34971a5359dd218bc
2020-02-27 17:01:37 +01:00
Liron Daniel
75bef1e561
sdm660: ueventd.qcom.rc: Add permission to /dev/spu_hal_ssr
Needed for spu HAL service to register on spcom channel for ssr
notifications

Change-Id: I43f070bf9948d4330f9ae05f9d631f2681f75164
2020-02-27 17:01:37 +01:00
Amir Vajid
babc7f8aae
sdm660: post_boot: update memlat polling to 8 ms on kona
Update the polling_interval to 8 ms for all memlat
devices on kona.

Change-Id: Ia097e6e0a6aa3b761978e5df60c868a7f1d19401
2020-02-27 17:01:37 +01:00
Amir Samuelov
568313007c
sdm660: allow system to access UFS sysfs
Allow system to read/write UFS device attributes on sysfs.

Change-Id: I7ea0a8f289b29ebcff2b894237efbe90b76f1a80
2020-02-27 17:01:36 +01:00
Dyneteve
e970cc2df6
sdm660-common: Start the bootanimation on late-fs
Change-Id: I990ee05623b98a5faa5fea9085de27737ba2cb5b
2020-02-27 17:01:36 +01:00