sanders: Cleanup and update to remove the haywire
Build missing: OMX, DRM Media/display Organise audio packages Remove the useless and not valid changes: Revert "sanders: add config_canForceDisableNavigationBar to overlay" * not valid here This reverts commit 73be4873a9d37a56cff0c2679a74cd34aea3d18a. Revert "sanders: Add 3.0 IMapper instance" This reverts commit b4ea3cead5e6df99c79bbeb3026c0e69696aa093. Revert "sanders: Add libashmemd_client.so platform shared_libs" This reverts commit 188cc031e45e7cd0abf6fbad40064f53cbdf3141. Revert "sanders: Import and bind mount loader config for media swcodec" This reverts commit a4dc9602c2df35c5350be912f332d4b4cf38ddbe. Revert "sanders: Add false attribute for topgear permissions" This reverts commit 1d46fcd2fbacb5486adb714822c97c3f84d0ac18. Revert "Sanders: Add runtime pregrants for Android Auto" This reverts commit a1ee5ff032c31a84cf9bc94b55bcc5a98df0c91b. Change-Id: I097812869e8e709a72014bbbb5ea23821dc2d368 Signed-off-by: ashwatthama <sai404142@gmail.com>
This commit is contained in:
@@ -1,133 +0,0 @@
|
||||
# Copyright (C) 2019 The Android Open Source Project
|
||||
#
|
||||
# Bionic loader config file for the media swcodec APEX.
|
||||
#
|
||||
# There are no versioned APEX paths here - this APEX module does not support
|
||||
# having several versions mounted.
|
||||
|
||||
dir.swcodec = /apex/com.android.media.swcodec/bin/
|
||||
|
||||
[swcodec]
|
||||
additional.namespaces = platform,sphal
|
||||
|
||||
###############################################################################
|
||||
# "default" namespace
|
||||
#
|
||||
# This namespace is for the binaries and libraries on the swcodec APEX.
|
||||
###############################################################################
|
||||
|
||||
namespace.default.isolated = true
|
||||
namespace.default.visible = true
|
||||
|
||||
namespace.default.search.paths = /apex/com.android.media.swcodec/${LIB}
|
||||
namespace.default.asan.search.paths = /apex/com.android.media.swcodec/${LIB}
|
||||
|
||||
namespace.default.links = platform
|
||||
|
||||
# TODO: replace the following when apex has a way to auto-generate this list
|
||||
# namespace.default.link.platform.shared_libs = %LLNDK_LIBRARIES%
|
||||
# namespace.default.link.platform.shared_libs += %SANITIZER_RUNTIME_LIBRARIES%
|
||||
namespace.default.link.platform.shared_libs = libEGL.so:libGLESv1_CM.so:libGLESv2.so:libGLESv3.so:libRS.so:libandroid_net.so:libc.so:libcgrouprc.so:libclang_rt.asan-aarch64-android.so:libclang_rt.asan-arm-android.so:libclang_rt.hwasan-aarch64-android.so:libclang_rt.asan-i686-android.so:libclang_rt.asan-x86_64-android.so:libdl.so:libft2.so:liblog.so:libm.so:libmediandk.so:libnativewindow.so:libneuralnetworks.so:libsync.so:libvndksupport.so:libdl_android.so:libvulkan.so:libashmemd_client.so
|
||||
|
||||
###############################################################################
|
||||
# "platform" namespace
|
||||
#
|
||||
# This namespace is for linking to LLNDK and ASAN libraries on the system.
|
||||
###############################################################################
|
||||
|
||||
namespace.platform.isolated = true
|
||||
|
||||
namespace.platform.search.paths = /system/${LIB}
|
||||
namespace.platform.search.paths += /apex/com.android.runtime/${LIB}
|
||||
namespace.platform.asan.search.paths = /data/asan/system/${LIB}
|
||||
namespace.platform.asan.search.paths += /system/${LIB}
|
||||
namespace.platform.asan.search.paths += /apex/com.android.runtime/${LIB}
|
||||
|
||||
# /system/lib/libc.so, etc are symlinks to /apex/com.android.lib/lib/bionic/libc.so, etc.
|
||||
# Add /apex/... pat to the permitted paths because linker uses realpath(3)
|
||||
# to check the accessibility of the lib. We could add this to search.paths
|
||||
# instead but that makes the resolution of bionic libs be dependent on
|
||||
# the order of /system/lib and /apex/... in search.paths. If /apex/...
|
||||
# is after /system/lib, then /apex/... is never tried because libc.so
|
||||
# is always found in /system/lib but fails to pass the accessibility test
|
||||
# because of its realpath. It's better to not depend on the ordering if
|
||||
# possible.
|
||||
namespace.platform.permitted.paths = /apex/com.android.runtime/${LIB}/bionic
|
||||
namespace.platform.asan.permitted.paths = /apex/com.android.runtime/${LIB}/bionic
|
||||
|
||||
###############################################################################
|
||||
# "sphal" namespace
|
||||
#
|
||||
###############################################################################
|
||||
namespace.sphal.isolated = true
|
||||
namespace.sphal.visible = true
|
||||
|
||||
# Keep the below in sync with "sphal" namespace in system's /etc/ld.config.txt
|
||||
# Codec2 has dependencies on some SP-hals (eg. android.hardware.graphics.mapper@2.0)
|
||||
# These are dlopen'ed by libvndksupport.so.
|
||||
namespace.sphal.search.paths = /odm/${LIB}
|
||||
namespace.sphal.search.paths += /vendor/${LIB}
|
||||
|
||||
namespace.sphal.permitted.paths = /odm/${LIB}
|
||||
namespace.sphal.permitted.paths += /vendor/${LIB}
|
||||
namespace.sphal.permitted.paths += /vendor/${LIB}/hw
|
||||
namespace.sphal.permitted.paths += /system/vendor/${LIB}
|
||||
|
||||
namespace.sphal.asan.search.paths = /data/asan/odm/${LIB}
|
||||
namespace.sphal.asan.search.paths += /odm/${LIB}
|
||||
namespace.sphal.asan.search.paths += /data/asan/vendor/${LIB}
|
||||
namespace.sphal.asan.search.paths += /vendor/${LIB}
|
||||
|
||||
namespace.sphal.asan.permitted.paths = /data/asan/odm/${LIB}
|
||||
namespace.sphal.asan.permitted.paths += /odm/${LIB}
|
||||
namespace.sphal.asan.permitted.paths += /data/asan/vendor/${LIB}
|
||||
namespace.sphal.asan.permitted.paths += /vendor/${LIB}
|
||||
|
||||
# Keep the below in sync with "vndk" namespace in system's /etc/ld.config.txt
|
||||
# System's sphal namespace links to vndk namespace for %VNDK_SAMEPROCESS_LIBRARIES%,
|
||||
# since we don't have a good way to auto-expand %VNDK_SAMEPROCESS_LIBRARIES%,
|
||||
# we'll add the vndk paths below.
|
||||
|
||||
namespace.sphal.search.paths += /odm/${LIB}/vndk-sp
|
||||
namespace.sphal.search.paths += /vendor/${LIB}/vndk-sp
|
||||
namespace.sphal.search.paths += /system/${LIB}/vndk-sp${VNDK_VER}
|
||||
|
||||
namespace.sphal.permitted.paths += /odm/${LIB}/hw
|
||||
namespace.sphal.permitted.paths += /odm/${LIB}/egl
|
||||
namespace.sphal.permitted.paths += /vendor/${LIB}/hw
|
||||
namespace.sphal.permitted.paths += /vendor/${LIB}/egl
|
||||
namespace.sphal.permitted.paths += /system/vendor/${LIB}/hw
|
||||
namespace.sphal.permitted.paths += /system/vendor/${LIB}/egl
|
||||
# This is exceptionally required since android.hidl.memory@1.0-impl.so is here
|
||||
namespace.sphal.permitted.paths += /system/${LIB}/vndk-sp${VNDK_VER}/hw
|
||||
|
||||
namespace.sphal.asan.search.paths += /data/asan/odm/${LIB}/vndk-sp
|
||||
namespace.sphal.asan.search.paths += /odm/${LIB}/vndk-sp
|
||||
namespace.sphal.asan.search.paths += /data/asan/vendor/${LIB}/vndk-sp
|
||||
namespace.sphal.asan.search.paths += /vendor/${LIB}/vndk-sp
|
||||
namespace.sphal.asan.search.paths += /data/asan/system/${LIB}/vndk-sp${VNDK_VER}
|
||||
namespace.sphal.asan.search.paths += /system/${LIB}/vndk-sp${VNDK_VER}
|
||||
|
||||
namespace.sphal.asan.permitted.paths += /data/asan/odm/${LIB}/hw
|
||||
namespace.sphal.asan.permitted.paths += /odm/${LIB}/hw
|
||||
namespace.sphal.asan.permitted.paths += /data/asan/odm/${LIB}/egl
|
||||
namespace.sphal.asan.permitted.paths += /odm/${LIB}/egl
|
||||
namespace.sphal.asan.permitted.paths += /data/asan/vendor/${LIB}/hw
|
||||
namespace.sphal.asan.permitted.paths += /vendor/${LIB}/hw
|
||||
namespace.sphal.asan.permitted.paths += /data/asan/vendor/${LIB}/egl
|
||||
namespace.sphal.asan.permitted.paths += /vendor/${LIB}/egl
|
||||
|
||||
namespace.sphal.asan.permitted.paths += /data/asan/system/${LIB}/vndk-sp${VNDK_VER}/hw
|
||||
namespace.sphal.asan.permitted.paths += /system/${LIB}/vndk-sp${VNDK_VER}/hw
|
||||
|
||||
# Once in this namespace, access to libraries in /system/lib is restricted. Only
|
||||
# libs listed here can be used.
|
||||
namespace.sphal.links = platform
|
||||
|
||||
# TODO: replace the following when apex has a way to auto-generate this list
|
||||
# namespace.sphal.link.platform.shared_libs = %LLNDK_LIBRARIES%
|
||||
# namespace.sphal.link.platform.shared_libs += %SANITIZER_RUNTIME_LIBRARIES%
|
||||
namespace.sphal.link.platform.shared_libs = libEGL.so:libGLESv1_CM.so:libGLESv2.so:libGLESv3.so:libRS.so:libandroid_net.so:libc.so:libcgrouprc.so:libclang_rt.asan-aarch64-android.so:libclang_rt.asan-arm-android.so:libclang_rt.hwasan-aarch64-android.so:libclang_rt.asan-i686-android.so:libclang_rt.asan-x86_64-android.so:libdl.so:libft2.so:liblog.so:libm.so:libmediandk.so:libnativewindow.so:libneuralnetworks.so:libsync.so:libvndksupport.so:libvulkan.so
|
||||
|
||||
# Add a link for libz.so which is llndk on devices where VNDK is not enforced.
|
||||
namespace.sphal.link.platform.shared_libs += libz.so
|
||||
@@ -31,30 +31,6 @@
|
||||
<permission name="android.permission.MODIFY_AUDIO_ROUTING"/>
|
||||
</privapp-permissions>
|
||||
|
||||
<privapp-permissions package="com.google.android.projection.gearhead"
|
||||
sha256-cert-digest="FD:B0:0C:43:DB:DE:8B:51:CB:31:2A:A8:1D:3B:5F:A1:77:13:AD:B9:4B:28:F5:98:D7:7F:8E:B8:9D:AC:EE:DF">
|
||||
<!-- Gearhead legacy -->
|
||||
<permission name="android.permission.READ_PHONE_STATE" fixed="false"/>
|
||||
<permission name="android.permission.CALL_PHONE" fixed="false"/>
|
||||
<permission name="android.permission.READ_CALL_LOG" fixed="false"/>
|
||||
<permission name="android.permission.READ_CONTACTS" fixed="false"/>
|
||||
<permission name="android.permission.ACCESS_FINE_LOCATION" fixed="false"/>
|
||||
<permission name="android.permission.RECEIVE_SMS" fixed="false"/>
|
||||
<permission name="android.permission.SEND_SMS" fixed="false"/>
|
||||
<permission name="android.permission.RECORD_AUDIO" fixed="false"/>
|
||||
<permission name="android.permission.READ_CALENDAR" fixed="false"/>
|
||||
<!-- For Top Gear -->
|
||||
<permission name="android.permission.PROCESS_OUTGOING_CALLS" fixed="false"/>
|
||||
<permission name="android.permission.READ_SMS" fixed="false"/>
|
||||
<permission name="android.permission.RECEIVE_MMS" fixed="false"/>
|
||||
<permission name="android.permission.WRITE_CALL_LOG" fixed="false"/>
|
||||
<permission name="android.permission.ACCESS_COARSE_LOCATION" fixed="false"/>
|
||||
</privapp-permissions>
|
||||
|
||||
<privapp-permissions package="com.android.omadm.service">
|
||||
<permission name="android.permission.LOCAL_MAC_ADDRESS"/>
|
||||
</privapp-permissions>
|
||||
|
||||
<privapp-permissions package="com.android.sdm.plugins.sprintdm">
|
||||
<permission name="android.permission.CHANGE_CONFIGURATION"/>
|
||||
<permission name="android.permission.CONNECTIVITY_INTERNAL"/>
|
||||
@@ -89,4 +65,10 @@
|
||||
<privapp-permissions package="org.lineageos.settings.device">
|
||||
<permission name="android.permission.MODIFY_PHONE_STATE"/>
|
||||
</privapp-permissions>
|
||||
|
||||
<privapp-permissions package="com.motorola.dtv">
|
||||
<permission name="android.permission.WRITE_MEDIA_STORAGE"/>
|
||||
<permission name="android.permission.READ_EXTERNAL_STORAGE" />
|
||||
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
||||
</privapp-permissions>
|
||||
</permissions>
|
||||
|
||||
Reference in New Issue
Block a user