Commit graph

143 commits

Author SHA1 Message Date
Edwin Moquete
097c21d39f sdm660-common: Update radio blobs from ginkgo
* Cleanup and disable ATFWD

Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-05-15 10:25:30 +02:00
clarencelol
efae553016 sdm660-common: rootdir: Update init.rc and init.sh
from LA.UM.9.2.1.r1-08000-sdm660.0

Signed-off-by: pix106 <sbordenave@gmail.com>
2022-03-26 11:56:34 +01:00
Ramii Ahmed
2c26a1a22f sdm660-common: rootdir: Add offline charging LED indicator
* Write to node to turn on LED in offline charging mode

Change-Id: Iee02ac9af0438b5bc4dcf08dfe19e10226d7090e
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-02-16 20:58:05 +01:00
Max Weffers
bbc6ad98ce sdm660-common: sepolicy: Add Hardware Info permssions and sepolicy rules
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-02-16 20:55:38 +01:00
clarencelol
47483c3278 Revert "sdm660-common: Replace writepid with task_profiles command for cgroup migration"
* We are still using stune boys

This reverts commit 0c04a7b0bf330fc90da49e6a30deccaab4fdaf99.

Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
Abhiprayah Tiwari
6db25b0325 sdm660-common: rootdir: remove mounting of debugfs
Mounting debugfs is no longer allowed in android S from rc scripts.

Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
Suren Baghdasaryan
96b67cba6d sdm660-common: Replace writepid with task_profiles command for cgroup migration
writepid command usage to join a cgroup has been deprecated in favor
of a more flexible approach using task_profiles. This way cgroup path
is not hardcoded and cgroup changes can be easily made. Replace
writepid with task_profiles command to migrate between cgroups.

Bug: 191283136
Test: build and boot
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: If0a64b9f335ad13f65522361b125cab951002a2c
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:32 +01:00
ZeeLog
8b84e6839b sdm660-common: init: Remove bogus paths/perms
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-11-13 11:32:12 +01:00
pix106
445da676e7 sdm660-common: rootdir: fix blkio background path
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-11-13 11:31:51 +01:00
Alex Naidis
564ddb664d
sdm660-common: Override readahead to 128KiB after post-boot
* Qualcomm decided to increase the read-ahead value to 512KiB [1].

 * This value resulted in frequent cases where read-ahead
   would be waiting for new I/O requests and thus ending
   up being synchronous rather than asynchronous.

 * As result, the main goal of Qualcomm's patch [1] which
   is to increase throughput ends up in a regression where
   read throughput is significantly lower than it ever
   would be with the recommended [2] read-ahead value.

 * This patch uses our existing loop in ramdisk to set
   the read-ahead value to 128KiB.

[1] https://source.codeaurora.org/quic/la/kernel/msm-4.19/commit/include/linux/mm.h?h=LA.UM.9.12.r1-09000-SMxx50.0&id=25d04e4ceb7c067907901842c223d62973d73a75
[2] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/include/linux/mm.h?h=v4.19.160#n2397

Change-Id: I1980d904568fe4f1ce7b676452bcc44e4689f02f
Co-authored-by: clarencelol <clarencekuiek@icloud.com>
2021-06-27 22:21:00 +06:00
Ratoriku
c6c3996974
sdm660-common: Stop creating IOP deamon dirs
* Since we don't use IOP hals anymore

Signed-off-by: Ratoriku <a1063021545@gmail.com>
Signed-off-by: Anush02198 <Anush.4376@gmail.com>
2021-06-27 22:21:00 +06:00
OdSazib
e9bec8a155
sdm660-common: rootdir: Clean up init stuffs 2021-05-18 05:04:03 +06:00
clarencelol
cb2bb349c8
sdm660-common: rootdir: Add missing max_comp_streams in init
- To align with https://github.com/OdSazib/device_xiaomi_sdm660-common/blob/11/rootdir/etc/fstab.qcom#L14

Signed-off-by: clarencelol <clarencekuiek@icloud.com>
2021-03-18 07:32:54 +06:00
nullbytepl
1e82d9734b
sdm660-common: rootdir: start themed_bootanimation before bootanim 2021-03-02 23:43:22 +06:00
PIPIPIG233666
206f51bad0
sm660-common: Create socket for /dev/socket/audio_hw_socket
Change-Id: If4c5b944efb8dde3093ccb7b8f1dca746a02e043
2021-03-02 23:43:22 +06:00
OdSazib
1edf16f04c
sdm660-common: apex: Symlink metadata to existing sessions
* Better we do this instead of creating extra dir
2021-02-16 18:50:35 +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
Ethan Chen
beb0438736
sdm660-common: Remove wigig components
Change-Id: If730bffdf749f30ddf0dfeec8ce769848b19b17e
2021-01-21 03:26:33 +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
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
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
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
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
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
idabgsram
7e0da6d532
sdm660-common: Switch to Filebased-metadata encryption
Change-Id: I0fd387c6be606e9658fa4badeaf9ac75f7987af0
2020-08-12 02:02:36 +06: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
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
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
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