omnirom / android_device_oppo_find7op

Device tree for Oppo Find 7 OnePlus Edition (aka OnePlus One)
Other
8 stars 23 forks source link

Can't connect to the camera when encrypted #3

Open thku opened 6 years ago

thku commented 6 years ago

Hi there, I am not sure if this is the correct place to report, but I discovered an issue with the combination of using OmniROM 8.1 (I tried at least the last 5 weeklys) on my OPO and the camera, as soon as I activate smartphone encryption. Following all recommendations I could find to solve the "Can't connect to the camera" error (clear cache & data of camera apps; checking for hardware problems; proper flashing of Omnirom; ...), this is the final conclusion I can provide. Both cameras (and the flash light) don't work, as soon as the phone is encrypted.

I finally verified this by the following procedure:

  1. completely delete & decrypt phone using latest TWRP
  2. Flash OmniROM (and SuperSU)
  3. Start the phone & verify that the cameras work (they do)
  4. Encrypt the phone
  5. Verify that the cameras work (they don't)
YumeMichi commented 6 years ago

Try killing camera-provider-2-4 service via adb and then open camera again.

thku commented 6 years ago

killing the camera service worked! Thanks a lot!

YumeMichi commented 6 years ago

Maybe bacon camera HAL needs https://github.com/YumeMichi/device_oneplus_onyx/commit/116be4f44161d7d66a656374e94a6c056315c762 too~

thku commented 6 years ago

This would help a lot. I just tried it with restarting and the problem seems to be persistent (but solvable by killing the service).

thku commented 6 years ago

The kill the camera-service option doesn't work anymore with the latest WEEKLY