Commit graph

315 commits

Author SHA1 Message Date
Biao Long
a8ba99ec61
sdm660: init.qcom.post_boot: initialize the tuning settings for NPU bwmon
Initialize the tuning parameters for NPU* BWMON monitoring the
traffic from NPU to DDR.

Change-Id: Ic0b0401cac87b25e37ef7fd44ae3dbe8508036d8
2019-11-01 11:48:12 +01:00
Sanjeev Jakkilinki
7757971994
sdm660: init.qcom.post_boot.sh: r2 related changes
updated frequency corner changes related to r2 for Lito.

Change-Id: I8ecc4ccb632399810e0997284eddec2c0aaa35d9
2019-11-01 11:44:10 +01:00
Rama Bondan Prakoso
153cfbd83f sdm660-common: Add support for lavender (Redmi Note 7/7S)
* add A-only SAR fstab
* hax manifest keymaster version

Signed-off-by: Rama Bondan Prakoso <ramanarubp@gmail.com>
2019-10-31 17:39:23 +00:00
1582130940
e36cce059a
sdm660: Set default wifi country code 2019-10-29 18:40:40 +01:00
Jeff Vander Stoep
c145e57b0f
sdm660: Move folio_daemon to system in sepolicy
Remove Treble violations.

Bug: 36867326
Bug: 62387246
Test: loaded on taimen, checked dmesg, and tested daemon with magnet
Change-Id: I4662b41206b94cae6ac9843b5dc7e1452003c63c
2019-10-19 20:50:52 +02:00
Andrew Lehmer
f08faed4c3
sdm660: Add support for folio cases
Bug: 35243564
Test: Used magnet to wake and lock device. Also tested during suspend.
Change-Id: I4b819e12cc23a3d7a8ce048e208c15eac4f8d6c5
2019-10-19 16:29:57 +02:00
dianlujitao
9cea8c75c9
sdm660-common: Set sys.post_boot.parsed on vendor.post_boot.parsed changed
Change-Id: Ibb924cd28408d9688e18d64b5b22ab10f1fc5227
2019-10-15 16:31:29 +02:00
Michael Bestas
0604dd4d45
sdm660-common: Set vendor.post_boot.parsed=1 for starting perf properly
* Allows perf to work properly on boot to restore selected power profile

Change-Id: Ib92f971f28ed875481170b056ac16aad05aadcfc
2019-10-15 16:24:33 +02:00
Jerry Zhang
90c8d2c729
sdm660-common: Remove configfs triggers from recovery rc
Configfs triggers will now be in the core
init.recovery.rc, similar to main system
files.

Test: Usb works in recovery
Bug: 78793464
Change-Id: I26a403425edce1d4947daf2510e28beb026ba5f6
2019-10-15 15:23:54 +02:00
Michael Bestas
bb4c22c198
sdm660-common: Add init.recovery.qcom.rc
* Copied from wahoo init.recovery.hardware.rc,
  fixes partition mounting and ADB in recovery

Change-Id: I8a0136dd08c0df0ffb08bec8f35bffd38f5d44bb
2019-10-15 15:23:47 +02:00
Bruno Martins
69c07a31dc
sdm660-common: Drop the creation of deprecated system_data folders
As per treble rules, this is no longer allowed from within
vendor init. At the same time these folders are long deprecated,
so drop them and get rid of the SELinux denials.

Change-Id: I47d25bcf92dcc16b7b112b7b1257cd3e66fee57b
2019-10-15 10:24:03 +02:00
Prateek Sood
6e7ebda7ad
sdm660: irqbalancer: msm_irqbalancer not starting
msm_irqbalancer was not starting for many targets. Call to start
irqbalancer was not getting initiated. Fix this by making a
call to start msm_irqbalancer.

Change-Id: I4fbdef032100c91dba7bdb48a3562c5f9ab38e4d
2019-10-04 18:53:18 +02:00
Raghavendra Kakarla
e23b67fe13
sdm660: init.qcom.post_boot: Enable the LPMs for atoll.
Enable the LPMs for atoll.

Change-Id: I4f1356dca9f00298e0a2e809c27efab3763ccb3e
2019-10-04 18:53:18 +02:00
Madhanraj Chelladurai
dcf98c87e2
sdm660: Add locSll library and add permissions to device node
Change-Id: Idacac778610699af0f01d65096092328bbe8ac1d
CRs-Fixed: 2413585
2019-10-04 18:53:18 +02:00
Vijayakumar Badiger
0fb9a6b06a
sdm660: gvm bringup changes
Add lcd density hab node permission

Change-Id: If9bfcbf21b0b3933cd2d0f567384de0c4685d044
2019-10-04 18:53:18 +02:00
Amandeep Virk
c2ba47c816
sdm660: qcom: devices: Add iuicc0 and iuicc1 devices
Add iuicc0 and iuicc1 devices that can be opened
by spdaemon to create iuicc0 and iuicc1 channels
respectively and interact with iuicc0 and iuicc1
applications respectively on the Secure Processor.

Change-Id: I2554616073553065416756e23c3e27f2f9c90021
2019-10-04 18:53:18 +02:00
Sumit Agrawal
07ea656524
sdm660: init.qcom.post_boot: Add soc_id for QCM2150
Change-Id: I6850648f3537819f8362508923cb788671c97396
2019-10-04 18:53:18 +02:00
Santosh Mardi
f5e6b6d545
sdm660: init.qcom.post_boot: split npu dcvs nodes configuration
Split NPU dcvs nodes to monitor traffic between NPU to LLC and
LLCC to DDR.

Change-Id: Iab0669855ad20b6f1e57d63d51e1521613a5619e
2019-10-04 18:53:18 +02:00
Bhargav Upperla
5466b0245c
sdm660: Increase ZRAM swap size.
On high RAM targets, due to more anonymous memory availability,
we can improve headroom by increasing ZRAM swap size,
especially under memory pressure, and during background app compact.

Also ZRAM swap size is logical and is used when needed and
shouldn't cause other side effects.

Change-Id: I11949b8bdf16e9b4b8abb1bd633ffa1a1c0b1ad6
2019-10-04 18:53:18 +02:00
Manoj Basapathi
37c1eeaf40
sdm660: init: qcom : remove unused /data access.
-IMS service is no longer using /data/shared path.
-remove unused /data/shared path access.

CRs-Fixed: 2526160
Change-Id: I072d0b922a48880d45f7c85ac3569b2cec3d7250
2019-10-04 18:53:18 +02:00
Amir Vajid
5e74a06d57
sdm660: post_boot: disable coloc sched busy hyst on lito
Disable the colocation aware sched busy hysteresis
feature for now on lito.

Change-Id: I40e75fedcaa3d317cc651c5059cabbbc032fbe2b
2019-10-04 18:53:17 +02:00
Jun-Hyung Kwon
1bde0c0aec
sdm660: init.qcom.rc: add wakelock and BLOCK_SUSPEND to vendor.sensors
add wakelock group and BLOCK_SuSPEND capabilities to vendor.sensors
to acess wake-lock sysfs nodes

Change-Id: I193836d097f15f5bfbe1645909ae70f3f870f972
2019-10-04 18:53:17 +02:00
Max Weffers
b249dc1710
sdm660-common: rootdir: Add back missing Services
* removed in last caf merge without think about it
2019-10-04 18:52:13 +02:00
Wei Wang
04d14b6518
sdm660-common: rootdir: remove interaction lock when idle
Allows earlier interaction lock release by polling on display updates to
stop happening (becomes idle) for a programmable amount of time.

Bug: 62110101
Test: Ran UiBench, didn't see regressions
susbset of tests - avg-jank:
testInflatingListViewFling: 0.09
testTrivialListViewFling:   0.15

Change-Id: I83c0fc75a3d7ca5bf76910ebbaeddb69343a7ee2
2019-10-04 18:52:13 +02:00
Wei Wang
cc04efcb21
sdm660-common: rootdir: remove CPUBW min freq setting
CPU BW is set to 200Mhz in QC MTP, since on Pixel, we also adjust CPU BW
in touch PowerHint, we can relax the setting to 100Mhz.

Bug: 69271302
Test: boot
Change-Id: Iead3634d9c6fb0b3edc24ab0a19d62157a6a1793
2019-10-04 18:52:01 +02:00
Tim Murray
ef77343066
sdm660-common: rootdir: disable mem_latency governor
Unclear if advantages are worth cumulative power draw.

