Stock camera app is not working with API2 enabled. - Xiaomi Redmi 4X Questions & Answers

Hello...
I have 9.2.4.0 rom and because i want to use Google cam i enable API2 in build prop.
But with API2 i can't use stock camera app. Is crashing.
If i delete API2 line from build prop then i can use stock camera again.
Is there any way to use both camera apps simultaneously?
Thank you very much.

Can anyone help please?

You can disable camera2api or roll back to any version of miui before 7.12.21 update.
Another option it's flash this modded miui camera, but at least for me it didn't work as espected. This caused some bugs on the miui camera.
https://forum.xda-developers.com/showpost.php?p=74893764&postcount=1431
I was using multi pro 7.12.14 build, and everything worked perfect, but I had some issues with ads in asphalt xtreme. So now I have miui.am and I'm using camera MX to replace the stock camera.

Thank you for your answer.
So the problem started after the 7.12.21 android version?
Do you know why this happened? What changes create this "malfunction"?
Thank you very much.

LonerDarke...
Can you answer please?

I'm not sure why this happen, but it started when Xiaomi introduced miui 9.3 with 7.12.28 build. So if you really need the stock camera try 7.12.21.
Some guys in miui.eu forums said this is caused by a issue with the permissions on the build.prop file, but whenever I checked, the file had already the correct permissions. So I think this is not the problem, at least for our phones.

Thank you again for your answer.
Can you provide me a link with the conversation you said in miui.eu forum?
Thank you.

Yngwiedis said:
Thank you again for your answer.
Can you provide me a link with the conversation you said in miui.eu forum?
Thank you.
Click to expand...
Click to collapse
Here: https://xiaomi.eu/community/threads/miui-camera-crashing-after-enabling-camera2-api.43088/
I'm DarkeMYSP there by the way.

Thank you very very much mate.

Related

Completely substitute the on board camera app with the Google camera

Help guys,
I am currently using miui 9 beta rom from Xiaomi eu on my Mi Mix.
For the camera, I am getting really amazing results with the modified Google camera apk, the one with ported hdr+ from the Pixel.
It's useless at this point to ever lunch the stock camera, which is really awful.
I use very often the "double click the power button" from lock screen to get into the camera. This however launches the stock camera.
Is there any way to force MIUI to launch the Google camera instead?
Thank you for your help.
try button mapper... or similar apps from store, no root, root or xposed.. depending wich level modification u want...
Lithium-Fusion said:
Hey. I've tried selecting 3rd party cam apps as default to get them triggered by double press to launch(screen off) but however it only launches the stock camera app. I also froze the stock and tried so but no luck. Im on MM build so you can just give it a try by Settings » Installed apps » Defaults(icon on the bottom) » Camera then select Google cam.
Click to expand...
Click to collapse
I tried that already, no luck. Thank you for the suggestion anyway.
elialitem said:
Help guys,
I am currently using miui 9 beta rom from Xiaomi eu on my Mi Mix.
For the camera, I am getting really amazing results with the modified Google camera apk, the one with ported hdr+ from the Pixel.
It's useless at this point to ever lunch the stock camera, which is really awful.
I use very often the "double click the power button" from lock screen to get into the camera. This however launches the stock camera.
Is there any way to force MIUI to launch the Google camera instead?
Thank you for your help.
Click to expand...
Click to collapse
I was looking for the same thing a few days ago didn't solve it and moved to ViperOS rom.
Maybe it can work if someone finds a specific MIUI file with the camera path shortcut on it, I have no idea where to start looking ...
So far even button remapper doesn't work for this
renganyen said:
I was looking for the same thing a few days ago didn't solve it and moved to ViperOS rom.
Maybe it can work if someone finds a specific MIUI file with the camera path shortcut on it, I have no idea where to start looking ...
So far even button remapper doesn't work for this
Click to expand...
Click to collapse
does every feature work for you? slow mo etc.
lesscro said:
try button mapper... or similar apps from store, no root, root or xposed.. depending wich level modification u want...
Click to expand...
Click to collapse
I also tried this, no luck.
@ this point... need hack specific stuff on MIUI to achieve your goal...
sikiro said:
does every feature work for you? slow mo etc.
Click to expand...
Click to collapse
The joy thing that doesn't t work on it is slowmo :/
I tried it today, still it does't work.
elialitem said:
I tried that already, no luck. Thank you for the suggestion anyway.
Click to expand...
Click to collapse
Just leave MIUI, use RR and DragonXia Kernel
Hi, Im on MIUI 9 as well but cant find a working a google hdr+ for this rom... would you be able to share link?
oofol said:
Hi, Im on MIUI 9 as well but cant find a working a google hdr+ for this rom... would you be able to share link?
Click to expand...
Click to collapse
You need to enable camera hal3
Can I do this with Super SU or do I have to have Magisk?
oofol said:
Can I do this with Super SU or do I have to have Magisk?
Click to expand...
Click to collapse
Either, then you will need build prop editor with root.
Enabled Hal3 via the build.prop - installed the camera app - fc's on opening. MIUI 9 Xiaomi EU rom
Nicolfa said:
Enabled Hal3 via the build.prop - installed the camera app - fc's on opening. MIUI 9 Xiaomi EU rom
Click to expand...
Click to collapse
https://www.androidfilehost.com/?fid=889764386195925088
This must be work
Can anyone share some feedback on this app working on custom ROMs for the Mix like LineageOS? With a custom ROM and a better and more customisable launcher like Nova Launcher for example, I think the integration and implementation of the Google Camera HDR+ app will be much better than on the stock MIUI ROM.
Thanks in advance

