Commit Graph

148 Commits

Author SHA1 Message Date
Sayali Lokhande
c97c7e6a6f
davinci: rootdir: init.qcom.rc: Remove tftp and rmt_storage service definitions
This changes removes tftp and rmt storage service definitions
from main .rc file as these services are defined in respective
local .rc files.

Change-Id: Ibbd1fda31b7fd950590d6a15b7aca3bb08d84f4b
2020-12-30 02:02:57 +01:00
Sandeep Neerudu
cab75e2db6
davinci: rootdir: sensors : remove sensors specific boot up commands from init.qcom.rc
move sensors specific boot up commands from global init.qcom.rc to component

specific rc files , which are part of individual component projects.

Change-Id: Ib0410cd0af8d77573bd320063982b504b1b1d1d5
2020-12-30 02:02:57 +01:00
Subbaraman Narayanamurthy
8ebb78dac5
davinci: rootdir: init.qcom.rc: add CAP_SYS_BOOT for charger
Add CAP_SYS_BOOT capability for charger service so that it can
shutdown/reboot the system.

Change-Id: I17ccba74d5a3c38bd751c55bcf42fb3689d730a7
2020-12-30 02:02:57 +01:00
Jun-Hyung Kwon
f064c2991c
davinci: rootdir: init.qcom.rc: add wakelock and BLOCK_SUSPEND to vendor.sensors
add wakelock group and BLOCK_SuSPEND capabilities to vendor.sensors
to acess wake-lock sysfs nodes

Change-Id: I193836d097f15f5bfbe1645909ae70f3f870f972
2020-12-30 02:02:57 +01:00
Subbaraman Narayanamurthy
a9303bcee9
davinci: rootdir: init.qcom.rc: Change user/group permission for for charger
Make charger binary run as system instead of root. Since it
needs to handle input key events, add input as a supplemental
group in addition to system and graphics.

Change-Id: Id1dc46f335087147b7d8cf674664c26f0b511de1
2020-12-30 02:02:57 +01:00
Prerna Kalla
ed256498c6
davinci: rootdir: Support ufs and emmc variant fstab files
Two fstabs are needed to support different data unit
number (dun) size for ufs and emmc hardwares. This
needs different encryption flag in fstab to address
the difference in dun size.

Change-Id: Ifb0e9132fc91e3281401ac49ad70c695a22c9df5
2020-12-30 02:02:57 +01:00
Jimmy Chen
8341c18fac
davinci: Move supplicant service init to wpa_supplicant
Bug: 138790309
Test: boot and wifi function is ok
Change-Id: I35cf3e03566443e20799623045eacd423fd7f5c4
2020-12-30 01:47:46 +01:00
Arian
9c8177ebfa
davinci: rootdir: Enable qcrild and data services instead of starting them
* Enabling the services allows them to start at their proper stage (class main)
* Enable them on boot to ensure they are enabled before class main starts

Change-Id: I71c3fcb72b38d247d304fda2fa6b2cc76baa0db2
2020-12-17 23:47:56 +01:00
Arian
8ab6135938
davinci: Start data services
* These modules are disabled by default and started by
  init.class_main.sh which we do not ship. Start them from init.qcom.rc
  on post-fs-data instead, just like qcrild.

Change-Id: Ifa907b5e33d8d3d08e64baaabfb8e3e450925e96
2020-12-17 23:31:16 +01:00
daniml3
4a06e932be
davinci: Disable NFC service for indian devices
Change-Id: I08e7955bf70adb15cbe5f8f8c3f226c05b135b27
2020-12-17 23:31:09 +01:00
Volodymyr Zhdanov
b41622fbac
davinci: rootdir: Don't configure zram in init.qcom.post_boot.sh
* let it use the size which is set in fstab

Change-Id: Ie84d0674a643e637d5ef894399d76ede25d00eeb
2020-11-28 18:12:03 +01:00
SVB
b40d5db28f
davinci: rootdir: Allow all filesystems for USB-OTG
Change-Id: Ie9cef57485c337c39bae559a71582b4c66127d85
2020-11-28 18:12:03 +01:00
Ethan Chen
450d2ccbf7
davinci: rootdir: Move services to system-background cgroup
Change-Id: Id80f6369f943fc5fc1145cc6f13bddb2fe2b76e8
2020-11-28 18:12:02 +01:00
Tim Murray
4a9fbc3467
davinci: rootdir: Add restricted cpuset
bug: 78197570
Test: CTS

