Commit graph

184 commits

Author SHA1 Message Date
Alexander Koskovich
9b4c50d809
sm6225-common: init: Don't mount TraceFS twice
* AOSP already mounts TraceFS in system init, so mounting it twice
   causes SEPolicy denials. See the comments in this change.

   https://android-review.googlesource.com/c/platform/system/sepolicy/+/1294195

Change-Id: Ic5d9ac2dbd36e404a93a8d48aa0ea933fd7fa701
2023-04-10 19:18:18 +03:00
Ethan Chen
459eba2f23
sm6225-common: Remove cnss_diag
* This is for debug use only

Change-Id: I1977c3495a3467702b87ed6b3428514e15d487c3
2023-04-10 19:18:18 +03:00
Michael Bestas
266042304a
sm6225-common: sepolicy: Allow services log to /dev/kmsg
Change-Id: I4d77053acf022e0ca511e8090c3000e64871f27c
2023-04-10 19:18:18 +03:00
Michael Bestas
c870554729
sm6225-common: sepolicy: Resolve vendor_init_touch denials
Change-Id: Ia71c46662f12f3939e1a4d51b4ab06101f8cc9b7
2023-04-10 19:18:11 +03:00
Michael Bestas
30d50e935a
sm6225-common: sepolicy: Label ft3519 touchscreen sysfs
Change-Id: I9dc2738553f4f7540566f25c7131462d9a45dbf8
2023-04-10 19:18:11 +03:00
Michael Bestas
b4382fcf2e
sm6225-common: sepolicy: Allow GNSS HAL to access ISensorManager
Change-Id: Ib3f16ca6e0e848163dd680eeeb8a72a300753ca0
2023-04-10 19:18:11 +03:00
Michael Bestas
7481b43ee2
sm6225-common: sepolicy: Allow rild read mnt_vendor_file dir
Change-Id: I099d1ea9e0c690af7e96764852b2122ac8bf6ae9
2023-04-10 19:18:11 +03:00
Michael Bestas
670a0c4143
sm6225-common: sepolicy: Allow NFC HAL set NFC props
Change-Id: I8213df668c8ab8184d544f24359c2bcf04cfe85c
2023-04-10 19:18:11 +03:00
Michael Bestas
93fdcc5964
sm6225-common: sepolicy: Label additional power_supply sysfs
Change-Id: I275ccf6aa2369baae2e167e6ec33ceb3ef3d53e0
2023-04-10 19:18:02 +03:00
Michael Bestas
14b933ff64
sm6225-common: sepolicy: Graphics composer HAL is a client of configstore
Change-Id: I0cd5e5a8246b1f2a770a206a2cb7fb151fdd630d
2023-04-10 19:18:01 +03:00
Michael Bestas
f84656c8d5
sm6225-common: sepolicy: Cleanup & label additional sysfs wakeup nodes
Change-Id: I6156ff3a749e7bb19b874349da857127061afab6
2023-04-10 19:18:01 +03:00
Michael Bestas
ebcefb0db2
sm6225-common: sepolicy: Allow fingerprint HAL write to sysfs_devices_system_cpu
Change-Id: Ifcbe5d07c3ea4a7e7bc62299456230f09f39b76f
2023-04-10 17:56:49 +03:00
Michael Bestas
a478ab0425
sm6225-common: sepolicy: Allow camera HAL access mmi,panel_id sysfs
Change-Id: Ic05ffa4ba3a9830b6d38fbb65b94b4be647f01d8
2023-04-10 17:56:44 +03:00
Michael Bestas
3edbb012cb
sm6225-common: sepolicy: Allow audio HAL to access ISensorManager
Change-Id: I98b5496390cf2aa9b92b34a19c4c34109481dc51
2023-04-10 17:56:43 +03:00
dianlujitao
e7f547f4bd
sm6225-common: Use ueventd to load aw882xx calibration file
* Avoid direct filesystem access from the kernel

Change-Id: Id9571e0cfb635b536eb4927fb4b2bed042917306
2023-04-10 17:56:43 +03:00
Aayush Gupta
8a6dc828aa sm6225-common: Label and address NFC sec hal and its denials
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
Change-Id: I1e1f62611ecd1bc090e4a9d87f4b0a86d1e83c2a
2023-04-09 01:35:41 +05:30
Dhina17
c23037ab30 sm6225-common: Fix egis fps denials
Change-Id: I2bc8b476da316520bcb920780048a51b4d7f845f
2023-04-09 01:34:33 +05:30
Dhina17
d4a738f675 sm6225-common: Label chipone fps hal
Change-Id: Iaaf7455589745e6fa3187c830dc1e7fbe5b3e374
2023-04-09 01:09:24 +05:30
Dhina17
0919f61e5b sm6225-common: Label wakeup nodes
Run [0] script with device connected via adb.

