Commit graph

386 commits

Author SHA1 Message Date
Alcatraz323
2d4da6b804 sdm660-common: rootdir: correct xiaomi usb vendor/product id
* before Bus 001 Device 010: ID 18d1:4ee2 Google Inc. Nexus/Pixel Device (MTP + debug)
* after Bus 001 Device 015: ID 2717:ff48 Xiaomi Inc. Mi/Redmi series (MTP + ADB)

Signed-off-by: pix106 <sbordenave@gmail.com>
2023-03-20 07:18:06 +01:00
Vladimir Mikhailov
6eaa16c9e8 sdm660-common: rootdir: Restore CAF cpuset settings
Change-Id: I80b4ead18bf4f485e9183c55fb2030a7f3b381d4
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-03-20 07:18:06 +01:00
Alex T
5175cbf5a9 sdm660-common: rootdir: Put tftp in a group
Fixes following spamfest:

09-09 06:49:00.304   823   823 I tftp_server: pid=823 tid=823
tftp-server : INF :[tftp_server.c, 667] rcvd >
09-09 06:49:00.304   823 12138 I tftp_server: pid=823 tid=12138
tftp-server : INF :[tftp_server_utils.c, 11>
09-09 06:49:00.304   823 12138 I tftp_server: pid=823 tid=12138
tftp-server : INF :[tftp_server.c, 1222] OA>
09-09 06:49:00.304   823 12138 E tftp_server: pid=823 tid=12138
tftp-server : ERR :[tftp_os_la.c, 191] unli>
09-09 06:49:00.305   823 12138 I tftp_server: pid=823 tid=12138
tftp-server : INF :[tftp_server.c, 893] Usi>
09-09 06:49:00.305   823 12138 I tftp_server: pid=823 tid=12138
tftp-server : INF :[tftp_os_la.c, 63] open >
09-09 06:49:00.305   823 12138 E tftp_server: pid=823 tid=12138
tftp-server : ERR :[tftp_os_la.c, 70] open >
09-09 06:49:00.305   823 12138 I tftp_server: pid=823 tid=12138
tftp-server : INF :[tftp_server.c, 927] ope>
09-09 06:49:00.305   823 12138 E tftp_server: pid=823 tid=12138
tftp-server : ERR :[tftp_server.c, 1718] op>
09-09 06:49:00.305   823 12138 E tftp_server: pid=823 tid=12138
tftp-server : ERR :[tftp_protocol.c, 1229] >

Change-Id: I60fcc9530a69326bb3fc92beed1cdb4221d6ddd9
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-03-20 07:18:06 +01:00
boedhack99
6c5b6a61e3 sdm660-common: rootdir: Remove useless nqnfcinfo service
- non-existing

- init: Could not start service 'nqnfcinfo' as part of class
'late_start': Cannot find '/system/vendor/bin/nqnfcinfo': No such file
or directory

Change-Id: I2ded3327ba721f629b7f5ea31d6861fed0e7c6c4
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-03-20 07:18:06 +01:00
Ethan Chen
8a6b121b1b sdm660-common: rootdir: Remove unnecessary QTI logkit directories
* We do not use logkit

Change-Id: I7719bbcebbd053addd16684926eff30d46b945d8
Signed-off-by: ImSpiDy <spidy2713@gmail.com>
Signed-off-by: wHo-EM-i <ehteshammalik18998@gmail.com>
Signed-off-by: ImPrashantt <prashant33968@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-03-20 07:18:06 +01:00
pix106
318fc92825 Revert "sdm660-common: fstab: Drop 'quota' Flag"
This reverts commit daf11032ed.
2023-02-10 06:57:55 +01:00
Immanuel Raj
b37e47c9d1 sdm660-common: Add fsverity flag to userdata
After many comments and logs and research this was found to be missing and causing error

Ref https://forum.xda-developers.com/t/rom-12-xiaomi-mi-a2-pixelexperience-aosp-25-07-2022.4406351/post-87199577

Meanwhile adding this line in the fstab fixes this stuff

Ref https://android-review.googlesource.com/c/device/google/cuttlefish/+/1458807

first Api level>=30 doesnt need that flag but sadly we are 27 so yeah lets add it

Signed-off-by: Immanuel Raj <iamimmanuelraj@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-01-12 07:50:37 +01:00
pix106
0fcf8ea137 Revert "sdm660-common: Migrate to Xiaomi power AIDL HAL"
Revert "sdm660-common: rootdir: Clean part of Unexported properties"
Revert "sdm660-common: power-libperfmgr: Reduce GPU idle timer to 64ms"
2023-01-04 06:23:14 +01:00
johnmart19
b40ca5227c sdm660-common: rootdir: Clean part of Unexported properties
This properties are unused for our purposes, so let's remove it to do not trigger Selinux spam

Signed-off-by: pix106 <sbordenave@gmail.com>
2022-12-27 07:34:56 +01:00
Bruno Martins
71c49fcc8c sdm660-common: Migrate to Xiaomi power AIDL HAL
Change-Id: I42170d51a517170b58d532addd9c38496e43457c

jasmine_sprout: Remove QTI perfd

Bug: 69270928
Test: Build and boot device and test camera
Change-Id: I87b283206f462fb5c8ec9cdd303ae2934fe9bfc4

jasmine_sprout: Declare BOARD_VENDOR

* Needed for xiaomi-perfmgr power AIDL guards

Change-Id: Idbb48e0f9b01090a456ad5d3f2d51f4dfab55672

jasmine_sprout: Create dummy libqti-perfd-client

* proprietary perfd blobs can finally be nuked without breaking goodix
* we could even map the functions to use libperfmgr powerhints in the future

[SebaUbuntu]: Cleanup Android.bp and add copyright header

Change-Id: I124652f3041761966a3e3bd97c757fecc39cc5fb

jasmine_sprout: libqti-perfd-client: Remove namespace declaration

It's pointless when using extern "C".

Change-Id: Ibdf9f06a70aa3a75687b33781c78cf2172bb334d

jasmine_sprout: libqti-perfd-client: return a dummy value

Return a positive integer for perf lock acquire and release so
that Goodix/FPC fingerprint sensor blobs will not complain.

Goodix:
E [goodixHAL][gf_hal_milan_f_series]: goodix_perf_lock_acquire: Failed to acquire perf lock, err: 0
E [goodixHAL][gf_hal_milan_f_series]: goodix_perf_lock_release: Perf lock release error 0

FPC:
E fpc_tac : fpc_perf_lock_acquire: Incorrect params, Failed to acquire perf lock, err
E fpc_tac : fpc_perf_lock_release: Perf lock release error 0

Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
Change-Id: I861672e9a738c2204755d802670f4b28b662f286

jasmine_sprout: libqti-perfd-client: Move to C

* Why bothering with C++ mangling when we can just build it as a standard C library?

Change-Id: I45ea977edf7ea7fab6fece76f3049654a8d24c5d

jasmine_sprout: Add powerhint.json jasmine

Change-Id: If270fc906fd833bb6b0d3b00621c0b079346e47d

jasmine_sprout: rootdir: Initial libperfmgr init config

* From coral, heavily stripped down

Change-Id: Ib6846e4f4f23baf56910d2330e26846b99830218

jasmine_sprout: sepolicy: Initial libperfmgr sepolicy

Change-Id: I3d0a259bc89b4ecd0bf1632199172710d98230e0

jasmine_sprout: Don't explicitly build older minor version HIDL libs

Change-Id: Ib0caa49054a79b1f01ffc751826286a29c642e06

jasmine_sprout: Remove QTI perf reminants

jasmine_sprout: Add back ro.vendor.extension_library definition

 * We aren't using QCOM's perfd but our blobs still check for this.
 * To avoid unnecessary errors, let's just add it back.

Change-Id: Icc44b330f21a658cfa8ded691a6628d8f62c3649
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-12-27 07:34:56 +01:00
Jaegeuk Kim
85cb35c50a sdm660-common: rootdir: Remove discard command tuning
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: I2e6e50947d9aa1213910875cf7e6e5c714c1b255
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-12-22 04:56:19 +01:00
DarkJoker360
23cfad55ab sdm660-common: rootdir: Stop bootanimation service after boot
* Some users reported bootanimation lags and freezes
  after a while. Looking from logs it fails to exit
  once boot is completed. Stopping bootanimation
  service, as workaround, is preventing this issue.

Signed-off-by: DarkJoker360 <simoespo159@gmail.com>
Signed-off-by: 7Soldier <reg.fm4@gmail.com>
Signed-off-by: Vitorgl2003 <vitorgl.2003@gmail.com>
Signed-off-by: ImPrashantt <prashant33968@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-12-22 04:56:19 +01:00
Wei Wang
922a254885 sdm660-common: make powerhal starts handling powerhint after
boot_complete

some sysfs node may not be ready before boot_complete:
e.g. we are delaying bw_hwmon in favor of boot time

Bug: 80321544
Test: Boot and check powerhint handling
Change-Id: I8d2cfa332d9cf9fbafdfa3f48ffff4105c6bcaae
Signed-off-by: ImPrashantt <prashant33968@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-12-22 04:56:19 +01:00
pix106
8c51bf6479 Revert "sdm660-common: rootdir: start themed_bootanimation before bootanim"
This reverts commit 1e82d9734b.
2022-12-22 04:56:19 +01:00
jro1979oliver
f13ea08789 sdm660-common: Disable zram writeback
Causes memory leaks after sometime

Signed-off-by: Immanuel Raj <iamimmanuelraj@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-12-19 07:17:51 +01:00
Georg Veichtlbauer
47fefaefe3 sdm660-common: Remove max ZRAM compression streams setting
Kernels >4.7 will create a comp stream for each online CPU
and ignore /sys/block/max_compression_streams. This has been
backported to many 4.4 kernels as well.

Any device running a kernel with the upstream commit can safely remove
the parameter.

Upstream commit: 43209ea2d17aae1540d4e28274e36404f72702f2

Change-Id: Ibb29b54a31f0fb5bd941d7709d15d571dd77ebf5
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-12-19 07:17:51 +01:00
pix106
d08f2d8e01 sdm660-common: fstab_A: add f2fs entry for /data 2022-11-07 08:15:11 +01:00
Roberto Sartori
daf11032ed sdm660-common: fstab: Drop 'quota' Flag
Not supported on Android 13.
Upgrade from previous releases is working.

Signed-off-by: Roberto Sartori <roberto.sartori.android@gmail.com>
Change-Id: I6654673964d4a9ede9f503242a8097fcc1678c3b
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-11-07 08:15:11 +01:00
clarencelol
fe0aeb3704 sdm660-common: Nuke msm_irqbalance
* Not necessary needed, 32bit stuffs

Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-10-11 08:47:30 +02:00
Mohammed Mirza Mandayappurath Manzoor
aea062f56e sdm660-common: rootdir: Set permissions for KGSL sysfs node
Some KGSL sysfs nodes need to be access controlled. Set proper
permissions for the same.

Change-Id: Idc7e2447d02742074873901c6539f2c6d9d25862
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-10-03 07:38:00 +02:00
Sebastiano Barezzi
ea5d850def sdm660-common: Use QTI USB init configs from USB HAL repo
Change-Id: I966d251a2756c9d9e91f621cbc5872448d022de4

Signed-off-by: pix106 <sbordenave@gmail.com>
2022-09-13 06:57:01 +02:00
wHo-EM-i
d2d165c870 sdm660-common: fix fp wakeup issue
* temporary fix for wake-up issue on GDX sensor
* disabled vendor.fps_hal after finishing boot(still usable since it was started already on boot-up, fingerprint option still available on Settings > Security > Figerprint)
* also guarded it for GDX sensor only so it won't stop for devices with FPC sensor

Signed-off-by: wHo-EM-i <ehteshammalik18998@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-09-04 09:21:04 +02:00
Bruno Martins
e9158b0df3 sdm660-common: rootdir: Keep powersaving disabled during boottime
Sleep modes are then turned on once boot is completed
or during off-mode charger mode.

Signed-off-by: ImPrashantt <prashant33968@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-09-03 11:59:00 +02:00
pix106
bb671d5144 sdm660-common: Switch back to FBE v1 for fstab.qcom
This reverts commit 67ad9e979f.
2022-08-21 18:05:00 +02:00
pix106
ce09f0e3af sdm660-common: DeviceSettings: Adapt vibration control to QTI Haptics
* needs kernel support
2022-07-29 13:48:08 +02:00
TheStrechh
70c44c3d3f sdm660-common: rootdir: add recovery label
* KeyError: '/recovery'

Signed-off-by: OmarAlCoptan <omarcoptan9@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-07-04 07:40:35 +02:00
pix106
86342b3f57 sdm660-common: Drop SSR services 2022-06-06 12:41:59 +02:00
xdevs23
55a0c223f3 sdm660-common: rootdir: Hide Magisk Better
* Some banking apps read the file /proc/net/unix to
find out whether things like Magisk are installed/running.

To prevent that, chmod it 440.
This file isn't needed by any other process when boot is finished.

I've tested this and banking apps that did not work before
and recognized Magisk being installed now don't recognize
that and work just fine.

Signed-off-by: anandhan07 <anandhasayanan007jb@gmail.com>
Signed-off-by: rk134 <rahul.kantrapally@gmail.com>
Signed-off-by: Rahul K <rahul-k@bigdi.cc>
Signed-off-by: rk134 <rahul-k@bigdi.cc>
Signed-off-by: OmarAlCoptan <omarcoptan9@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-06-06 12:39:56 +02:00
Ethan Chen
039f0a52c0 sdm660-common: rootdir: Do not override ro.vendor.gpu.available_frequencies
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-05-15 10:28:28 +02:00
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
pix106
7f5c98e112 sdm660-common: Bring back folio daemon and userspace hall switcher
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-03-26 11:56:35 +01:00
pix106
79ac7ec9e1 sdm660-common: Decommonize mount_all
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-03-26 11:56:34 +01:00
clarencelol
81afccac41 sdm660-common: rootdir: Re-adjust SchedTune
* Set it on init instead of after boot
* Add camera-daemon schedtune
* Fix some derp

Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-03-26 11:56:34 +01:00
clarencelol
4f107e00f9 Revert "sdm660-common: power-libperfmgr: Boost top-app task placement only on INTERACTION boost"
This reverts commit 1229fc5a8473c7ea99e90c4ff0a6f6d3a05a8b14.

* Nuked the schedtune.prefer_high_cap in kernel so it is not useful anymore
* Partially reverts only as some are still useful

Signed-off-by: pix106 <sbordenave@gmail.com>
2022-03-26 11:56:34 +01:00
clarencelol
c7b7bae281 Revert "sdm660-common: Fix TASchedtuneBoost at 1"
This reverts commit 3c23ca2aaf3135c43ce6f9507b153c37928d4467.

Signed-off-by: pix106 <sbordenave@gmail.com>
2022-03-26 11:56:34 +01:00
Bavyasritha Alahari
ab118a0407 sdm660-common: rootdir: ueventd: Add msm_adsp_sleepmon dev
Provide permissions for msm_adsp_sleepmon dev

Change-Id: I8c2cd12ba4e0e06b2ffc46dbaff9423f9175fdb6
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-03-26 11:56:34 +01:00
Chris Goldsworthy
d517c178e3 sdm660-common: rootdir: ueventd: Make all mem_buf VM files read-only for all
The mem_buf VM files under /dev/mem_buf_vm/ are only ever opened with
O_RDONLY permissions.  Additionally, processes not in the 'system'
group need to be able to open the mem_buf VM files.  Correspondingly,
make the permissions for all of these VM files 444.

Change-Id: Icfb2249c964ccc914db1c904274d9ff40d0f1535
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-03-26 11:56:34 +01:00
Siddharth Gupta
b55ad3db3f sdm660-common: rootdir: ueventd: Add devcoredump sysfs nodes
This change adds the devcoredump sysfs nodes to the ueventd rc
which is used for ramdump collection of remoteprocs.

Change-Id: I7112a1196f343d4398245147d7bcf6650ed34707
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-03-26 11:56:34 +01:00
Chris Goldsworthy
68e4339387 sdm660-common: rootdir: ueventd: Restrict permissions to DMA-BUF heap files to read-only
We currently set all heaps to have RWX permissions of 644. However,
libdmabufheap only opens the heap files as O_RDONLY. Reduce the
permissions to 444 accordingly.

Additionally, stop overriding the default permissions given to the
system, system-uncached and system-secure heaps (which all have RWX
perrmissions of 444).

Change-Id: Icc6159acc494ab169a6d04fd86732c1b126e7b15
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-03-26 11:56:34 +01:00
pavanisr
dc06377327 sdm660-common: rootdir: ueventd: Add msm_audio_ion_cma dev
- to comply with device tree entry

Change-Id: I7fd62a60992352cae2d9fa63a6e2fca223e7848f
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-03-26 11:56:34 +01:00
Patrick Daly
7e95f80cb9 sdm660-common: rootdir: ueventd: Add support for MEM-BUF VMs
The char devices under /dev/mem_buf_vm each represent a
Virtual Machine to which HLOS can transfer or share memory
using an ioctl.

Change-Id: If3546148204e3b1c389975d3ec9aabd265b03012
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-03-26 11:56:34 +01:00
Siddharth Gupta
0db7144732 sdm660-common: rootdir: ueventd: Add permissions for remoteproc nodes
Add permissions for peripheral manager to be able to access remoteproc
nodes in order to boot modem.

Change-Id: I04ab76ef8e17c4b68c2662de57e26499201b8b3d
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-03-26 11:56:34 +01:00
Ashish Jain
8eb5003e09 sdm660-common: rootdir: ueventd: 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: I9167b5be9825a797cb06e907f188a1490e12b96b
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-03-26 11:56:34 +01:00
Chris Goldsworthy
e95c5905ba sdm660-common: rootdit: ueventd: Add support for DMA-BUF heaps
Give access to /dev/dma_heap, with the same permissions given to
/dev/ion.

Change-Id: I4516f8771a65ee799b0ad033c37368970221325c
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-03-26 11:56:34 +01: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
pix106
39277b6405 sdm660-common: change battery charge led trigger to battery-charging-or-full
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-03-26 11:56:34 +01:00
Edwin Moquete
67ad9e979f sdm660-common: Switch to FBE v2 for fstab.qcom
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-03-26 11:56:34 +01:00
Adithya R
fbd91b6f05 sdm660-common: init: Add MIUI camera flag from stock
* Prebuilt libcameraservice sets this prop to 1 if the running camera
   app is MIUI/ANX camera, and 0 otherwise

 * This is needed to unlock all functions of MIUI/ANX camera in
   the camera HAL, such as pro mode controls, beauty modes, portrait
   depth slider and much more, and mainly fixes excess noise in
   camera shots taken with our ultrawide lens

 * We won't keep the prop enabled by default because as long as its
   enabled, gcam/mods crash immediately on launch and we don't want
   that. So let's retain the stock behaviour instead.

[clarencelol]: * avc: denied { set } for property=sys.camera.miui.apk pid=1008 uid=1047 gid=1005 scontext=u:object_r:system_prop:s0 tclass=property_service permissive=0

Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-02-21 06:52:18 +01:00
pix106
3e89995330 Revert "sdm660-common: rootdir: Enable fbe encryption"
This reverts commit 152ad7e525.
2022-02-16 20:58:05 +01:00
Edwin Moquete
5cd3f2925c sdm660-common: Update blobs from S62Pro RKQ1.210406.002
* Thanks to edwin for the blobs

Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-02-16 20:58:05 +01:00
pix106
7033bb6443 sdm660-common: enable battery charge led trigger
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-02-16 20:58:05 +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
Subhajeet Muhuri
1d689363f6 sdm660-common: Fix TASchedtuneBoost at 1
[clarencelol: It improves scrolling janks in my testing]
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
Wei Wang
8d4c63cf3d sdm660-common: power-libperfmgr: Boost top-app task placement only on INTERACTION boost
With the kernel patch to separate placement hinting part of
boost signal on placement into a prefer_high_cap hint knob,
TA will lose the boost placement hint.
This CL adds placement hinting back to TA when INTERACTION
is on.

Bug: 144451857
Test: Boot & run jank test.
Change-Id: I3dcb39804d5bbaff344fbdaf64548335a1fdf1ea
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
clarencelol
d68c522d5a sdm660-common: rootdir: Exclude adsprpcd and cdsprpcd in target.rc
* They are using standalone script now

Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
orges
ecd8dd08bd sdm660-common: rootdir: Configure and add more cpusets from 4.4
Signed-off-by: orges <me@orgesified.ml>
Change-Id: I85271cf5c420c74276fb0c6f26ce3d7fb9b1b8b6
Signed-off-by: clarencelol <clarencekuiek@icloud.com>

[clarencelol]: Moved post_boot cpusets to init.target instead

Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
Ratoriku
65329561c4 sdm660-common: rootdir: Fix permissions for dynamic thermal profile
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
Qimeng Pan
748f477ad7 sdm660-common: rootdir: Rename power_off_alarm
Since power_off_alarm is vendor module, so rename it to
vendor.power_off_alarm

Change-Id: Ib4bf6574117cd6b0a381d96de2abf4907a54785d
CRs-Fixed: 2858409
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
Edwin Moquete
8531a65e4c sdm660-common: rootdir: Update wlan module path
Signed-off-by: Anush02198 <Anush.4376@gmail.com>
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +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
orges
dd48eb6c52 sdm660-common: power-libperfmgr: Set top-app schedtune value according to coral
* according to
   https://android.googlesource.com/device/google/coral/+/refs/heads/master/init.hardware.rc#126
   and https://android.googlesource.com/device/google/coral/+/refs/heads/master/powerhint.json#148

[clarencelol]: Remove schedtune.boost in init.target.rc and let powerhint handle it

Signed-off-by: clarencelol <clarencekuiek@icloud.com>
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
UtsavBalar1231
56960ecd78 sdm660-common: rootdir: Add vendor prefix to rmt_storage
* As per the init.qcom.rc service defination has vendor prefix
* This Fixes:
I init    : Command 'start rmt_storage' action=boot (/vendor/etc/init/hw/init.target.rc:161) took 0ms and failed: service rmt_storage not found

Change-Id: I271adb887b9420d631e67eb4e7f436f0cd931f32
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
pix106
152ad7e525 sdm660-common: rootdir: Enable fbe encryption
This reverts commit b9cba38ee24b543990ed18e00734ba3145d3e4c8.

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
Gaurav Kohli
918be7c3f7 sdm660-common: rootdir: change ipa trigger level to early-boot.
On fs/post-fs trigger there are chances of vendor partition mounting,
which may block ipa loading. To prevent the same change the
trigger level.

Signed-off-by: pix106 <sbordenave@gmail.com>
2021-11-13 11:32:12 +01:00
Michael W
ede9ca9946 sdm660-common: Give proper permissions for /dev/diag
* This gives proper permission to /dev/diag node so that diag driver
  can load successfully

* Logs spam with error '-13' which basically translates to access denied/invalid permission.

* Fix this by giving system read and write access.

Change-Id: I87fe322e7c0d91a494d29213e6f657ed8a7032a6
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-11-13 11:32:11 +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
pix106
f394ee9312 sdm660-common: rootdir: set fingerprint permissions for fpc1020
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-11-13 11:31:51 +01:00
Wei Wang
d4dfc9b401 sdm660-common: rootdir: Tune zram performance
-Set max_comp_streams to num of cores since upstream also moves this to
percpu.

Bug: 38249616
Test: boot and run zram-perf showing better performance
Change-Id: I0b92b246d773db85aa03d033b2cecee54347cbd1
Signed-off-by: clarencelol <clarencekuiek@icloud.com>

[clarencelol]: I'm not sure why it got removed before, it is not deprecated yet as Google still using it
Reference: https://android.googlesource.com/device/google/redbull/+/refs/tags/android-s-beta-4/fstab.hardware

Signed-off-by: pix106 <sbordenave@gmail.com>
2021-11-13 11:31:51 +01:00
Ratoriku
e9c9caeaa3 sdm660-common: Update fstab flags from CAF
* Fixed screen lock issue when using fbe

Co-authored-by: Edwin Moquete <edwinmmoquete@gmail.com>
Signed-off-by: Ratoriku <a1063021545@gmail.com>
Signed-off-by: raiyanbinmohsin <raiyanbinmohsinshishir@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-11-13 11:31:51 +01:00
ghostrider-reborn
79c64bc007 sdm660-common: Introduce kernelspace battery saver
* Needs Kernel side support
 * This activates kernelspace battery saver via powerhal whenever
   battery saver is enabled in userspace, thereby lowering power
   consumption at kernel-level by disabling boosts and such

Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Change-Id: I2623503db27d7518de519bcaa3f5af6ab83879d0
2021-11-13 11:31:49 +01:00
OdSazib
a81f0b99a0
sdm660-common: DeviceSettings: Update notification LED path for K4.19
Signed-off-by: OdSazib <odsazib@gmail.com>
Change-Id: I063a776c16dffadf73d7f12f97995f6fad85d57c
2021-07-22 13:21:25 +06:00
OdSazib
b8c814713d
sdm660-common: DeviceSettings: Add earpiece gain
- Requires kernel support

Signed-off-by: OdSazib <odsazib@gmail.com>
Change-Id: If28b4dff421cbba5f17cd2ccfab02f2aa616a9f8
2021-07-22 13:21:03 +06: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
pix106
c2603d6ca4
sdm660-common: Force FDE encryption for A-target/lavender
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-06-15 17:32:47 +06:00
OdSazib
6ef994bba9
sdm660-common: rootdir: Set permission to powerhint nodes for k4.19
- Needed for power-libperfmgr to work properly
- Adjust TA boost value from powerhint
2021-06-15 17:32:47 +06:00
Subhajeet Muhuri
8b7fde5fdb
sdm660-common: rootdir: Enable EAS after boot
Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@aosip.dev>
2021-06-15 17:32:46 +06:00
Subhajeet Muhuri
c3cba4b899
sdm660-common: rootdir: Disable EAS on early-init
Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@aosip.dev>
2021-06-15 17:32:46 +06:00
Subhajeet Muhuri
1da7c15388
sdm660-common: /sys/devices/soc -> /sys/devices/platform/soc
Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@aosip.dev>
2021-06-07 09:21:11 +06:00
Edwin Moquete
1268269fab
sdm660-common: Update fstab for k4.14/k4.19
Signed-off-by: OdSazib <odsazib@gmail.com>
2021-06-07 09:20:53 +06:00
Bharat Pawar
abda0a0e6a
sdm660-common: Initial bring up changes for k4.14/k4.19
Initial changes to enable:
  - USB config

Change-Id: I696c3622477c689bb31fb2d12183729ece59d54b
2021-06-07 09:19:50 +06:00
OdSazib
d1dff54c3f
sdm660-common: Fix smart-charging 2021-05-28 20:30:28 +06:00
luk1337
fd31bb1a3c
sdm660-common: rootdir: Remove unsupported flags from fstab_A
* Fixes :
W [libfs_mgr]Warning: unknown flag: resize
W [libfs_mgr]Warning: unknown flag: crashcheck

Change-Id: I1ba5abb0850bed55ee4e1c496954272a1a7ccf14
2021-05-18 05:04:04 +06:00
OdSazib
e9bec8a155
sdm660-common: rootdir: Clean up init stuffs 2021-05-18 05:04:03 +06:00
Nick C
0d5cde00b2
sdm660-common: rootdir: zRAM tuning 2021-05-15 06:03:01 +06:00
Ivan Vecera
5d95e4db79
sdm660-common: rootdir: do not use absolute value for ZRAM size
Redmi Note 7 has variants with 3GB as well as for 4GB RAM.
So use 50% for ZRAM size instead of current 3GB for both.
Parameter 'max_comp_streams' is obsolete and should not be set.
Kernel currently uses always num of online CPUs.

Change-Id: Ib0157c7b4ba686a9597fd33d268dace4e0171da7
2021-05-15 06:03:01 +06:00
dianlujitao
3f8f243eda
sdm660-common: Decommonize touch HAL node permissions
Change-Id: Ic8caabd4a5cf458dfc2c91971247168de28a27ce
2021-04-11 09:29:14 +06:00
OdSazib
b42fb05f29
rootdir: Disable fbe encryption except A-target/lavender 2021-04-03 18:18:38 +06:00
OdSazib
0047cdbf79
sdm660-common: Update common tree and adapt changes
* Adjust with wayne-common
* Switch to standalone extract utils from pa
* Update FCM level to 3
* Move IR Blaster to device specific repo

Co-authored-by: Erfan Abdi <erfangplus@gmail.com>
Co-authored-by: Michael Bestas <mkbestas@lineageos.org>
Signed-off-by: OdSazib <odsazib@gmail.com>
2021-03-21 23:27:59 +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
OdSazib
0007918f73
Revert "sdm660-common: rootdir: drop wlan driver loading"
This needed for some custom kernels to load the module
This reverts commit b617d231e0.
2021-03-17 01:24:28 +06:00
ElXreno
b617d231e0
sdm660-common: rootdir: drop wlan driver loading
I hope it already present in kernel, so let's drop it.

Signed-off-by: ElXreno <elxreno@gmail.com>
2021-03-07 01:51:46 +06:00
Prerna Kalla
a012e566eb
sdm660-common: rootdir: add permission for /dev/sp_keymaster_ssr
Needed for keymasterd to register spcom server to catch ssr.

Change-Id: I30e4daac9b8b1d15c87e01929072b4d4804b6342
2021-03-07 01:51:46 +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
ac194c785a
sdm660-common: rootdir: sysfs node permission for smart-charging 2021-02-20 11:55:48 +06:00