Commit graph

356 commits

Author SHA1 Message Date
Michael Bestas
54c2ca5cce sdm660-common: ueventd: Remove all permissions from /sys/devices/soc0/serial_number
Change-Id: I688347cfe59f56e4de2e4bf3c3324ca465f7a897
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:44:53 +02:00
Alcatraz323
5e4faf510c sdm660-common: proprietary: update CNE, DPM, IMS, QMI, RIL blobs
* LA.QSSI.13.0.r1-09700-qssi.0
* Honeywell/hon660/hon660:12/94.00.03/0037:user/release-keys
* sync Hidl manifest version with Hon660 and S62 Pro
* build hostapd_cli(though Android GUI interface does not need this to manage the ap client, we may want to control them from the shell, maybe)
* remove rmt_storage, tftp_server from rootdir script, they are self contained now
* the vendor.qti.tftp.rc is patched with 782ab1966f
* fix cnd denial

Co-authored-by: 1582130940 <1582130940@qq.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:44:53 +02:00
Melody Olvera
6a417ef057 sdm660-common: rootdir: init: Remove debugfs
Signed-off-by: HeroBuxx <me@herobuxx.me>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-06-25 09:45:54 +02:00
minaripenguin
31be07de4e sdm660-common: rootdir: Pin msm_irqbalance to system-background
Signed-off-by: minaripenguin <minaripenguin@users.noreply.github.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-06-24 08:40:47 +02:00
Tashfin Shakeer Rhythm
2de583c358 sdm660-common: rootdir: Do not set permissions for unused block paths
Our device only uses c0c4000.sdhci.

Signed-off-by: Tashfin Shakeer Rhythm <tashfinshakeerrhythm@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-06-24 08:20:03 +02:00
Tashfin Shakeer Rhythm
f21f68411b sdm660-common: Enforce read-ahead to be 128 KB after boot
Google has mentioned that 512 KB performs worse under heavy memory pressure.
Therefore, hardcode 128 KB read-ahead for all which is optimal.
Also, remove the unused block paths.

Signed-off-by: Tashfin Shakeer Rhythm <tashfinshakeerrhythm@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-06-24 08:20:03 +02:00
Immanuel Raj
c3a7a64be5 sdm660-common: Use garbage collector
Good with F2FS

Based on 6a82382659

Signed-off-by: pix106 <sbordenave@gmail.com>
2023-05-09 06:36:23 +02:00
ZeeLog
3f261b11a0 sdm660-common: rootdir: Append vendor prefix to irsc_util
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-05-09 06:36:23 +02:00
UtsavBalar1231
a76505d70a sdm660-common: rootdir: Remove obsolete rfs_access service
init: Command 'start rfs_access' action=boot
(/vendor/etc/init/hw/init.target.rc:88) took 0ms and failed: service
rfs_access not found

Change-Id: I1549a36f0663bfe8de381ccb493b757cd5375cbc
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-05-09 06:36:23 +02:00
pix106
6f9fe01554 sdm660-common: rootdir: clean fstab time options
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-05-09 06:36:23 +02:00
ManshuTyagi
796762d620 sdm660-common: init: Fix trace error * E cutils-trace: Error opening trace file: No such file or directory
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-05-09 06:36:23 +02:00
Alcatraz323
796f450b3a sdm660-common: rootdir: time_daemon: self contained module
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-04-02 13:44:41 +02:00
Alcatraz323
901ff5c8a1 sdm660-common: rootdir: set task_profiles for common background tasks
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
Co-authored-by: Suren Baghdasaryan <surenb@google.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-04-02 13:44:41 +02:00
Suren Baghdasaryan
0348e50c0a sdm660-common: rootdir: Replace direct pid writes with setting task profiles for audio interfaces
For easy transition from SchedTune to UtilClamp, direct access to these
cgroups should be abstracted by using task profiles. Replace writepid
commands with new task_profiles command.

Bug: 155419956
Test: change .rc file and confirm task profile is applied
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: Ide373c283359cf4b73af4cb0813d8c0306942595
Merged-In: Ide373c283359cf4b73af4cb0813d8c0306942595
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-04-02 13:44:41 +02:00
Randall Huang
5c11cadd03 sdm660-common: Remove IO read_ahead_kb tune
If we set 2048KB ra value in the beginning of the
boot process, services initialized at this time would
keep 2048KB ra value even though we adjust the ra value
to 128KB after boot completion.

This may cause memory pressure.

Bug: 174700194
Signed-off-by: Randall Huang <huangrandall@google.com>
Change-Id: I97ee0ee9511eaada011f2634afd68d68cdca4570
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-04-02 13:44:41 +02:00
Alcatraz323
0e8661dea0 sdm660-common: Partially revert "Nuke msm_irqbalance"
* replace with 660 stock irq conf(miui/s62pro are same)
* remove not needed service define in init.qcom.rc

This reverts commit fe0aeb3704.

Signed-off-by: pix106 <sbordenave@gmail.com>
2023-04-02 09:48:58 +02:00
Stylogey
5182be1445 sdm660-common: DeviceSettings: Add USB fastcharge toggle
Co-authored-by: ronaxdevil <pratabidya.007@gmail.com>
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-03-23 19:32:12 +01:00
pix106
bc4950e9be sdm660-common: rootdir: drop schedtune 2023-03-20 07:18:06 +01:00
Alcatraz323
2c7ab4d8e3 sdm660-common: rootdir: correct missing echo to usb configuration
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-03-20 07:18:06 +01:00
Alcatraz323
7379fa4f67 sdm660-common: rootdir: fix usb mtp/ptp/accessory/audio_source/midi unrecognized by windows
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-03-20 07:18:06 +01:00
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