Commit graph

447 commits

Author SHA1 Message Date
Stylogey
c3ac2b42e2
sdm660-common: move A/B stuff to common
Change-Id: I8770ea03a27f96e04daedaf021906842c0bcebce
2020-08-12 02:02:39 +06:00
Stylogey
60d1a018b4
sdm660-common: rootdir: remove unused init.mdm.sh
Change-Id: I6d6aac2872ad80b64f753d8f96a6e2c7731d5d0b
2020-08-12 02:02:39 +06:00
Stylogey
23b70a785a
sdm660-common: rootdir: update init.class_main
* from LA.UM.8.2.r1-06500-sdm660.0

Change-Id: I38e98ec836e41e8cd405cccd597fd10d3f8f11d2
2020-08-12 02:02:39 +06:00
Stylogey
1bcf447ec0
sdm660-common: rootdir: separate xiaomiparts related initialization
Change-Id: I7b2b3a9c7b22de550e502a9b98e31683e3b961b6
2020-08-12 02:02:39 +06:00
Stylogey
f2fcbe2d73
sdm660-common: format fstabs
Change-Id: I867c2eb7d3f752c70bb9bb05da53048657c43da0
2020-08-12 02:02:39 +06:00
Viraja Kommaraju
077cb22836
common: remove KPI marker at ADSP start
Move the ADSP start KPI marker within the adsp-loader code instead
of adding the same in .rc file.

Change-Id: Ib67f5775dfb9fdca47e62a189de9994b7a6624e8
2020-08-12 02:02:38 +06:00
Dušan Uverić
fee506cf0b
sdm660-common: fstab: setup 1GB ZRAM
Change-Id: Ia137f4a7e7819f507e2fc004231dea2c985f2404
2020-08-12 02:02:38 +06:00
Dušan Uverić
604c8b8600
sdm660-common: always do printk logging at KERN_WARNING level
Signed-off-by: Dušan Uverić <dusan.uveric9@gmail.com>
Change-Id: Ia027713e15692f120628c376b7bbd99ae4c450f4
2020-08-12 02:02:38 +06:00
Soul Trace
9b5bf8c210
ipacm: Fix WLAN tethering offload
Fix reboot after 120 seconds on WLAN tethering enable.
Fix "target device is connected but no internet" issue.

Move ipacm-related sections from rootdir/etc/init.qcom.rc to data-ipa-cfg-mgr/ipacm/src/ipacm.rc
Make ipacm.rc look like vendor/qcom/opensource/data-ipa-cfg-mgr/ipacm/src/ipacm.rc but add
writepid /dev/cpuset/system-background/tasks to the service definition.
This let ipacm start after data decryption (it got killed on data decrypt and not respawned,
because was disabled).
This fixes following errors:
04-01 14:35:57.525   591 17586 W libc    : Unable to set property "ctl.interface_start" to "android.hardware.tetheroffload.config@1.0::IOffloadConfig/default": error code: 0x20
04-01 14:35:57.526  2665  3190 I ServiceManagement: getService: Trying again for android.hardware.tetheroffload.config@1.0::IOffloadConfig/default...
04-01 14:35:57.526   591 17586 E hwservicemanager: Failed to set property for starting android.hardware.tetheroffload.config@1.0::IOffloadConfig/default

Set wifi.active.interface context to exported_wifi_prop and allow hal_wifi_default to set it.
I don't know why context definition was not embedded to the contexts file, but now it is.
This fixes following errors:
[163263.846522] selinux: avc:  denied  { set } for property=wifi.active.interface pid=2733 uid=1010 gid=1010 scontext=u:r:hal_wifi_default:s0 tcontext=u:object_r:default_prop:s0 tclass=property_service permissive=0

Change-Id: I735e7d8d8d07b9545ef16a6baa35a13aba3cd116
2020-08-12 02:02:37 +06:00
Thomas Shum
d9c301d286
sdm660-common: Restore better load balancing on boot
As it turned out, allowing background, system-background, restricted,
foreground and top-app to use all 8 cores results in severe jitter and lag
whenever background tasks are running, whether it be on boot, or during waking up
from sleep.

This commit readds pinning background to cores 0-1, system-background and
restricted to cores 0-3, foreground to cores 0-6 and top-app to cores 0-7.

