Edwin Moquete
43039d5ef2
sm6225-common: Switch to legacy sepolicy_vndr
...
Change-Id: I13229c3057bf32c81b0fdace075f0791cb8ad380
2023-04-14 05:10:25 +03:00
LuK1337
ffcbe8280d
sm6225-common: Pull appropriate USB props from vendor_product.mk
...
Change-Id: I93b25c5d0989c83d1c8d7b7946a083771febdddd
2023-04-14 05:07:52 +03:00
Alice Kuo
44402c56d8
sm6225-common: Disable LE audio related profiles
...
Bug: 231671426
Test: build
Change-Id: I78e2ddfc636a0fa31b977b5f9ba9a7d7bc0f2a26
Merged-In: I78e2ddfc636a0fa31b977b5f9ba9a7d7bc0f2a26
(cherry picked from commit acb0b19b8348a4b9518d2f46b1599f423f620347)
2023-04-14 05:07:34 +03:00
Sal Savage
a399d4ed80
sm6225-common: Use the ?= operator so BT properties can be overridden
...
System properties set with the "=" operator cannot be overriden. This
device is used elsewhere in the system and some of the properties need
to be overridden. The "?=" operator will use the assigned value if no
other values are assigned elsewhere, allowing for overrides.
Bug: 230638462
Test: adb shell getprop | grep bluetooth
Change-Id: Id6cd7901555edafef141bbc1bbd5e06dc3a54d0c
2023-04-14 05:07:13 +03:00
Sal Savage
eb2c6e9743
sm6225-common: Set default the Bluetooth class of device
...
The class of device is a string with a list of uint8t values:
90,2,12
The meaning is as follows:
{Service Field, Major class, Minor class}
Service Field: 0x5A -> 90
Bit 17: Networking
Bit 19: Capturing
Bit 20: Object Transfer
Bit 22: Telephony
MAJOR_CLASS: 0x02 -> 2 (Phone)
MINOR_CLASS: 0x0C -> 12 (Smart Phone)
Bug: 217452259
Test: make -j; -- check that bluetooth.device.class_of_device is
correct
Change-Id: I24fd57bacbf6786a26f7079e7a6e9857dbe170d1
2023-04-14 05:06:48 +03:00
Sal Savage
7d26fc869c
sm6225-common: Update LE Audio profile properties to match spec and implementation
...
Bug: 217448211
Test: atest BluetoothInstrumentationTests
Change-Id: I9312b9b70b51603aca6da6f4081533ab73c1614d
2023-04-14 05:06:32 +03:00
Sal Savage
3164d99718
sm6225-common: Enable bluetooth profiles with product.prop
...
Bug: 217448211
Test: make -j
Change-Id: Idd7e52b7822915ed61299f1c0b29bf87ca0339fe
2023-04-14 05:06:07 +03:00
Woody Lin
db230330f9
sm6225-common: Enable zygote critical window
...
Bug: 141948707
Change-Id: I5dc57312118b0f6d95fc9fe164363ec7e15f1b51
2023-04-14 05:05:22 +03:00
Jimmy Chen
c2e0639266
sm6225-common: Move WiFi supplicant service definition to dedicated RC
...
Change-Id: I7c448ecb511a738903ebe3702fefdf2cb13c3be3
2023-04-14 05:04:29 +03:00
Michael Bestas
9fdcb2ad70
Revert "sm6225-common: Switch to QTI bt stack"
...
This reverts commit fabef5d511
.
Change-Id: I836f8c7be80dfe92a5d51e1ed286c91856eaf8f0
2023-04-14 05:01:56 +03:00
Michael Bestas
9b99c020f9
sm6225-common: Add hardware/motorola to lineage.dependencies
...
Change-Id: I4fbbf4d5c2d1f6369d261e01bc5d7b216c9b86e8
2023-04-14 05:01:56 +03:00
Bowgo Tsai
b7daf552c2
sm6225-common: Removing GSI keys
...
Those keys will be embedded into VtsSecurityAvb on host side
instead, to verify the GSI image used on the device.
Bug: 149806769
Test: build and checks those keys are removed from
$OUT/recovery/root/first_stage_ramdisk/avb/
Change-Id: I8a002ba6f1421fb460056ccae6572050bdb0ce3c
2023-04-14 05:01:56 +03:00
Michael Bestas
7e41610385
sm6225-common: Disable ramdumps
...
This should not be enabled in production builds.
Also resolves SELinux denials.
Change-Id: Idcfe7301a96d5831c61c02e5f5f448cd46a9481b
2023-04-14 05:01:56 +03:00
Hridya Valsaraju
a108236cca
sm6225-common: Set PRODUCT_SET_DEBUGFS_RESTRICTIONS
...
Starting with Android R launched devices, debugfs cannot be mounted in
production builds. In order to avoid accidental debugfs dependencies
from creeping in during development with userdebug/eng builds, the
build flag PRODUCT_SET_DEBUGFS_RESTRICTIONS can be set by vendors to
enforce additional debugfs restrictions for userdebug/eng builds. The
same flag will be used to enable sepolicy neveallow statements to
prevent new permissions added for debugfs access.
Test: build, boot
Bug: 184381659
Change-Id: I45e6f20c886d467a215c9466f3a09965ff897d7e
2023-04-14 05:01:50 +03:00
Michael Bestas
122c791486
sm6225-common: init: Drop unused property triggers
...
Resolve SELinux denials.
Change-Id: I457c7ba325ce597cc56bf851236eeb2a00abb074
2023-04-10 19:18:18 +03:00
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