Commit Graph

176 Commits

Author SHA1 Message Date
kubersharma001
60f0bc50f7 sanders: Cleanup/tweak init.{qcom|mmi}.rc
Change-Id: I0a31c0dfa75388175c8941e39081ed0a348856a8
2019-12-16 15:29:05 +01:00
UtsavisGreat
f8ce4dea52 sanders: rootdir: use all cores for camera daemon
Signed-off-by: UtsavisGreat <utsavbalar1231@gmail.com>
2019-12-16 15:29:00 +01:00
Vachounet
360ada01d1 sanders: sync some config files with stock
* OPS28.85-17-6-2

Change-Id: I028e209d41bff3dffe05107f249b7578b9d9dd6c
2019-12-16 15:28:54 +01:00
Madhanraj Chelladurai
4c1a4595a1 sanders: ueventd: add permission for gps component to read pps device
GPS components make use of DR_SYNC pulse generated by GNSS
hardware, which was received through pps device, hence
require permission for reading this device

Change-Id: I00bd3b8aa88059fb94338b6ba1d107d77c06a5e0
CRs-Fixed: 2299356
2019-12-16 15:28:54 +01:00
Madhanraj Chelladurai
a442025e50 sanders: ueventd: init: add permission entries for location component
Add permissions for location components in init.qcom.rc and
ueventd.qcom.rc

Change-Id: I07f3b57470336165393a68144faccf26cdbca98c
CRs-Fixed: 2299356
2019-12-16 15:28:54 +01:00
Ashwin R C
bc57316aed sanders: Add vendor prefix to gralloc-2-0
* init: Command 'start gralloc-2-0' action=late-fs (/vendor/etc/init/hw/init.qcom.rc:55) took 0ms and failed: service gralloc-2-0 not found

Signed-off-by: Ashwin R C <ashwin2001achu@gmail.com>
Change-Id: Ic444c7c683ab94b9a37e7d100cde19485db651b9
2019-12-16 15:28:54 +01:00
Pranav Vashi
6668665876 sanders: Remove cpuset foreground boost
Cpuset foreground boost is departed since
https://android.googlesource.com/platform/frameworks/base/+/a712d4058f6f85268838

Change-Id: I65216f3e9091ce38aab8d58d261ba7a695ba80a4
2019-12-16 15:28:54 +01:00
Adrian DC
76d9f9be8c sanders: init: Resolve vendor HALs for early bootanimation start
* Adapt the service from configstore-hal-1-0 service
    to vendor.configstore-hal for AOSP P

 * Resolves surfaceflinger first launch crash
    due to configstore not being running earlier enough

Change-Id: I5aae6d8357ce71933e7c6673e9e4d37adb55a6af
2019-12-16 15:28:54 +01:00
Vachounet
7548101a10 sanders: add back FM support
Change-Id: I86fd0251a1278cc7a5d0102ec554979a3732e4fe
2019-12-16 15:28:54 +01:00
Vachounet
512df8ddc4 sanders: sync init.qcom.rc with last CAF changes
Change-Id: I0c06e086d3843faafa6787dc69b7f7541dc3304f
2019-12-16 15:28:54 +01:00
Wei Wang
30cf8bc052 Wait for hwservicemanager ready before running fsck
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
2019-12-16 15:28:53 +01:00
Wei Wang
91e5319362 sanders: Tune zram performance
* Set page-cluster to 0 as the incremental cost of reading 1 page at a
time is negligible for zram

Change-Id: Ia73d08904551dfc8d57268fc4da3f9f34d10e277
Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
2019-12-16 15:28:53 +01:00
kubersharma001
8128e48c3d sanders: re-adjust dir for new time service blobs from P
Revert "potter: Adjust mkdir of time data files"
This reverts commit d52dd9094aab10b5d6640ebd1cba56a66ba847db.

Change-Id: I5d2e4a0849223b07bf060ec3c75c32f76710f672
2019-12-16 15:28:53 +01:00
Alberto97
f6518caf1e ueventd: Change permissions of USB role switch nodes
Usb HAL expects data/power role switch to be supported if these are writable.
Despite our hardware can support the functionality, it does not seem to be properly implemented.
2019-12-16 15:28:53 +01:00
Jack Pham
6d8326b14e ueventd.qcom.rc: Change ownership of USB role switch nodes
Change ownership of /sys/class/dual_role_usb entries to
system/system to allow USB HAL to access them.

Change-Id: Ie6d968180d55647813904970370dbb74012326b0
2019-12-16 15:28:53 +01:00
TheScarastic
95335624c5 sanders: Adjust mkdir of time data files
* Our blobs expect them in /data/time
2019-12-16 15:28:53 +01:00
Karthik Gopalan
69f79c2c89 sanders: Swap disk creation
Create swap disks

CRs-Fixed: 2264866

