blob: 50830269cb6465794a571459ed9016f8efa04f72 [file] [log] [blame]
ReStranger1b85f702025-09-30 04:05:06 +03001#==============================================================================
2# init.qti.media.rc
3#
4# Copyright (c) 2020 Qualcomm Technologies, Inc.
5# All Rights Reserved.
6# Confidential and Proprietary - Qualcomm Technologies, Inc.
7#
8# Copyright (c) 2020, The Linux Foundation. All rights reserved.
9#
10# Redistribution and use in source and binary forms, with or without
11# modification, are permitted provided that the following conditions are
12# met:
13# * Redistributions of source code must retain the above copyright
14# notice, this list of conditions and the following disclaimer.
15# * Redistributions in binary form must reproduce the above
16# copyright notice, this list of conditions and the following
17# disclaimer in the documentation and/or other materials provided
18# with the distribution.
19# * Neither the name of The Linux Foundation nor the names of its
20# contributors may be used to endorse or promote products derived
21# from this software without specific prior written permission.
22#
23# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
24# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
25# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
26# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
27# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
28# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
29# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
30# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
31# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
32# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
33# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34#===============================================================================
35service qti-media /vendor/bin/init.qti.media.sh
36 class main
37 user media
38 group media
39 disabled
40 oneshot
41
42on early-init
43 setprop vendor.media.system.build_codename ${ro.build.version.release_or_codename}
44
45on post-fs
46 start qti-media
47
48on post-fs-data
49 setprop ro.media.xml_variant.codecs ${vendor.media.target_variant}
50 setprop ro.media.xml_variant.codecs_performance ${vendor.media.target_variant}
51
52on property:vendor.netflix.bsp_rev=*
53 setprop ro.netflix.bsp_rev ${vendor.netflix.bsp_rev}
54
55on property:vendor.mm.target.enable.qcom_parser=*
56 setprop vendor.mm.enable.qcom_parser ${vendor.mm.target.enable.qcom_parser}