yashsingh1/xdaforums huggingface dataset:
[Moto G5 Plus Themes, Apps, and Mods] cougarten:
How do magisk modules work on the moto g5 plus with that weird file system?
[Moto G5 Plus Themes, Apps, and Mods] dhk.-:
They work... I don't know what is so complicated. It have a fsf2 /data partition, a /system partition... and it works...
[Moto G5 Plus Themes, Apps, and Mods] cougarten:
but non-stock rom/kernel, right? I think stock is borked for magisk
[Moto G5 Plus Themes, Apps, and Mods] nikhil Pasricha.:
Is root needed?
[Moto G5 Plus Themes, Apps, and Mods] marcbal:
Yes.

Enviado desde mi Moto G (5) Plus mediante Tapatalk
[Moto G5 Plus Themes, Apps, and Mods] Meowdib:
Everything is working great, even on Lineage compiled today.
[Moto G5 Plus Themes, Apps, and Mods] wastedige:
Moto G5+ being a relatively popular phone -- and considering it has a good camera sensor, pictures of which are only downgraded in quality due to bad processing, why don't we see a more organized effort to create a solid mod from the community to fix it?
[Moto G5 Plus Themes, Apps, and Mods] Meowdib:
Isn't that what this thread is about?
[Moto G5 Plus Themes, Apps, and Mods] wastedige:
My understanding was this thread is covering issues of specific kind with the camera. Also some easy walkthrough steps for the noob users (like myself!) would help more adoption :)
[Moto G5 Plus Themes, Apps, and Mods] defcomg:
The only way forward is HDR+ that's what I use don't use stock anymore

https://www.instagram.com/p/BauzLiEhHrH/

https://www.instagram.com/p/BasNb7vBO6P/

https://www.instagram.com/p/BasOrYhh65r/

https://www.instagram.com/p/BavN8RXhLdI/

Some HDR+ shots
[Moto G5 Plus Themes, Apps, and Mods] McKellen:
Could you please specify what ROM, camera app and mods are you using currently?
[Moto G5 Plus Themes, Apps, and Mods] wastedige:
Seems like this is what he's talking about. I haven't tried it myself yet:

https://xdaforums.com/showpost.php?p=74081041&postcount=3
[Moto G5 Plus Themes, Apps, and Mods] Bigmotoxer:
All this hype about the ease of rooting the Moto g5 plus blah blah SURE it roots fabulously except the camera DON'T work. Oh and I put a custom OS which fixes the camera issue but because I have a boost Mobile phone(which I'm assuming isn't compatible w the 3 custom ROM that I've tried) because altho they fix the camera issue they cause ph to only have 3g. No more 4g. I really regret getting this ph, I can't find help w this issue, I've already posted about it to no avail. ....camera busy. Unable to start etc
[Moto G5 Plus Themes, Apps, and Mods] Naveencd:
moto

not working
[Moto G5 Plus Themes, Apps, and Mods] Barbiox Dogg:
Will this work on Oreo ROM?
[Moto G5 Plus Themes, Apps, and Mods] ~Unify~:
There are two folder i.e LIBMM Binned 2016 x 1512 Res and Chromatix mod. From which fold should i copy the files or from both folder?
[Moto G5 Plus Themes, Apps, and Mods] Dishe:
Read through this, I have to admit I don't understand the binning for low light. As a photographer by trade, I understand the concept, but not the desire.

What is the point of pixel binning in camera when you can get the same result by resizing the picture in post? A good re-sample algorithm (such as found in Adobe products and other quality image editors) will blend the pixels together to reduce noise and therefore give the illusion of a larger photosite / better low light capability. Correct me if I'm wrong, but isn't that the same thing as pixel binning in camera? You are proposing that we automatically do this when the picture is taken, resulting in a smaller sized file.

Why limit the resolution and be stuck with a questionably clean binning algorithm in-camera when this can be accomplished in post? At least without it, you can choose to resize to avoid noise or not, with binning active you have no options and it won't necessarily be better than the alternative.

