Commit graph

206 commits

Author SHA1 Message Date
Shrikara B
5350c9d183
sdm660-common: rootdir: Set Netflix and media property based on target
Add support to set "ro.netflix.bsp_rev" property at run time
depending on the target. This is needed when 2 or targets are
binary compatible, but have different Netflix proprty for
device whitelisting.

Change-Id: I9484f2886a8b7d986c762fa9031c0e541f15c7e1
2020-10-26 04:25:14 +06:00
Ashish Jain
94677f5db6
sdm660-common: init: Update ueventd rules and init rc for new audio drivers
Update uventd rules to move new audio drivers to audio group.
Update init rc to move audio sysfs node to audio group.

Change-Id: I8e5230e04090b3555e32c0404401dddacea1cd15
2020-10-26 04:25:14 +06:00
Thomas (Wonyoung) Yun
a1008929de
sdm660-common: rootdir: Grant rw permission to hgsl node
qcom: User app needs to open /dev/hgsl node for doorbell enablement.

Change-Id: I9a83e76a441f4001f40ec805bd8081355aa1c79d
2020-10-26 04:25:14 +06:00
OdSazib
9bd430ff9b
sdm660-common: XiaomiParts: Add Headphone & Mic Gain
* This is manually ported by me from Lavender tree on Corvus-Devices
* Thanks @StyloGey for reviewing the java code and giving me a better solution
* Original repo: https://github.com/Corvus-Devices/device_xiaomi_lavender.git

To get it working, you need these two commits in your kernel:
> c04d6d6e61
> 8e25ac3318

Signed-off-by: OdSazib <odsazib@gmail.com>
Change-Id: I1bb48ced1f23728daa2e5170647ce08a04347110
2020-10-19 11:36:06 +06:00
OdSazib
7580f5f636
sdm660-common: XiamiParts: Add FPS Info Overlay
* Ported from: https://github.com/Corvus-Devices/device_xiaomi_lavender.git

Signed-off-by: OdSazib <odsazib@gmail.com>
2020-10-19 11:36:06 +06:00
melia
3648c48235
qcom : device : Update static iuicc names in device
Update static iuicc names in device to handle dynamic iuicc names

Change-Id: I60f1de9ce14b79714762939dd9ee48c17a9ed123
2020-10-19 11:36:06 +06:00
LuK1337
56e1c00575
sdm660-common: Don't set ro.alarm_boot
* We don't support alarm_boot anyway, also
  it's not getting set because of SELinux denial:
[    7.243347] selinux: avc:  denied  { set } for property=ro.alarm_boot pid=556 uid=0 gid=0 scontext=u:r:vendor_init:s0 tcontext=u:object_r:default_prop:s0 tclass=property_service permissive=0\x0a
[    7.243470] init: Unable to set property 'ro.alarm_boot' to 'false' from uid:0 gid:0 pid:556: SELinux permission check failed

Change-Id: Ia188bac2d2aa466c23dabd9dc50ee1f58e6ab7ee
2020-10-19 11:36:06 +06:00
Vol Zhdanov
6c2913c9b8
sdm660-common: add qcom early boot script
* to control power off alarm feature

Change-Id: I0d2f5b96f8604d459130aec5f20f87cc75c7bad0
2020-10-19 11:36:06 +06:00
Dušan Uverić
fa33bc54b6
sdm660-common: rootdir: migrate tunables from post-boot to init.performance.sdm660
Signed-off-by: Dušan Uverić <dusan.uveric9@gmail.com>
Change-Id: I00cd6a57a8e7401160aa9eefb96b73ce13a20b3c
2020-10-19 11:36:06 +06:00
Max Weffers
d713c78f27
sdm660-common: init: Remove unexistent sensor service
Change-Id: I5128d119a914827aa394d0782c035e0ca35296e0
2020-08-12 02:11:34 +06:00
Mohammad Asaad Akram
8fac1ec84b
sepolicy: remove deprecated code for avc denial error cleanup
This patch will remove deprecated code for wpa_supplicant
which is creating symlink with system directory.

Change-Id: I95d1c61ab59addc04c1e7d462529bb9400bbfe92
CRs-Fixed: 2644788
2020-08-12 02:11:32 +06:00
Amit Kushwaha
04162ebc76
init.qcom.rc: Removing unused setprop persist.camera.gyro.disable
Addressing error :
 avc:  denied  { set } for property=persist.camera.gyro.disable pid=377 uid=0 gid=0
 scontext=u:r:vendor_init:s0 tcontext=u:object_r:default_prop:s0
 tclass=property_service permissive=0\x0a

CRs-Fixed: 2662429

Change-Id: Ibd0ed4646d52d67248ea33940c4463ecdbdefc36
2020-08-12 02:11:32 +06:00
Max Weffers
fd809eba57
sdm660-common: setup ZRAM in post boot
This reverts commit 24e254a55f3ba32be838c7d1ab36bf65d4362fbe.

Change-Id: I90f690a4b833d94c235fccf56b8d679eb25591d2
2020-08-12 02:11:32 +06:00
Stylogey
323a9a6357
sdm660-common: rootdir: add vendor.cdsprpcd
Change-Id: Ibf8a049cb9c0c4e013e0904282f23ec71dc43f0b
2020-08-12 02:02:40 +06:00
Stylogey
0d5c6a79f6
sdm660-common: remove improvetouch related stuff
* Not host based touch processing isn't supported by the touchscreen.

Change-Id: Ibc841d8c36eda56e58184286676e1d710ff18392
2020-08-12 02:02:40 +06:00
Max Weffers
325d20178b
sdm660: fstab: Switch back to FDE for AB Targets
Change-Id: I2571ef2337b8c6a0acacc8cae7ba6e25bca52f3d
2020-08-12 02:02:40 +06:00
Max Weffers
ffcf3b7f22
sdm660-common: init: remove double definied services
*they are moved to vendor blob rc files

