Miles Chuang 2555c134f1 [ALPS03873734] Follow Android P new property rules
[Detail]
Android P add new limitation for property access between
system partition and vendor partition:
1. SET and GET only by system
2. System cannot SET the property which SET/GET by vendor.
3. Allow system and vendor GET the property which SET by vendor.

[Solution]
Add new CXP HIDL to set the vendor property in vendor layer.

MTK-Commit-Id: 9a2ec20bc8a60761ed0ff15f897f67b3883f8486

Change-Id: Icaea3afb2743108d7c78eea2b6e4dad363a8052d
CR-Id: ALPS03873734
Feature: Regional Carrier Express Pack
2020-01-18 10:04:27 +08:00

60 lines
1.8 KiB
Plaintext

# ==============================================
# Policy File of /vendor/bin/rilproxy Executable File
# ==============================================
# Type Declaration
# ==============================================
# ==============================================
# MTK Policy Rule
# ==============================================
# Access to wake locks
wakelock_use(rild)
# rild Bringup Policy
allow rild init:unix_stream_socket connectto;
allow rild mtkrild:unix_stream_socket connectto;
allow rild property_socket:sock_file write;
allow rild self:capability setuid;
allow rild socket_device:sock_file write;
allow rild radio_prop:property_service set;
allow rild ril_mux_report_case_prop:property_service set;
allow rild mtk_agpsd:unix_stream_socket connectto;
allow servicemanager rild:dir search;
allow servicemanager rild:file { read open };
allow servicemanager rild:process getattr;
allow rild proc:file read;
# Allow the socket read/write of netd for rild
allow rild netd_socket:sock_file write;
allow rild netd_socket:sock_file read;
#Date : W17.13
#Purpose: Treble SEpolicy denied clean up
allow rild hwservicemanager_prop:file r_file_perms;
#Date : W17.18
#Purpose: Treble SEpolicy denied clean up
add_hwservice(hal_telephony_server, mtk_hal_rild_hwservice)
allow hal_telephony_client mtk_hal_rild_hwservice:hwservice_manager find;
#Date : W17.21
#Purpose: Grant permission to access binder dev node
vndbinder_use(rild)
#Date : W17.20
#Purpose: allow access to audio hal
binder_call(rild, mtk_hal_audio)
allow rild hal_audio_hwservice:hwservice_manager find;
#Date : W18.15
#Purpose: allow rild access to vendor.ril.ipo system property
set_prop(mtkrild, vendor_ril_ipo_prop)
# Date : WK18.26
# Operation: P migration
# Purpose: Allow carrier express HIDL to set vendor property
set_prop(mtkrild, mtk_cxp_vendor_prop)