Reference:
[0] - https://android.googlesource.com/platform/system/hardware/interfaces/+/refs/heads/master/suspend/1.0/default/SuspendSepolicyTests.sh

Change-Id: I1741fe89141477317223115da68d3bfc72cb4f9e
2023-04-09 01:09:24 +05:30
Dhina17
fc860f50cd sm6225-common: Label vibrator node
Change-Id: I98a4d76d72a79c16dfe2afbe4fab866f4f716bd4
2023-04-09 01:09:24 +05:30
Dhina17
e323ba70ad sm6225-common: Label power supply nodes
Change-Id: Icadb1ae14a530dcb409928bdff2fcac54773d70e
2023-04-09 01:09:24 +05:30
Dhina17
23b675da2d sm6225-common: Import base sepolicy from moto sm8250-common
- Imported from https://github.com/LineageOS/android_device_motorola_sm8250-common/tree/lineage-19.1/sepolicy HEAD ed02954834ecc70cee043170b1322dff5cd491b8
- Adapted and cleaned up.

Change-Id: I2e8cd6419c740c0e05ecb6fcd4db8b743e5ac229
2023-04-09 01:09:24 +05:30
Dhina17
7452de708a sm6225-common: Setup NFC
Change-Id: I46ae6a37a057930d6571203814d9f2b3396685ac
2023-04-09 01:09:24 +05:30
dianlujitao
fabef5d511 sm6225-common: Switch to QTI bt stack
Change-Id: I47016b066ae800d0071dbad6a1235cbc9db3cf80
2023-04-09 01:09:24 +05:30
Albert I
863f1ffcc7 sm6225-common: fstab: Handle avb= fs_mgr flags correctly
Specifying avb=<vbmeta-partition> is only necessary for first entry of
partition groups that use same vbmeta partition. The following entry can have
<vbmeta-parititon> part omitted.

Test: None
Link: https://source.android.com/devices/architecture/kernel/mounting-partitions-early#fstab-entries
Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: I5a42fd3de72c400acfae56d6a1e1b85c22a79537
2023-04-09 01:09:24 +05:30
Michael Bestas
8309a14009 sm6225-common: Match AVB rollback index with hawao_g S2SES32.28-70-3
Change-Id: I4433c041e387fe22d2f8358cd0739c7a938a64ec
2023-04-09 01:09:24 +05:30
Michael Bestas
f4618cbab4 sm6225-common: Correct vbmeta_system rollback index location
Change-Id: I9f71031b1834355d4ca8b19d6748f8647fa33a38
2023-04-09 01:09:24 +05:30
Michael Bestas
c3f2d53452 sm6225-common: Update to hawao_g S2SES32.28-70-3
Change-Id: I0bc32bc35feaa6b9aab0fd14b5cb240bd0af6100
2023-04-09 01:09:24 +05:30
Michael Bestas
6936350dae sm6225-common: Build missing power libs
Change-Id: Iead8985a873e4f120fc5a84ce636eccb9051c66f
2023-04-09 01:09:24 +05:30
Michael Bestas
e8c58dadb7 sm6225-common: Move TARGET_BOOTLOADER_BOARD_NAME to devices
Change-Id: I3ad30b9bbc29d0ebbf6f19cc839cf73b7a101fcb
2023-04-09 01:09:24 +05:30
Dhina17
35842ecfa8 sm6225-common: overlay: Use /dev/input/event to detect headphone jack
If your device detects headphone in 'getevent -l' like:
  On headphone insert:
       /dev/input/event8: EV_SW        SW_HEADPHONE_INSERT  00000001
       /dev/input/event8: EV_SW        SW_MICROPHONE_INSERT 00000001
       /dev/input/event8: EV_SW        SW_JACK_PHYSICAL_INS 00000001
  On headphone removal:
       /dev/input/event8: EV_SW        SW_HEADPHONE_INSERT  00000000
       /dev/input/event8: EV_SW        SW_MICROPHONE_INSERT 00000000
       /dev/input/event8: EV_SW        SW_JACK_PHYSICAL_INS 00000000

but not in the android system, you should enable this to use /dev/input/event
to detect the headphone/microphone jack.

Change-Id: Ibb387c1624b66385515989bc543afdb9a9f5b67e
2023-04-09 01:09:24 +05:30
Dhina17
61223126f7 sm6225-common: Switch to prebuilt audio HAL
- For time being.
- Revert after I fix the crackling sound issue with OSS HAL.

Change-Id: I2c2139936808838075c4aebcf265720b6e98f99b
2023-04-09 01:09:24 +05:30
Dhina17
a48cdbbe21 sm6225-common: overlay: Declare powerbutton fps
- moto sm6225 tagets have side mounted fps only.

