Commit graph

380 commits

Author SHA1 Message Date
Isaac J. Manjarres
07798a5cc5
sdm660-common: ueventd.qcom.rc: Add permissions to /dev/membuf
The Trusted UI HAL will need to access /dev/membuf, so allow
system access to /dev/membuf.

Change-Id: I906b856e153f44b11a8b8aa8456080e803495fec
2021-02-10 09:05:29 +06:00
Chris Lew
e34fffe157
sdm660-common: ueventd.qcom.rc: Add mhi diag pipe device rules
Add rule to set permissions for the mhi_*_pipe_4 pipe that sends and
receives diag traffic to external chipsets. These nodes should have rw
access for the system group so the diag-router appplication can access
it.

Change-Id: Ia83ea035d248482790f70cbce7d42b86238ebd11
2021-02-10 09:05:29 +06:00
Chenyang Zhong
851d88070e
sdm660-common: create and symlink a dummy /metadata/apex
Google moved apex sessions directory from /data/apex/sessions to
/metadata/apex/sessions after commit:

"Move apex sessions directory to /metadata"
36cf4bbac6

Devices with a mounted metadata partition will have the needed
directories set up by system/core/rootdir/init.rc. Xiaomi devices
on sm6125 do not have a metadata partition out of the box, so things
like "Google Play system update" will fail to install the update.

Therefore, create a dummy directory under /data/vendor/metadata_apex
and symlink it to /metadata/apex.

The reason why the old /data/apex/sessions directory is not used
for the symlink is that apexd will call migrateSessionsDirIfNeeded()
to recursively copy things from the old directory to the new one.
Creating the symlink from /data/apex/sessions may result in
unintended behaviors.

Signed-off-by: OdSazib <odsazib@gmail.com>
2021-02-09 20:53:35 +06:00
OdSazib
bdd0d21f13
sdm660-common: Checkout rootdir and init stuffs from caf
* adapt with eas and cleanup unnecessary stuffs
* Fixed offline charging and usb functions

Signed-off-by: OdSazib <odsazib@gmail.com>
2021-02-08 14:06:33 +06:00
OdSazib
2135c18643
sdm660-common: DeviceSettings: Drop userspace hall switcher
* The sensor works as it is, hence not needed anymore
2021-02-03 23:05:50 +06:00
OdSazib
d08d2d3b8e
sdm660-common: Format fstab with FBE encryption 2021-01-27 21:11:22 +06:00
Ethan Chen
beb0438736
sdm660-common: Remove wigig components
Change-Id: If730bffdf749f30ddf0dfeec8ce769848b19b17e
2021-01-21 03:26:33 +06:00
Martijn Coenen
6580fdc5be
sdm660-common: Disable dm-verity hash prefetching.
Prefetching appears to have a slightly negative effect on boot time, and
actually makes boot time much worse when the available dm-bufio cache
shrinks. Since we anticipate the dm-bufio cache will shrink (because of
an increasing number of APEX dm-verity targets), disable prefetching
completely.

Boot time w/o this change:  12.085
Boot time with this change: 11.958

Boot time w/o this change with 128kB dm-bufio cache: 22.82
Boot time with this change with 128kB dm-bufio cache: 12.007

Test: atest google/perf/boottime/boottime-test
Bug: 136247322
Change-Id: I12e342c5692fa89855d9c217f2e94287ff5642a6
2020-12-30 22:06:56 +06:00
Sami Tolvanen
841ea5390b
sdm660-common: verity: call verity_update_state
Needed to set up partition.%s.verified properties.

Bug: 29277442
Change-Id: I295668c454e7e16018e1e4c3bafce5e317616069
2020-12-30 22:06:56 +06:00
pix106
4396258ea5
sdm660-common: add /misc to fstab_A.qcom
Fixes "failed to find /misc partition" when trying to reboot to recovery on lavender
2020-12-30 22:06:56 +06:00
OdSazib
d40220f154
sdm660-common: Enable block-based 2GB zRAM for EAS
* Guard the post boot script for HMP only

Partially reverts commit fd809eba57.
Signed-off-by: OdSazib <odsazib@gmail.com>.
2020-12-22 20:57:05 +06:00
Subhajeet Muhuri
9e9d75e6cd
sdm660-common: rootdir: Add proper permissions for dt2w nodes
* Fixes DT2W with power-libperfmgr

Change-Id: Ie5a66319213c6f8f2f9258deafa0229864acca66
Signed-off-by: OdSazib <odsazib@gmail.com>
2020-12-22 20:57:05 +06:00
OdSazib
653193fee0
sdm660-common: rootdir: Set permissions for nodes used by power HAL
* Reference:
   LineageOS/android_device_essential_mata@958fc78

Change-Id: I35ef4b2fcd83efaf10931f670801c6fc32339ea1
Signed-off-by: OdSazib <odsazib@gmail.com>
2020-12-22 20:57:05 +06:00
joshuous
fd869a1e7f
sdm660-common: rootdir: performance: Update power tweaks for EAS
Change-Id: I4133201f0735777a86f3bd59b007774cd7552304
Signed-off-by: OdSazib <odsazib@gmail.com>
2020-12-22 20:57:04 +06:00
OdSazib
928c7ac4f5
sdm660-common: Remove qti IOP stack
* Useless in EAS

Signed-off-by: OdSazib <odsazib@gmail.com>
2020-12-22 20:57:04 +06:00
Demon Singur
d16263c5aa
sdm660-common: remove qti perf stack
Change-Id: I4ddac4cd7a9300a0f57c11c805e14d398b446213
Signed-off-by: OdSazib <odsazib@gmail.com>
2020-12-22 20:57:04 +06:00
OdSazib
9492d1fa58
sdm660-common: Use stock poweroff charging animation
* It's best animation out there with battery level

This reverts commit 9271fec5a4.
Signed-off-by: OdSazib <odsazib@gmail.com>
2020-12-21 09:19:25 +06:00
Ramakant Singh
11b714d506
sdm660-common: init: Add vendor prefix for shell
qti_init_shell renamed to vendor_qti_init_shell in order
to avoid SELinux denials

Change-Id: I4cfe1d8e15892a4948ece52aa799b2a60826d5f9
2020-12-13 18:37:01 +06:00
Manish Sarkar
827e1a8e00
sdm660-common: init: remove lct diag
We dont need you at all

05-28 19:19:49.428     0     0 I init    : Command 'rm /data/vendor/lct_diag/client_*' action=post-fs-data (/vendor/etc/init/hw/init.qcom.rc:371) took 0ms and failed: unlink() failed: No such file or directory

Signed-off-by: Manish4586 <manish.n.manish45@gmail.com>
Change-Id: I1d25b638e9385494f7ce883bab71ddab480559e0
2020-12-13 18:37:01 +06:00
OdSazib
0127312090
sdm660-common: fix: unable to decode UID for 'sensors': getpwnam failed
No such file or directory, Yet!

Change-Id: Ibbf773b1b238c1172ea639e47ffe59db2a1112ed
Signed-off-by: OdSazib <odsazib@gmail.com>
2020-12-13 18:37:01 +06:00
Dhananjay Kumar
d857ac4ea0
sdm660-common: rootdir: update audio hal service override as per latest base service definition
Change-Id: I1c57ad2e448a95230a4adfff8fba94ffb0cddead
2020-12-13 18:37:01 +06:00
Demon000
ecae69c66c
sdm660-common: init: remove deprecated load_system_props calls
Change-Id: Iefefd50e20e3e54202b6c177891d440113993444
Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@gmail.com>
2020-12-13 18:27:09 +06:00
Jimmy Chen
a38fe7fd69
sdm660-common: wifi: move supplicant service init to wpa_supplicant
Bug: 138790309
Test: boot and wifi function is ok
Change-Id: I35cf3e03566443e20799623045eacd423fd7f5c4
2020-12-13 18:15:48 +06:00
Davide Garberi
86cc5f4fc7
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 <subhajeet.muhuri@gmail.com>
Signed-off-by: OdSazib <odsazib@gmail.com>
2020-12-13 18:15:48 +06:00
Shrikara B
5350c9d183
sdm660-common: rootdir: Set Netflix and media property based on target
Add support to set "ro.netflix.bsp_rev" property at run time
depending on the target. This is needed when 2 or targets are
binary compatible, but have different Netflix proprty for
device whitelisting.

Change-Id: I9484f2886a8b7d986c762fa9031c0e541f15c7e1
2020-10-26 04:25:14 +06:00
Ashish Jain
94677f5db6
sdm660-common: init: Update ueventd rules and init rc for new audio drivers
Update uventd rules to move new audio drivers to audio group.
Update init rc to move audio sysfs node to audio group.

Change-Id: I8e5230e04090b3555e32c0404401dddacea1cd15
2020-10-26 04:25:14 +06:00
Thomas (Wonyoung) Yun
a1008929de
sdm660-common: rootdir: Grant rw permission to hgsl node
qcom: User app needs to open /dev/hgsl node for doorbell enablement.

Change-Id: I9a83e76a441f4001f40ec805bd8081355aa1c79d
2020-10-26 04:25:14 +06:00
OdSazib
9bd430ff9b
sdm660-common: XiaomiParts: Add Headphone & Mic Gain
* This is manually ported by me from Lavender tree on Corvus-Devices
* Thanks @StyloGey for reviewing the java code and giving me a better solution
* Original repo: https://github.com/Corvus-Devices/device_xiaomi_lavender.git

To get it working, you need these two commits in your kernel:
> c04d6d6e61
> 8e25ac3318

Signed-off-by: OdSazib <odsazib@gmail.com>
Change-Id: I1bb48ced1f23728daa2e5170647ce08a04347110
2020-10-19 11:36:06 +06:00
OdSazib
7580f5f636
sdm660-common: XiamiParts: Add FPS Info Overlay
* Ported from: https://github.com/Corvus-Devices/device_xiaomi_lavender.git

Signed-off-by: OdSazib <odsazib@gmail.com>
2020-10-19 11:36:06 +06:00
melia
3648c48235
qcom : device : Update static iuicc names in device
Update static iuicc names in device to handle dynamic iuicc names

Change-Id: I60f1de9ce14b79714762939dd9ee48c17a9ed123
2020-10-19 11:36:06 +06:00
LuK1337
56e1c00575
sdm660-common: Don't set ro.alarm_boot
* We don't support alarm_boot anyway, also
  it's not getting set because of SELinux denial:
[    7.243347] selinux: avc:  denied  { set } for property=ro.alarm_boot pid=556 uid=0 gid=0 scontext=u:r:vendor_init:s0 tcontext=u:object_r:default_prop:s0 tclass=property_service permissive=0\x0a
[    7.243470] init: Unable to set property 'ro.alarm_boot' to 'false' from uid:0 gid:0 pid:556: SELinux permission check failed

Change-Id: Ia188bac2d2aa466c23dabd9dc50ee1f58e6ab7ee
2020-10-19 11:36:06 +06:00
Vol Zhdanov
6c2913c9b8
sdm660-common: add qcom early boot script
* to control power off alarm feature

Change-Id: I0d2f5b96f8604d459130aec5f20f87cc75c7bad0
2020-10-19 11:36:06 +06:00
Dušan Uverić
fa33bc54b6
sdm660-common: rootdir: migrate tunables from post-boot to init.performance.sdm660
Signed-off-by: Dušan Uverić <dusan.uveric9@gmail.com>
Change-Id: I00cd6a57a8e7401160aa9eefb96b73ce13a20b3c
2020-10-19 11:36:06 +06:00
Max Weffers
d713c78f27
sdm660-common: init: Remove unexistent sensor service
Change-Id: I5128d119a914827aa394d0782c035e0ca35296e0
2020-08-12 02:11:34 +06:00
Mohammad Asaad Akram
8fac1ec84b
sepolicy: remove deprecated code for avc denial error cleanup
This patch will remove deprecated code for wpa_supplicant
which is creating symlink with system directory.

Change-Id: I95d1c61ab59addc04c1e7d462529bb9400bbfe92
CRs-Fixed: 2644788
2020-08-12 02:11:32 +06:00
Amit Kushwaha
04162ebc76
init.qcom.rc: Removing unused setprop persist.camera.gyro.disable
Addressing error :
 avc:  denied  { set } for property=persist.camera.gyro.disable pid=377 uid=0 gid=0
 scontext=u:r:vendor_init:s0 tcontext=u:object_r:default_prop:s0
 tclass=property_service permissive=0\x0a

CRs-Fixed: 2662429

Change-Id: Ibd0ed4646d52d67248ea33940c4463ecdbdefc36
2020-08-12 02:11:32 +06:00
Max Weffers
fd809eba57
sdm660-common: setup ZRAM in post boot
This reverts commit 24e254a55f3ba32be838c7d1ab36bf65d4362fbe.

Change-Id: I90f690a4b833d94c235fccf56b8d679eb25591d2
2020-08-12 02:11:32 +06:00
Stylogey
323a9a6357
sdm660-common: rootdir: add vendor.cdsprpcd
Change-Id: Ibf8a049cb9c0c4e013e0904282f23ec71dc43f0b
2020-08-12 02:02:40 +06:00
Stylogey
0d5c6a79f6
sdm660-common: remove improvetouch related stuff
* Not host based touch processing isn't supported by the touchscreen.

Change-Id: Ibc841d8c36eda56e58184286676e1d710ff18392
2020-08-12 02:02:40 +06:00
Max Weffers
325d20178b
sdm660: fstab: Switch back to FDE for AB Targets
Change-Id: I2571ef2337b8c6a0acacc8cae7ba6e25bca52f3d
2020-08-12 02:02:40 +06:00
Max Weffers
ffcf3b7f22
sdm660-common: init: remove double definied services
*they are moved to vendor blob rc files

Change-Id: If213f6ba26f9f6d4e6ac3799a1d70ab4e2f3713f
2020-08-12 02:02:40 +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
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
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
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
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
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 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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