Change-Id: Idb76879e75e05b437600f0b689c260c674eb7eea
2020-08-12 02:02:37 +06:00
Wang Han
7508218b60
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
2020-08-12 02:02:37 +06:00
Matthew Leung
0ca316c45c
post_boot: Update htbp for Chitwan CDP
Change-Id: I3d20b83e3df9a8f47d34955e9024c12b58fbba26
2020-08-12 02:02:37 +06:00
anirudhr
8d58eb9228
gave system permissions to kgsl-3d0 nodes
gave system permission to kgsl-3d0 nodes for qvrservice
to read and write into the nodes

Change-Id: I207eb9f4915cf538c0b47ce45acb182a7ce95789
2020-08-12 02:02:37 +06:00
Santosh Mardi
25736871b4
post_boot: update L3 nodes for lagoon target
Update L3 dcvs node paths used for configurations
in lagoon target.

Change-Id: Ifcdcf3343f63aaee10269893dfea90e71199d0f6
2020-08-12 02:02:37 +06:00
Varun Garg
a675cfe4f7
sdm660: post_boot: Update memlat polling to 8 ms on Saipan
Update the polling_interval to 8 ms for all memlat
devices to inline with 4ms tick

Change-Id: I10182bae1771d6f3d75e92a63a8b63025f46bd2c
2020-08-12 02:02:37 +06:00
Sanjeev Jakkilinki
33ce327e4b
sdm660: init.qcom.post_boot: initialize the tuning settings for lagoon
perf/power tuning settings related sched and dcvs,lpm disabled

Change-Id: I2ba17b63e5294ec8c1a373a0e47df89589ea0965
2020-08-12 02:02:36 +06:00
Shashi Shekar Shankar
a3f6a8bf78
sdm660: post_boot: Update post_boot for sdm660 K4.14 upgrade
Post_boot changes for sdm660 K4.14 upgrade.

Change-Id: Ib891f1ca606cb686d38bba5f7fe101d395d8b6c3
CRs-Fixed: 2611111
2020-08-12 02:02:36 +06:00
Ravikanth Tuniki
7146cde30b
sdm660: post_boot: update hbtp platform for sm8150+sdxprairie V3
Add support to launch hbtp on subtype 3 / sm8150+sdxprairie V3.

Change-Id: Iead67c4d77538a97cfee086b00f9a55ec4ecee81
2020-08-12 02:02:36 +06:00
Pratham Pratap
1f24d3a000
sdm660: init.target.rc: Prevent enumeration in ADB only composition
During bootup the device first enumerates in ADB only composition
and then falls back to the persist.sys.usb.config.
Prevent this enumeration in ADB only composition during bootup
by setting the sys.usb.configfs from init.qcom.usb.rc

Change-Id: I4d9aa8454202b8118ff76dfda7f44c6413c42020
2020-08-12 02:02:36 +06:00
idabgsram
7e0da6d532
sdm660-common: Switch to Filebased-metadata encryption
Change-Id: I0fd387c6be606e9658fa4badeaf9ac75f7987af0
2020-08-12 02:02:36 +06:00
Felix
ac571ee966
sdm660-common: Force restorecon for /mnt/vendor/persist
The restorecon_recursive directive in init is only applied if the
file_contexts file changed between builds, but not necessarily if any
file or folder inside /mnt/vendor/persist/ has changed.

The restorecon code checks whether an xattr named
"security.sehash" contains a string that matches the current
combined hashes of the SELinux context files and skips restoring labels
if there is a match, see
https://android.googlesource.com/platform/external/selinux/+/refs/tags/android-9.0.0_r35/libselinux/src/android/android_platform.c#1546

Force wiping that xattr so that restorecon always runs since it's not
very expensive (there are currently only about 50 files on /persist).

The restorecon is needed to fix issues such as wrong stock labels on
/mnt/vendor/persist/sensors/:
sensors_persist_file -> persist_sensors_file

Change-Id: Ic0cd848836ee550499d9236f56ed6e939e35f01e
2020-03-10 09:39:45 +01:00
Thierry Strudel
e713c18a84
sdm660-common: init: Adjust charger state CPUs
Bug: 74771887
Change-Id: Ifd5d2ac499866ce897cfa99a655da592248e7bbd
Signed-off-by: Thierry Strudel <tstrudel@google.com>
Signed-off-by: Zainudin Shamilov <renascape@beatwo.men>
2020-02-27 17:01:42 +01:00
Wei Wang
bb85a5d86c
sdm660-common: init: powersave in charger mode
Bug: 72445880
Test: boot to charger
Change-Id: I154304deabf219a0428d68d0c59cb64c143b7de6
2020-02-27 17:01:42 +01:00
Anant Goel
5eeebf4209
init.qcom.usb.sh: Set ADB as default composition for GVM targets
Set ADB as the default composition for GVM targets, as DIAG
over USB conflicts with the DIAG over IP used by the PVM.

Change-Id: I09389564db284b16ccb34243eaf34bb17860b30f
Signed-off-by: Anant Goel <anantg@codeaurora.org>
2020-02-27 17:01:41 +01:00
Sidipotu Ashok
eedaefc0f2
init: Define SYS_NICE caps for android.hardware.audio@2.0-service.
- Grant SYS_NICE capabilities to audio HAL processes as sound trigger
HAL threads need to run at real time priority as well as use the
CPU affinity, for far field voice.

CRs-Fixed: 2359951
Change-Id: Ie0da744978609c750e92aec2c6001ace1868ad31
2020-02-27 17:01:41 +01:00
Subhadra Jagadeesan
fac52b4226
init.qcom.post_boot: exclude CPUs 0-3 from isolation
- SnapdragonVoiceActivation feature for Far Field Voice version
affines its threads to 0-3 CPUs and so prevent them from isolation
for qcs605 target

Change-Id: I09ef5cc97ee245133315edc0821f3a2afc54e99b
2020-02-27 17:01:41 +01:00
Patrick Daly
20bc13de0e
post_boot: Ensure SLAB_STORE_USER is disabled for zram kmem_caches
ZRAM compression uses the linux slub allocator its internal data
structures. If these internal data structure consume a lot of memory,
ZRAM compression may increase memory usage, rather than decrease it
as expected. Decrease the chance of this occuring by ensuring the
SLAB_STORE_USER debug option is disabled.

Change-Id: I4684feda94b7bebacb6218b7f979c95771b0ee10
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
2020-02-27 17:01:41 +01:00
Divyanand Rangu
a293622e25
post_boot: Update nodes of read_ahead_kb configs
check populated dm-* nodes and Update read_ahead_kb
values to them. This is needed because on targets
with verity disabled dm-0 to dm-6 are populated,
while on enabled targets dm-3 to dm-6 are populated.

Change-Id: Ia4e262d7487120695db53b562b5764598fd40a87
2020-02-27 17:01:40 +01:00
Venkata Rao Kakani
26f2e84b81
post_boot: change ddr freq from fixed to capped level.
Change-Id: I2e6b2112c54e019e72271bf34e22edb1a36488ea
Signed-off-by: Venkata Rao Kakani <vkakani@codeaurora.org>
2020-02-27 17:01:40 +01:00
zljing
b0de734ae5
post_boot: update zram setting avoid 32 bit overflow.
Change-Id: I790b5ef9fcf091e4af3ebaaac3341b8d4050c47e
2020-02-27 17:01:40 +01:00
Liron Daniel
75bef1e561
sdm660: ueventd.qcom.rc: Add permission to /dev/spu_hal_ssr
Needed for spu HAL service to register on spcom channel for ssr
notifications

Change-Id: I43f070bf9948d4330f9ae05f9d631f2681f75164
2020-02-27 17:01:37 +01:00
Amir Vajid
babc7f8aae
sdm660: post_boot: update memlat polling to 8 ms on kona
Update the polling_interval to 8 ms for all memlat
devices on kona.

Change-Id: Ia097e6e0a6aa3b761978e5df60c868a7f1d19401
2020-02-27 17:01:37 +01:00
Amir Samuelov
568313007c
sdm660: allow system to access UFS sysfs
Allow system to read/write UFS device attributes on sysfs.

Change-Id: I7ea0a8f289b29ebcff2b894237efbe90b76f1a80
2020-02-27 17:01:36 +01:00
Dyneteve
e970cc2df6
sdm660-common: Start the bootanimation on late-fs
Change-Id: I990ee05623b98a5faa5fea9085de27737ba2cb5b
2020-02-27 17:01:36 +01:00
Dyneteve
1a7c7d5840
sdm660-common: rootdir: Use auto for sdcard/usbotg
* Just so other file systems work

Change-Id: Ic7aa2b98ee4af1309b6155bdc5b77dc46f130503
2020-02-27 17:01:34 +01:00
Dyneteve
162633ad42
sdm660-common: rootdir: Import tunables/cpusets from coral
* Also start bootanim a little earlier

Change-Id: I1b43ead7d122a7042b8fd5e6b5fe41afa9e9fd1b
2020-02-27 17:01:34 +01:00
Wei Wang
0cc188a5c5
sdm660-common: Import SchedTune tuning from b4s4
Change-Id: Ia805b346b2b24fcc24f80af8dc4ffcba3f0c3fbc
2020-02-27 17:01:34 +01:00
Dyneteve
6917d046fa
sdm660-common: rootdir: Stop configuring read ahead from post_boot
Change-Id: I7ce2665c5cb78d8beb9e20cd296d32a520f6bbf4
2020-02-27 17:01:34 +01:00
Bharat Pawar
70b2ca98a0
sdm660_64: init: USB config update
Change-Id: I696c3622477c689bb31fb2d12183729ece59d54b
2020-02-10 14:22:01 +01:00
Aryan Gupta
5666e48876
sdm660: Switch to file based encryption for AB Targets
Ã*following stock

Change-Id: Ifcf9c07c4e00fa0b8362d4ae7505bb108e57cca6
2020-01-31 16:47:27 +01:00
Max Weffers
7e226bf4b8
sdm660: fstabAB: Use symlink only for persist partition 2020-01-31 16:28:35 +01:00
Rama Aparna Mallavarapu
ccfe87ba96
sdm660: post_boot: Update hi-speed freq for rev 2.1
Update kona rev 2.1 hi speed frequencies for dcvs.

Change-Id: I00ed9c7894600c20e7025f2c7ad2a197fb7d669d
2020-01-28 16:59:18 +01:00
Venkata Rao Kakani
1daf8c63a5
sdm660: post_boot: update frequencies based on sku feature id.
Change-Id: Iec2ceb2afc26498daeec45722f6bd76f13e66553
Signed-off-by: Venkata Rao Kakani <vkakani@codeaurora.org>
2020-01-28 16:59:18 +01:00
Libo Jin
b25e24b6a7
sdm660: Perf:increase touch boost duration
CRs-Fixed: 2586942
Change-Id: If984001dad652b82807553c08a6a54b6ce095e9a
2020-01-28 16:59:18 +01:00
Shailendra Gupta
ae0aeaa6f8
sdm660: common: Bring-Up changes for newer upgrade.
Change-Id: I027266c31b83dc7f45dc10dbfe2fc2a5856defba
2020-01-28 16:59:18 +01:00
Vijayakumar Badiger
c910661f7d
sdm660. update sku frequency for SA8155P
Change-Id: I9b36fc87fa9f04c810a6eadea0367a380c9cbf24
2020-01-28 16:59:18 +01:00
Lingutla Chandrasekhar
e14c92df55
sdm660: init.qcom.post_boot: Update scheduler settings for lito
Update scheduler settings for lito.

Change-Id: If7e2b9a3c6e0b930d6438b92ef3f3d10e9c4de5f
2020-01-28 16:59:18 +01:00
Raghavendra Kakarla
5626ca5359
sdm660: init.qcom.post_boot: enable LPMs for bengal
Enable low power modes and core_ctl for the bengal.

Change-Id: Ie6784fdacec66020c19fa67d1c3a095af9745f21
2020-01-28 16:59:17 +01:00
Max Weffers
12b0f38bd2
sdm660-common: Update Perf stack from Jasmine 10 Release
jasmine-user-10-QKQ1.190910.002-V11.0.4.0.QDIMIXM-release-keys


Change-Id: Ib646bbaf0678ec7597792afc63373c93e47be2e4
2020-01-14 18:18:15 +01:00
Max Weffers
42a78479fc
sdm660: ueventd: Update from from Mi A2 Android 10 release
jasmine-user-10-QKQ1.190910.002-V11.0.4.0.QDIMIXM-release-keys

Change-Id: I11280aa50fdbdd6451cc051d8d6d936f20ebccb3
2020-01-13 14:35:53 +01:00
Max Weffers
5d39827818
sdm660: parts: Rename hall prop to folio_daemon prop
*needed to prevent neverallow in user builds
2020-01-04 09:37:09 +01:00
ramandeep trehan
f7dd88877b
sdm660-common: Start qseecom daemon as early as possible for FBE
Qseecom needs to start at earlier stage for FBE to work properly.

* Wait for prop moved to device as we have still oreo qseecom devices with different prop name

Change-Id: Ie2408f652df291ad6a1b0dee1e4d559ff35c7c45
Signed-off-by: Ramandeep Trehan <rtrehan@codeaurora.org>
2020-01-02 11:46:29 +01:00
Author Nitesh Kataria
9f7368611b
post_boot : Syntax fix
Change-Id: I048fc014976ca16dfe94d1a972ecec7fca35e015
Signed-off-by: Nitesh Kataria <nkataria@codeaurora.org>
2019-12-16 18:31:38 +01:00
Rajashekar Adi
210e379088
Power: post boot: Enable conservative pl for atoll
Enable sched_conservative_pl for atoll

Change-Id: I8526c2703d50693041dca516fa0bd97d7b8a43f2
2019-12-16 18:31:25 +01:00
Sriharsha Allenki
36daa25b8b
init.qcom.usb.sh: Set USB default composition to 90DB
This change makes 90DB (interfaces: diag,dun,rmnet,dpl,qdss,adb)
as default usb composition on bengal.

Change-Id: If83a356219f802e8960c7d341296f3a7b3641e68
2019-12-16 18:30:01 +01:00
Viraja Kommaraju
c5b732e9a7
common: add KPI marker at start of ADSP
Add KPI marker to indicate the start of ADSP
mount.

Change-Id: Ifb2dfbb3717614bec542ab8545cdb0a6d8ae2b38
2019-12-16 18:29:21 +01:00
richagar
3ac15ebd13
Added bengal to init.qcom.post_boot.sh
Added bengal to post_boot to enable prop
vendor.post_boot.parsed

Change-Id: If1a2dcef4d7999a0b93574a24a212cd339cea76e
2019-12-16 18:29:06 +01:00
Vijayakumar Badiger
3882e725f8
add sdmshrike sku changes
Change-Id: I4b30e3600858eabc488ca13f80cff457d0e80b59
2019-12-16 18:25:11 +01:00
Maryia Maskaliova
8df20abf05
Modifying /sys/block nodes:
Setting dm-2 read_ahead_kb to 512 on boot completed

Change-Id: I7542a23e5f9197a5faa7ad20e4d18634780d13c9
2019-12-16 18:24:55 +01:00
Kishore Sri venkata Ganesh Bolisetty
484c827034
post_boot: update silver Fmin to 691M on kona
update silver Fmin to 691M on kona.

Change-Id: Ibbe72b27ddb03001235ed67c2a4ce9d2d53da4a0
2019-12-16 18:24:16 +01:00
Sanjeev Jakkilinki
6d9aa9ce2c
init.qcom.post_boot: initialize the tuning settings for bengal
perf/power tuning settings related sched and dcvs.

Change-Id: Ife99c2a6e5e6160851a11c44f053aae445665faf
2019-12-16 18:23:47 +01:00
Tharun Kumar Merugu
4cfd0a8294
init.qcom.post_boot.sh: Enable cdspl3 governor for atoll
CDSP subsytem uses rpmsg to send CPU L3 clock requests via cdspl3
governor. Use cdspl3 as the governor for CDSP L3 devfreq node for
serving CDSP L3 clock requests.

Change-Id: I49ad421811affa82458abd34d0a0851e1f1fc423
2019-12-16 18:22:45 +01:00
Author Nitesh Kataria
af748b5a6f
post_boot : Add cases for sdmshrike
Adding cases for sdmshrike to enable clocks
for APPS Power collapse.

Change-Id: I089556c1098d60022bdb3de1ec2024858f0d3b30
Signed-off-by: Nitesh Kataria <nkataria@codeaurora.org>
2019-12-16 18:22:12 +01:00
Gidon Studinski
dd63456a82
common: init: expose /dev/wigig_sensing device node to user space
/dev/wigig_sensing is the entry point to an SPI kernel driver which is a
part of a remote sensing solution using 60GHz HW.

Change-Id: I1b538e0c58ae784997407f91a7647c2188ee7d58
2019-12-16 18:21:06 +01:00
Ajay Agarwal
9c7d9c20bb
init.msm.usb.configfs.rc: Add support for USB PID 0x9020
0x9020 composition includes DIAG + ADB + DUN + NMEA. Add support
for the same.

