diff --git a/generic/prebuilts/api/31.0/public/attributes b/generic/prebuilts/api/31.0/public/attributes index 50639992..ceccecbd 100644 --- a/generic/prebuilts/api/31.0/public/attributes +++ b/generic/prebuilts/api/31.0/public/attributes @@ -283,3 +283,8 @@ attribute vendor_sys_sxrauxservice_qti_socket_client; attribute vendor_hal_mwqemadapter_qti; attribute vendor_hal_mwqemadapter_qti_client; attribute vendor_hal_mwqemadapter_qti_server; + +#attributes for aks gamepad hal +attribute hal_gamepad; +attribute hal_gamepad_client; +attribute hal_gamepad_server; \ No newline at end of file diff --git a/generic/prebuilts/api/32.0/public/attributes b/generic/prebuilts/api/32.0/public/attributes index 50639992..ceccecbd 100644 --- a/generic/prebuilts/api/32.0/public/attributes +++ b/generic/prebuilts/api/32.0/public/attributes @@ -283,3 +283,8 @@ attribute vendor_sys_sxrauxservice_qti_socket_client; attribute vendor_hal_mwqemadapter_qti; attribute vendor_hal_mwqemadapter_qti_client; attribute vendor_hal_mwqemadapter_qti_server; + +#attributes for aks gamepad hal +attribute hal_gamepad; +attribute hal_gamepad_client; +attribute hal_gamepad_server; \ No newline at end of file diff --git a/generic/private/te_macros b/generic/private/te_macros index 350e9122..1ed36049 100644 --- a/generic/private/te_macros +++ b/generic/private/te_macros @@ -41,3 +41,11 @@ define(`qesdk_app_access', ` hal_client_domain($1, vendor_hal_qesdhal) ') ##################################### + +##################################### +# aksgamepad_app_access(clientdomain) +# allow hal_gamepad to use +define(`aksgamepad_app_access', ` +hal_client_domain($1, hal_gamepad) +') +##################################### diff --git a/generic/private/untrusted_app.te b/generic/private/untrusted_app.te old mode 100755 new mode 100644 index 81a344f8..3624326e --- a/generic/private/untrusted_app.te +++ b/generic/private/untrusted_app.te @@ -37,4 +37,7 @@ typeattribute untrusted_app vendor_hal_qvrservice_qti_socket_fd_use_client; typeattribute untrusted_app vendor_hal_sxrservice_qti_socket_fd_use_client; # allow app to be a client of DSP HAL -hal_client_domain(untrusted_app, vendor_hal_dspmanager) \ No newline at end of file +hal_client_domain(untrusted_app, vendor_hal_dspmanager) + +# allow app to be a client of AKS Gamepad HAL +hal_client_domain(untrusted_app, hal_gamepad) diff --git a/generic/private/untrusted_app_25.te b/generic/private/untrusted_app_25.te old mode 100755 new mode 100644 index cc19e2f6..352bf238 --- a/generic/private/untrusted_app_25.te +++ b/generic/private/untrusted_app_25.te @@ -29,3 +29,6 @@ qesdk_app_access(untrusted_app_25); # allow app to be a client of DSP HAL hal_client_domain(untrusted_app_25, vendor_hal_dspmanager) + +# allow app to be a client of AKS Gamepad HAL +hal_client_domain(untrusted_app_25, hal_gamepad) \ No newline at end of file diff --git a/generic/private/untrusted_app_27.te b/generic/private/untrusted_app_27.te old mode 100755 new mode 100644 index f39c92fb..83d6946b --- a/generic/private/untrusted_app_27.te +++ b/generic/private/untrusted_app_27.te @@ -32,3 +32,6 @@ qesdk_app_access(untrusted_app_27); # allow app to be a client of DSP HAL hal_client_domain(untrusted_app_27, vendor_hal_dspmanager) + +# allow app to be a client of AKS Gamepad HAL +hal_client_domain(untrusted_app_27, hal_gamepad) \ No newline at end of file diff --git a/generic/private/untrusted_app_29.te b/generic/private/untrusted_app_29.te old mode 100755 new mode 100644 index 87e5da60..a451d06f --- a/generic/private/untrusted_app_29.te +++ b/generic/private/untrusted_app_29.te @@ -31,3 +31,6 @@ typeattribute untrusted_app_29 vendor_hal_sxrservice_qti_socket_fd_use_client; # allow app to be a client of DSP HAL hal_client_domain(untrusted_app_29, vendor_hal_dspmanager) + +# allow app to be a client of AKS Gamepad HAL +hal_client_domain(untrusted_app_29, hal_gamepad) diff --git a/generic/private/untrusted_app_30.te b/generic/private/untrusted_app_30.te index 6291c43c..07410d54 100644 --- a/generic/private/untrusted_app_30.te +++ b/generic/private/untrusted_app_30.te @@ -34,4 +34,7 @@ qesdk_app_access(untrusted_app_30); hal_client_domain(untrusted_app_30, vendor_hal_qspmhal) # allow app to be a client of DSP HAL -hal_client_domain(untrusted_app_30, vendor_hal_dspmanager) \ No newline at end of file +hal_client_domain(untrusted_app_30, vendor_hal_dspmanager) + +# allow app to be a client of AKS Gamepad HAL +hal_client_domain(untrusted_app_30, hal_gamepad) \ No newline at end of file diff --git a/generic/public/attributes b/generic/public/attributes index 81881734..dc0e4116 100644 --- a/generic/public/attributes +++ b/generic/public/attributes @@ -325,3 +325,8 @@ attribute vendor_hal_imsrtphal_server; attribute vendor_hal_qspa_qti; attribute vendor_hal_qspa_qti_client; attribute vendor_hal_qspa_qti_server; + +#attributes for aks gamepad hal +attribute hal_gamepad; +attribute hal_gamepad_client; +attribute hal_gamepad_server;