bug 73364974
Test: boot taimen, memlat is powersave

Change-Id: I7b5eb176d0f22281e687b9577f5eedf311fb4a11
2019-10-04 18:51:58 +02:00
Demon Singur
908d4500b7
sdm660-common: Remove energy awareness daemon
All this does is to disable msm_core and set the
polling_interval to 0, which makes the driver useless.
We can achieve the same result by disabling the driver.

Change-Id: Ic19c505ed74811a3d1b76703255af3aa5cb37bf9
Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
Signed-off-by: Subhajeet Muhuri <kenny3fcb@gmail.com>
2019-10-04 18:51:57 +02:00
Subbaraman Narayanamurthy
8b0ce88c87
sdm660-common: Change seclabel for 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
2019-09-27 17:37:38 +02:00
guaiyihu
7694b15bde
sdm660-common: rootdir: Set MTP product name dynamically
Change-Id: I3af1f3ea3bd15a20e7623fcb5078e585619c1564
2019-09-27 17:13:45 +02:00
Erfan Abdi
ff0264f69d
sdm660-common: Update init from Q firmware for new Radio Stack 2019-09-27 17:13:45 +02:00
Artem Borisov
1f658096ee
sdm660-common: Make a legacy symlink for persist as well
Apparently, our bluetooth hal and TAS Soundriver wants it.

Change-Id: I673646a90f016c3d0e3f2244bed8e31cd0263f7e
2019-09-27 17:13:45 +02:00
Abhishek Srivastava
6415b88634
sdm660: wifi: Add move wifi data service
Add move_wifi_data service from /data/misc/wifi to
/data/vendor/wifi for OTA update.

Change-Id: I134fb663d1f358028eebb80106634d6eb0b87bc0
CRs-Fixed: 2270608
2019-09-27 17:13:45 +02:00
Max Weffers
6133ed7040
sdm660-common: Update init.rc and init.sh from LA.UM.8.2.r1-04000 2019-09-27 17:13:45 +02:00
Max Weffers
24d720206a
sdm660-common: Update ueventd from LA.UM.8.2.r1-04000-sdm660.0 2019-09-27 17:13:45 +02:00
Vinay Verma
4140eb5ed8
sdm660-common: Correct gid for /vendor/firmware_mnt due firmware class path change
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
2019-09-27 17:13:44 +02:00
Eric Chang
490ec94237
sdm660-common: Update rtp daemon user group
- Rtp Daemon user group updated from system to radio
- Updated diag permissions

Change-Id: Ie78a80e59782c935f5a7f0c37302dcc26fb9d98c
2019-09-27 17:13:44 +02:00
Brandon Solis
89a5d368d5
sdm660-common: Update user group for daemons
ImsDataDaemon, ImsQmiDaemon and ImsRcsService user groups updated from system to radio

Change-Id: I5368db8e29b41f583e7b258a6b56318725279412
2019-09-27 17:13:44 +02:00
Qimeng Pan
c6c623f7ed
sdm660-common: Remove old CarrierSwitch solution init.rc code for 660
CarrierSwitch use a new solution from P or later. the new solution
switch carrier by a standalone apk instead of modifing the init.rc
code in old solution.
So, Remove init.rc changes for old carrier switch solution.

Change-Id: I2da9861d71bc73df1b19066d2fad0dd3f4dedb3e
CRs-Fixed: 2377064
2019-09-27 17:13:44 +02:00
Erfan Abdi
74c3188f8e
sdm660-common: Drop -p arg from init chmods
Change-Id: I4dbf4c3f2560974a052401d67bbb6d43f2316dd3
Signed-off-by: Erfan Abdi <erfangplus@gmail.com>
2019-09-16 10:39:53 +02:00
Hai Shalom
42c6e1e0ad
sdm660-common: Add supplicant 1.2 to init.hardware.rc
Add missing supplicant 1.2 to init.hardware.rc to wahoo project.

