Commit graph

159 commits

Author SHA1 Message Date
Ramakant Singh
08993f61a9
sdm660-common: rootdir: Don't re-start hwcomposer if sf restart
CRs-Fixed: 2424966
Change-Id: I90ae8d04befb03820abd7392d15f5b7574735e26
2019-08-14 10:04:12 +02:00
Veerubhotla Hari
97ac4f002f
sdm660-common: rootdir: Change ownership of /data/vendor/tombstones to system
Change ownershiip of /data/vendor/tombstones to system

Change-Id: Ia8583c48c80fc97d68df912f0672ff0cd2cb6510
2019-08-14 10:04:12 +02:00
Bhargav Upperla
b45105ad5d
sdm660-common: Update memory related parameters.
Set:
1. swappiness
2. read_ahead_kb
3. page_cluster

Change-Id: Ia78f77a90f6a5649eea6c8572edc52a98ae7926f
2019-08-14 10:04:12 +02:00
GuaiYiHu
c822db2bb2
sdm660-common: rootdir: Add missing changes from miui wayne
Change-Id: If267076b13874c37ee7020e0e7136c668c5aec16
2019-08-14 10:04:12 +02:00
Subash Abhinov Kasiviswanathan
a769af3efb
sdm660-common: init.qcom.rc: Increase the maximum size for socket receive buffer
Increasing the tcp_rmem is not sufficient to achieve higher rates
for TCP downlink as all sockets in the system are still bounded
by the core socket rmem_max.

CRs-Fixed: 2351198
Change-Id: I198457745a9e48f0098457e86e7d9523c6249cbd
2019-08-14 10:04:12 +02:00
Arun Mirpuri
db324ad04d
sdm660-common: audio: change path to point to /data/vendor/audio
Change paths of audio-specific files to conform
to new sepolicy guidelines

Change-Id: If81e3bf439e74e222b1a145bd90dfbc9bcf4d90b
2019-08-14 10:04:12 +02:00
GuaiYiHu
19c327d6a7
sdm660-common: rootdir: Readd port-bridge service init
* Fix usb tethering.

Change-Id: I15ca6485c082d303210a98ae96082bad3d81f1ba
2019-08-14 10:04:12 +02:00
Wileen Chiu
ba22636b35
sdm660-common: Rename atfwd service and property
- all vendor init services should be prefixed
with vendor
- radio.atfwd.start -> vendor.radio.atfwd.start
persist.radio.atfwd.start -> persist.vendor.radio.atfwd.start
This property is now qualified as a platform property and is not
whitelisted. Therefore it must be renamed to continue to be
used as a trigger.

Change-Id: Iebb0eed75f7ac6f71085ac12cf2a3e7414defb09
CRs-Fixed: 2223094
2019-08-14 10:04:12 +02:00
Niranjan Pendharkar
75cd8f15be
Revert "use low level shutdown trigger to stop cnss-daemon"
This reverts commit 0ef1475b0ea193f252d4abfbc9bebd3ebb2c12dc.

Change-Id: I0fe8fe0565a69b77a105aa1f1127f561cf994fba
CRs-fixed: 2310194
2019-08-14 10:04:11 +02:00
Rahul Shahare
690c25aa67
sdm660-common: init: qcom: Add vendor prefix to properties
As per sepolicy, add vendor prefix to specific properties.
i.e, persist.vendor.sys.ssr.enable_debug,
     persist.vendor.sys.mba_boot_timeout,
     persist.vendor.sys.modem_auth_timeout,
     persist.vendor.sys.pil_proxy_timeout.

Change-Id: Ibeb87194e2ca9b831fc5e721a87764920c21276d
2019-08-14 10:04:11 +02:00
Konstantin Dorfman
e2701991ed
sdm660-common: init.qcom.rc: create /mnt/persist/secnvm for sec_nvm service
Update /persist/secnvm to /mnt/vendor/persist/secnvm

Change-Id: I219e94e99e2657b9ed7e6fefb57fc242e2de5b26
2019-08-14 10:04:11 +02:00
Qing Huang
03136246fb
sdm660-common: Create display folder under /mnt/vendor/persist
Create display folder under /mnt/vendor/persist
since /persist partation was removed on talos.

Change-Id: Ibaae5dcd4823bd20282117eaba852de9ea4a618c
2019-08-14 10:04:11 +02:00
RAJATH R
9bfccf393b
sdm660-common: Creating directory mnt/vendor/persist/bluetooth
Creating new directory as persist Bluetooth addr
location is changed from /persist/bluetooth to
mnt/vendor/persist/bluetooth.