Perhaps there is something I'm missing, in which case please share!

Meanwhile, I've been using the Google HDR+ app for 32-bit from another thread here, and with the camera2 api, it seems to get around the over-sharpening issue anyway. But I'm noticing this hasn't completely solved the problem. Other camera apps and modes (such as snapchat, Footej, google camera's lens blur function, etc) seem to still get a dose of sharpening and noise reduction that eats away at the camera's otherwise decent quality. So I'm interested in this hack if it can do something about that.

I'm noticing that even in the stock camera, the preview in particular is worse than the actual camera image recorded. Its like there's a super-sharpened preview image going on that looks horrible. I think certain apps (like snapchat) use that live preview as its capture, and that's why those apps are still suffering from poor quality.

Will the modifications in this thread help with the low quality preview image? Or does it only effect the final processing once the image is taken?
[Moto G5 Plus Themes, Apps, and Mods] Dishe:
So, I decided what have I got to lose and flashed the zip with the modifications, less the binning (which I still believe is a disadvantage). I can confirm it DOES make a difference even in the preview, so apps like Snapchat and Augmented Reality (aka Pokemon Go, etc) which seem to use the frame buffer preview, now have clean un-sharpened images. Much much better.
[Moto G5 Plus Themes, Apps, and Mods] ehbm:
Can you show some before and after pictures?
[Moto G5 Plus Themes, Apps, and Mods] Dishe:
I wish I had saved some before pictures to compare, but there weren't any worth keeping. I hated the sharpening. We just started using Google Photos or organize our pictures so I delete ones which aren't actually ones we want to archive.

I can post after photos if you want, but I don't know how helpful they'd be.
[Moto G5 Plus Themes, Apps, and Mods] Dishe:
Well what do you know, I found a shot of my desk I had taken with the stock app to check for aliasing on hard lines.

I tried to line up a similar shot with my phone now that I've flashed the zip to reduce sharpening and NR, but the mess on my desk is somewhat different now, so it doesn't line up exactly. Also, the newer shot picked a different exposure so it seems more evenly lit, however I don't think that has anything to do with the modification. That's just me being more careful with setting the focus / exposure point this time around.

But you can see the 2nd image doesn't suffer from the over-sharpening thing, and the fine detail in things like lines and letter is preserved. I have no idea why Moto decided it was better with all that extra stuff on, this is clearly nicer looking to me.
[Moto G5 Plus Themes, Apps, and Mods] ehbm:
Nice, thanks. I'm gonna try this mod.
[Moto G5 Plus Themes, Apps, and Mods] Dishe:
Be sure to take some good before/after pics for future forum goers who will undoubtedly ask. :)
[Moto G5 Plus Themes, Apps, and Mods] shanks125:
Sir If possible, can you update your mod using Pixel 2 camera libs which uses same Sony IMX362 Camera sensor?
[Moto G5 Plus Themes, Apps, and Mods] dunderball:
[/COLOR]

Edit2: Just cross out everything I said. Works great as a Magisk module.
[Moto G5 Plus Themes, Apps, and Mods] dunderball:
Magisk module fixed and updated

Hi everyone - I took the liberty of updating the Chromatix Magisk Module to the latest v1500 template (should only be used with Magisk 15 and higher).

I also believe there is a mistake in the original Magisk Module posted earlier in the thread. The config file is loading /system/vendor/libs when it should be /system/vendor/lib. The REPLACE list should also be blank. Attempting to replace /system/vendor/lib will result in a bootloop.

Credit goes to [MENTION=377973]defcomg[/MENTION] for the original libraries.
[Moto G5 Plus Themes, Apps, and Mods] Dishe:
Nice, thanks for that. Never delved into Magisk personally on this phone yet- I'm still unrooted. :)

