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

Search This thread

carlosggb

Senior Member
Oct 18, 2012
2,119
4,233
Santiago
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:
 
Last edited:

Subhashis

Senior Member
Feb 10, 2015
287
90
Karakura Town
Tested this on AOSiP ROM.Most of the things works well,but there are some bugs
1.slow mo doesn't work
2.very slow(3-5 s). Time to change between portrait and photo mode and also from back to front camera

Overall it's the best miui camera port that I have come across. I jumped to Aosp ROM as soon as this camera is ported
 
Last edited:
@carlosggb
Tested it out in AOSiP. Camera quality is good, portrait mode works great, same as stock camera.
Bugs I could find so far:-
1. As stated above by @Subhashis Switching from portrait to normal mode and front to back camera or vice versa lags like hell, takes 3 - 4 seconds.
2. FP Shutter doesn't work.
3. No auto HDR is available.
4. AI Mode is not working (I don't think it is gonna work anyway).
5. Even 1080p video doesn't have any stabilization.
6. Clicking on slow-motion crashes the camera app.
7. I don't know what magic mirror does but enabling group selfies does nothing (I know its a MI series features and I don't expect it to work on this phone either).

The lag is main problem in this camera. Otherwise its great. Having FP Shutter and Auto HDR would be convenient though. Thank you so much for your hard work man!

Edit:- Another problem I found after some time that flashing this camera stops Google camera from working, it crashes at launch. After disabling or uninstalling A2 camera form magisk Google camera works fine.

Edit 2:- Well, after disabling the module and making google camera work, re-enableing the module both camera works fine. Its wired or I might be doing something wrong.
 
Last edited:

mikedavo

Senior Member
Sep 16, 2017
110
34
Only portrait mode working here, anything elks results in phone crashing to black screen and have to reboot.
Edit: I did something and now everything working well
Edit: ok have found the culprit. HDR must be enabled along with AI. If HDR is disabled when AI is active, phone will crash
 
Last edited:

b3rvirus

Member
Jan 15, 2012
44
2
Yogyakarta, Indonesia
For camera related apps and mods, I think its a good idea to also state your device model -- Indian RN5pro or Global RN5 when reporting, because there might be some camera module/sensor related problems
 

mikedavo

Senior Member
Sep 16, 2017
110
34
For camera related apps and mods, I think its a good idea to also state your device model -- Indian RN5pro or Global RN5 when reporting, because there might be some camera module/sensor related problems
Sorry, edited my post, the problem was HDR had to be active when AI is active. Once I realised this I've had no problem. This is so good. Thanks
 
D

Deleted member 8927393

Guest
Doesn't seem to work on Resurrection Remix. App appears as '60' and refuses to open. Still, I'll keep an eye, this port is promising
 

carlosggb

Senior Member
Oct 18, 2012
2,119
4,233
Santiago
Greetings, as mentioned above, I need device, ROM and logs of your issues. Incomplete information WILL BE IGNORED.

THIS IS A FIRST BETA, NEED LOGS TO IMPROVE
 
  • Like
Reactions: kakagi
Nov 23, 2017
12
19
vadodara
Can you try this? change line in /common/system.prop ro.product.device=tissot_sprout to ro.product.device=whyred. and replace /system/etc/device_features/tissot_sprout.xml to whyred.xml found in miui rom and see if it helps.
 
  • Like
Reactions: carlosggb

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.