[APP][FEEDBACK] Arnova8G2's Google Camera Port

This thread has been created to provide Redmi 4X feedback to @Arnova8G2 regarding his port of the Google Camera app.
Describe your experience (mostly what doesn't work as expected)
Provide logcats (the dev does not have your phone, so logs are needed if you want him to fix stuff)
Mention @Arnova8G2 when you post your feedback
ALL FEEDBACK PROVIDED IN OTHER THREADS OR WITHOUT LOGS WILL BE IGNORED​
Flash THIS zip for enabling camera2API (GCam Included) and more.
Latest update:
v1.4
Arnova8G2 said:
2017/01/04 – GCMod5 based on Mod By B-S-G
Add toggle for portrait mode or Lens Blur
AutoFocus enhancement and faster
Support level override back in ZSl, front in ZSL_REPROCESSING and Level_3 for OP3/OP3t, MI5,Mi5s
Black screen fix test
Add 4K for devices that do not have it
GCam5.1.018-Arnova8G2-V1.4.apk
** Please mention me in the thread of your device with a logcat or screenshots.
Click to expand...
Click to collapse
Previous versions:
v1.3.1
v1.3
Recommended Settings (that i uses):- see attachments
Image Samples by @__PG__
https://ibb.co/ffmEGb
https://ibb.co/kxzehG
https://ibb.co/eKA8bb
https://ibb.co/htZ1wb
I installed the app. It is mostly unusable due to crashes. Bt when it works photos are flawless.
I have 3.4b installed, works better, no crashes, more configuration options available.
akkowicz said:
I have 3.4b installed, works better, no crashes, more configuration options available.
Click to expand...
Click to collapse
Please give me the link for that version, is it enabled the HDR+ feature?
akkowicz said:
I have 3.4b installed, works better, no crashes, more configuration options available.
Click to expand...
Click to collapse
I tried that version it doesn't work. What device did you choose from the settings for hdr+. I tried it kept crashing.
https://forum.xda-developers.com/mi-5/themes/app-collection-camera-modded-t3591177/page24
Try this
gauti_1998 said:
https://forum.xda-developers.com/mi-5/themes/app-collection-camera-modded-t3591177/page24
Try this
Click to expand...
Click to collapse
Can you tell me what hdr+ are you using?
thejoker said:
Can you tell me what hdr+ are you using?
Click to expand...
Click to collapse
https://forum.xda-developers.com/attachment.php?attachmentid=4267789&d=1504975880
i m using v3.4
thejoker said:
Can you tell me what hdr+ are you using?
Click to expand...
Click to collapse
its not working bruh ! tried every HDR+ mode but the App is getting stopped evertime I do this.
though if you still want to use the HDR+ mode choose from Pixel & when the app crashes..
1.long press the App Icon
2.Select take a selfie
3.Change to Rear Camera
it will work but its annoying :silly:
is available in newest version saving photos to sd card?
Hi,
I've been using this for a 3 days now and it is pretty awesome! Thank you so much! Photos are way better than any modded cameras out there.
The only thing I've been struggling to fix now is the slow motion. It says "can't connect to the camera". I've tried basic fixes out of YouTube and tried flashing some fixes I found on the internet -esp. here in XDA but I am still out of luck.
I am 99% complete now on this camera, just the slow motion isn't working. I am using Xiaomi Redmi 4x running Resurrection Remix 5.8.5-20170929-santoni-Final
I surely will wait for your help.
Thanks in advance!
BTW, I'm a new member.
kevinxmiguel said:
Hi,
I've been using this for a 3 days now and it is pretty awesome! Thank you so much! Photos are way better than any modded cameras out there.
The only thing I've been struggling to fix now is the slow motion. It says "can't connect to the camera". I've tried basic fixes out of YouTube and tried flashing some fixes I found on the internet -esp. here in XDA but I am still out of luck.
I am 99% complete now on this camera, just the slow motion isn't working. I am using Xiaomi Redmi 4x running Resurrection Remix 5.8.5-20170929-santoni-Final
I surely will wait for your help.
Thanks in advance!
BTW, I'm a new member.
Click to expand...
Click to collapse
slomo wii be fixed soon
psdashing said:
slomo wii be fixed soon
Click to expand...
Click to collapse
Thank you so much. I'll look forward to it. And one more thing as I am currently playing with the cam right now, 60FPS also won't work on my device. I have replaced media_profiles.xml and set the necessary permissions but it also says "can't connect to the camera"
Camera App crashes after making any changes in settings . I have done everything dats recomended but nothing helps .
What device are you using and what rom?
kevinxmiguel said:
What device are you using and what rom?
Click to expand...
Click to collapse
i m using xiaomi redmi 4x with aosp extended rom
rkdok23 said:
i m using xiaomi redmi 4x with aosp extended rom
Click to expand...
Click to collapse
Are you using magisk root? Uninstall the stock camera first via any system app remover. Secondly, Try flashing camera 2 api module. Then download the modded camera on this thread. Works for me (except slow motion and 60fps video -but fix will be coming soon as per dev.)
kevinxmiguel said:
Are you using magisk root? Uninstall the stock camera first via any system app remover. Secondly, Try flashing camera 2 api module. Then download the modded camera on this thread. Works for me (except slow motion and 60fps video -but fix will be coming soon as per dev.)
Click to expand...
Click to collapse
yes i use magisk ..i have edited the buildprop but not stock camera app
rkdok23 said:
yes i use magisk ..i have edited the buildprop but not stock camera app
Click to expand...
Click to collapse
Install camera2api enabler module. Then install the gcam attached on OP. Reboot and done
kevinxmiguel said:
Thank you so much. I'll look forward to it. And one more thing as I am currently playing with the cam right now, 60FPS also won't work on my device. I have replaced media_profiles.xml and set the necessary permissions but it also says "can't connect to the camera"
Click to expand...
Click to collapse
Same happened with me too.
I was on stock rom BTW.
I reverted back to stock media_profiles.xml
But the stock miui camera supports the slo-mo and works quite fine at a speed of x0.25

[MOD] GCAM generic porting

From developers working on OP6 Google Camera porting.
Generic fixes for Snapdragon 845 devices.
Not fully working, but it's something.
DOWNLOAD
https://drive.google.com/file/d/19cdbZ_TlhhynmLdZterd1zxdBN4hLSVD/view
Super
Wysłane z mojego H8266 przy użyciu Tapatalka
Cheers ..
The quality is bad though and it crushed after closing it ...
We are still far from having a replacement for the stock camera
I think sony is fully reworking his camera app for xz3 launch.
I hope so, 'cause external portrait mode sucks, for quality and for positioning
the OP6 builds are now based on the apk from the pixel 3, maybe that helps for us as well here:
https://forum.xda-developers.com/oneplus-6/themes/oneplus-6-google-camera-port-t3797544
anyone is working on this already?
Any updates on Night Sight Mode?
Modified GCam will never work on any Xperia device as long as sony doesnt allow RAW support, Gcam mod requires full camera2.api support which Xperia phones doesnt have. GCam will only work on Xperia if you are on AOSP ROM. so dont hope too much.
https://source.android.com/devices/camera/versioning#camera_api2
Full Camera2 API level is already supported by xperias.
They just lack raw capability indeed, which if really any would be covered by level_3
But AOSP has full camera 2api.
Btw. A gcam port is in the works, I tested a first version. ?
MartinX3 said:
But AOSP has full camera 2api.
Btw. A gcam port is in the works, I tested a first version. ?
Click to expand...
Click to collapse
great, keep us posted!
What is the update here?
bigsnack said:
What is the update here?
Click to expand...
Click to collapse
Nothing new.
But I made some pictures about this app.
On Stock Rom 126 without DRM fix
MartinX3 said:
Nothing new.
But I made some pictures about this app.
On Stock Rom 126 without DRM fix
Click to expand...
Click to collapse
what about video recording? is it working, or app crashed?
about HDR+... I know, impossible without raw support.
gouster3 said:
what about video recording? is it working, or app crashed?
about HDR+... I know, impossible without raw support.
Click to expand...
Click to collapse
I upgraded it to 5.0 via the XDA app.
Features looks the same and video recording works.
I can see that it can only takes 8.3mp pictures which is the same as this one HERE
But does it takes HDR+ in AOSP rom ?
Also, have anyone had any luck with defcomg technique ? it would be great because it's stock rom.
HERE
I tried using the following versions on my XZ2 H8216
1) defcomg-fix_OP6v0.3_MGC_5.1.018_FINAL_3.4A
- photo mode works fine but I'm not really impressed with image quality. Video does not work. Also every setting I change, app won't start again.
2) MGC_5.1.018_v2e_tolyan009_v1.3.2
and/or
3) MGC_5.1.018_v2e_tolyan009_v1.3.6.
- both seems to be working fine. Photos and videos work fine and look good. Haven't tried other features and changing settings...
I hope this info helps and someone will try to test everything.
MartinX3 said:
Nothing new.
But I made some pictures about this app.
On Stock Rom 126 without DRM fix
Click to expand...
Click to collapse
Is somebody still working on this ?
And where ??
nreuge said:
Is somebody still working on this ?
And where ??
Click to expand...
Click to collapse
Seems like gcam on stock would never workaround drmfix because of the missing raw support.
But after the tama aosp camera Framework got implementated we will get better pictures.
MartinX3 said:
Seems like gcam on stock would never workaround drmfix because of the missing raw support.
But after the tama aosp camera Framework got implementated we will get better pictures.
Click to expand...
Click to collapse
Better pictures on stock Pie ??
By the way, I'm still on Oreo
nreuge said:
Better pictures on stock Pie ??
By the way, I'm still on Oreo
Click to expand...
Click to collapse
Maybe yes
I don't saw a degeneration.
Btw. Stock TWRP decryption works, if you want to upgrade.