Hope the old script didn't mess anyone up if they used it!
[Moto G5 Plus Themes, Apps, and Mods] eagle06:
breaks camera on latest pe 8.1 rom
[Moto G5 Plus Themes, Apps, and Mods] ugupta100:
Sometimes over sharpening looks good!
[Moto G5 Plus Themes, Apps, and Mods] Dishe:
Custom ROMs do their own thing when it comes to lib files like chromatix. I wouldn't apply this without first looking into it on a custom. For stock rom, this is a must have. For rom developers, I hope they refer to this and not to the Moto stock libraries. But there's no guarantee any of this will work or even be beneficial once you're off the reservation.

If it does I haven't seen an example of it yet.

People can still get decent shots with the stock cam and libs under the right circumstances, but that's not because the sharpening enhances it- rather it looks good DESPITE it. Imagine how much better the picture would be without some filter mucking up the contrast in things like text and fine brick details!
[Moto G5 Plus Themes, Apps, and Mods] ugupta100:
Yeah I wish they had raw enabled in the stock app atleast. Waiting for my warranty to get over.
[Moto G5 Plus Themes, Apps, and Mods] pradsngh523:
Why wait 1year for warranty? If device had any nook, you will know within 3 months and if you are interested in waiting give it atleast 6 month. You will know the quality of the product.
[Moto G5 Plus Themes, Apps, and Mods] ugupta100:
Yeah but i don't feel good ditching the warranty. Anyway waiting for official oreo. Camera is not that important to me.
[Moto G5 Plus Themes, Apps, and Mods] imsurazz:
I replaced the files but I found out that the primary camera has stopped working and there's no way to switch to it. Only front camera works. Need help.
[Moto G5 Plus Themes, Apps, and Mods] imsurazz:
[UPDATE] Fixed it by replacing the libmm file frm stock rom!
[Moto G5 Plus Themes, Apps, and Mods] Dishe:
As I said earlier, I only really recommend the chromatix mod from here. The Libmm should be left alone (stock) IMO.
[Moto G5 Plus Themes, Apps, and Mods] ksvirdi105:
[MENTION=377973]defcomg[/MENTION] libmm file breaking camera suddenly. i did this before on latest pe, but i reflashed but now only chromatix mod works but libmm breaks camera. please how to fix.
[Moto G5 Plus Themes, Apps, and Mods] rogeriodocarmo:
Work in Moto G5S Plus?
[Moto G5 Plus Themes, Apps, and Mods] TheIronLefty:
Moto G5S Plus has Camera2API support and is probably 64bit so no need for this, use GCAM port.
[Moto G5 Plus Themes, Apps, and Mods] rogeriodocarmo:
Thanks!
[Moto G5 Plus Themes, Apps, and Mods] Drvn:
My camera isn't working, help me
[Moto G5 Plus Themes, Apps, and Mods] Matthendrick:
I need stok libs for moto g 5 plus... :crying: my câmera its dont work
[Moto G5 Plus Themes, Apps, and Mods] Drvn:
My camera isnt working

I need the stock libmm

Please, i want my camera back
[Moto G5 Plus Themes, Apps, and Mods] Dishe:
Strange. What did you guys do? The libs shouldn't make or break the camera. Changing them should change how your image is processed but shouldn't have any effect on the camera working or not.

Are any camera apps working? If you broke your stock camera app, maybe reflash the stock rom because I don't think replacing the lib files will fix it. There must be something else wrong.

It is not 64 bit. None of motos phones are that I know of. It has camera2 because the dual cam thing likely can't operate under the protocols of camera1. Otherwise the S and none S are strikingly similar in software.
[Moto G5 Plus Themes, Apps, and Mods] Drvn:
I think i've paste the libs in other path "device/vendor/lib"

There's any way to get back ?
[Moto G5 Plus Themes, Apps, and Mods] Dishe:
Are you running stock?

I still don't see how it would have broke your camera. Are you running any other camera apps?
[Moto G5 Plus Themes, Apps, and Mods] Drvn:
No, i'm trying to open the camera and says "Camera has stopped"

