Commit graph

3243 commits

Author SHA1 Message Date
jeangraff30
0ea6151e6f
sdm660: XiaomiParts: Add PT-BR translation
Change-Id: Ic599261048b6e87a2ac4c8c95cfcd7e35ed196a6
2020-08-12 02:02:37 +06:00
dianlujitao
35ff9a708f
sdm660-common: lights: red -> white
Change-Id: I097c542f95434d85b8c041b156dfd81952c64164
2020-08-12 02:02:37 +06:00
Max Weffers
08f10b8e4d
sdm660: biometrics: Do not remove user database
* fixes platina fingerprint lose after reboot

Change-Id: I5d2a72c44350df59250b30bab0973377caa61796
2020-08-12 02:02:37 +06:00
Bruno Rocha
f8c033af7f
sdm660-common: Disable AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE
We're not using perfd so this is useless.
log error:
E/audio_hw_extn(704): audio_extn_perf_lock_acquire: Failed to acquire perf lock, err: -1
E/audio_hw_extn(704): audio_extn_perf_lock_release: Perf lock release error

Change-Id: I574bf2f8d83dfa34a13a77fa1cd241ae54d956cb
2020-08-12 02:02:37 +06:00
Max Weffers
47fa44a672
sdm660-common: unify DRM and Keymaster libs
Change-Id: I765084e6edb0135a3114056f26c604a4ac6ab262
2020-08-12 02:02:37 +06:00
sbwml
614ec1fabe
sdm660-common: Update blobs from LA.UM.8.2.r1-06300-sdm660.0
Change-Id: I31c13031c392ee66077e8fb60d74a37880c66e9f
2020-08-12 02:02:37 +06:00
Max Weffers
e6a2097643
sdm660: remove unneeded dependencies
Change-Id: I3ade5735becbcaacdd4112759867d4000955f70a
2020-08-12 02:02:37 +06:00
Max Weffers
4c2ff8b4b8
Merge tag 'LA.UM.8.2.r1-06300-sdm660.0' of https://source.codeaurora.org/quic/la/platform/vendor/qcom-opensource/data-ipa-cfg-mgr into HEAD
"LA.UM.8.2.r1-06300-sdm660.0"

Change-Id: I04700deece31db26973552e77ec9a64907ee0852
2020-08-12 02:02:37 +06:00
Max Weffers
b87dec2474
Merge tag 'LA.UM.8.2.r1-06300-sdm660.0' of https://source.codeaurora.org/quic/la/platform/hardware/qcom/gps into HEAD
"LA.UM.8.2.r1-06300-sdm660.0"
Change-Id: I7be67877f4ec71566d2859873d79c94272a659f5

Change-Id: Ia8bda530845f35ff9526961ff99c40afc2cc53f7
2020-08-12 02:02:37 +06:00
rohan
ce470a71de
sdm660: overlay: Let's really fix the flicker issue this time
This reverts commit a7d031553d107a6daf5277a685d9f8a179d05b5a.

Change-Id: If5e420456ad80b0253c753f37e7d56cfc0c34554
2020-08-12 02:02:37 +06:00
Soul Trace
9b5bf8c210
ipacm: Fix WLAN tethering offload
Fix reboot after 120 seconds on WLAN tethering enable.
Fix "target device is connected but no internet" issue.

Move ipacm-related sections from rootdir/etc/init.qcom.rc to data-ipa-cfg-mgr/ipacm/src/ipacm.rc
Make ipacm.rc look like vendor/qcom/opensource/data-ipa-cfg-mgr/ipacm/src/ipacm.rc but add
writepid /dev/cpuset/system-background/tasks to the service definition.
This let ipacm start after data decryption (it got killed on data decrypt and not respawned,
because was disabled).
This fixes following errors:
04-01 14:35:57.525   591 17586 W libc    : Unable to set property "ctl.interface_start" to "android.hardware.tetheroffload.config@1.0::IOffloadConfig/default": error code: 0x20
04-01 14:35:57.526  2665  3190 I ServiceManagement: getService: Trying again for android.hardware.tetheroffload.config@1.0::IOffloadConfig/default...
04-01 14:35:57.526   591 17586 E hwservicemanager: Failed to set property for starting android.hardware.tetheroffload.config@1.0::IOffloadConfig/default

Set wifi.active.interface context to exported_wifi_prop and allow hal_wifi_default to set it.
I don't know why context definition was not embedded to the contexts file, but now it is.
This fixes following errors:
[163263.846522] selinux: avc:  denied  { set } for property=wifi.active.interface pid=2733 uid=1010 gid=1010 scontext=u:r:hal_wifi_default:s0 tcontext=u:object_r:default_prop:s0 tclass=property_service permissive=0

Change-Id: I735e7d8d8d07b9545ef16a6baa35a13aba3cd116
2020-08-12 02:02:37 +06:00
Dyneteve
0fb840157d
sdm660-common: Disable HD logo
Signed-off-by: Henrique Pereira <hlcpereira@pixelexperience.org>
Change-Id: I2f3f2fc9f0e797170ab34d82b00b46259a5c7348
2020-08-12 02:02:37 +06:00
Thomas Shum
d9c301d286
sdm660-common: Restore better load balancing on boot
As it turned out, allowing background, system-background, restricted,
foreground and top-app to use all 8 cores results in severe jitter and lag
whenever background tasks are running, whether it be on boot, or during waking up
from sleep.

This commit readds pinning background to cores 0-1, system-background and
restricted to cores 0-3, foreground to cores 0-6 and top-app to cores 0-7.

Change-Id: Idb76879e75e05b437600f0b689c260c674eb7eea
2020-08-12 02:02:37 +06:00
Max Weffers
875094ccae
sdm660: Use Pie Version of Thermal Blobs
Change-Id: Ie7ef3b615b567cc6c3da4a90ac899908a76b634b
2020-08-12 02:02:37 +06:00
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