Change-Id: If213f6ba26f9f6d4e6ac3799a1d70ab4e2f3713f
2020-08-12 02:02:40 +06:00
Stylogey
1bcf447ec0
sdm660-common: rootdir: separate xiaomiparts related initialization
Change-Id: I7b2b3a9c7b22de550e502a9b98e31683e3b961b6
2020-08-12 02:02:39 +06:00
Stylogey
f2fcbe2d73
sdm660-common: format fstabs
Change-Id: I867c2eb7d3f752c70bb9bb05da53048657c43da0
2020-08-12 02:02:39 +06:00
Viraja Kommaraju
077cb22836
common: remove KPI marker at ADSP start
Move the ADSP start KPI marker within the adsp-loader code instead
of adding the same in .rc file.

Change-Id: Ib67f5775dfb9fdca47e62a189de9994b7a6624e8
2020-08-12 02:02:38 +06:00
Dušan Uverić
fee506cf0b
sdm660-common: fstab: setup 1GB ZRAM
Change-Id: Ia137f4a7e7819f507e2fc004231dea2c985f2404
2020-08-12 02:02:38 +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
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
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
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
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
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
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
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
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 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
Dyneteve
1a7c7d5840
sdm660-common: rootdir: Use auto for sdcard/usbotg
* Just so other file systems work

Change-Id: Ic7aa2b98ee4af1309b6155bdc5b77dc46f130503
2020-02-27 17:01:34 +01:00
Dyneteve
162633ad42
sdm660-common: rootdir: Import tunables/cpusets from coral
* Also start bootanim a little earlier

Change-Id: I1b43ead7d122a7042b8fd5e6b5fe41afa9e9fd1b
2020-02-27 17:01:34 +01:00
Wei Wang
0cc188a5c5
sdm660-common: Import SchedTune tuning from b4s4
Change-Id: Ia805b346b2b24fcc24f80af8dc4ffcba3f0c3fbc
2020-02-27 17:01:34 +01:00
Bharat Pawar
70b2ca98a0
sdm660_64: init: USB config update
Change-Id: I696c3622477c689bb31fb2d12183729ece59d54b
2020-02-10 14:22:01 +01:00
Aryan Gupta
5666e48876
sdm660: Switch to file based encryption for AB Targets
Ã*following stock

Change-Id: Ifcf9c07c4e00fa0b8362d4ae7505bb108e57cca6
2020-01-31 16:47:27 +01:00
Max Weffers
7e226bf4b8
sdm660: fstabAB: Use symlink only for persist partition 2020-01-31 16:28:35 +01:00
Max Weffers
12b0f38bd2
sdm660-common: Update Perf stack from Jasmine 10 Release
jasmine-user-10-QKQ1.190910.002-V11.0.4.0.QDIMIXM-release-keys


Change-Id: Ib646bbaf0678ec7597792afc63373c93e47be2e4
2020-01-14 18:18:15 +01:00
Max Weffers
42a78479fc
sdm660: ueventd: Update from from Mi A2 Android 10 release
jasmine-user-10-QKQ1.190910.002-V11.0.4.0.QDIMIXM-release-keys

Change-Id: I11280aa50fdbdd6451cc051d8d6d936f20ebccb3
2020-01-13 14:35:53 +01:00
Max Weffers
5d39827818
sdm660: parts: Rename hall prop to folio_daemon prop
*needed to prevent neverallow in user builds
2020-01-04 09:37:09 +01:00
ramandeep trehan
f7dd88877b
sdm660-common: Start qseecom daemon as early as possible for FBE
Qseecom needs to start at earlier stage for FBE to work properly.

* Wait for prop moved to device as we have still oreo qseecom devices with different prop name

Change-Id: Ie2408f652df291ad6a1b0dee1e4d559ff35c7c45
Signed-off-by: Ramandeep Trehan <rtrehan@codeaurora.org>
2020-01-02 11:46:29 +01:00
Viraja Kommaraju
c5b732e9a7
common: add KPI marker at start of ADSP
Add KPI marker to indicate the start of ADSP
mount.

Change-Id: Ifb2dfbb3717614bec542ab8545cdb0a6d8ae2b38
2019-12-16 18:29:21 +01:00
Maryia Maskaliova
8df20abf05
Modifying /sys/block nodes:
Setting dm-2 read_ahead_kb to 512 on boot completed

Change-Id: I7542a23e5f9197a5faa7ad20e4d18634780d13c9
2019-12-16 18:24:55 +01:00
Gidon Studinski
dd63456a82
common: init: expose /dev/wigig_sensing device node to user space
/dev/wigig_sensing is the entry point to an SPI kernel driver which is a
part of a remote sensing solution using 60GHz HW.

Change-Id: I1b538e0c58ae784997407f91a7647c2188ee7d58
2019-12-16 18:21:06 +01:00
Ajay Agarwal
9c7d9c20bb
init.msm.usb.configfs.rc: Add support for USB PID 0x9020
0x9020 composition includes DIAG + ADB + DUN + NMEA. Add support
for the same.

Change-Id: I364d4e87b63d7e5dfb394db6e92e650764b7cc96
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2019-12-16 18:19:42 +01:00
Xiaojun Sang
42583ca43e
sdm660: add aud_pasthru_adsp access for audio
Change-Id: If4cb96e00ccfaff60b08c42d92370cb46fbb9a0e
2019-12-16 18:19:13 +01:00
Arne Coucheron
aeaffc4a19
sdm660-common: Change charger seclabel from healthd to charger
Change-Id: I86515de0f8ac1ae4d8d83dae7638592a619a3e7c
2019-12-14 23:20:16 +01:00