But, i downloaded a camera app, and only front camera is working
[Moto G5 Plus Themes, Apps, and Mods] Drvn:
I got it, i've installed the stock rom of moto G5 plus, and my camera is working again, thank you for support
[Moto G5 Plus Themes, Apps, and Mods] CyberManiaK:
Anyone have the stock chromatix files for XT1687 ! For some stupid reason I thought I did the backup. And now that i replaced the ones on OP the camera is not working I'm getting "Camera busy". BTW: I only did Chromatix mod.

Thanks.
[Moto G5 Plus Themes, Apps, and Mods] sharan.nyn:
Hi! I am attaching the files. But seems like you faced the issue because of permissions make sure you set 0644 or rw-r-r.

Try it first before using the backup files. I'm sure it will work.

PS: you have to set permission even if you copy backup files.

Regards,

Sharan
[Moto G5 Plus Themes, Apps, and Mods] marcol87:
should permission be set to the whole directory (and sub-directory) or only to the files I copy?
[Moto G5 Plus Themes, Apps, and Mods] marcol87:
does anyone have stock files for XT1685?
[Moto G5 Plus Themes, Apps, and Mods] jimwormold@gmail.com:
Could anyone tell me whether this should work for the xt1675? If not how might I go about making it work?

EDIT: (xt1675 is the 2GB Moto G5 without the plus!)
[Moto G5 Plus Themes, Apps, and Mods] Sniper Killer:
Hello!

I would be gladly thankful if somebody tells me wether this can work on G5s Plus, and if not (which is very likely), how can I do the same process in my phone. It is a XT1085(Europe model). I have been once a developer and editor but now my knowledge on developing is rusty, thus I request some help. I think both the phones have an incredible potential of the camera sensor, which unfortunately is lacking proper system configurations.

Thank you very much!
[Moto G5 Plus Themes, Apps, and Mods] pradsngh523:
Try g5 plus telegram group peeps are more active there.
[Moto G5 Plus Themes, Apps, and Mods] Sniper Killer:
Thank you for your answer!
[Moto G5 Plus Themes, Apps, and Mods] vedu1:
Will this improve focusing in arnova8G2 V6 gcam
[Moto G5 Plus Themes, Apps, and Mods] rbk281:
I would also be interested to know if this impacts Gcam focusing and even image quality as it does seem to be a low level sharpening fix.

---------- Post added at 05:25 AM ---------- Previous post was at 05:06 AM ----------

Yes but in theory pixel binning should also lower the shot exposure because the image processor then bin (SUM) 4 pixels to brighten the image resulting in lower ISO required under low light conditions and also some protection of highlight detail in high dynamic range scenes. Based on the before and after images, it seems to have the same brightness level but I'm not sure if it isn't just reducing the brightness in post.

I would be interested to know if this mod impacts low light 1080p video quality as binning a 4K video to 1080p video is something no other phone does (except the XZ2 Premium perhaps) and would make it the second best low light phone for HD video. .

---------- Post added at 05:31 AM ---------- Previous post was at 05:25 AM ----------

Do you recall if your libmm image also had chromatix enabled? Because they seem way sharper.

Also do you remember if there was a difference in video quality or does libmm not apply to video?
[Moto G5 Plus Themes, Apps, and Mods] rbk281:
Ok, I tried this out myself and libmm definitely impacts video as well:

Low light exposure seems brighter. The stock 1080p videos were darker than 4K and also zoomed in due to crop

4K is disabled (probably because the Mod reduces the output to <3MP) which is fine for 1080p since that only requires ~2MP

There are some color tints in the corners so I'm not sure if this needs some bayer related fixes

Can you please share what you have mapped so far? It would be useful to modify the libmm for low light video and also reduce the noise reduction in Cromatix instead of totally disabling it for a zero-workflow sharing ready image.
[Moto G5 Plus Themes, Apps, and Mods] defcomg:
hex workshop bookmarks
[Moto G5 Plus Themes, Apps, and Mods] rbk281:
Thanks! I moved to Oreo under which the modded libmm is no longer working so I might need to redo these changes on the Oreo stock libmm file.
[Moto G5 Plus Themes, Apps, and Mods] wastedige:
I just tried to add Chromatix mod to my Pixel Experience ROM, now I'm getting force close. It was working fine on stock ROM