Change-Id: Idb30dcd9d0af5f9271955e4c7eeff0bd9afe80ad
CRs-Fixed: 2324749
2019-08-14 10:04:11 +02:00
Mao Jinlong
d3128f251d
sdm660-common: Change time persist folder path
On android P, vendor persist folder is in /mnt/vendor/persist/.
Change time persist foler to /mnt/vendor/persist/time.

Change-Id: I325dfa2ed336d9ae0a2b5850ec3683db205a513c
2019-08-14 10:04:11 +02:00
Mahesh Lanka
349530452c
sdm660-common: Remove creating and accessing /data/media from vendor domain
Vendor domains can't access files outside of /data/vendor
CRs-Fixed: 2307724

Change-Id: Ied173cc6bfb2a8041c8a0feb016e9efa3b743b7f
2019-08-14 10:04:11 +02:00
Devi Sandeep Endluri V V
bee72c59c5
sdm660-common: Add vendor prefix to data connectivity
Change-Id: I57ac8e5583f62ec585723454de4906d83a4e6dfe
2019-08-14 10:04:11 +02:00
Harikrishnan Hariharan
2497916c99
sdm660-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-08-14 10:04:11 +02:00
Demon Singur
417a516b45
sdm660-common: remove wcnss_filter
Unused when using Qualcomm's bluetooth stack.

Change-Id: I2682e65a85c7b1112a695e851e9b1512a6b3d28c
2019-08-14 10:04:11 +02:00
guaiyihu
7a28bc9a96
sdm660-common: Remove unused binaries and services
Change-Id: I118bada5433b44a7bb7ebbdd6c10c8e0d054c7f4
2019-08-14 10:04:11 +02:00
Ethan Chen
5522fd2008
sdm660-common: rootdir: move services to system-background cgroup
Change-Id: Id80f6369f943fc5fc1145cc6f13bddb2fe2b76e8
2019-08-14 10:04:11 +02:00
Jaekyun Seok
17f4b877b8
sdm660-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-08-14 10:04:11 +02:00
guaiyihu
517431dabb
sdm660-common: rootdir: Clean up init scripts
* Clean up unused and non-exsistent services
 * Clean up invalid commands

Change-Id: I5b991e8770b0ed9a7ba5af3a0fed612015e809a5
2019-08-14 10:04:11 +02:00
Jeff Vander Stoep
902c8c895d
sdm660-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
2019-08-14 10:04:11 +02:00
Devi Sandeep Endluri V V
33e7905676
sdm660-common: DPM : Add radio group rules to dpmQmiMgr
-dpmQmiMgr permissions are updated with radio group
to communicate with QMUXD socket.

CRs-Fixed: 2183993
Change-Id: I37195ffc6602d009ac4cace6c742484e70a768ec
2019-08-14 10:04:11 +02:00
guaiyihu
5d5e94fe1d
sdm660-common: rootdir: Clean up unused init scripts
Change-Id: Ib6ba59acb1f1d6b773aeca3c326944049784887c
2019-08-14 10:04:11 +02:00
Dan Pasanen
f207f0b1c3
sdm660-common: rootdir: Turn down debugging on wpa_supplicant
Change-Id: I15f8aff12ebcccbc97263b1d82b7ec0d3baea263
2019-08-14 10:04:11 +02:00
Subhani Shaik
c372b4a3b7
sdm660-common: cnss_diag: Remove the file based logging option
File based logging is writing to sdcard, this is not supported.
By default qxdm is required, removing the file based logging.

Change-Id: I7fa1748c0ff3eb594dc7d4c59eb69c0ae9ef7756
2019-08-14 10:04:11 +02:00
Mao Jinlong
49c915ae5d
sdm660-common: rootdir: Add vendor prefix to power_off_alarm service
power_off_alarm is a vendor service. Add vendor prefix to it.

Change-Id: Ib4a988467a54bbe4544960180afeeeb5dd0e85f3
Signed-off-by: PIPIPIG233666 <2212848813@qq.com>
2019-08-14 10:04:11 +02:00
Ethan Chen
57301b279c
sdm660-common: Remove memory cgroup directives
* Doesn't exist on wayne

