Commit graph

57 commits

Author SHA1 Message Date
followmsi
cd6b682ceb deb: Revert: Mount firmware partition as radio_efs_file 2021-12-27 14:58:06 +01:00
followmsi
4b373797d6 Revert "deb: Run kickstart_checker.sh as root"
This reverts commit dec1ccdae6.
2021-12-27 14:48:30 +01:00
Wei Wang
e4acd20640 deb: Accelerate boot by paralleling device enable
Some QCOM devices require sysfs to trigger boot/init which are blocking
the init process.
[    7.453205] init: Command 'write /sys/kernel/boot_adsp/boot 1' action=post-fs-data (/init.angler.rc:166) returned 0 took 271.936ms.
This CL is to put those slow to start devices in a
separate service and wait for the service to be done later on.

Bug: 32712851
Test: On device
Change-Id: Idd4e965f122cbc8421b443a41573d363112dfa50
2021-12-27 14:46:07 +01:00
Artem Borisov
954380829c deb: Enable early boot animation start
* Split our fstab into two stages: early and late mount.
 * Start bootanimation and graphics before /data and /cache mounting

Change-Id: I42f8bb460db80e86616c92b11752242c086b4aec
2021-12-27 14:38:03 +01:00
followmsi
dec1ccdae6 deb: Run kickstart_checker.sh as root 2021-12-06 13:46:47 +01:00
followmsi
6e0bc948a0 deb: Finally move init files to vendor 2021-12-02 16:30:52 +01:00
followmsi
b0d199d672 deb: Use sys.io.scheduler for 12
Take logic from lineage-iosched.rc

As "prebuilt/common/etc/init/lineage-iosched.rc" has been removed
be135083d6
2021-12-02 16:09:27 +01:00
shivatejapeddi
e5825ea8dc deb: Set BPF support level
This allows a legacy device launched with Android (pre-)O and running
a pre-4.9-P+ kernel to declare itself as not eBPF capable.
2021-11-25 13:32:14 +01:00
elektroschmock
563c21771d deb: fstab: Mount persist with noatime flag
If the noatime flag isn't set the atime information is updated on
every read access. This is bad for performance and flash lifetime.

Change-Id: I9d1a64e1a876dd239fc4593c2d7ffa75790f3a6a
2021-11-24 17:07:19 +01:00
Arne Coucheron
6f2e38f76d deb: rootdir: Start camera server in early_hal class
Starting it in early-boot unfortunately made it not load when
device was encrypted.

Change-Id: I62ab18927d5c9522bc70c4221a89f0489feb9f03
2021-11-24 17:07:19 +01:00
Nolen Johnson
091a6e3d57 deb: Switch to CFQ
Change-Id: If2aeb088a70605268c4c83a8892b7a7d1b430e9e
2021-11-24 17:07:19 +01:00
Nolen Johnson
7f790c0bb3 deb: Enable swap on vendor fstab
Change-Id: I4dbaa273a21889d6a60cd2b0de84c56daba9c4c6
2021-11-24 17:07:19 +01:00
Nolen Johnson
bc1d0ffd83 deb: Enable and uze ZRAM
Change-Id: Idd94fe045ee7b0a631dcc174bf3e4ad1f19fe62f
2021-11-24 17:07:19 +01:00
Daniel Jarai
b778e03d8d deb: Move QCamera sockets from /data to /dev/socket/qcamera
Change-Id: I0241f6e0a3f56f0bbe34bb44997596d074efcec9
Signed-off-by: Daniel Jarai <jaraidaniel@gmail.com>
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2020-12-21 17:19:48 +01:00
Daniel Jarai
b752ac282f deb: sensors: Move sensor sockets from /data to /dev/socket/sensors
Change-Id: I0e238d10cbaf7f9560f1993f03a8c9cc6c7e1195
Signed-off-by: Daniel Jarai <jaraidaniel@gmail.com>
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2020-12-21 17:19:21 +01:00
Daniel Jarai
f4506c20ef deb: sensors: Run the sensor daemon as 'system' user/group instead of 'root'
This allows us to get rid of the dac_override SELinux rules, by applying
proper permissions to the files managed by the daemon. While at it, also
Treble-ized the location of said files.

