summaryrefslogtreecommitdiff
path: root/rootdir
Commit message (Collapse)AuthorAgeFilesLines
* pro1: Kill Secure Processor (SP) daemonBruno Martins2022-02-151-6/+0
| | | | | | | The service is now crashing like crazy and no other msm8998/sdm660 devices seem to be shipping it anyway. Change-Id: I7351a9b7d753d7c16f9ea40359a132d6ed0c4952
* pro1: init: Remove PowerHAL permission setupGeorg Veichtlbauer2021-12-141-13/+0
| | | | | | | | * In contrast to HIDL, our AIDL power HAL is running as root, so trying to access nodes with system:system will result in a SELinux dac_override denial due to wrong permissions Change-Id: I413de3a1097749b58e5a4cce09c55bddeaca71c1
* pro1: Remove ZRAM setupGeorg Veichtlbauer2021-03-251-4/+0
| | | | | | * It's never actually enabled Change-Id: If44fd72eab08797b1abeede07842fd9980c1aa59
* pro1: ueventd: Don't modify permissions of /dev/hw_randomWang Han2021-02-041-1/+0
| | | | | | | | | | | | | | | | | | 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. https://android.googlesource.com/platform/frameworks/base/+/c78a463e875d91eae2cf256042fd99d130217c38 Change-Id: I42c9aaa8f57306536e51c0a17febad57a5a77581
* pro1: rootdir: Stop using persist legacy path in init.btlfp.shBruno Martins2021-01-051-1/+1
| | | | | | This is the new mount path, so stay away from the legacy one. Change-Id: I223cc71ccc0a381445af041b3e16affa4ad4241b
* pro1: Return to AOSP rild servicesBruno Martins2020-11-201-3/+6
| | | | | | | | | | | | | | | | Even though basic telephony features were fully functional with QC rild services, IMS was sadly broken. Turns out that an upgraded upgraded baseband is required for a full switch. As of now, the shipped baseband version is MPSS.AT.2.0.c4-01010-8998_GEN_PACK-1 and according to QCOM, the older modem packages must launch ril-daemon (actually, anything lower than version MPSS.AT.3.1.xxx). While bringing back ril-daemon2 service, update it to match ril-daemon service definitions from AOSP. This partially reverts commit 5e31709 and fully reverts commit 27a9e4f. Change-Id: Ie86f3d37d9185a3d1e465f044699883847fb0b88
* pro1: Fix diag driver access permission for IMS daemonsBruno Martins2020-11-201-3/+3
| | | | | | | | | | | Add the remaining IMS daemons to the vendor_qti_diag group in order to allow access to /dev/diag. Observe that the following error disappears from logs: E Diag_Lib: Diag_LSM_Init: Failed to open handle to diag driver, error = 13 Change-Id: Ic0b813c080195b8204f462a24fee470652f65fcd
* pro1: Update user group for daemonsBrandon Solis2020-11-201-4/+6
| | | | | | ImsDataDaemon, ImsQmiDaemon and ImsRcsService user groups updated from system to radio Change-Id: I5368db8e29b41f583e7b258a6b56318725279412
* pro1: Update rtp daemon user groupEric Chang2020-11-201-2/+2
| | | | | | | - Rtp Daemon user group updated from system to radio - Updated diag permissions Change-Id: Ie78a80e59782c935f5a7f0c37302dcc26fb9d98c
* pro1: FR 53051: Self Contained ModulePavan Kumar M2020-11-191-12/+0
| | | | | | Desc: Remove cnd, dpmQmiMgr daemon Change-Id: I741a951bf71f72db009ddde94991aa876705b99a
* pro1: Fix keyboard layout settingTom Marshall2020-11-171-0/+14
| | | | | | | | | | | | | | | | | | | | | | As per Treble rules, platform must not have access to /mnt/vendor. Just handle keyboard layout setting in a vendor init script. The script uses a property trigger for "sys.keyboard.layout" to update the saved keyboard layout in the persist partition and notify the kernel of the desired layout. The DeviceSettings app reads the layout from the kernel sysfs file and updates the property "sys.keyboard.layout" on change. Note the keyboard layout file moved only to avoid ending up with an undesired SElinux context (files under /mnt/vendor/persist/data are labeled by QCOM as persist_drm_file). The init script also handles migration. Additionally, make use of XML attribute to set the preference summary directly. As a bonus, it now shows in uppercase. Change-Id: Ie639f73ddb9a50e0b883601e8eb03a1895e54cdc
* pro1: init: update audio hal service override as per latest base service ↵Dhananjay Kumar2020-11-141-8/+2
| | | | | | definition Change-Id: I1c57ad2e448a95230a4adfff8fba94ffb0cddead
* pro1: init: add interface declaration for audio hal serviceAalique Grahame2020-11-141-0/+1
| | | | | | | | Add interface declaration for new version of audio hal service. CRs-Fixed: 2483106 Change-Id: I573bf678b01e3e5144dc3ab1a45e74c471fb88a8
* pro1: Define SYS_NICE caps for android.hardware.audio@2.0-service.Sidipotu Ashok2020-11-141-1/+1
| | | | | | | | | - 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
* pro1: init: Override android.hardware.audio@2.0-serviceVenkatesh Mangalappali2020-11-141-0/+16
| | | | | | override audio hal service to add "oem_2901", "wakelock" group access. Change-Id: Iaa732d68989023d99f1644f968a537c3d1f12f55
* pro1: Move supplicant service init to wpa_supplicantJimmy Chen2020-11-081-16/+0
| | | | | | Bug: 138790309 Test: boot and wifi function is ok Change-Id: I35cf3e03566443e20799623045eacd423fd7f5c4
* pro1: Remove unknown interface entry from btlfpserver serviceBruno Martins2020-11-081-1/+0
| | | | | | Interface is not in the known set of hidl_interfaces: 'vendor.hardware.betterlife.fingerprint@1.0::IBtlFingerprint'. Please ensure the interface is spelled correctly and built by a hidl_interface target. Change-Id: I989f74b8a75034e8e715db4cade5a36bc43bd31f
* pro1: load_system_props is deprecated and causes a build error.Divya Sharma2020-11-081-3/+0
| | | | Change-Id: I71df37c605ed805dc1f8bc2e626a33cf6818e9f7
* pro1: Remove starting servicemanagersTom Cherry2020-10-311-3/+0
| | | | | | | | | All servicemanagers are started in rootdir/init.rc's `on init` trigger, so there's no need to start them manually in device specific rc files. Test: boot Change-Id: Ibdea8d5289322aae49af50e325beb793936ea525
* pro1: Wait for hwservicemanager ready before running fsckWei Wang2020-10-251-3/+8
| | | | | | | | | | | | | | As property service is part of init, and if init is busy with built-in command e.g. fsck, the propety_set() won't go through until the built-in command is finished. Move the start of hwservicemanager earlier and wait for its done after launches bootanim and its dependencies (there is not wait time during boot but the command is as a safeguard). Bug: 74437368 Test: boot with simulated long fsck and bootanim shown early Test: boot see 'start_waiting_for_property("hwservicemanager.ready", "true"): already set' Change-Id: Iab4b857a51e0e6b8b059d063c1f0d65a0e987622
* pro1: init.qcom.rc: FR 53051: remove configs for vendor data ipa modulesSkylar Chang2020-10-231-10/+0
| | | | | | | As part of this FR we are moving vendor ipa data specific module configurations to custom vendor data init rc files Change-Id: Ib1f2a8187b243e73ca1d4fa921117fd63b361157
* pro1: rootdir: add power_off_alarm into init.rcQimeng Pan2020-10-231-0/+1
| | | | | | | Add power_off_alarm into init.rc on charge mode Change-Id: I18158cde8b3ae0890a92bd1ced56782fa053230a CRs-Fixed: 2373093
* pro1: rootdir: Add vendor prefix to power_off_alarm serviceMao Jinlong2020-10-231-1/+1
| | | | | | power_off_alarm is a vendor service. Add vendor prefix to it. Change-Id: Ib4a988467a54bbe4544960180afeeeb5dd0e85f3
* pro1: rootdir: Add power off alarm serviceMao Jinlong2020-10-231-0/+6
| | | | | | | | | Add power off alarm service for power off alarm feature to reboot device when power off alarm is up in some special mode like power off charging mode. CRs-Fixed: 2095984 Change-Id: Ib8d82e63e92a85a7f60d5559064a1f19e0de5a22
* pro1: Remove cnss_diagEthan Chen2020-10-231-10/+0
| | | | | | * This is for debug use only Change-Id: If7f972c5eebfa049ba8a08748088aca5dcae0487
* pro1: Turn down debugging on wpa_supplicantDan Pasanen2020-10-231-1/+1
| | | | Change-Id: I15f8aff12ebcccbc97263b1d82b7ec0d3baea263
* pro1: Switch to QC RIL servicesBruno Martins2020-10-231-6/+3
| | | | | | | | During the initial tests, it was noticed that a few QTI radio deps were missing and causing qcrild2 not to start. Therefore, add the libraries in order to successfully bring up QC RIL. Change-Id: I6c0897d028af15dafceec34041c37c1253fee22b
* pro1: Remove firmware class path for kernel firmware loadingVinay Verma2020-10-221-1/+1
| | | | | | | | | | | In ueventd support has been added to read firmware path from vendor.It wil parse /vendor/firmware_mnt/image information and add in look up path/search path for loading firmware. Change uid of /venodr/firmware_mnt back to system as kernel firmware loading is removed. Previouly to support kernel firmware loading root permissions were required. Change-Id: I560ed75ee07626094acbc879b615190cf3a9faa3
* pro1: Add CAP_SYS_BOOT for chargerSubbaraman Narayanamurthy2020-10-221-0/+1
| | | | | | | Add CAP_SYS_BOOT capability for charger service so that it can shutdown/reboot the system. Change-Id: I17ccba74d5a3c38bd751c55bcf42fb3689d730a7
* pro1: Change user/group permission for for chargerSubbaraman Narayanamurthy2020-10-221-1/+2
| | | | | | | | 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
* pro1: Update charger service path and labelSubbaraman Narayanamurthy2020-10-221-2/+2
| | | | | | | charger binary is moved to /system/bin. Also the label got changed to charger. Update it accordingly. Change-Id: I78574238f9fc5ec028d10ab866676bfc0cd36370
* pro1: Add supplicant 1.2 to init.qcom.rcHai Shalom2020-10-221-0/+1
| | | | | | Add missing supplicant 1.2 Change-Id: I34577cac4892563774f035d3a68ed17cc1edeeb9
* pro1: time-services: Start time_daemon service from common rcMohit Aggarwal2020-07-211-0/+6
| | | | | | | | | Currently, time_daemon service is running after statsd service which is causing some xTS failure. The patch moves time_daemon service definition to common rc file so that daemon can start early. Change-Id: I7ff7a7a3b7ac5077a95157c1785bfb844b92d7dd
* pro1: Fix typo in memory governorEthan Chen2020-07-151-3/+3
| | | | Change-Id: I959a3048f81791cb55daa43d4935d6f2147d4cf2
* pro1: Allow init-devstart-sh to start IPAEthan Chen2020-07-141-1/+1
| | | | Change-Id: Iaa59c3bc3879d884f72002a6295050b83eba2176
* pro1: Power: make powerhal starts handling powerhint after boot_completeWei Wang2020-07-141-0/+3
| | | | | | | | | | some sysfs node may not be ready before boot_complete: e.g. we are delaying bw_hwmon in favor of boot time Bug: 80321544 Bug: 79536745 Test: Boot and check powerhint handling Change-Id: I8d2cfa332d9cf9fbafdfa3f48ffff4105c6bcaae
* pro1: Move all services to system-background cpu setEthan Chen2020-07-141-0/+30
| | | | Change-Id: Ief0197eb8cdbda40ce4aa3bd9c5f79ae1db0d635
* pro1: Merge post_boot into init.qcom.rcEthan Chen2020-07-142-335/+124
| | | | | | | * Merge post_boot script configuration into init.qcom.rc * Switch to schedutil governor by default Change-Id: I41340c9ce5b71e6ef6085db3938af3359b132bfa
* pro1: set vibrator intensity permissionsEthan Chen2020-07-141-0/+3
| | | | Change-Id: I1fe9f70c65394c49aeebbff10e69f417e9a50744
* pro1: Cosmetic spacing between RIL DB directivesEthan Chen2020-07-141-0/+1
| | | | Change-Id: I061884ff99f9ae33bba06e66f397d58392a5d96a
* pro1: Set BFQ I/O schedulerEthan Chen2020-07-141-0/+2
| | | | Change-Id: I9c8e7570f3c370b9bb522b5b58c89e9034fea7f3
* pro1: Move boot completion message to end of boot_completedEthan Chen2020-07-141-2/+2
| | | | Change-Id: Ib147891917ae71a548e9b46bba98ad083dd79cc1
* pro1: No discard on /systemEthan Chen2020-07-141-1/+1
| | | | | | * This partition is mounted read-only, there's no need to trim here. Change-Id: I37626887486db76971ebe6f89dde33c7263f2f41
* pro1: Add group and interface to bltfpserver serviceEthan Chen2020-07-141-0/+2
| | | | Change-Id: Ib79a56d737f26da9f6b83a3eda8a0300006572bf
* pro1: Boot subsystems asynchronouslyEthan Chen2020-07-142-6/+19
| | | | | | | * Boot adsp, slpi, ipa subsystems without blocking init * Remove non-existent cdsp subsystem boot directive Change-Id: I4e71dc1752a8e79d5e38250e1d758089ea8ae70e
* pro1: Start boot animation as soon as we canEthan Chen2020-07-141-2/+17
| | | | Change-Id: I8f2339b0437ed018e14607096028a3e206409862
* pro1: Split mount into early and late stagesEthan Chen2020-07-141-1/+5
| | | | Change-Id: I4bc1102dd4de21bf2938bf89125461d163b1335e
* pro1: Disable UFS powersave during boot processEthan Chen2020-07-141-0/+10
| | | | Change-Id: I58bff0fc94b12aa866e35304673cef95e7aba924
* pro1: Remove useless comments citing init script sourcesEthan Chen2020-07-141-7/+0
| | | | Change-Id: I22599ab05a67f6f92e34968f6f6fb832931f4edc
* pro1: Configure persist file hierarchy after mountEthan Chen2020-07-141-28/+24
| | | | | | | | * Create the persist file system hierarchy after the partition has been mounted. * Group all persist file system config together. Change-Id: I247a580542afc6f156350c292b422916261dd7bd