Change-Id: I85ac4438f2c55411620380f6e1eaa54139b2e1b8
2023-04-09 01:09:24 +05:30
Dhina17
e605a9fd4b sm6225-common: Setup vendor boot kernel modules
- As per stock.

Change-Id: Iab0bdb08f8c96217006bb0c4520b14f98ff82c50
2023-04-09 01:09:24 +05:30
Dhina17
a223df9cfe sm6225-common: Add kernel module aliases
Change-Id: Iad84951615fcac0a7b9d7a6532c87ca3e8d42e47
2023-04-09 01:09:24 +05:30
Dhina17
37a60de327 sm6225-common: Compile kernel from source
Change-Id: I41bc0c43765c823ccb39a298c02926fce1fd4393
2023-04-09 01:09:24 +05:30
LuK1337
fad5eb3a61 sm6225-common: Add debug IMS props to workaround CarrierConfig restrictions
We support IMS features on carriers not listed in the CarrierConfig,
so let's use the props to enable it everywhere.

Change-Id: Id3ad71d522a22048f7ad86d89695ad262361632d
2023-04-09 01:09:24 +05:30
Dhina17
10e1bc345d sm6225-common: Update fluence props from CodeLinaro
- Fixes incall speaker volume control.

Change-Id: I35162609a3bbbe6145c4b8165fc8b509798a485c
2023-04-09 01:09:24 +05:30
Dhina17
078d4709ba sm6225-common: Import audio runtime features props from CodeLinaro
Change-Id: Ia1947480cbad2f1e29c0ab9cd13f39d0fecd45cb
2023-04-09 01:09:24 +05:30
Cosmin Tanislav
a851359f32 sm6225-common: audio: remove usage of libspeakerbundle
Change-Id: Ieaac903a65fe174c9a697de47091169817c2c9b7
2023-04-09 01:09:24 +05:30
Marc Bourgoin
ae1c1cd0ba sm6225-common: Remove unused audio effects
We aren't including any Dolby blobs and libswvqe.so doesn't exist on sm6225 devices.

Change-Id: I83ca6b5563f9a4576a49b0d70c7201491276e8ce
2023-04-09 01:09:24 +05:30
Dhina17
b0622e7bfa sm6225-common: Drop QTI cacert HIDL from manifest
- Not used at all. Escape from crash.

Change-Id: If3b0d50b9af4e9ac6546924257e604887aca0393
2023-04-09 01:09:24 +05:30
Weiyin Jiang
b3e4dc6e03 sm6225-common: add voice multi session property
Add voice multi sessoin property.

CRs-Fixed: 2489604
Change-Id: Ib906db560268a4c9e183747896130522b45d6566
2023-04-09 01:09:24 +05:30
Dhina17
01ec971a98 sm6225-common: Inherit 4GB dalvik heap config
Change-Id: I9bc1416f7fb2d0d4eebad958b34437e681b21b0e
2023-04-09 01:09:24 +05:30
Alexander Koskovich
34e133a14f sm6225-common: Disable the usage of ConfigStore.
* As per commit 11a113a67e ("Add disable_configstore").

Change-Id: I5482989a8a96227a3e2a5317eacf613c641bfa8e
2023-03-30 22:51:57 +05:30
Dhina17
6f771e341e sm6225-common: Import wifi overlay from hawao S2SE32.28-41-1
Change-Id: I41eb60e7cb86db0ca9ffb7be698400793332c437
2023-03-30 22:51:57 +05:30
Anton Hansson
41817bfa11 sm6225-common: Enforce RRO for all resource overlays
Bug: 118823052
Test: make
Change-Id: I579d09480c7a482543ea616dd5c493d825bb98b1
2023-03-30 22:51:57 +05:30
Stephen Thomas-Dorin
10aca005ee sm6225-common: Update config_ims_rcs_package to use new ImsService
Change-Id: I77fcd2a3451c99df5fa47136fa0cd36a5abab9fe
2023-03-30 22:51:57 +05:30
Dhina17
483acafed0 sm6225-common: Import Telephony overlay from CodeLinaro
TAG: LA.UM.9.15.r1-05800-KAMORTA.QSSI12.0

Change-Id: I540ae25ba3b0a04db0f12f2954e2ebf7f20d44df
2023-03-30 22:51:57 +05:30
Dyneteve
625d699345 sm6225-common: CarrierConfig: Remove "SIM x is HD capable" message
* sed -i 's/"config_update_service_status" value="true"/"config_update_service_status" value="false"/g' overlay/packages/apps/CarrierConfig/res/xml/vendor.xml

Change-Id: I26ce187483d6d8c18bcd1901cd6d71ca6ec1e31f
2023-03-30 22:51:57 +05:30