Change-Id: I344b4c80412af0b22dc35da234ef3c9f88983761
Signed-off-by: Daniel Jarai <jaraidaniel@gmail.com>
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2020-12-21 17:18:54 +01:00
followmsi
016d3c69d0 Revert "deb: init: Launch QMUXD process as root user"
This reverts commit b2fd97587a.
2020-12-14 10:47:06 +01:00
followmsi
76c8ed8049 Revert "deb: init: create service ril-daemon"
This reverts commit 21bdee0fdf.
2020-12-14 10:45:35 +01:00
D. Andrei Măceș
d86f40d8a6 deb: init: Bring back /data/misc/location/gpsone_d
The entire /data/misc/location is gone with Pie, and our GPS HALs
(specifically, libloc_eng) need to write in there.

Change-Id: Ic5462b21b1098604f29de0baeabdfac9abaa58fa
Signed-off-by: D. Andrei Măceș <andrei@unlegacy-android.org>
Signed-off-by: Daniel Jarai <jaraidaniel@gmail.com>
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2020-12-11 09:17:53 +01:00
Alessandro Astone
d8c2496e9a deb: gps: Make use of gps_debug.conf to set xtra servers
* Just bind mount gps.conf to gps_debug.conf
   We can't directly build gps_debug.conf because it's a common target
   and we're not allowed to override targets anymore.

Change-Id: Ia3c96665b50b0fe478e44186d1c65be723acbf5a
2020-12-11 09:15:08 +01:00
Arne Coucheron
85c467976b deb: rootdir: Start camera server from early boot
Solves random issue with camera orientation and flash not
being detected during boot.

Change-Id: I90db0064a1ca3cbeac89c1ab80c6f87038b40a4f
2020-12-06 22:56:27 +01:00
Jimmy Chen
cdd5835362 deb: wifi: Move supplicant service init to wpa_supplicant
Bug: 138790309
Test: boot and wifi function is ok
Change-Id: I35cf3e03566443e20799623045eacd423fd7f5c4
2020-12-06 22:46:54 +01:00
Arne Coucheron
a5f5f27cba deb: Disable serial console notification
Google added a check for this prop in R, and if it's running
it will show a notification about it that it's impacting performance.
Why it's not disabled by default I don't know, so just force disable
it here.

Change-Id: Ia06ef15388e7e701ed526664e7748f133ad01ee2
2020-11-28 10:26:54 +01:00
followmsi
8b3fe73184 deb: clean up 2020-11-27 19:00:38 +01:00
D. Andrei Măceș
4607ce8930 flo: init: I/O tweaks
Change-Id: I455547d746b53683eac26241541b65d904404bad
(cherry picked from commit 9bcda749ff2ff9bdef0bf36300574ec6e4ea857f)
2020-11-27 14:48:18 +01:00
Daniel Jarai
0d55c22a77 flo: Fix thermald permission issues
The owner of /sys/class/leds/lcd-backlight/brightness is system.
Since thermald runs as root, and this node has 644 perms, writing it
generates a dac_override denial. Changing the perms to 664 fixes the
issue.

Change-Id: Ic7a3bc583c2e52c5799ef536c4b9ea07a921e54b
Signed-off-by: Daniel Jarai <jaraidaniel@gmail.com>
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2020-11-27 14:48:18 +01:00
voron00
5a24b10bb6 flo: rootdir: Remove 'critical' field from charger
This is no longer needed as charger runs in system group now.

Change-Id: I1e668463701787f21875e77a64f1fe7a9142ec4d
2020-11-27 14:48:18 +01:00
Subbaraman Narayanamurthy
2f5af1ae59 flo: rootdir: 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-11-27 14:48:18 +01:00
Subbaraman Narayanamurthy
c6bf03468e flo: rootdir: Change user/group permission 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-11-27 14:48:18 +01:00
Sandeep Patil
1c37d2073e flo: rootdir: Use /charger symlink to launch healthd
Makes this consistent with other targets and maken sure
any changes in healthd will be transparent to targets as long
as the symlink is maintained.

Update the seclabel accordingly too.

Test: Tested charge-only mode

Change-Id: Ic71e32f52c39bc45eae8d2552259695934592fc7
Signed-off-by: Sandeep Patil <sspatil@google.com>
2020-11-27 14:48:18 +01:00
Daniel Jarai
c80f709c57 flo: rootdir: Disable suspend/resume debugging
Change-Id: I1fbc0d33de44a675de3b204905c07c6d89224012
Signed-off-by: Daniel Jarai <jaraidaniel@gmail.com>
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2020-11-27 14:48:18 +01:00
Devin Kim
7954d4debe flo: Fix the modem crash on encryption phone
There is an efs sync problem because of class type of rmt_storage service.
When encrypting phone, modem crash may occur due to not being able to sync
properly between AP and CP. So, rmt_storage class should be a core class.

Bug: 11325693
Change-Id: Ic51c3ab363b2de664c268b2ba0216b81e76189dc
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2020-11-27 14:48:18 +01:00
followmsi
59d845578d deb: fix usb 2019-10-12 20:05:34 +02:00
followmsi
c9f0d6871f deb: Add supplicant 1.2 to init.deb.rc
Change-Id: I5d7e93b15ca2f77a9f94bbbc8730aa24632c70a3
2019-10-10 22:24:41 +02:00
followmsi
7f2fa5aebf Revert "deb: switch to BOARD_ROOT_EXTRA_SYMLINKS"
This reverts commit 9a613be48a.
2019-10-10 22:12:14 +02:00
followmsi
9a613be48a deb: switch to BOARD_ROOT_EXTRA_SYMLINKS
bea7346621
2019-10-09 22:24:30 +02:00
followmsi
d9904d3e15 deb: setup first_stage_mount 2019-10-09 22:24:00 +02:00
followmsi
8df0d295da deb: remove LOCAL_MODULE_TAGS := eng 2019-10-09 21:16:42 +02:00
followmsi
bb15176916 deb: do not set swappiness 2019-02-14 14:11:13 +01:00
dianlujitao
a13033dff8 deb: Rename bt props for new HAL
Change-Id: I1afd110bffed0f43b1afcbef99be8a3776d24e0b
2019-02-06 20:10:15 +01:00
Den Kondakov
3c33d48202 init: remove qcom_oncrpc and qcom_diag
Based on dmesg:
 init: /init.duma.rc: 267: Unable to decode GID for 'qcom_oncrpc': getpwnam failed: No such file or directory
 init: /init.duma.rc: 384: Unable to decode GID for 'qcom_diag': getpwnam failed: No such file or directory
2019-01-22 11:18:33 +01:00
followmsi
687243bf48 deb: move to vendor 2019-01-20 20:35:39 +01:00
followmsi
4aad347130 deb: Add seclabel for BT 2019-01-20 13:44:28 +01:00
Adrian DC
d4771911db init: Resolve kernel trace_marker permissions on post-fs
* The permissions were not set to 222 instead of 220,
    thus introducing regular logs from libcutils:
    "cutils-trace: Error opening trace file: Permission denied (13)"

 * Refers to frameworks/native/cmds/atrace/atrace.rc

Change-Id: I236ea25d2f2068f9f86a43492807f5f05e92da96
2019-01-20 13:44:28 +01:00
Roshan Pius
deef472fe9 flo: Don't start supplicant with interfaces
Framework will now add interface to supplicant (via HIDL) when it
needs to control an interface, so don't specify them in the startup
params.

Bug: 69426063
Test: Device boots up and able to connect to wifi.
Change-Id: I817d28093f8b982e3806c212babd888c0f5eb7c0
2019-01-20 13:44:28 +01:00
Roshan Pius
bdef362ec8 flo: wpa_supplicant(hidl): Add support for starting HAL lazily
Bug: 72394251
Test: Able to start supplicant from framework using
ISupplicant.getService()
Change-Id: I19b8434e7241b9028e7dc86316ec9d5512affcca
2019-01-20 13:44:28 +01:00
Jeff Vander Stoep
845ab602ee flo: wpa_supplicant: Move control sockets to /data/vendor
Treble compliance.

Bug: 70228425
Bug: 70393317
Test: complete wifi test in b/70393317
Test: verify sockets exist in /data/vendor/wifi/wpa/sockets

Change-Id: I0bfc3a351419f0a03498e79664949f353369bf1b
2019-01-20 13:44:28 +01:00
Jeff Vander Stoep
be654ac25f flo: wifi_supplicant: deprecate entropy.bin
Wpa_supplicant's random pool is not necessary on Android. Randomness
is already provided by the entropymixer service which ensures
sufficient entropy is maintained across reboots. Commit b410eb1913
'Initialize /dev/urandom earlier in boot' seeds /dev/urandom with
that entropy before either wpa_supplicant or hostapd are run.

Bug: 34980020
Test: Use wifi and wifi tethering on flo
Change-Id: Iaa2a8a42e4e3fd941c5be0f8fa691245cdb429e9
2019-01-20 13:44:28 +01:00
Pavlin Radoslavov
d000c1d2b8 Use GID "wakelock" to control access to kernel wakelock
Bug: 25864142
Change-Id: Ie9b574a4efdae2508a00c1cb41b5c7e1a17a4e45
2019-01-20 13:44:28 +01:00
followmsi
21bdee0fdf deb: init: create service ril-daemon 2019-01-20 13:36:13 +01:00