Update: Mine was a chromatix/libmm combo. I excluded libmm and now it works fine
[Moto G5 Plus Themes, Apps, and Mods] rbk281:
Hmmm... only libmm gives me a force close in Oreo, chromatix works just fine. Try restoring pixel experience stock libmm if you made a backup else you might have to dirty flash the ROM to restore.
[Moto G5 Plus Themes, Apps, and Mods] doge queiroz:
works on the pie rom?
[Moto G5 Plus Themes, Apps, and Mods] SRocks281:
I used the mod with RR ( Oreo ).

Backed up the files, copied the mod and then restated my phone.

Now my Moto Cam force closes on opening. Restoring the backup also didn't fix it. Had to dirty flash the ROM.

Any ideas ?
[Moto G5 Plus Themes, Apps, and Mods] rbk281:
1. I modded the Resurrection Remix (Oreo) libmm file by comparing the Hex values in your original mod but it still outputs a full 12MP image.

2. If I enable BIN MODE TEST at 000006E0-000006EF, as documented on your Hex workshop bookmarks, it stops the camera from starting altogether. (I notice that your original libmm MOD also did not have this enabled)

Do you recall if you had to modify any other values for the Binning mod to work?

On a side note, I was also playing around with the chromatix files and able to attain laser quick and accurate autofocus using GCam but I still need to isolate which of the changes made that happen.
[Moto G5 Plus Themes, Apps, and Mods] rbk281:
The original libmm mod prevented my camera from launching so you should only use Chromatix. Be careful though some of the flashable zips on this thread include the libmm file.

I didn't see any major difference in quality but I don't know if this ROM already includes some modifications from defcomg's work. Risk is low if you backup your current Chromatix and libmm files as you can simply revert. Worst case it still won't brick the device but you might have to dirty flash the ROM.

---------- Post added at 06:49 AM ---------- Previous post was at 06:40 AM ----------

You might have flashed the Mod which includes the libmm file. Make sure you backup and restore the stock libmm from an RR Oreo installation as the stock libmm on this forum will also force close the camera under Oreo.
[Moto G5 Plus Themes, Apps, and Mods] rbk281:
Hmmm you could make a TWRP backup of the root folder and then use a utility like iZArc to browse the backup folders. You can even try browsing the ROM zip file as that should have the originals. Worst case you can always dirty flash the ROM to restore the files.

Speaking of TWRP backups, everyone planning to fool around with the Oreo ROMs must back up their persist partition.
[Moto G5 Plus Themes, Apps, and Mods] Z.zausch:
Hi can someone tell me if it is possible to port these chromatix libs to moto g5s plus/lg g6? They both have the sony imx 258 sensor which is not the same model as in the g5 plus. Or maybe soneone can give me some guidance on how to try it myself?
[Moto G5 Plus Themes, Apps, and Mods] Dishe:
The chromatix libraries are similar, it might be possible to adjust the same values in the same way as this. But I don't think you can just import these files over yours because there are likely some parts that are different.

You'd have to talk to Defcomg/Savitar about that, I don't know enough about what modifications were made to tell you. You can find him on Telegram, he doesn't log in to XDA much anymore. Or find someone else who is familiar with chromatix library files. Sorry, good luck!
[Moto G5 Plus Themes, Apps, and Mods] Z.zausch:
Thanks a lot [MENTION=349165]Dishe[/MENTION] for your response, I'll try to contact tgem on telegram.
[Moto G5 Plus Themes, Apps, and Mods] Cupcake 1.5:
Thanks. This works on my Z2!.
[Moto G5 Plus Themes, Apps, and Mods] mattybaby:
needed for Pie ROM's & san1ty CAM?

Is this mod still valid for Pie ROM's and the Google Camera Port by san1ty apk?

Any before/after comparisons with any tweaks made to the cam app?