Change-Id: I6aaac2f3ce9ba886143e3667df2ca044c7f3d3f0
2020-11-28 18:12:02 +01:00
Arian
f5bcf08199
davinci: rootdir: Use stock cpusets from init.davinci.rc
Change-Id: I91d4e504635445a2dea6f7f3835d80f46cbc942a
2020-11-28 18:12:02 +01:00
Arian
f18e17322f
davinci: rootdir: Drop powerkey input boost
Change-Id: I2675b72051bdb71d6faba17d59ad8f0281ec2e89
2020-11-28 18:12:02 +01:00
Arian
fc27e74506
davinci: rootdir: Move simple writes from post_boot script to init.target.rc
Change-Id: I512689bbdd77b9a998e7a5d6a2ee91cede599f44
2020-11-28 18:12:02 +01:00
Arian
bbe34cefca
Revert "davinci: rootdir: Import coral fs tuning"
This reverts commit 867af09b6b.

* The boot_completed settings are the default settings already
  and switching the settings while booting does not bring a
  noticeable improvement.

Change-Id: I7a61e2fa8558b074d5c3d7b19c548b4fde00d918
2020-11-28 18:12:02 +01:00
Arian
80bafc10ee
davinci: rootdir: Stop overriding audio hal 2.0 service
* Xiaomi adds the audio_hw_socket here, but it needs
  their changes in the audio HAL, hence it's useless
  for us.

Change-Id: Idf38468ad709623b60b694f458e71d0565ce6fb6
2020-11-28 18:12:02 +01:00
Arian
0a6db81b36
davinci: rootdir: Drop ssr_setup service
* missed in commit:
  66573bbfea
  davinci: Drop SSR blobs and set SSR restart_level in init.qcom.rc
  Change-Id: I32fc08c9ad36b9c8ebfc019fc87a19eece18f0b4

Change-Id: I5078d9579e894c0b1a7b30a2984b1ba096843e0e
2020-11-28 18:12:02 +01:00
Arian
fafcd0b549
davinci: rootdir: Don't setup runtime cpusets for silver only first
Change-Id: I7f9fa116971bd437bfe2722882282a08fe59c006
2020-11-28 18:12:02 +01:00
Arian
688407d50e
davinci: rootdir: Drop led permissions from ueventd
* Set the permissions we need from lights HAL

Change-Id: I93bc6cc0aab1d55f32b53a01df662fe5327c0199
2020-11-28 18:12:02 +01:00
Erfan Abdi
6e3b2395f6
davinci: Disable NFC for indian devices
* Setup davinci sku when device is global or chinese.
* Move the nfc manifest entry to davinci hardware sku
  variant.

Change-Id: I76ac75cd80f85efa6dfa68753602d934a11000a3
Signed-off-by: Arian <arian.kulmer@web.de>
2020-11-28 18:10:27 +01:00
Wei Wang
2a8a880cdb
davinci: rootdir: Tune zram performance
-Set max_comp_streams to num of cores since upstream also moves this to
percpu.

Bug: 38249616
Test: boot and run zram-perf showing better performance
Change-Id: I0b92b246d773db85aa03d033b2cecee54347cbd1
2020-11-23 20:44:37 +01:00
Arian
7ff9df129e
davinci: rootdir: Update zram size from V12.0.1.0.QFJMIXM and tweak swappiness and allocstall threshold
Change-Id: I70a19d48918ad0fc0d7ae7e5919779636fdaa0d4
2020-11-23 20:43:15 +01:00
Demon000
5129977612
davinci: rootdir: Remove sleep_disabled switch during boot
Change-Id: I59f5f96e5aaf381f9cb2b3697983484ec3086aea
2020-08-06 21:28:09 +02:00
Demon000
32489ca7d2
davinci: rootdir: Cleanup qcom post boot script
Change-Id: Icd291176eef59d30856a3bb8755f79d294a060c6
2020-08-06 21:28:09 +02:00
Arian
f1260fc759
davinci: rootdir: Cleanup init.qcom.sh
* Only keep modem config copy