Bug: 129693419
Test: lshal
Test: vts-tradefed run commandAndExit vts --skip-all-system-status-check --primary-abi-only --skip-preconditions --module VtsHalWifiSupplicantV1_2Host
Change-Id: I34577cac4892563774f035d3a68ed17cc1edeeb9
2019-09-10 07:58:33 +02:00
Sravan Kumar D.V.N
44e2dc0c85
sdm660-common: init: Attach mm-pp-dpps process with hwcomposer-2-1
Detach mm-pp-dpps process (ppd service) with SF and Zygote
and tie with hwcomposer-2-1.

Change-Id: Ice597126666e3368913acbd80149290e3c8005a4
2019-09-05 12:19:36 +02:00
GuaiYiHu
59a8b993ed
sdm660: rootdir: Configure input boost value
Change-Id: Ic8be69c706b7caf4c4a33195257fd794cc24ddbd
2019-09-05 12:17:22 +02:00
Atman
664477f08a
sdm660-common: rootdir: Assign proper group to dpmQmiMgr
Signed-off-by: Atman <masteratman@gmail.com>
Signed-off-by: zainarbani <zaintsyariev@gmail.com>
2019-08-21 09:08:17 +02:00
LuK1337
c33ebc3f3e
sdm660-common: rootdir: Set SSR restart_level in init.qcom.rc
Change-Id: I32fc08c9ad36b9c8ebfc019fc87a19eece18f0b4
2019-08-21 09:01:20 +02:00
Max Weffers
c79c1937ef
sdm660-common: rootdir: Add permissions for kcal driver 2019-08-20 10:39:44 +02:00
Max Weffers
10dfa8e347
sdm660-common: rootdir: Grant hall switch permissions 2019-08-20 10:39:44 +02:00
Max Weffers
d1aba14e2d
sdm660-common: rootdir: Add permission for vibrator level 2019-08-20 10:39:44 +02:00
Sriharsha Allenki
7bdc0d6d36
sdm845-common: init.qcom.usb.rc: Set the sys.mtp.device_type property
VtsTrebleSysProp test cases fail if the
sys.mtp.device_type is unset. Set the property to
value 2 so that the device appears as a phone on the
host PC.

Change-Id: I1123ca808cf027d6d787c58f58133b6ce67af4de
Signed-off-by: PainKiller3 <ninadpatil100@gmail.com>
2019-08-15 15:31:33 +02:00
Max Weffers
e75675e4c2
sdm660-common: rootdir: import init.device.rc instead of prop based rc 2019-08-15 15:31:17 +02:00
Brian Duddie
3b630141b0
sdm660-common: rootdir: Run sensors daemon as system user instead of root
Grant capabilities and change file permissions to allow the sensors.qcom
daemon to start up as the system user/group, rather than running as
root.

Fixes: 63775281
Test: monitor logcat after reboot, confirm no file open errors. Run
QSensorTest, confirm all sensors provide sane data. Confirm that
IMU calibration can read + write its saved settings. Run sensors CTS.
Change-Id: Ib80ea21900d6af6cd34c82c4a63f50c7e0ac18ff
2019-08-15 15:31:17 +02:00
Max Weffers
187b868fcc
sdm660: Add Hardware Info permssions and sepolicy rules 2019-08-15 15:31:17 +02:00
Max Weffers
0c7f0e00a8
sdm660: rootdir: Add missing permission for fpc fingerprint to ueventd
*cleanup order
2019-08-15 15:31:17 +02:00
Max Weffers
c9b398e327
sdm660-common: Update init files from LA.UM.7.2.r1-07400-sdm660.0 2019-08-15 15:27:20 +02:00
Bruno Martins
83814f81bb
sdm660-common: rootdir: Remove sensors init shell script
Change-Id: Ice50a9c83a708d7f8300978048cd00c71e88abc8
2019-08-14 10:04:13 +02:00
Vinay Verma
c743a9b88e
sdm660-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-08-14 10:04:13 +02:00
GuaiYiHu
bc02699357
sdm660-common: rootdir: Start ipacm for all devices even with no ril
Change-Id: I50b600e2270b4b7628c14c362db87fd391d29252
2019-08-14 10:04:13 +02:00
Karthik Gopalan
33fed0a190
sdm660-common: post_boot: msm8937: Disable core_ctl for 8917
core_ctl's enable & disable nodes are differnt on different
kernel versions. Fix Disabling of core_ctl for msm8917.

CRs-Fixed: 2366575

Change-Id: Ide7fc5384b34e9e686fe686f9fd70aaaaffcc278
2019-08-14 10:04:13 +02:00
Jack Pham
6d21c523c7
sdm660-common: init.qcom.usb.sh: Simplify ESOC check
Currently if targets support ESOC there would almost certainly
only be a single instance of an external modem. Hence we can
simplify the esoc_link check accordingly without needing to do
a loop and grep. Choosing the external modem composition simply
depends on whether esoc_name is present.

Change-Id: Ib47e34fd31c3745a0c7b3568968f6f36681c98e7
2019-08-14 10:04:13 +02:00
Karthik Gopalan
14272dab4b
sdm660-common: init.qcom.post_boot: Modify Naming convention for properties
Modify naming convention for properties
and also remove unused code.

CRs-Fixed: 2206509

Change-Id: I78821a66a65d92ea9284283efe5e3ca1659fa3de
2019-08-14 10:04:13 +02:00
Dusan Uveric
97fb27fc8b
sdm660-common: ramdisk: adjust cpubw bwmon values
Those values seem off. CAF maybe messed them up as those values look possibly wrong.
Those values are used as powerhint values on pixel 2 and 3.

Signed-off-by: Dusan Uveric <dusan.uveric9@gmail.com>
2019-08-14 10:04:13 +02:00
Artem Borisov
bdfe592a87
sdm660-common: Disable ALMK on all targets
* No matter how hard QC tried to improve these features, they still suffer
  from stability issues, mainly due to the unpredictable nature of vmpressure
  they rely on.

Change-Id: Icd14c79298a3c268abffa06ed17a79dececf423a
Signed-off-by: PIPIPIG233666 <2212848813@qq.com>
2019-08-14 10:04:13 +02:00
ix5
88249ea175
sdm660-common: Remove "eng" from LOCAL_MODULE_TAGS
This has been deprecated for some time and will throw and
error in Android Q
Signed-off-by: PIPIPIG233666 <2212848813@qq.com>
Change-Id: I9e4caaa6f401a051e5edd341112dcc01c8f040b7
Signed-off-by: PIPIPIG233666 <2212848813@qq.com>
2019-08-14 10:04:13 +02:00
Max Weffers
315cbf7b1b
sdm660-common: rootdir: import init file based on ro.product.device 2019-08-14 10:04:12 +02:00
LuK1337
8fbde43308
sdm660-common: Restart HIDL camera provider after decryption
* Restart HIDL camera provider to cover some edge cases where camera isn't
  working on FDE devices with boot pin enabled.

Change-Id: Ia757e9d07de26008f426fca582439d68b6d6fecb
Signed-off-by: Albert I <krascgq@outlook.co.id>
Signed-off-by: PIPIPIG233666 <2212848813@qq.com>
2019-08-14 10:04:12 +02:00
Artem Borisov
03b7fb7ef0
sdm660-common: Restart audio HIDL HAL after decryption
* For some reason, booting with headphones plugged in results
  in a broken speaker output if FDE secure boot is enabled.
* Restarting audio HAL after decryption seems to resolve the issue.

Change-Id: Ie14b89841bf811f0fb09edb0a04fd28aafecde87
Signed-off-by: PIPIPIG233666 <2212848813@qq.com>
2019-08-14 10:04:12 +02:00
Rashed Abdel-Tawab
2e3a160271
sdm660-common: Run tftp_server with system group
* Avoid the need to rely on dac_override

Change-Id: Id5b5bb0a747267672837ea030b246f8df3b944a3
Signed-off-by: PIPIPIG233666 <2212848813@qq.com>
2019-08-14 10:04:12 +02:00
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
Max Weffers
a7b61b9824
sdm660-common: set props early for usb connection on boot process 2019-08-14 10:04:12 +02:00
Sauvik Saha
56264da7e7
sdm660-common: Changes to stop rtp daemon during shutdown
* Changes to stop rtp daemon during shutdown

Change-Id: I08d56dba615136a2c02c3aa11a55bd3e7d84f6a0
2019-08-14 10:04:12 +02:00
GuaiYiHu
f603800175
Revert "sdm660-common: Use low level shutdown trigger"
This reverts commit 2f37a62ad585d791a21c18a76cac03a811bbec67.

