Commit graph

224 commits

Author SHA1 Message Date
Devi Sandeep Endluri V V
1e4e33e9db wayne-common: Add vendor prefix to data connectivity
Change-Id: I57ac8e5583f62ec585723454de4906d83a4e6dfe
2019-07-01 16:42:16 +02:00
Harikrishnan Hariharan
b44c16f9b5 wayne-common: 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
2019-07-01 16:42:16 +02:00
Saranya Chidura
46133ac465 wayne-common: Set permissions of /dev/byte-cntr device
To support ODL to read data from QDSS, create a custom group
and set permission of byte-cntr device. And also set
permission to coresight-tmc-etr/block_size to enable
byte-cntr feature.

Change-Id: Ic80156667dd7511392d5970ddcbd0fdc43ffffca
Signed-off-by: Saranya Chidura <schidura@codeaurora.org>
2019-07-01 16:42:16 +02:00
Abhimanyu Garg
21ce4b32dc wayne-common: rootdir: Changing iop directory permission
Changing permission for IOP from 0770 to 0700. This is to restrict the
access for iop database file.

Change-Id: Ic3325595521d4e433d0ce9bada564fc599cf858c
2019-07-01 16:42:16 +02:00
Vinay Verma
c10b9d9723 wayne-common: 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: I20a16f3669bc7abf9844525c6ba0db1521a5a8e2
2019-07-01 16:42:16 +02:00
Demon Singur
601babc662 wayne-common: Remove wcnss_filter
Unused when using Qualcomm's bluetooth stack.

Change-Id: I2682e65a85c7b1112a695e851e9b1512a6b3d28c
2019-07-01 16:42:16 +02:00
Wang Han
d59d080f62 wayne-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
2019-07-01 14:15:05 +02:00
Wang Han
78a412e09f wayne-common: Remove oem_2901 group for second RIL daemon service
* Matches rild.legacy.rc from Pie's RIL

Change-Id: Icdb0a3e4859bc0a4011e34fdd483cef2ca3b8a7f
2019-07-01 14:15:04 +02:00
Jaekyun Seok
35e312e135 wayne-common: rootdir: 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 go/treble-sysprop-compatibility documents.

Test: succeeded building and tested on a sailfish device.
Bug: 36796459
Change-Id: I48e6ee0ae3fe401e39efb273256d991fac676357
2019-07-01 14:15:04 +02:00
guaiyihu
d3ee69ea48 wayne-common: rootdir: Clean up init scripts
* Clean up unused and non-exsistent services
 * Clean up invalid commands

Change-Id: I5b991e8770b0ed9a7ba5af3a0fed612015e809a5
2019-07-01 14:15:04 +02:00
guaiyihu
578cbeb720 wayne-common: rootdir: Clean up unused init scripts
* init.qcom.class_core.sh
 * init.qcom.coex.sh
 * init.qcom.crashdata.sh
 * init.qcom.efs.sync.sh
 * init.qcom.sdio.sh
 * init.qcom.syspart_fixup.sh
 * init.qcom.wifi.sh
 * init.qti.ims.sh
 * qca6234-service.sh

Change-Id: Ib6ba59acb1f1d6b773aeca3c326944049784887c
2019-07-01 14:15:04 +02:00
Bruno Martins
5fd30f742d wayne-common: rootdir: Remove sensors init shell script
Change-Id: Ice50a9c83a708d7f8300978048cd00c71e88abc8
2019-07-01 14:15:04 +02:00
guaiyihu
f97c4e7742 wayne-common: rootdir: Remove insmod for non-existent module
Change-Id: I75afecc8909b55467dfde74d40e77007480fe31d
2019-07-01 14:15:04 +02:00
Tim Murray
325ccd28cc wayne-common: rootdir: Add restricted cpuset
bug: 78197570
Test: CTS

Change-Id: I6aaac2f3ce9ba886143e3667df2ca044c7f3d3f0
2019-07-01 14:15:04 +02:00
Jeff Vander Stoep
6f0c86315b wayne-common: 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 8996 targets
Change-Id: Ib5caf362bc939911b357db186a274957d3fbf186
(cherry picked from commit 1f2b2f3a780bb7a6ed489bf86e18e77382f37514)
2018-12-08 05:23:02 +00:00
Roshan Pius
6defd41082 wayne-common: 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
2018-12-08 05:21:42 +00:00
Roshan Pius
74d02acc90 wayne-common: wpa_supplicant(hidl): Add support for starting HAL lazily
Bug: 72394251
Test: Able to start supplicant from framework using
ISupplicant.getService()
Change-Id: I19b8434e7241b9028e7dc86316ec9d5512affcca
2018-12-08 05:19:42 +00:00
Jeff Vander Stoep
0bb856ea89 wayne-common: wpa_supplicant: Move control sockets to /data/vendor
Treble compliance.

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

Change-Id: I0bfc3a351419f0a03498e79664949f353369bf1b
2018-12-08 05:18:15 +00:00
Isaac Chen
dc59590a23 wayne-common: rootdir: Support A/B fstab
Signed-off-by: Isaac Chen <isaacchen@isaacchen.cn>
2018-12-02 11:02:30 +08:00
Isaac Chen
39445a3026 wayne: Decleare dt2w node
Signed-off-by: Isaac Chen <isaacchen@isaacchen.cn>
2018-07-19 00:01:07 +00:00
Michael Bestas
587fead983 wayne: Get rid of recovery-only fstab
* Mounting /system and /vendor partitions is handled in kernel now,
   however removing the entries from fstab caused issues building
   the OTA. The workaround was to have a separate fstab, but turns out
   that simply setting the recoveryonly flag does the trick because
   those are then ignored during a normal Android boot.

Change-Id: I2944384d0a1c41bc9f9f51e2e29daff2bed0a0f4
2018-07-19 00:00:34 +00:00
Isaac Chen
a07f5c59c3 wayne: Import HIDL fingerprint wrapper service
Signed-off-by: Isaac Chen <isaacchen@isaacchen.cn>
2018-07-13 00:03:24 +00:00
Isaac Chen
71ad0c9e53 wayne: Initial bringup
Change-Id: I211da5781d8c7a16199fd8a18e1b00cfc9e01944
Signed-off-by: Isaac Chen <isaacchen@isaacchen.cn>
2018-07-13 00:01:25 +00:00
GuaiYiHu
b3d7f22ea2 wayne: Move ramdisk configs to rootdir dir
* Clean up unused configs

Change-Id: I0aae320468796a67fc2110aef0b31c06da2314e3
Signed-off-by: Isaac Chen <isaacchen@isaacchen.cn>
2018-07-03 22:11:27 +08:00