Change-Id: Id57a4e8d413c7dafb49d073980f10010003f616e
2019-12-16 15:28:53 +01:00
TheScarastic
04377d2532 sanders: fix BT MAC address reading 2019-12-16 15:28:53 +01:00
Wei Wang
5eef2ac3d8 sanders: skip wait for hwservicemanager
Wait for hwservicemanager is no longer needed
after this CL:
https://android-review.googlesource.com/#/c/356043/

Bug: 36399429
Test: nash boot

Signed off by: Nolen Johnson <johnsonnolen@gmail.com>

Change-Id: I12c5adab70dc519b5e834eb35262ff73d214978b
Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
2019-12-16 15:28:53 +01:00
Wei Wang
74eb1c9755 sanders: Make sure graphics HAL services started before mounting data
Bug: 36409349

Signed off by: Nolen Johnson <johnsonnolen@gmail.com>

Change-Id: I1df0bd7878c7d67d3695ad1644c6b928cee0e323
Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
2019-12-16 15:28:53 +01:00
Chia-I Wu
f9c5f1e4e2 sanders: Start hwservicemanager early
Test: builds and boots
Bug: 35173320

Change-Id: I9f060904174103a6a145a83cbb4c100728ff6df6
2019-12-16 15:28:53 +01:00
Wei Wang
968521a5c4 sanders: start bootanim before mounting data partition
Bug: 30118894

Signed off by: Nolen Johnson <johnsonnolen@gmail.com>

Change-Id: If84764e3ce51f467b2dfa867ce28e1e396422d45
Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
2019-12-16 15:28:53 +01:00
Ecco Park
29ba5b2153 sanders: Adding the execute permission for /data/vendor/wifi
ag/3332074 broke the Pixel Logger funtionality for wifi.

The Logger needs the write permission for /data/vendor/wifi/cnss_diag.
so, parent directory needs to set the execute permission for other group.

Test: manual test with Pixel Logger
Bug: 70228425
Change-Id: I75819f0b0bf4ed376d5d87f33af2e1693c864db8
Signed-off-by: Ecco Park <eccopark@google.com>
2019-12-16 01:42:16 +01:00
Skylar Chang
93f24fb1fd QTI: Create QTI log dir in /data/vendor/ location with permissions
Change-Id: Ib21082c3af84c15de2dac635cce9ad5c3e1f528d
2019-12-16 01:42:16 +01:00
RAJATH R
96f8f3ed53 Create new directory for Bluetooth SoC dump
Create new directory for Bluetooth SoC dump/logs
collection for new Android P dump format

Change-Id: I1257518fa12420a6d8d5bb66f15782ab97582f36
2019-12-16 01:42:16 +01:00
Boy Petersen
aeddd290d8 tweak bfq iosched for flash drives 2019-12-16 01:42:16 +01:00
Boy Petersen
47bbbe3b03 interactive governor: leave min_sample_time at default
Don't ramp down that fast, use default 80000 instead to help UI smoothness.
While we're at it, correct odd above_highspeed_delay timings.
2019-12-16 01:42:16 +01:00
Niranjan Pendharkar
d84e1b540a sanders: Use low level shutdown trigger to stop cnss-daemon
Low level shutdown is triggered after SystemServer is
cleaned up. sys.shutdown.requested is private to SystemServer
and is used to syncrhonize the shutdown process if SystemServer
crashes before hardware reboot is complete.
Native daemons must use low level shutdown indication from
powermanager for their graceful shutdown, if they wish to stop
before init terminates the process.

Change-Id: Ia583f7dce6f1927d9b766fdc132f082b409f4d67
Signed-off-by: kubersharma001 <kubersharma001@gmail.com>
2019-12-16 01:42:16 +01:00
Jorge Lucas
ad99acb8f5 Revert "sanders: init.qcom.rc: add eas changes"
This reverts commit 4901164b18.
2019-12-16 01:42:16 +01:00
Henrique Silva
90320cbe4f sanders: set default wifi country code and allow resetting
* Fix 5ghz option sometimes not appearing on hotspot settings

Signed-off-by: Henrique Silva <jhenrique09.mcz@hotmail.com>
2019-12-16 01:41:48 +01:00
Erfan Abdi
2f35f4fbb1 sanders: Update to match new qcom sepolicy
Change-Id: If6e58161489790ea7736dc1ec1fe11f2e2841b6c
Signed-off-by: Erfan Abdi <erfangplus@gmail.com>
Signed-off-by: therootlord <igor_cestari@hotmail.com>
2018-11-15 20:02:29 -02:00
Shaikh Shadul
8f68d0a5dd sanders: change sensors registry file owner and group
Sensors registry file ownership is retained even after OTA
upgrade and that file is only accessible by daemon belongs to
same ownership permissions.

Change-Id: I3543733232aeab04d14fb9d69f635c1e6c6df1e2
2018-11-09 14:58:17 -02:00
therootlord
51e777cc1d sanders: update for the new mount points
* Also bind mount /mnt/vendor/persist to /persist for backward compatibility
2018-11-08 15:31:27 -02:00
Vinay Verma
2fbbc52c5a sanders: Moving persist mount point to /mnt/vendor/persist
Move persist entry to fstab and mount at /mnt/vendor/persist