Google Camera with Portrait mode and Night Sight for MIUI 10

Hey Everyone. I finally found a way to make google camera work on miui.
Just flash the zip and use this camera and settings.
Files were taken from LOS 15.1 so credit to its developers.
Suggested Google Camera Port:
https://f.celsoazevedo.com/file/gcamera/GCam_6.1.021_Advanced_V1.4.032219.1950.apk
Bugs:
Miui Camera doesn't work
Slow motion doesn't work.
V2 Update:
Fixed no audio in video recording
mehdi554 said:
Hey Everyone. I finally found a way to make google camera work on miui.
Just flash the zip and use this camera and settings.
Files were taken from LOS 15.1 so credit to its developers.
Suggested Google Camera Port:
https://f.celsoazevedo.com/file/gcamera/GCam_6.1.021_Advanced_V1.4.032219.1950.apk
Bugs:
Miui Camera doesn't work
Slow motion doesn't work.
V2 Update:
Fixed no audio in video recording
Click to expand...
Click to collapse
does it cause MIUI camera not working? Why?
zj37tzbpl said:
does it cause MIUI camera not working? Why?
Click to expand...
Click to collapse
Yes. Because it replaces MIUI camera libs with LOS 15.1 ones.
mehdi554 said:
Yes. Because it replaces MIUI camera libs with LOS 15.1 ones.
Click to expand...
Click to collapse
Can't they be working on one ROM at the time?
zj37tzbpl said:
Can't they be working on one ROM at the time?
Click to expand...
Click to collapse
they could if someone modifies miui libs. that's beyond my knowledge.
i get error 7 when flashing zip file. I am currently on miui 10.4
mmicoo said:
i get error 7 when flashing zip file. I am currently on miui 10.4
Click to expand...
Click to collapse
try this.
İs it works on eu beta rom?
ulasecgin said:
İs it works on eu beta rom?
Click to expand...
Click to collapse
it should
I installed Gcam to my Miui 10.2.4 system. After this, my camera started to lag and freeze. Because of that, I installed Lineage Os 16.0 but none of the rear cameras were working. Then I tried installing some other custom ROMs but I just couldn't get rear cameras to work. What can I do about it?
how can i install settings.xml file?
ulasecgin said:
how can i install settings.xml file?
Click to expand...
Click to collapse
Create a folder inside the internal storage and name it Gcam, inside that one create another folder called configs and copy the xml file there.
Fire up the camera and double tap the grey area between the shutter and pictures, and select restore from the pop up menu restart the camera and you are done
Sent from my MI 5s Plus using Tapatalk
oznklync said:
I installed Gcam to my Miui 10.2.4 system. After this, my camera started to lag and freeze. Because of that, I installed Lineage Os 16.0 but none of the rear cameras were working. Then I tried installing some other custom ROMs but I just couldn't get rear cameras to work. What can I do about it?
Click to expand...
Click to collapse
try flashing miui fastboot rom with mi flash . a full flash that wipes everything.
mehdi554 said:
try flashing miui fastboot rom with mi flash . a full flash that wipes everything.
Click to expand...
Click to collapse
İ try this but nothing changed. Rear cameras still not working.
how can I return stock camera?​
ulasecgin said:
how can I return stock camera?​
Click to expand...
Click to collapse
Dirty flash miui rom
Sent from my MI 5s Plus using Tapatalk
oznklync said:
I installed Gcam to my Miui 10.2.4 system. After this, my camera started to lag and freeze. Because of that, I installed Lineage Os 16.0 but none of the rear cameras were working. Then I tried installing some other custom ROMs but I just couldn't get rear cameras to work. What can I do about it?
Click to expand...
Click to collapse
Same happened to me a few months earlier. Flashing MIUI 10 (the last version then but i cant remember now.) fastboot file through mi flash tool with wiping everything solved it for me.
Thanks
Thanks

