36 Commits

Author SHA1 Message Date
Paul Crowley
5e3340a0aa sm7325-common: Remove wait_for_keymaster and all references
No longer needed now init listens for property changes on a
separate thread.

Bug: 186580823
Test: Cuttlefish boots successfully
Change-Id: Ief3a546d2154231d18957c2f703bd128966d7288
2024-06-23 11:51:28 -04:00
dianlujitao
b7db219e92
sm7325-common: Set timer trigger for charging LED
Required after recent kernel update. Based on QCOM commits:
  liblight: set "timer" trigger before setting delay for blinking
  display: light: set timer trigger before updating delay_on/off values
  display: light: clear timer trigger before setting brightness

Change-Id: Iaa4d78fe7411f299ba866de174782c269c068c23
2023-08-09 08:04:52 -07:00
Nolen Johnson
383ae94428 [TMP] Revert "sm7325-common: Build Lineage Health HAL"
This reverts commit e63d405d36b99660806ef278dd4909373b031a7b.

Reason for revert: Need to rework kernel side.

Change-Id: I5edfb82b02a63ab068dfe87878bc2be7edb197b1
2023-06-21 05:15:57 +02:00
Adithya R
dec61d442b sm7325-common: rootdir: Set ro.boot.hardware.revision
Bootloader sets ro.boot.revision, we can use this to show
"Hardware version" in model information in Settings.

Change-Id: Id2d825f60f792e6d05c0b34cfee811a0ac3b5604
2023-06-14 17:58:35 -06:00
Michael Bestas
e63d405d36 sm7325-common: Build Lineage Health HAL
Change-Id: I70cc903a03ac9fa3303bb8fa039c9de4806449bf
2023-06-09 13:59:05 -04:00
Michael Bestas
8cbf817fce sm7325-common: Implement xtra-daemon control via property
Default to false if the property is not set.
Device init scripts will need to be adapted to restart
loc_launcher service when property change is detected.

Change-Id: Icbda789cd2a9a3391f437af2c07fc5127f2f09ab
2023-06-09 13:59:05 -04:00
Michael Bestas
104d9a6b48 sm7325-common: ueventd: Remove all permissions from /sys/devices/soc0/serial_number
Change-Id: I688347cfe59f56e4de2e4bf3c3324ca465f7a897
2023-06-09 12:38:57 -04:00
Marc Bourgoin
fcbf39be75 sm7325-common: Add init.oem.fingerprint2.sh
It turns out berlna still needs this to initialize FP sensor
even though in the real world only one is used, so we might
as well leave this in common for berlna and xpeng

Change-Id: I094d12dc7581099c611dc1ffedf63d065af04081
2023-04-28 08:09:37 -06:00
Marc Bourgoin
a0b19996f8 sm7325-common: Decommonize fingerprint HW ident entries from ramdisk
Only xpeng needs this

Change-Id: Iaac7d76f4cbdc32ef186fb7d327b2d3a8b195f9f
2023-04-23 00:45:15 -06:00
Marc Bourgoin
555896aae7 Revert "sm7325-common: Use bluetooth firmware from A52s"
This reverts commit bdbd9a4df48998b12acc836a802e5b744f00ec29.

Reason: Xiaomi Mi 11 Lite 5G NE (lisa) got A13 stock ROM so we can just
flash their bluetooth firmware partition onto ours and fix the issue
right at the source and drop the fix we have in our device tree.

Change-Id: I21f4918f8d0fc794db29b4aa2235c238c36a800e
2023-03-11 03:04:30 +01:00
SGCMarkus
bdbd9a4df4 sm7325-common: Use bluetooth firmware from A52s
This fixes the bluetooth module crashing due to firmware that should support
BT LE as yupik is BT 5.2 but instead it fails.

Change-Id: If744eff8ceb7f665b0304fb4a506efd23926bbe1
2022-12-24 00:27:59 -07:00
Wang Han
16751d26f6 sm7325-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
2022-12-11 17:49:01 +01:00
Rick Yiu
0c6409907d sm7325-common: rootdir: Remove some camera-daemon commands
Those commands have moved to init.rc.

Bug: 170507876
Bug: 171740453
Test: build pass
Change-Id: Ib7acc0fd83adca37e247cd9f3113c1f117e5196e
2022-12-11 17:49:01 +01:00
Alexander Koskovich
1fae7ae657 sm7325-common: rootdir: Fix "Invalid section keyword found" on ueventd
Change-Id: I8a3eb3abea82feb5e1a92cc859cd6498ee68666e
2022-12-11 17:49:01 +01:00
Cosmin Tanislav
f65f648212 sm7325-common: remove light hal
Change-Id: I5307764a5a04b5a28f940b31759a4552cc75a0a2
2022-10-08 00:09:40 +02:00
Mohammed Mirza Mandayappurath Manzoor
ca42ad08c8 sm7325-common: ueventd: Set permissions for KGSL sysfs node
Some KGSL sysfs nodes need to be access controlled. Set proper
permissions for the same.

Change-Id: Idc7e2447d02742074873901c6539f2c6d9d25862
2022-09-29 22:21:26 -04:00
Marc Bourgoin
032a78d43f sm7325-common: Import stock charge_only_mode
Change-Id: I3542bac25ac2a161a165c55cbabe93ec75c04ce8
2022-09-20 10:08:57 +02:00
dianlujitao
3605aa48b1 sm7325-common: Ensure multisim property gets set at early stage
Change-Id: I8066dbd0a466f008ec1ce3144b76922fe1b7e750
2022-09-03 12:27:22 -06:00
Jimmy Chen
52791ba7c5 sm7325-common: Move WiFi supplicant service definition to dedicated RC
Change-Id: I7c448ecb511a738903ebe3702fefdf2cb13c3be3
2022-08-28 10:48:45 +02:00
Nolen Johnson
887dd57b09 sm7325-common: Swap to QTI USB init scripts
Change-Id: Ibb01a6a8b9817b01a8db397cdf82a89659562d62
2022-08-09 11:01:48 -04:00
SGCMarkus
1008a7e64b sm7325-common: build more blobs from source
includes:
*) com.dsi.ant@1.0
*) vendor.qti.hardware.btconfigstore@1.0
*) vendor.qti.hardware.btconfigstore@2.0
*) vendor.qti.hardware.display.composer-service
*) libdisplayconfig.qti
*) libsdmcore
*) libsdmutils
*) libsdedrm
*) libqsap_sdk
*) vendor.qti.hardware.systemhelper@1.0

Change-Id: Ica20d37094b0528f0b3984f0500f17f6f253b14f
2022-08-07 15:28:00 +02:00
SGCMarkus
f2a8de29f1 sm7325-common: update to S1RG32.53-18-11
Change-Id: I4bea9b6ebe78c4fc87c89405b43bb51467575be5
2022-08-06 21:51:07 +02:00
SGCMarkus
f216a1fc2e sm7325-common: rootdir: add missing qti display_boot and qcv rc files
Change-Id: I10a47aa3d4bfeb8b99f20e55659318ec43931832
2022-07-29 15:14:46 +02:00
SGCMarkus
95b667c5b9 sm8250-common -> sm7325-common 2022-03-26 23:16:05 +01:00
SGCMarkus
bc6c1abac1 sm8250-common: set board in device tree, and add more stock props 2022-03-09 22:16:05 +01:00
SGCMarkus
54cdde429d sm8250-common: rootdir: remove init.mmi.usb.sh 2022-02-20 16:57:16 +01:00
SGCMarkus
2e99e32574 sm8250-common: cleanup rootdir init
remove non existing services

also fixup path for fpc_ident
2022-02-20 13:04:31 +01:00
SGCMarkus
d021fee4e1 sm8250-common: fstab: dont use bootdevice for metadata
this is also used by first_stage_init, which cant access
/dev/block/bootdevice
2022-02-20 13:04:31 +01:00
dianlujitao
7e727b900f sm8250-common: Remove moto charger
* The close-sourced binary uses symbols removed on R. It doesn't make
   much sense to fix the 45MB binary :), simply use AOSP one instead.
 * Move charge-only services to init.mmi.charge_only.rc while at it.

Change-Id: I62cdd36603afb46d5287dfcaac3d16acc9fca178
2022-02-19 15:28:33 +01:00
SGCMarkus
e7b7cabf19 sm8250-common: fstab: remove spunvm entry
cant be mounted -> causes init to not mount /data (and others)
causes bootprocess to hang, without providing adb or anything
2022-02-18 22:09:16 +01:00
SGCMarkus
472670564f sm8250-common: unify fstabs used, and the vbmeta_system entries 2022-02-18 14:55:20 +01:00
SGCMarkus
131fe324e7 sm8250-common: rootdir: remove unused files 2022-02-17 16:11:41 +01:00
Erfan Abdi
f8539e08af sm8250-common: Cleanup rootdir init scripts 2022-02-17 16:04:09 +01:00
SGCMarkus
70cf460c22 sm8250-common: remove unknown interface vendor.qti.hardware.wigig.netperftuner@1.0::INetPerfTuner 2022-02-17 15:39:37 +01:00
SGCMarkus
8a5a91933d sm8250-common: add fstab.qcom
fstab is common between pstar and nio
2022-02-17 10:30:04 +01:00
SGCMarkus
35e7abf473 sm8250-common: add initial rootdir 2022-02-17 10:25:08 +01:00