Change-Id: Ic32ce381d41feb05150418296b60b9b9ced5853e
Signed-off-by: PIPIPIG233666 <2212848813@qq.com>
2019-08-14 10:04:11 +02:00
Max Weffers
67eddd06fb
sdm660-common: init: add second Sensors service for backward compatibility 2019-08-14 10:04:11 +02:00
Max Weffers
f6d9e11a11
sdm660-common: init: Add back correctly created /data/misc/camera folder
*needed for miui camera
2019-08-14 10:04:11 +02:00
Sachin Mohan Gadag
0e50196347
sdm660-common: rootdir: Register audio service to system group to access cpu_dma_latency node
Change-Id: Ib832634d74f488ece0879fb05781646b1f4ee7a1
Signed-off-by: PIPIPIG233666 <2212848813@qq.com>
2019-08-14 10:04:11 +02:00
Ethan Chen
d37c839c72
wayne-common: Remove init.qcom.early_boot.sh
* This script doesn't do anything useful, since it tries to set a lot of
  ro.* properties, which is not allowed anyway.

Change-Id: I408cc17d0d18e81a9cf0e529e6b78622c3017a7f
Signed-off-by: PIPIPIG233666 <2212848813@qq.com>
2019-08-14 10:04:10 +02:00
Isaac Chen
440c138626
wayne-common: Update from jasmine
* jasmine_sprout 9 PKQ1.180904.001 V10.0.9.0.PDIMIXM release-keys
 * Graphics SDM from LA.UM.7.4.r1-04100-8x98.0

Signed-off-by: Isaac Chen <isaacchen@isaacchen.cn>
Change-Id: I457f9d446b86b856e2cebe85b698403005c58d3e
2019-08-14 10:04:10 +02:00
Rohit Rangwani
71ebc1623e wayne-common: Remove NFC data directory creation
Removed NFC data directory creation to fix
vendor_init access denial issue.

NFC data directoty is already being created
by system core init.rc.

Change-Id: I7ebb88dc7b2df988a8af477baa81fe9253030ffb
2019-07-01 16:42:17 +02:00
Sridhar Parasuram
b7d6af20d7 wayne-common: Address dac_override and dac_read_search issues in init.qcom.sh
init.qcom.sh accesses files owned by groups radio, system and hence
the groups have been added.

Change-Id: I535eeaf42f38532ec6de46eb57f3cc0e1d959a47
2019-07-01 16:42:17 +02:00
RAJATH R
92fd2d3603 wayne-common: 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-07-01 16:42:17 +02:00
Karthik Gopalan
10578e056a wayne-common: Swap disk creation
Create swap disks

CRs-Fixed: 2264866

Change-Id: Id57a4e8d413c7dafb49d073980f10010003f616e
2019-07-01 16:42:17 +02:00
himta ram
de7e8b274e wayne-common: Change /data/misc/fm to /data/vendor/fm
Change-Id: I369e0a858c8fddb4574dad5b54b2a3e0980ea3a6
2019-07-01 16:42:17 +02:00
Saurabh Srivastava
1aa404f46b wayne-common: Moving location sockets from /data to /dev
Keeping sockets in /data/vendor/location prevents
unmounting of /data partition after build load.

CRs-Fixed: 2175511
Change-Id: Ide726a84b6b5f8df0c18d7d7dcbc1ee469b6d934
2019-07-01 16:42:17 +02:00
Mahesh Lanka
59cec82aa9 wayne-common: Remove creating and accessing /data/media from vendor domain
Vendor domains can't access files outside of /data/vendor
CRs-Fixed: 2307724

Change-Id: Ied173cc6bfb2a8041c8a0feb016e9efa3b743b7f
2019-07-01 16:42:17 +02:00
Ramakant Singh
54cb7729fd wayne-common: Update prefix of hwcomposer service
Change-Id: Iac3abf0e50d77058548bcd232411ae9d7ff6b235
2019-07-01 16:42:16 +02:00
Mohammed Javid
783972f2ab wayne-common: Change qti service name to dataqti
qti name is generic and updating it to dataqti so that no generic
context will not match

Change-Id: I186a642623f1ae46688a44f754fbe7ba421d042c
2019-07-01 16:42:16 +02:00
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
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
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
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
71ad0c9e53 wayne: Initial bringup
Change-Id: I211da5781d8c7a16199fd8a18e1b00cfc9e01944
Signed-off-by: Isaac Chen <isaacchen@isaacchen.cn>
2018-07-13 00:01:25 +00:00