Change-Id: I5fe0ee43ea5c27b8903a8236a1a528a7f5ab784d
2020-08-06 21:28:09 +02:00
Arian
aa57d3d050
davinci: Add init.recovery.qcom.rc
Change-Id: Ib6904420afbb15f81b6a238225f75165d1f09257
2020-08-06 21:28:09 +02:00
Wang Han
3eefee6e89
davinci: 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-06 21:28:09 +02:00
Arian
bf9b868b7f
davinci: rootdir: Cleanup ueventd.rc
Change-Id: I82f91760460dc00610a654a0f2a9e4bfcaafa96f
2020-08-06 21:28:09 +02:00
Demon000
cce942315f
davinci: rootdir: Cleanup init.qcom.usb.rc
Change-Id: If34bb86511ba660d095586f311690f24250b1f7d
2020-08-06 21:28:09 +02:00
TheScarastic
f3f6c69d93
davinci: rootdir: Set default thermal mode to evaluation
Change-Id: I4f08455abbb3391d46f10a3821a3699e82947e74
2020-08-06 21:28:09 +02:00
Hai Shalom
76b173c3c7
davinci: rootdir: Add supplicant 1.2 to init.qcom.rc
Add missing supplicant 1.2 to init.qcom.rc to davinci project.

Bug: 129693419
Test: lshal
Test: vts-tradefed run commandAndExit vts --skip-all-system-status-check --primary-abi-only --skip-preconditions --module VtsHalWifiSupplicantV1_2Host
Change-Id: I34577cac4892563774f035d3a68ed17cc1edeeb9
2020-08-06 21:28:09 +02:00
LuK1337
66573bbfea
davinci: Drop SSR blobs and set SSR restart_level in init.qcom.rc
Change-Id: I32fc08c9ad36b9c8ebfc019fc87a19eece18f0b4
2020-08-06 21:28:09 +02:00
Demon000
1a7135d93a
davinci: rootdir: Cleanup init.qcom.rc
Change-Id: I075233b71275788fd398c1046765445470b8ee06
2020-08-06 21:28:09 +02:00
Arian
25be117b7b
davinci: rootdir: Import camera motor to init.target.rc
Change-Id: I0190d6b2127c8c52cb079cbd3a5ec772dc9a2fc8
2020-08-06 21:28:09 +02:00
Demon000
1fce149484
davinci: rootdir: Remove unused panel info script
Change-Id: I5d6e076002829c16b17bce6c0acc7687e71aa43d
2020-08-06 21:28:09 +02:00
Arian
b89ad972ad
davinci: rootdir: Cleanup on charger
* Don't enable adb
* Actually mount persist
* Don't split on charger to init.qcom.rc and init.target.rc

Change-Id: Ia4d6d1e417056a6b87358e384bd7a0bedcca1d63
2020-08-06 21:28:09 +02:00
Demon000
867af09b6b
davinci: rootdir: Import coral fs tuning
Change-Id: I3aff3f65a20a82fb7a29ea940597a45ec8e02727
2020-08-06 21:28:09 +02:00
Demon000
7acc933f7d
davinci: rootdir: Move configurations to their proper group
Change-Id: If564c1914fc1bf63d9b87113f4b97009ab162ddc
2020-08-06 21:28:09 +02:00
Demon000
28e249ea57
davinci: rootdir: Start nv_mac on main class
Change-Id: I163fa63bc8fc35584afdc67ab029764066c0964f
2020-08-06 21:28:09 +02:00
Arian
eae07b592e
davinci: rootdir: Cleanup init.target.rc
Change-Id: I659ca6f199684e894df197a05e2076e7fbc3305b
2020-08-06 21:28:09 +02:00
Arian
1522a26294
davinci: rootdir: Enable hvdcp_opti
Change-Id: I038ed0240db4bee39037b60b9ecbe90c2141a428
2020-08-06 21:28:09 +02:00
Arian
e9886e56c0
davinci: rootdir: Move nv_mac service declaration to init.target.rc
Change-Id: I03a3ae4dcea4078f0b03c18b44f4aebd0eeffbbe
2020-08-06 21:28:09 +02:00
Arian
b9acaf3ef7
davinci: rootdir: Add required fstab entries
Change-Id: Id20701d075a92a4dfde3a99478862945599e8598
2020-08-06 21:28:09 +02:00
Arian
5533cb3b62
davinci: rootdir: Import uevent
Change-Id: I7156ee9e8f6035135114c5d69fea54a4b0d2579b
2020-08-06 21:28:09 +02:00
Arian
2aa75ea3a3
davinci: rootdir: Import scripts
Change-Id: I6dbee7c54c43a3e2186d21e7df6a028762aeb49a
2020-08-06 21:28:09 +02:00