[UPDATE-OCT-24][Dev] [WIP] Fixing the camera on Nougat ROMs

Search This thread

Top Liked Posts

  • There are no posts matching your filters.
  • 15
    Dear all,

    I'm officially back!

    In this post, I'll be keeping track of my ongoing work of fixing the camera on N: I'm using ResurrectionRemix.

    Following are logcats for the curious tinkerer to follow:
    I purposefully uploaded the files to Filebin.ca as direct downloads, not to Pastebin.com, as these are CatLog saves, and are better viewed with CatLog or MatLog. Better for your eyes, really.

    Initial logcat with broken camera, taken w/ CatLog after a cold boot:
    Almost the same happened with the libqc-opt.so vendor lib from TheMuppets' S3 Neo tree.
    https://filebin.ca/3clHC6XLzoBW/N-after-cold-boot.txt

    "All working" Marshmallow logcat: https://filebin.ca/3clJ9YbzZKGJ/2017-09-29-11-39-54.txt

    Logcat after fixing libqc-opt.so: https://filebin.ca/3clHlhIIS44I/partial_cold_boot.txt
    Camera sensor is apparently accessible, the camera HAL actually loads and the Camera app takes longer to force close , but the loading process halts at a complaint about supported FPS modes being zero or max
    Most significant error in log:

    Code:
    10-05 16:23:59.103 E/QCameraParameters(252): int32_t qcamera::QCameraParameters::initDefaultParameters(): supported fps ranges cnt is 0 or exceeds max!!!


    Logcat after replacing/system/lib/hw/camera.msm8226.so with alternate from Moto G: https://filebin.ca/3clLhXW4V9oL/new_cam_error.txt
    This one complains about missing symbols. Needs a shim?
    Most significant error in log:

    Code:
    10-05 16:11:50.687 E/HAL     (254): dlopen failed: cannot locate symbol "_ZN7android16CameraParameters10KEY_QC_ZSLE" referenced by "/system/lib/hw/camera.msm8226.so"...

    UPDATE:
    Managed to get the camera interface AND the Camera app UI controls to load, but now we get a " Cannot connect to camera" error.
    Logcat: https://filebin.ca/3f21n00JdSs5
    Screenshot: http://i66.tinypic.com/11ueuev.jpg

    Thanks to: @adityaupreti @sound001 for initial N build
    Samsung for being Samsung
    The Moto G guys for their work on bringing N to falcon.
    6
    BungeeJumper's ViperOS are nearly stable including both cameras. So his sources would be a great start, I guess.

    We have been in touch recently, but there is one issue: his work seems to be based on that of earlier developers (edit: I specifically mean the works of aapav01, adityaupreti, mukulsoni, and anybody who might have added what I call "dirty" code). I am starting from total scratch, as if nobody has built anything before, a new device, to ensure that only clean, WELL-DOCUMENTED code is used.
    I messaged him for confirmation of this issue. If it doesn't turn out to be that way, I might consider working with his trees and adapting them for Oreo.
    6

    Not much, or I will have updated this thread. Read the rest of this comment.

    Please bro since 8 months I am using this rom and it's just awesome
    It's the bestest rom for grand 2.
    Please fix the camera
    And please share the progress with us. where u r upto.
    And how much more time for fixing.

    As I said above.

    Bro its almost 2018 now our grand 2 deserves a fully stable nougat ROM
    :rolleyes:

    Yeah, it is 2018, so a happy 2018 to humankind ...
    I quite lost focus on this as I am working on four things simultaneously, in order of importance:
    (a) Medicine school (my first year :D)
    (b) Makeup exams for my secondary school certificate exam
    (c) A new Android Oreo build from AOSP source
    and, surprise ...
    (d) A port from the Huawei Ascend Mate2 Snapdragon 400 variant.
    Edit: The latter is just an attempt, which may or may not work. NO PROMISES MADE.
    2
    Dear all,

    I'm officially back!

    In this post, I'll be keeping track of my ongoing work of fixing the camera on N: I'm using ResurrectionRemix.

    Following are logcats for the curious tinkerer to follow:
    I purposefully uploaded the files to Filebin.ca as direct downloads, not to Pastebin.com, as these are CatLog saves, and are better viewed with CatLog or MatLog. Better for your eyes, really.

    Initial logcat with broken camera, taken w/ CatLog after a cold boot:
    Almost the same happened with the libqc-opt.so vendor lib from TheMuppets' S3 Neo tree.
    https://filebin.ca/3clHC6XLzoBW/N-after-cold-boot.txt

    "All working" Marshmallow logcat: https://filebin.ca/3clJ9YbzZKGJ/2017-09-29-11-39-54.txt

    Logcat after fixing libqc-opt.so: https://filebin.ca/3clHlhIIS44I/partial_cold_boot.txt
    Camera sensor is apparently accessible, the camera HAL actually loads and the Camera app takes longer to force close , but the loading process halts at a complaint about supported FPS modes being zero or max
    Most significant error in log:




    Logcat after replacing/system/lib/hw/camera.msm8226.so with alternate from Moto G: https://filebin.ca/3clLhXW4V9oL/new_cam_error.txt
    This one complains about missing symbols. Needs a shim?
    Most significant error in log:

    If you are porting from Moto G. Use Moto G HAL like on S3 Neo we cannot use our HAL on S5 ROMS.

    Στάλθηκε από το GT-I9301I μου χρησιμοποιώντας Tapatalk
    I appreciate your input :)
    But can you clarify further?
    I am using files from Moto G LineageOS N, the files being either "virgin" or with some edits. But no, I am not porting a whole ROM from the Moto G.
    So what you are alluding to is that I use a whole Moto G camera stack? Yep, I'm already working on that.
    2
    Hey Thargorsson Made progress with camera on Lineage 14.1 for s3 neo.
    Samsung cameras work now.
    Maybe this info helps?
    Also S3 neo devs are trying to bring up Oreo.
    Thanks for the tip!
    However our devices - as far as I remember - are the Sony IMX sensor.
    (I don't have the Grand 2 on me now as to confirm)
    EDIT: I'm setting up the build environment, and will be ready to chug builds as soon as I receive my device again.
    EDIT 2: The idea is that I've purchased a new laptop off eBay, so I thought, "Why not start afresh? The older builds didn't even boot, so there's nothing to carry over from my older laptop)