Change-Id: I8db64455e0c0bd3e9ce58df5244983cfd9439fc9
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
Zhen Kong
f44951c36e
sdm660-common: ueventd.qcom.rc: set permissions of /dev/qce device
To support end-to-end DRM content playback with SG List feature,
android.hardware.drm@1.0-service needs to have access permission
to /dev/qce to map & unmap ION buffer virtual address with HW Crypto
Engine. So, set /dev/qce device permission 0660 and let it be
accessible by user "system" and group "drmrpc".

Change-Id: If9c0ed70acc2bb063344692374f51441fe84eff6
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
Sauvik Saha
e4a58fa5f2
sdm660-common: Starting imsrtpd on bootup
* starting rtpd on bootup without waiting for DATA_DAEMON
prop and restarting when property is set

Change-Id: If121089334ef2c0b335320bb561a553163042ba3
2019-08-14 10:04:11 +02:00
Devi Sandeep Endluri V V
07d002a336
sdm660-common: Starting imsrcsd on bootup
Starting imsrcsd on bootup without waiting for DATAD property
which will load libimsrcsbaseimpl and register HAL services

Change-Id: I17c1891583ea99baa31efec0e8ba316e4fbf25f3
2019-08-14 10:04:11 +02:00
Subbaraman Narayanamurthy
c51053b5dc
sdm660-common: init: Create persist directory for hvdcp_opti
hvdcp_opti daemon stores some parameters in
/mnt/vendor/persist/hvdcp_opti directory. Create the directory.

Change-Id: I0cf17467792cc294e6ce1a7f35a356cc0e960e86
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
Saranya Chidura
9d39230981
sdm660-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-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
Wang Han
6d7b0cda2d
sdm660-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-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
Tim Murray
46ac5129b1
sdm660-common: rootdir: add restricted cpuset
bug: 78197570
Test: CTS

Change-Id: I6aaac2f3ce9ba886143e3667df2ca044c7f3d3f0
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
Abhinav Sohane
34382b7e82
sdm660-common: Camera: init.target: Moved camera-daemon creation to on-init.
Issue: cameraserver or camera-provider service is not able to
      write pid's to cpuset/camera-daemon.

Solution:
    1) Increased the cpu to 0-7
    2) Moved camera-daemon folder creation from on-boot to on-init.
CRs-fixed:2200628

Change-Id: Ifc80c09ae09b353b3c8a0603f14e5ff4206d6796
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
Lennart Wieboldt
70ec44be26
sdm660-common: Remove cpuset foreground boost
Cpuset foreground boost is departed since
https://android.googlesource.com/platform/frameworks/base/+/a712d4058f6f85268838

Change-Id: Iab1834dbb8cce15480b5e11968bcfff7cc80177e
Signed-off-by: Lennart Wieboldt <lennart.1997@gmx.de>
2019-08-14 10:04:11 +02:00
guaiyihu
9aae9b3ad7
sdm660-common: rootdir: Remove insmod for non-existent module
Change-Id: I75afecc8909b55467dfde74d40e77007480fe31d
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
Roshan Pius
e6f6caa3fb
sdm660-common: init: Change ownership of wifi firmware reload sysfs paths
This will let the wifi hal run as "wifi" user and not need root
permissions to access this path for firmware reloads.

Bug: 33435250
Test: Compiles.
Change-Id: I84a38cea5e0f729147c3191c3485a3738d7838ef
2019-08-14 10:04:11 +02:00
Ethan Chen
6819b5117a
sdm660-common: rootdir: Move mm-pp-dpps to hal class
Change-Id: I1e243b057ed24a2bc50a206de7b6c5c8bd702617
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
0b652152c0
sdm660-common: usb: do not overide usb config on every reboot 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
Max Weffers
fa3d08bd84
sdm660-common: rootdir: set wifi countrycode
*fixes 5Ghz without sim card or flightmode
2019-08-14 10:04:11 +02:00
Vol Zhdanov
a4d2c45881
sdm660-common: rootdir: Add missing dynamic fps node
* otherwise sdm won't access it