Apply required user, group and permissions once persist
folder is created through __mount and parititon is mounted.

Run restorecon on /mnt/vendor/persist.

Change-Id: I7f54b478de898491e32560d5a37657ac370bf893
2018-11-07 23:07:12 -02:00
Vinay Verma
8723ed746a sanders: Mount dsp and firmware in vendor
Change fstab to mount dsp and firmware to /vendor/dsp and
/vendor/firmware_mnt.

Add classpath for firmware loading /vendor/firmware_mnt/image in
kernel command line.

Change-Id: I04bd18336a1259a1379b3a27b150bb8051283275
2018-11-07 19:08:52 -02:00
therootlord
53fb0b2053 sanders: reorganize fstab.qcom 2018-11-07 18:28:47 -02:00
erfanoabdi
5db228eca7 sanders: Convert libinit to init scripts
* Also set ro.product.manufacturer to motorola for camera HAL in GSIs.

Change-Id: I2c78e4837cdbd8e7f18e3c1a086978bd289a60a6
2018-10-10 00:07:43 -03:00
Jeff Sharkey
9de6940992 sanders: Reserve 128MB for critical system components.
We recently created a new GID that can be granted to critical system
processes, so that the system is usable enough for the user to free
up disk space used by abusive apps.

128MB ought to be enough for anybody.

Test: builds, boots
Bug: 62024591
Change-Id: I412ed9b0a885668ebe4c6c677a3bd0cd7f44080b
Signed-off-by: Alberto97 <albertop2197@gmail.com>
2018-09-26 13:46:53 -03:00
therootlord
070727ce81 sanders: rootdir: add sensors init script from LA.UM.7.6.2.r1-03200-89xx.0 2018-09-25 14:03:31 -03:00
Shaikh Shadul
361be56624 sanders: change ownership and permissions of sensors device node
Change the user and group ownership and permissions of sensors
device node.

Change-Id: I251af01d4f0204c784667fe92b3998c197f75d8e
Signed-off-by: Erfan Abdi <erfangplus@gmail.com>
2018-09-24 23:28:21 -03:00
rahulsnair
9533952f17 sanders: remove fstab context
Change-Id: I48c14bca953cc85ad838eb3de3709400eb599322
2018-09-23 21:13:21 -03:00
therootlord
ed0dd32ab5 sanders: update fingerprint configs to match vendor changes
* Remove custom fp hal/service

* Build android.hardware.biometrics.fingerprint@2.1

* Update init related configs and props
2018-09-23 21:13:21 -03:00
Harikrishnan Hariharan
3437531910 sanders: Start loc_launcher as gps user
Start loc_launcher as gps user and set uid/gid of loc_launcher
to gps and enable SETUID and SETGID caps for loc_launcher, so
that we can start loc_launcher as gps user instead of root and
still have capabilities for SETUID and SETGID. Also remove not
required permissions groups for loc_launcher.

Change-Id: Ie9f1506874b3c3148f9170c8d5db9afd1e70025c
CRs-Fixed: 2192881
2018-09-23 21:13:06 -03:00
Wang Han
7672efc8da sanders: 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
2018-09-23 21:06:04 -03:00
therootlord
0a41b9dc1a sanders: gps: update to LA.UM.7.6.r1-02000-89xx.0 tag 2018-09-23 21:06:04 -03:00
Han Wang
247d9b0e98 sanders: Remove creation of /data/misc/wifi and
/data/misc/dhcp

* The creation of /data/misc/wifi and /data/misc/dhcp was moved long ago
  to the core init.rc script. Moreover, /data/misc/wifi is deprecated
  since wpa_supplicant now relies on /data/vendor/wifi.

Change-Id: Ic0a33af44ffe163d3dd06cebdc1e192dc9bcb11f
2018-09-23 21:06:04 -03:00
Jeff Vander Stoep
b60b481227 sanders: wpa_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 8996 targets
Change-Id: Ib5caf362bc939911b357db186a274957d3fbf186
2018-09-23 21:06:04 -03:00
therootlord
ffee6c1572 sanders: update sensors props and service name 2018-09-23 21:06:04 -03:00
Tom Cherry
8bad0865ea Move mkdir /data/nfc/... to rootdir init.rc
These are directories used by the system so they should be created by
the system.

Test: treehugger
Change-Id: I4c2d381423e002705f4de09d34a63a49ec473688

Signed-off-by: Alberto97 <albertop2197@gmail.com>
2018-09-23 20:27:23 -03:00
Jaekyun Seok
d5d0276021 Add 'vendor.' prefix to a vendor HAL service name
To prevent property name collisions between properties of system and
vendor, 'vendor.' prefix must be added to a vendor HAL service name.
You can see the details in http://go/treble-sysprop-compatibility.

Test: succeeded building and tested on a sailfish device.
Bug: 36796459
Change-Id: I48e6ee0ae3fe401e39efb273256d991fac676357
Signed-off-by: Alberto97 <albertop2197@gmail.com>
2018-09-23 20:27:23 -03:00