My camera doesn't work on a custom ROM (Android 11), I searched for a fix online, and it says that I have to restart the camera service, they said to run this command on ADB:
kill -HUP ps -A | grep camera | awk '{print $2}'
but when I hit enter it gave me an error of:
/system/bin/sh: kill: ps: arguments must be jobs or process IDs
/system/bin/sh: kill: -A: arguments must be jobs or process IDs
---
I ran
ps -A | grep camera
It outputs
cameraserver 375 1 25432 2584 binder_thread_read a9825cec S android.hardware.camera.provider@2.4-service
camera 426 1 73104 2432 poll_schedule_timeout aea69eac S mm-qcamera-daemon
Can anyone help me to solve this problem?
Asked by Teguh Bayu Pratama
(11 rep)
Nov 10, 2021, 10:06 AM
Last activity: Nov 10, 2021, 03:26 PM
Last activity: Nov 10, 2021, 03:26 PM