Signed-off-by: adi8900 <adrianszymanski242@gmail.com>
Signed-off-by: PIPIPIG233666 <2212848813@qq.com>
Change-Id: I088d64b9ddd07bb2482ac3971d7c559e88043d0b
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
dianlujitao
617998fe55
sdm660-common: Update ueventd from LA.UM.7.2.r1-06900-sdm660.0 2019-08-14 10:04:11 +02:00
Ananth Raghavan Subramanian
abb8e2966e
sdm660-common: ueventd.qcom.rc: Memory offline nodes
Change permission of memory offline nodes so HAL can read

Change-Id: Iba5429d000632ae739548a667027efd53f121d5d
2019-08-14 10:04:11 +02:00
Max Weffers
4771df97e2
sdm660-common: Remove crashcheck and resize flag from fstab
* Fixes : [libfs_mgr]Warning: unknown flag crashcheck
* Fixes : [libfs_mgr]Warning: unknown flag resize

Signed-off-by: PIPIPIG233666 <2212848813@qq.com>
2019-08-14 10:04:11 +02:00
Max Weffers
86f58c6df2
sdm660-common: Cleanup fstab and add support for f2fs
Change-Id: Ic70a0b31f86c74c4b29eedd4fdb06ae4f3a551e7
2019-08-14 10:04:11 +02:00
GuaiYiHu
ea9e8c475d
wayne-common: rootdir: Kill init.qti.qseecomd.sh
Signed-off-by: PIPIPIG233666 <2212848813@qq.com>
Change-Id: I6fe31f784abd08bd4d7ca79e238f10087c16ca69
2019-08-14 10:04:10 +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
Zhen Kong
7a4da391c8 wayne-common: ueventd.qcom.rc: set permissions of /dev/qce device
To support end-to-end DRM content playback with SG List feature,
android.hardware.drm@1.0-service needs to have access permission
to /dev/qce to map & unmap ION buffer virtual address with HW Crypto
Engine. So, set /dev/qce device permission 0660 and let it be
accessible by user "system" and group "drmrpc".

Change-Id: If9c0ed70acc2bb063344692374f51441fe84eff6
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
Mohammed Javid
3d68a27814 wayne-common: rootdir: Added a permissions for ODL char devices
Added a permissions for ODL char devices

Change-Id: I1c74c060c9e9b958307a07a4dbe630d0f28b3a89
2019-07-01 16:42:17 +02:00
Sauvik Saha
fabf8eb6cf wayne-common: Starting imsrtpd on bootup
* starting rtpd on bootup without waiting for DATA_DAEMON
prop and restarting when property is set

Change-Id: If121089334ef2c0b335320bb561a553163042ba3
2019-07-01 16:42:17 +02:00
Devi Sandeep Endluri V V
8328551364 wayne-common: Starting imsrcsd on bootup
Starting imsrcsd on bootup without waiting for DATAD property
which will load libimsrcsbaseimpl and register HAL services

Change-Id: I17c1891583ea99baa31efec0e8ba316e4fbf25f3
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
Subbaraman Narayanamurthy
d4d6651167 wayne-common: init: Create persist directory for hvdcp_opti
hvdcp_opti daemon stores some parameters in
/mnt/vendor/persist/hvdcp_opti directory. Create the directory.

Change-Id: I0cf17467792cc294e6ce1a7f35a356cc0e960e86
2019-07-01 16:42:16 +02:00
dianlujitao
efdbc19a6a wayne-common: Bind mount /mnt/vendor/persist to /persist for sensors
* Oreo sensors.qcom cannot access to persist even with the symlink

Change-Id: Ifc43515c70b51aeb8c1b5db765051fb21fddb80d
2019-07-01 16:42:16 +02:00
Vinay Verma
c5bd350f84 wayne-common: 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: I2dd2e7ea6334fb979ad8ff8c755648748de93ab4
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
Vinay Verma
7f0b9ce620 wayne-common: Move /bt_firmware mount point to /vendor/bt_firmware
Change-Id: I6dbb4e19fd00861b0c50a7df6eab197e878a5d0e
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
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
TheScarastic
25b47ac236 wayne: Delete goodix data if other slot is taking up space 2018-07-13 00:03:44 +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