Commit graph

3152 commits

Author SHA1 Message Date
dianlujitao
f735b1ab0c
sdm660-common: sepolicy: Label IR dev node for jason
Change-Id: I7ba6af074485509a501f656587379fb0ba5b07d3
2020-08-12 02:02:37 +06:00
Davide Garberi
4461490e45
sdm660-common: sepolicy: Label renamed white led node
Change-Id: Ia7c3c47efb628f851dd377b2e09b6f8e150013e3
2020-08-12 02:02:37 +06:00
Max Weffers
903525f9b0
sdm660: sepolicy: Allow vendor init to set few props
Change-Id: I0b2574b0e2f5f9b84df1db9ea7386522361a2864
2020-08-12 02:02:37 +06:00
dianlujitao
93f0b0ba58
sdm660-common: Support button backlight
Change-Id: Id13a42976df428c95c19eae49e1c114f057510bb
2020-08-12 02:02:37 +06:00
dianlujitao
98a59e0d2c
sdm660-common: Don't advertise attention light
* Messing up notification light in some cases

Change-Id: I3fdaf2b0b3408d794ff2c6de7d1c2e6169b7a7a5
2020-08-12 02:02:37 +06:00
dianlujitao
4a0d509d3c
sdm660-common: Improve lights HAL
* Use libbase logging and file utils
 * Read max brightness from sysfs
 * Convert constants to constexpr
 * Move helper functions to anonymous namespace
 * Bug fixes
 * Remove redundant chmod
 * Start the service after permissions are set up because it reads max
   brightness in constructor.

Change-Id: I145d393c785e182060c5651e796d489f8c4d697b
2020-08-12 02:02:37 +06:00
Davide Garberi
cc63fa4306
sdm660-common: light: Set blink as last parameter
* Setting it earlier brings the device to often not show
  the led light at all

Change-Id: I2663611241f7db571625e25694ebc77601bde5f6
2020-08-12 02:02:37 +06:00
Demon000
5b63d5c3fb
sdm660-common: Adapt Light Hal for commonized sdm660 tree
Change-Id: If08b3cfc5e4e5bb35b39d6616d0fd974a709e61d
2020-08-12 02:02:37 +06:00
Max Weffers
6f854132da
sdm660-common: biometrics: Restore Fingerprint permissions from Platina
Miui 11

Change-Id: I3e78284cb39ad3bddc75286a638f2a889db551f2
2020-08-12 02:02:37 +06:00
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