Mi 9 lite gcam 7.3

Hey guys,mi 9 lite have a great camera but only gcam 6.2 works on it,I really hope some developer works on 7.3 built of gcam specifically for the mi 9 lite.
Peace
Here is gcam 7.2 mod for mi9 lite
https://drive.google.com/file/d/14Kr1umkaU5OambTnx0bQfCv1ch7pmQlE/view?usp=drivesdk
After install this apk, we need a xml file to get functioning mi 9 lite? Have you test it?
d3m21st said:
Here is gcam 7.2 mod for mi9 lite
https://drive.google.com/file/d/14Kr1umkaU5OambTnx0bQfCv1ch7pmQlE/view?usp=drivesdk
Click to expand...
Click to collapse
Is this version with buffer fix included?
I'm using PixelCam 5.0
https://www.celsoazevedo.com/files/android/google-camera/dev-jairo_rossi/
With config from here: https://www.celsoazevedo.com/files/android/google-camera/f/configs-pixelcam-02/
Hi,
i have tested pixelcam 7.3 jairo_rossi but, before and after apply the xml config file for the mi 9 lite, the program lag and slow when showing camera input for take photos. I'm on android 10, stock miui, all "official", no unlock. In this condition the software are inusable. Have you test it?
Thank
kolbitas said:
I'm using PixelCam 5.0
https://www.celsoazevedo.com/files/android/google-camera/dev-jairo_rossi/
With config from here: https://www.celsoazevedo.com/files/android/google-camera/f/configs-pixelcam-02/
Click to expand...
Click to collapse
intelinside70 said:
Hi,
i have tested pixelcam 7.3 jairo_rossi but, before and after apply the xml config file for the mi 9 lite, the program lag and slow when showing camera input for take photos. I'm on android 10, stock miui, all "official", no unlock. In this condition the software are inusable. Have you test it?
Thank
Click to expand...
Click to collapse
I'm running Xiamomi.eu with Magisk and Buffer Fix module installed. But the PixelCam app has a Lag Fix option in settings (More Options and Fixes). Not sure if it helps though.
kolbitas said:
I'm using PixelCam 5.0
https://www.celsoazevedo.com/files/android/google-camera/dev-jairo_rossi/
With config from here: https://www.celsoazevedo.com/files/android/google-camera/f/configs-pixelcam-02/
Click to expand...
Click to collapse
Work here. Thanks.
I tried pixel cam 5.0 using PixelCamMi9LiteDennisMurimi config, but i had a lot of freezer: what Is It wrong?
pelo1986 said:
I tried pixel cam 5.0 using PixelCamMi9LiteDennisMurimi config, but i had a lot of freezer: what Is It wrong?
Click to expand...
Click to collapse
Have you tried this?
https://forum.xda-developers.com/mi-cc9/themes/android-10-buffer-fix-nullby-t4070977
Need root?
I'm stock
pelo1986 said:
Need root?
I'm stock
Click to expand...
Click to collapse
You need ulocked bootloader atleast
Sigh
is there any mod that works wide camera working??
Myo Thu Htet said:
is there any mod that works wide camera working??
Click to expand...
Click to collapse
It's working on PixelCam_7.3_V5.4 for me. But only for photos, it crashes when switching to video with ultrawide.
It's turned off by default btw
The only other version i tried was 5.0
https://www.celsoazevedo.com/files/android/google-camera/dev-jairo_rossi/
kolbitas said:
It's working on PixelCam_7.3_V5.4 for me. But only for photos, it crashes when switching to video with ultrawide.
It's turned off by default btw
The only other version i tried was 5.0
https://www.celsoazevedo.com/files/android/google-camera/dev-jairo_rossi/
Click to expand...
Click to collapse
Yes. Wide is not working. I even tried with ANX. But no success.

Categories

Resources