[stock camera][port][patched][updated]

Search This thread

gabriwinter

Senior Member
Mar 27, 2013
123
102
STOCK ANDROID NOUGAT [N] CAMERA FOR ALL CUSTOM ROM

How To Install
1. Download Zip file
2. Reboot into TWRP recovery
3. Flash Zip file
4. Reboot
5. Done Enjoy Stock Camera on any custom rom


I'd like to give credit to DevendraMilmile121 for the original port here.
Also credits to data365 for his mod here
I patched the apk to avoid the FC when com.motorola.frameworks.core.addon.jar is present.

No need to delete the com.motorola.*** .jar files from system/framework/

Download v6.0.54.1
Download v6.0.78.1

Enable Write to external sdcard:
ExtSD_Fix_rw-signed-v1.9b.zip
 
Last edited:

gabriwinter

Senior Member
Mar 27, 2013
123
102
Many thanks for this, working on resurrection remix 5.8.3 26/04 build without issue. :) how did you get around the FC problem, if I may ask?

My understanding is that when /system/framework/com.motorola.frameworks.core.addon.jar is present
com.motorola.camera.device.framework.CameraMotExt.<clinit> fails to find class "android.hardware.Camera$EnvDetectCallback"
So I emptied out the static method (<clinit>) and initialised a couple of variables outside.
I used DexPatcher to modify it.
Then the behaviour is the same as if /system/framework/com.motorola.frameworks.core.addon.jar wasn't there.
Clearly this is a workaround not a fix. It would be nice to know why it can't find the class and fix it so that "CameraMot" is supported (I guess this is some hardware optimisation)
 

baunthiyal

Senior Member
Jan 16, 2015
229
65
26
Jaipur
Thank you for this. After I deleted those files, an FC message saying "Motorola Settings" has stopped would greet me at every boot. This'll take care of that. :D
I don't believe it has anything to do with video recording though, does it?
 
  • Like
Reactions: lfelipe1501

echo92

Senior Member
Jan 1, 2017
3,732
1,989
Plymouth
Thank you for this. After I deleted those files, an FC message saying "Motorola Settings" has stopped would greet me at every boot. This'll take care of that. :D
I don't believe it has anything to do with video recording though, does it?

I didn't see issues with video recording either with the patched Moto camera and deleting the .jar files, or using this Moto camera as is. The Motorola settings seems to pop up whenever, but dismissing it doesn't seem to cause issues with the camera app or the system itself - curious!
 
  • Like
Reactions: lfelipe1501

optionalmgrr.la

Senior Member
Sep 5, 2015
1,107
158
My understanding is that when /system/framework/com.motorola.frameworks.core.addon.jar is present
com.motorola.camera.device.framework.CameraMotExt.<clinit> fails to find class "android.hardware.Camera$EnvDetectCallback"
So I emptied out the static method (<clinit>) and initialised a couple of variables outside.
I used DexPatcher to modify it.
Then the behaviour is the same as if /system/framework/com.motorola.frameworks.core.addon.jar wasn't there.
Clearly this is a workaround not a fix. It would be nice to know why it can't find the class and fix it so that "CameraMot" is supported (I guess this is some hardware optimisation)
Yes look forward to [emoji4]
 

optionalmgrr.la

Senior Member
Sep 5, 2015
1,107
158
STOCK ANDROID NOUGAT [N] CAMERA FOR ALL CUSTOM ROM

How To Install
1. Download Zip file
2. Reboot into TWRP recovery
3. Flash Zip file
4. Reboot
5.Done Enjoy Stock Camera on any custom rom

Download
All credits to DevendraMilmile121 for the original port here.
I just patched to avoid the FC when com.motorola.frameworks.core.addon.jar is present.

No need to delete the com.motorola.*** .jar files from system/framework/

Thx!!!!!!!!!!!!!!!!!! :D

Can we auto-update via Playstore to newer version?

Is quality as good as it's on stock roM? thx!!!!!!
 

gabriwinter

Senior Member
Mar 27, 2013
123
102
Thx!!!!!!!!!!!!!!!!!! :D

Can we auto-update via Playstore to newer version?

Is quality as good as it's on stock roM? thx!!!!!!

It can't be updated or it would loose the patch.
Quality wise I would say it's close to stock but probably a little below (can someone confirm this?)
For now I think this is the best we can get for non stock roms.
If someone wants to step up and try to get a proper fix that would be ideal.
 
  • Like
Reactions: optionalmgrr.la

optionalmgrr.la

Senior Member
Sep 5, 2015
1,107
158
It can't be updated or it would loose the patch.
Quality wise I would say it's close to stock but probably a little below (can someone confirm this?)
For now I think this is the best we can get for non stock roms.
If someone wants to step up and try to get a proper fix that would be ideal.
Cool. Let's hope someone fix this further
 

Top Liked Posts

  • There are no posts matching your filters.
  • 50
    STOCK ANDROID NOUGAT [N] CAMERA FOR ALL CUSTOM ROM

    How To Install
    1. Download Zip file
    2. Reboot into TWRP recovery
    3. Flash Zip file
    4. Reboot
    5. Done Enjoy Stock Camera on any custom rom


    I'd like to give credit to DevendraMilmile121 for the original port here.
    Also credits to data365 for his mod here
    I patched the apk to avoid the FC when com.motorola.frameworks.core.addon.jar is present.

    No need to delete the com.motorola.*** .jar files from system/framework/

    Download v6.0.54.1
    Download v6.0.78.1

    Enable Write to external sdcard:
    ExtSD_Fix_rw-signed-v1.9b.zip
    10
    New patched 6.0.78.1 available check OP.
    9
    Test

    Okay guys so here's another zip for Moto camera 6.0.86.7
    This one has some added libs from stock with hope of improving camera quality

    Try this one at your own will. And it is imperative that you take a backup before flashing

    If this works I'll integrate these libs in future camera update...

    For downloading this, Click Here

    Thanx for testing. Works on my device btw.. Not sure how much it improves the camera though.;)

    Oh I forgot, Moto Camera 6.0.86.7 apk with new round blue icon as always is, Here.

    A thanks on these posts would be appreciated and will be great encouragement for future. :cowboy:
    6
    Moto Camera 6.0.84.1

    For apk file, Click Here

    For flashable zip, Click Here

    Plz take a backup before flashing the zip. I'm not responsible for anything.

    This camera has stock moto icon. If you want other the app with other icon (blue round one) then tell me I'll upload that one too

    Edit: Moto camera 6.0.84.1 with blue moto icon, Click Here

    Plz remove any previous versions of moto camera before installing the apk as it conflicts with existing package?

    If drive link doesn't work then tell me, I'll upload on AFH
    5
    Moto Camera 6.0.86.7

    For apk file, with Stock moto icon Click Here

    For flashable zip, [URL="https://drive.google.com/file/d/1xeel6qErwP0sseiuqcwHWUd2vndJcAMu/view?usp=drivesdk]Click Here[/URL]

    Plz remove any previous versions of moto camera before installing the apk as it conflicts with existing package?

    Plz take a backup before flashing the zip. I'm not responsible for anything.
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