Ref- https://www.celsoazevedo.com/files/android/google-camera/dev-san1ty

Thanks!
[Moto G5 Plus Themes, Apps, and Mods] aIeck:
(Yes it's been like 3 years, but I'm still using this phone...)

After updating to a new (unofficial) Lineage OS build, I found the camera files were apparently overwritten, so I copied [MENTION=377973]defcomg[/MENTION]'s modified libchromatix files over again. However, camera preview & images were super dark, making it unusable.

I copied the files over again one by one to find which one was the culprit; it's something in libchromatix_mot_imx362_fullsize_preview_3a.so.

Not sure how to fix this, just posting in case anyone else has this problem.

Update: I've been using [MENTION=5895297]gothicVI[/MENTION]'s builds for Potter (https://androidfilehost.com/?w=files&flid=289083&sort_by=date&sort_dir=DESC) and the last build that the chromatix mod works with is 20191015. (No mirrors available for 20191112, and it doesn't work with 20191211.) So that's a clue.

Update 2: never mind, updating from 20191015 to the newest one (2020221) seems to work! Leaving this here in case anyone else has the same problem.
[Moto G5 Plus Themes, Apps, and Mods] JHERAA:
Breaks camera on Ressurection Remix v7.0.2 android 9.
[Upgrading, Modifying and Unlocking] theone298:
Hello everyone..i just buy used qtek8010 and the version of windows is very old so i need the last rom update from the site of qtek and i cant register on the site cuz the IMEI is invalid and used and all the updates on the internet are in the old database of the qtek site >>>>

so plz if there is anyone can help then i will be very thankful to... :)
[G4 Q&A, Help & Troubleshooting] Longbranch:
Hello, (complete n00b here)

Several days ago I've tried to flash a 6.0 MM (from 5.1) to my LG G4 H815 phone. There was no option to do it automatically so I proceded to do it manually via flashboot.

I hard-bricked it to oblivion as in black screen, no response whatsoever.

While investigating @ the internet I've managed to understand I could get it fixed via quadcomm drivers (mode 9008).

Tried various "fixes" for H815 but was getting safari download errors. For some reason I tried a LS991 fix and it worked. When I started the phone it showed no logo but just a secure booting error 1006.

Still, could enter firmware download so I began to flash a lot of KDZ firmwares with no success.

LGUP shows my model : H81510H.

While in fastboot mode there is a note below (wasn't there the first time) with codes : 633 B46 or something like that.

While flashing anything it ALWAYS STOPS at 9% with a tot anti-rollback error. While flashing the code changes briefly where one can read smth like : LGLS991ZVA ver. 6.0

Managed to download some KDZ for that exact model, SAME ERROR. Tried to find / flash LS991ZVA with no success in finding a TOT file.

Also, managed to get ADB drivers up and it shows unauthorized in listing (LS991). Fastboot does not detect my device even in fastboot mode @ phone.

Please HELP!
[G4 Q&A, Help & Troubleshooting] stinka318:
H81510h is os version it is still at 5.1 I think....what may help is plug your phone in with lgup and drop the battery out of it then closes of LG up put battery back in and start LG up and find kdz that matchs your phone and make sure that it doesn't have anti rollback.....
[G4 Q&A, Help & Troubleshooting] Longbranch:
Hello and thx for reply. I tried to do what u've said. It did something (I was looking for a while back). When I plug the cable back in, my windows 7 immediately installs quadcomm hs-usb driver (9008) and my phone acts as if it was dead. LGUP cannot find it in that state. I've been trying to QFIL the "proper" soft but it continues to pop different errors (using different QFIL versions). Either saharafail or some sort of download fail.

LGUP still presents an error (if I decide to "fastboot" it) @ 9% 0x2000, TOT antirollback version is smaller than device version.

How can I make sure I've got the proper KDZ without ANTI-ROLLBACK?
[G4 Q&A, Help & Troubleshooting] stinka318:
This may help........

https://xdaforums.com/lg-g5/development/uppercut-lgup-loader-g5-variants-t3511295