Change-Id: I364d4e87b63d7e5dfb394db6e92e650764b7cc96
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2019-12-16 18:19:42 +01:00
Xiaojun Sang
42583ca43e
sdm660: add aud_pasthru_adsp access for audio
Change-Id: If4cb96e00ccfaff60b08c42d92370cb46fbb9a0e
2019-12-16 18:19:13 +01:00
Vijay Dandiga
b68ab8e7a9
post_boot: Set zRam disk size to 50% of RAM size.
Set zRam disk size to 50% of RAM size for non-Go devices.

Change-Id: Ifd015f7827db8ed9388833ec09627898e20fd209
2019-12-16 18:18:06 +01:00
Arne Coucheron
aeaffc4a19
sdm660-common: Change charger seclabel from healthd to charger
Change-Id: I86515de0f8ac1ae4d8d83dae7638592a619a3e7c
2019-12-14 23:20:16 +01:00
Stylogey
25dadea83b
sdm660-common: XiaomiParts: Start folio_daemon only if a prop is set 2019-12-13 16:57:53 +01:00
Michael Bestas
540804fce2
sdm660-common: Resolve vendor_init SELinux denials 2019-12-07 18:49:55 +01:00
Michael Bestas
9dc9da4d21
sdm660-common: Cleanup init.qcom.sh
* Remove unused SoCs from the script
* Remove qemu.hw.mainkeys to avoid SELinux denials
2019-12-07 18:49:55 +01:00
Arian
4729f1a854
sdm660-common: rootdir: Move ims service declarations to their own rc files
Change-Id: I1546d673c3d7e19bef8ada817fa6d32671541400
2019-12-02 17:22:37 +01:00
EnesSastim
14897802e8
sdm660-common: Update TimeService from LA.UM.8.2.r1-04300-sdm660.0
Signed-off-by: EnesSastim <sastimenes@gmail.com>
2019-11-14 17:12:03 +01:00
Max Weffers
f1d116fc9d
sdm660-common: Update init.class_main.sh from LA.UM.8.2.r1-04800-sdm660 2019-11-12 18:12:21 +01:00
Pavan Kumar M
843c0ae901
sdm660-common: FR 53051: Self Contained Module
Desc: Remove cnd, dpmQmiMgr daemon

Change-Id: I741a951bf71f72db009ddde94991aa876705b99a
2019-11-12 18:12:20 +01:00
Max Weffers
f9b74aaf49
sdm660: Remove now unneed setprop for boot parse
* now set in init.post.boot
2019-11-01 12:18:36 +01:00
Lior David
b3cc441dc5
sdm660: init.qcom.rc: remove interface line from hostapd_fst
The interface line in hostapd_fst is the same as the
default hostapd service and this can cause the lazy
HAL mechanism to start hostapd_fst instead of the
default hostapd, causing various errors.
This change only fixes the errors with default hostapd
operation. In order to fix FST feature with hostapd_fst,
additional changes are needed such as making it use
the default hostapd service and adding sepolicy rules
to support it.

Change-Id: I133336b1ae18fa823969f240b3e4376989fbf017
2019-11-01 12:18:36 +01:00
Li Li
ab75a7b947
sdm660: ueventd.qcom.rc: set permissions for /dev/sp_nvm device
/dev_sp_nvm is used by sp_iar_lib to store CMAC values for spu
 firmware and application

Change-Id: I2ac5f29b66448a526cdbc6a1ccefd5f80066c170
Signed-off-by: Li Li <liil1@codeaurora.org>
2019-11-01 12:18:36 +01:00
Max Weffers
98004138f5
sdm660: post_boot: checkout init.post.boot from LA.UM.8.2.r1-04800-sdm660.0
Change-Id: I8c6f512f20dd42c99cdb19597ced2013c11bd9bf
2019-11-01 12:18:13 +01:00
Subbaraman Narayanamurthy
47d26aa9b6
sdm660: init.qcom.rc: 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
2019-11-01 11:52:54 +01:00
Muhammed Siju
f84faea716
sdm660: Init: Add system group for init.class_main.sh
/vendor/firmware_mnt/verinfo/ver_info.txt ownership
is now system,system. Hence need to add system group
for init.class_main.sh

Change-Id: I9c759c22aca7a8c5bc04908748f26916025c7b07
CRs-Fixed: 2534121
2019-11-01 11:51:58 +01:00
Shadab Naseem
91caad8a17
sdm660: init: qcom: Start IRQ balancer for bengal
Start the IRQ balancer for bengal, independent of the
platform ID.

Change-Id: Id7845daa03abf6b205244fa281bc4b1c54d20955
2019-11-01 11:51:00 +01:00
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