init.qti.media.rc 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #==============================================================================
  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. #===============================================================================
  35. service qti-media /vendor/bin/init.qti.media.sh
  36. class main
  37. user media
  38. group media
  39. disabled
  40. oneshot
  41. on early-init
  42. setprop vendor.media.system.build_codename ${ro.build.version.release_or_codename}
  43. on post-fs
  44. start qti-media
  45. on post-fs-data
  46. setprop ro.media.xml_variant.codecs ${vendor.media.target_variant}
  47. setprop ro.media.xml_variant.codecs_performance ${vendor.media.target_variant}
  48. setprop ro.media.xml_variant.profiles ${vendor.media.target_variant}
  49. on property:vendor.netflix.bsp_rev=*
  50. setprop ro.netflix.bsp_rev ${vendor.netflix.bsp_rev}
  51. on property:vendor.mm.target.enable.qcom_parser=*
  52. setprop vendor.mm.enable.qcom_parser ${vendor.mm.target.enable.qcom_parser}