Snap for 12687986 from 0cf5a2a95d
to 25Q1-release
Change-Id: Ic44ddf08536c85d8c4799294930e95ab6af0e930
This commit is contained in:
commit
2bf583b8c8
8 changed files with 62 additions and 0 deletions
10
gril/aidl/2.1/compatibility_matrix.xml
Normal file
10
gril/aidl/2.1/compatibility_matrix.xml
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
<compatibility-matrix version="1.0" type="framework">
|
||||||
|
<hal format="aidl" optional="true">
|
||||||
|
<name>vendor.google.radio_ext</name>
|
||||||
|
<version>3</version>
|
||||||
|
<interface>
|
||||||
|
<name>IRadioExt</name>
|
||||||
|
<instance>default</instance>
|
||||||
|
</interface>
|
||||||
|
</hal>
|
||||||
|
</compatibility-matrix>
|
4
gril/aidl/2.1/gril_aidl.mk
Normal file
4
gril/aidl/2.1/gril_aidl.mk
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
PRODUCT_PACKAGES += vendor.google.radioext@1.0-service
|
||||||
|
DEVICE_PRODUCT_COMPATIBILITY_MATRIX_FILE += device/google/gs-common/gril/aidl/2.1/compatibility_matrix.xml
|
||||||
|
BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs-common/gril/aidl/2.1/sepolicy
|
||||||
|
BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs-common/gril/common/sepolicy
|
1
gril/aidl/2.1/sepolicy/file_contexts
Normal file
1
gril/aidl/2.1/sepolicy/file_contexts
Normal file
|
@ -0,0 +1 @@
|
||||||
|
/vendor/bin/hw/vendor\.google\.radioext@1\.0-service u:object_r:hal_aidl_radio_ext_exec:s0
|
4
gril/aidl/2.1/sepolicy/grilservice_app.te
Normal file
4
gril/aidl/2.1/sepolicy/grilservice_app.te
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
# allow grilservice_app to find hal_radio_ext_service
|
||||||
|
allow grilservice_app hal_radio_ext_service:service_manager find;
|
||||||
|
binder_call(grilservice_app, hal_aidl_radio_ext)
|
||||||
|
binder_call(grilservice_app, twoshay)
|
36
gril/aidl/2.1/sepolicy/hal_aidl_radio_ext.te
Normal file
36
gril/aidl/2.1/sepolicy/hal_aidl_radio_ext.te
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
# hal_aidl_radio_ext domain
|
||||||
|
type hal_aidl_radio_ext, domain;
|
||||||
|
type hal_aidl_radio_ext_exec, vendor_file_type, exec_type, file_type;
|
||||||
|
|
||||||
|
init_daemon_domain(hal_aidl_radio_ext)
|
||||||
|
|
||||||
|
get_prop(hal_aidl_radio_ext, hwservicemanager_prop)
|
||||||
|
get_prop(hal_aidl_radio_ext, telephony_modemtype_prop)
|
||||||
|
set_prop(hal_aidl_radio_ext, vendor_gril_prop)
|
||||||
|
|
||||||
|
binder_call(hal_aidl_radio_ext, servicemanager)
|
||||||
|
binder_call(hal_aidl_radio_ext, grilservice_app)
|
||||||
|
binder_call(hal_aidl_radio_ext, hal_bluetooth_btlinux)
|
||||||
|
|
||||||
|
add_service(hal_aidl_radio_ext, hal_radio_ext_service)
|
||||||
|
|
||||||
|
# RW /dev/oem_ipc0
|
||||||
|
allow hal_aidl_radio_ext radio_device:chr_file rw_file_perms;
|
||||||
|
|
||||||
|
# RW MIPI Freq files
|
||||||
|
allow hal_aidl_radio_ext radio_vendor_data_file:dir create_dir_perms;
|
||||||
|
allow hal_aidl_radio_ext radio_vendor_data_file:file create_file_perms;
|
||||||
|
|
||||||
|
# Bluetooth
|
||||||
|
allow hal_aidl_radio_ext hal_bluetooth_coexistence_hwservice:hwservice_manager find;
|
||||||
|
allow hal_aidl_radio_ext hal_bluetooth_coexistence_service:service_manager find;
|
||||||
|
|
||||||
|
# Allow access to the backlight driver to set ssc_mode
|
||||||
|
allow hal_aidl_radio_ext sysfs_leds:dir search;
|
||||||
|
allow hal_aidl_radio_ext sysfs_leds:file rw_file_perms;
|
||||||
|
|
||||||
|
# legacy/zuma/vendor
|
||||||
|
allow hal_aidl_radio_ext sysfs_display:file rw_file_perms;
|
||||||
|
|
||||||
|
# Allow access to read display port info
|
||||||
|
allow hal_aidl_radio_ext sysfs:file r_file_perms;
|
2
gril/aidl/2.1/sepolicy/hal_camera_default.te
Normal file
2
gril/aidl/2.1/sepolicy/hal_camera_default.te
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
# allow hal_camera_default to binder call hal_aidl_radio_ext
|
||||||
|
binder_call(hal_camera_default, hal_aidl_radio_ext);
|
2
gril/aidl/2.1/sepolicy/twoshay.te
Normal file
2
gril/aidl/2.1/sepolicy/twoshay.te
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
# allow twoshay to binder call hal_aidl_radio_ext
|
||||||
|
binder_call(twoshay, hal_aidl_radio_ext)
|
|
@ -42,10 +42,13 @@ on init
|
||||||
|
|
||||||
# UFS
|
# UFS
|
||||||
write /dev/sys/block/bootdevice/clkgate_enable 0
|
write /dev/sys/block/bootdevice/clkgate_enable 0
|
||||||
|
write /dev/sys/block/bootdevice/wb_on 0
|
||||||
|
write /dev/sys/block/bootdevice/enable_wb_buf_flush 0
|
||||||
|
|
||||||
on property:sys.boot_completed=1
|
on property:sys.boot_completed=1
|
||||||
# Health Storage HAL
|
# Health Storage HAL
|
||||||
chown system system /dev/sys/block/bootdevice/manual_gc
|
chown system system /dev/sys/block/bootdevice/manual_gc
|
||||||
|
write /dev/sys/block/bootdevice/manual_gc 0
|
||||||
|
|
||||||
# Pixelstats
|
# Pixelstats
|
||||||
chown system system /dev/sys/block/bootdevice/slowio_read_cnt
|
chown system system /dev/sys/block/bootdevice/slowio_read_cnt
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue