[Magisk] [Module] Mi A2 Ported camera for Whyred custom roms

Search This thread

surferbyter

Senior Member
Jul 11, 2007
313
185
73
On miui global beta 8.7.26, camera2api enabled the version 0.9 no have setting options available...
 

Attachments

  • Screenshot_2018-07-31-17-18-58-280_com.android.camera.jpg
    Screenshot_2018-07-31-17-18-58-280_com.android.camera.jpg
    158.9 KB · Views: 410
Last edited:

carlosggb

Senior Member
Oct 18, 2012
2,119
4,232
0
Santiago
Does this mean that the Mi A2 is using Camera2 API? I figure if you need to enable Camera2 API on whyred...

Camera2api is not needed in some roms, there subtle but relevant differences between them, still collecting logs and info but there are many many installed setup scenarios out there.
 

amitroutray

Senior Member
Dec 31, 2011
898
249
0
Not working on the latest build of RR rom :(
It is working with me. Make sure no GCam is present or previously installed. If possible do a clean installation of your ROM. Enable Camera2 API. And flash it through the Magisk and give all the permissions manually. In first lunch it will show me errors but after I tryed 5 to 6 times the app responds and working Gr8 now :)

Thanks to @carlosggb for your contributions :)

Triggered from my Nexus 10
 
  • Like
Reactions: carlosggb

pi4a7a

Senior Member
May 14, 2015
818
284
93
Varna
@dan3840 will you be able to develop some nice things for our Mix 2S? We miss a guy like you there(same as OP) I can test and log after 5 days when I unlock my bootloader.

Seems the A2 camera has some features that we don't have yet

Sorry for hijacking thread..
 

Top Liked Posts

  • There are no posts matching your filters.
  • 102
    Mi A2 Ported camera for Whyred devices!!! GLOBAL AND PRO - Oreo Only!!!

    NOT FOR MIUI BASED ROMS!!!!

    This wouldn't be possible without the efforts of @dan3840 . Respect bro!

    HIGHLIGHTS
    - Portrait front mode works
    - Beautify Works
    - Front Flash works (enabled torch mode which is perfect for frontal portrait mode photos!!)

    NOT WORKING
    -Report any other issues to keep improving it!!!:D

    ENJOY!!!!

    INSTALL INSTRUCTIONS
    ------------------------------

    1-Uninstall all Gcams (They Cause conflict)

    2a-Load Magisk module via Magisk Manager
    or
    2b-Flash zip via TWRP (this 2nd option if for users that app says "60" instead of camera" and cases that step 2a simply doesn't work

    3-Reboot Phone
    4-Give all the permissions to the camera
    5-Have Fun!

    CAMERA2API MUST BE ENABLED!

    New update! v0.6
    -fixed for some roms (AEX, etc)
    -Cleaned up some unused files and lines
    -Added Scenes!
    -Age Stamp fixed
    -EIS seems to be working now!

    New update! v0.7
    -Slow-Mo Fixed! Thanks Dyneteve!!!!

    New update! v0.8
    -Increased Photos quality (Please confirm if it works for you)
    -HHT Fully implemented and it works Jointly with front selfie beautify mode/effect when needed

    New update! v0.9
    -Redistributed image quality scales better
    -Added 1080p Slow-mo. Thanks @ARNOB XENON

    New update! v1.0
    -Normalized codecs and image processing.
    -ADDED TWO NEW HDR MODES (PRO & LIVE)
    -Removed Group mode and Fingerprint shutter (not working as of now, if i find a way to fix them, i'll re-add)
    -Corrected Dual Watermark
    -HDR now starts in Auto mode (works fine here, please confirm)


    DOWNLOAD v1.0 (It's LIVE)

    Tested on MSM Xtended Rom
    Tested on Bootleggers by @Sumit Samanta
    Tested on AOSiP
    Tested on AEX by @xdatman

    ENJOY! Say Thanks if you like it!
    If you feel like, invite me some snacks and sodas
    :laugh: SEND SNACKS TO Carlosggb CLICK HERE :laugh:
    13
    New update! v1.0
    -Normalized codecs and image processing.
    -ADDED TWO NEW HDR MODES (PRO & LIVE)
    -Removed Group mode and Fingerprint shutter (not working as of now, if i find a way to fix them, i'll re-add)
    -Corrected Dual Watermark
    -HDR now starts in Auto mode (works fine here, please confirm)
    9
    New update! v0.8
    -Increased Photos quality (Please confirm if it works for you)
    -HHT Fully implemented and it works Jointly with front selfie beautify mode/effect when needed

    Uploading!
    9
    No credits to my Mi A1 Stock Camera module? Really? No wonder it's not a proper working port.
    Please check date modified and file sizes. You guys obviously took the files from my github module which is why you can't get it properly working.

    1zqyQmg.jpg


    At least give proper credits next time.
    My module is properly licensed with GNU GPL 3.0 btw. Don't want to get yourselves in trouble.

    83DoMUk.png
    That's not how it works - your repo mostly contains BLOBs, with the exception of some shell scripts - but the files you highlighted are clearly binaries. By the way, I'd recommend comparing by checksum (not by date or size) the next time.

    Doesn't matter if I'm Xiaomi. At least try to find out the source first if you're re-using files. :)
    That's wrong - you can't just claim these proprietary blobs (coming from various sources including Xiaomi, Qualcomm, and others) as your own work. In this case, nobody needs to give credits or ask you before using these files - they can be found in some Xiaomi stock firmware/dump anyway.

    However, one could credit you for the idea behind the project of yours.

    I didn't want to PM since it's an open thread anyways.
    While this thread is in fact open and public, you shouldn't be doing this - always try to handle issues in a PM first. Otherwise, you can still report posts/users and move along - moderators will do the needful.

    There's really no need for drama.
    8
    Edit: I was wrong. Sorry.
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone