diff options
| author | Kyle Harrison <khwebmail@gmail.com> | 2020-06-05 18:58:43 +0100 |
|---|---|---|
| committer | SpiritCroc <dev@spiritcroc.de> | 2021-01-10 11:15:21 +0100 |
| commit | 4b1924e12af9b5a281f13ee061f704e12c08c0a4 (patch) | |
| tree | 80994d6aa3ad32eeb7afaad186308f13d58007e8 | |
| parent | b263f5d4100a806e7ca7377e8b5b6ad2d5d01800 (diff) | |
rhine-common: Restart media service after qcamerasvr is running
* This is a workaround to fix the issue that sometimes the camera and flashlight are not available after boot.
* With current Android frameworks, mm-qcamera-daemon (qcamerasvr) needs to be started before the cameraserver.
For HAL1 devices, the cameraserver resides in the mediaserver so trigger a restart of the 'media' service once qcamerasvr is running.
Change-Id: Id64e6e20a1f4e009959b56712c709628e2ec2dfb
| -rw-r--r-- | rootdir/init.camera.rc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rootdir/init.camera.rc b/rootdir/init.camera.rc index 1538ffd..7b51e38 100644 --- a/rootdir/init.camera.rc +++ b/rootdir/init.camera.rc @@ -119,6 +119,9 @@ service qcamerasvr /system/vendor/bin/mm-qcamera-daemon group camera media system inet input graphics # seclabel u:r:mm-qcamerad:s0 +on property:init.svc.qcamerasvr=running + restart media + # SONY: TrimArea Daemon # Last 2 args: start block(blk size 128k), number of blocks(partitionsize(kb)/128(kb)) service tad_static /vendor/bin/tad_static /dev/block/bootdevice/by-name/TA 0,16 |
