init.hardware.rc: set brightness permission before start hwcompower

Change brightness file owner and group to system before start hwcomposer
to allow hwcomposer can access it in initial stage.

Bug: 147339850
Test: boot, brightness test
Change-Id: Icd04689d7b31072370915b6e4220c3a5cdd0fb60
1 file changed
tree: 4b7f1de4cd59653ecb549b6a70deb08eed0ae30b
  1. audio/
  2. bootctrl/
  3. dumpstate/
  4. factory-images/
  5. gpt-utils/
  6. health/
  7. hidl/
  8. json-c/
  9. keymaster/
  10. nfc/
  11. overlay/
  12. pixelstats/
  13. power/
  14. powerstats/
  15. seccomp_policy/
  16. self-extractors/
  17. sunfish/
  18. thermal-engine/
  19. usb/
  20. vibrator/
  21. voice_processing/
  22. .clang-format
  23. Android.bp
  24. Android.mk
  25. AndroidProducts.mk
  26. aosp_sunfish.mk
  27. audio_policy_configuration.xml
  28. audio_policy_configuration_a2dp_offload_disabled.xml
  29. audio_policy_configuration_bluetooth_legacy_hal.xml
  30. audio_policy_volumes.xml
  31. bluetooth_hearing_aid_audio_policy_configuration.xml
  32. board-info.txt
  33. BoardConfig-common.mk
  34. CleanSpec.mk
  35. compatibility_matrix.xml
  36. component-overrides.xml
  37. config.fs
  38. default-permissions.xml
  39. device-common.mk
  40. device-sunfish.mk
  41. device.mk
  42. device_framework_matrix.xml
  43. fingerprint.mk
  44. framework_manifest.xml
  45. fstab.hardware
  46. fstab.postinstall
  47. gps.conf
  48. init.fingerprint.sh
  49. init.hardware.chamber.rc.userdebug
  50. init.hardware.diag.rc.user
  51. init.hardware.diag.rc.userdebug
  52. init.hardware.ipa.rc.userdebug
  53. init.hardware.mpssrfs.rc.user
  54. init.hardware.mpssrfs.rc.userdebug
  55. init.hardware.power_debug.rc.userdebug
  56. init.hardware.rc
  57. init.hardware.usb.rc
  58. init.hardware.userdebug.rc.userdebug
  59. init.insmod.sunfish.cfg
  60. init.logging.rc
  61. init.mdm.sh
  62. init.msm.usb.configfs.rc
  63. init.power.rc
  64. init.qcom.modem_links.sh
  65. init.qcom.usb.rc
  66. init.qcom.usb.sh
  67. init.qti.getbootdevice.sh
  68. init.qti.qseecomd.sh
  69. init.radio.sh
  70. init.ramoops.sh
  71. init.recovery.device.rc
  72. init.sensors.sh
  73. manifest.xml
  74. media_codecs.xml
  75. media_codecs_omx.xml
  76. media_codecs_performance_c2.xml
  77. media_profiles.xml
  78. media_profiles_V1_0.xml
  79. p2p_supplicant_overlay.conf
  80. powerhint.json
  81. product.prop
  82. recovery.wipe
  83. sec_config
  84. sensors.hals.conf
  85. thermal-engine-sunfish.conf
  86. thermal_info_config_sunfish.json
  87. ueventd.rc
  88. uinput-fpc.idc
  89. uinput-fpc.kl
  90. utils.mk
  91. WCNSS_qcom_cfg.ini
  92. wifi_concurrency_cfg.txt
  93. wpa_supplicant_overlay.conf
  94. wpa_supplicant_wcn.conf