Enabling Camera 2 API with stock recovery like on Mi A1? - Xiaomi Redmi Note 4 Guides, News, & Discussion

I was wondering if the procedure described in this guide can be used to enable camera 2 API on Redmi Note 4 without installing a custom recovery.
We can install Magisk without installing a custom recovery as shown in that guide so i was wondering if we can enable camera 2 API through adb shell as shown in the Mi A1 subforum. We could just install Magisk, enable the API through ADB shell and remove Magisk afterwards. There shouldn't be any problems with OTA updates with this procedure as long the API remains enabled after updates and doesn't get overwritten.
Of course we don't have to lock the bootloader again.

I tried and it worked, i installed Magisk and enabled Camera 2 API with this method and i can use Google Camera (the scrubber version with API 24).
I'm waiting for first OTA to see if the settings survive the update or get overwritten.

DepeTT said:
I tried and it worked, i installed Magisk and enabled Camera 2 API with this method and i can use Google Camera (the scrubber version with API 24).
I'm waiting for first OTA to see if the settings survive the update or get overwritten.
Click to expand...
Click to collapse
Will hdr of stock miui cam break if cam2api is enabled?

amnher said:
Will hdr of stock miui cam break if cam2api is enabled?
Click to expand...
Click to collapse
Stock camera works fine for me, with or without HDR.
I'm on last official global beta rom if that matters (8.4.19).
P.s. Google camera is so much better.

DepeTT said:
Stock camera works fine for me, with or without HDR.
I'm on last official global beta rom if that matters (8.4.19).
P.s. Google camera is so much better.
Click to expand...
Click to collapse
What i mean is, does hdr takes effect on stock miui cam?

amnher said:
What i mean is, does hdr takes effect on stock miui cam?
Click to expand...
Click to collapse
Yes it does.

I tried updating and it survived OTA update, so it totally works.

DepeTT said:
I tried and it worked, i installed Magisk and enabled Camera 2 API with this method and i can use Google Camera (the scrubber version with API 24).
I'm waiting for first OTA to see if the settings survive the update or get overwritten.
Click to expand...
Click to collapse
can the bootloader be locked again after enabling camera2api and uninstalling magisk?

sanju1918 said:
can the bootloader be locked again after enabling camera2api and uninstalling magisk?
Click to expand...
Click to collapse
Yes he can be locked again, but you can leave it unlocked if you want since it doesn't create any problem with OTA updates.
Remember that this method is permanent only if you don't factory reset your phone.

DepeTT said:
Yes he can be locked again, but you can leave it unlocked if you want since it doesn't create any problem with OTA updates.
Remember that this method is permanent only if you don't factory reset your phone.
Click to expand...
Click to collapse
Ok gonna unlock then relock again soon
By the way what firmware arr you using
I tried this method and it worked. The problem is my sensor is omnivision and gcam has pink tint on rear camera. I dunno if there is a way to fix it while keeping system untouched or intact

amnher said:
Ok gonna unlock then relock again soon
By the way what firmware arr you using
I tried this method and it worked. The problem is my sensor is omnivision and gcam has pink tint on rear camera. I dunno if there is a way to fix it while keeping system untouched or intact
Click to expand...
Click to collapse
I'm on a totally stock MIUI Global Beta 8.4.26.
I can't help you with GCam because i have only used the scrubber 24 version which is working fine for me because i have a Samsung sensor, as far as i know the fix for the pink tint needs flashing a file through TWRP recovery so i don't think it can be done with stock firmware.

DepeTT said:
I'm on a totally stock MIUI Global Beta 8.4.26.
I can't help you with GCam because i have only used the scrubber 24 version which is working fine for me because i have a Samsung sensor, as far as i know the fix for the pink tint needs flashing a file through TWRP recovery so i don't think it can be done with stock firmware.
Click to expand...
Click to collapse
Well i solved the problem now arnova's gcam has the option to fix pink tint builtin. Is it ok for me to share this trick in my facebook group? Of course you and the others will be credited

amnher said:
Well i solved the problem now arnova's gcam has the option to fix pink tint builtin. Is it ok for me to share this trick in my facebook group? Of course you and the others will be credited
Click to expand...
Click to collapse
Of course you can

DepeTT said:
Of course you can
Click to expand...
Click to collapse
I was wondering if this will break google play certification after sometime due tonmagisk being installed then uninstalled

amnher said:
I was wondering if this will break google play certification after sometime due tonmagisk being installed then uninstalled
Click to expand...
Click to collapse
If you completely uninstall Magisk it will restore the stock boot.img

DepeTT said:
Yes he can be locked again, but you can leave it unlocked if you want since it doesn't create any problem with OTA updates.
Remember that this method is permanent only if you don't factory reset your phone.
Click to expand...
Click to collapse
And camera2api enabled or not

tikam8888 said:
And camera2api enabled or not
Click to expand...
Click to collapse
Camera 2 api remains enabled. Just rember that now in MIUI 10 Google Camera doesn't work anymore, works only in MIUI 9.

Related

Night mode 7.1

Why on Earth would Google remove ability for night mode apps to work? This is a major bummer. I'd revert back to 7.0 but I don't feel like having to wipe my phone. The bootloader unlock and android pay sucks as well. I used AP quite often.... But I'm in no rush to lose my data by relocking.
I'm having a different problem, I used the night mode enabler on 7.0, I disabled it and later joined the android beta program and got 7.1.1 beta and now it's reenabled and I have no way to turn it off...
Apparently nite mode, I forget what they're calling it now, is an exclusive feature on the pixel. This is where I get annoyed. I understand new features being exclusive, but this is something that worked, and was then taken away.
Where are you guys finding 7.1?!
wwe9112 said:
Where are you guys finding 7.1?!
Click to expand...
Click to collapse
Developer Preview beta
asmat said:
Developer Preview beta
Click to expand...
Click to collapse
Can you use the OTA if you are rooted? Or does it have to be manual?
wwe9112 said:
Can you use the OTA if you are rooted? Or does it have to be manual?
Click to expand...
Click to collapse
Flash ota zip in twrp, flash supersu, profit
I still think I have Night mode on 7.1
I don't have it on system tuner, but I still get night mode when I'm on darker conditions...
Anyone?
onesolo said:
I still think I have Night mode on 7.1
I don't have it on system tuner, but I still get night mode when I'm on darker conditions...
Anyone?
Click to expand...
Click to collapse
Hey I just noticed this and you are right!

Android P DP4 is here!

Everyone on the beta, check for system update ?
thank you for the info. i just done,install it. [emoji3]
Sent from my [device_name] using XDA-Developers Legacy app
smooth update: just removed the -w from flash-all script, booted once, went back to TWRP to flash latest Flash Kernel + Magisk.
Fails safety net for me no more Google pay
1. Can I flash this (removing -w) over july 8.1.0 and keep all my apps and settings?
2. Is it already good enough as a daily driver?
r3act said:
1. Can I flash this (removing -w) over july 8.1.0 and keep all my apps and settings?
2. Is it already good enough as a daily driver?
Click to expand...
Click to collapse
Yes and yes
Sent from my Pixel 2 using Tapatalk
Thanks! One more noobish question. Can I revert to a full TWRP backup (including vendor etc) if for some reason I want to revert back to stock 8.1?
r3act said:
Thanks! One more noobish question. Can I revert to a full TWRP backup (including vendor etc) if for some reason I want to revert back to stock 8.1?
Click to expand...
Click to collapse
You will need to perform a full backup, transfer the twrp folder to PC, flash vendor image, then flash twrp,then transfer over backup to restore.
After two cycles from 100-0. With latest ElementalX kernel and Helix engine.
danbrown162 said:
Fails safety net for me no more Google pay
Click to expand...
Click to collapse
have you tried to install a custome kernel? if i remember right, it should be enough to install a kernel for that..
I flashed it and in my enthousiasm forgot to remove the -w so it became a clean install...
DP4 is already a major upgrade over 8.1.0 with lots of new features. The portrait mode in the new camera app is great and also no intermittent wifi drops anymore.
Indeed its good enough as a daily driver so I'm staying on it now.
Xposed and v4a working?
Sent from my Pixel 2 using my fingers on the keyboard.
shortyboy said:
After two cycles from 100-0. With latest ElementalX kernel and Helix engine.
Click to expand...
Click to collapse
is safety net working for you?
thanks!
Safety net not working for me either.
jasonbiggs said:
Xposed and v4a working?
Sent from my Pixel 2 using my fingers on the keyboard.
Click to expand...
Click to collapse
I couldn't get Xposed to install, but V4A is working great. Safety net also is not passing for me, I'm using latest Flash kernel.
Thanks guys, then I'll wait untill we find a solution for safety net, Google pay is a priority for me
daede86 said:
is safety net working for you?
thanks!
Click to expand...
Click to collapse
safety new is not working with latest magisk 16.6
r3act said:
I flashed it and in my enthousiasm forgot to remove the -w so it became a clean install...
DP4 is already a major upgrade over 8.1.0 with lots of new features. The portrait mode in the new camera app is great and also no intermittent wifi drops anymore.
Indeed its good enough as a daily driver so I'm staying on it now.
Click to expand...
Click to collapse
What's new about the portrait mode on DP4?
daede86 said:
Thanks guys, then I'll wait untill we find a solution for safety net, Google pay is a priority for me
Click to expand...
Click to collapse
I'm using the element kernel for Android P and safety net is passing for me. That said, I haven't re-rooted the device as of yet so I'm just unlocked currently.
Safety net is working for me on Magisk 16.6, and latest ElementalX kernel.

November update is here : Let's upgrade

Hello guy's
November update is here : Let's upgrade :good:
But no pie for this moment
It broke my phone...
90.3 MB Lets see if they fix the proximity sensor
---------- Post added at 03:42 PM ---------- Previous post was at 03:35 PM ----------
Agustinm said:
90.3 MB Lets see if they fix the proximity sensor
Click to expand...
Click to collapse
UPdate OK
It seems that proximity sensor is working much better
Oodles47 said:
It broke my phone...
Click to expand...
Click to collapse
Mine too, but the "fix" is to remove your SIM card. Without it, your phone won't go into the bootloop. No need to go for the factory reset just yet...
harmtemolder said:
Mine too, but the "fix" is to remove your SIM card. Without it, your phone won't go into the bootloop. No need to go for the factory reset just yet...
Click to expand...
Click to collapse
Thanks! I'll try it. Already did a factory reset though...
Voniaak said:
Hello guy's
November update is here : Let's upgrade :good:
But no pie for this moment
Click to expand...
Click to collapse
Successfully updated but wht are the improvemnts...did u guys find any ?
proximity sensor is working much better
90.3MB for me it's a security update not an system upgrade so very surprised that the proximity sensor is working much better
cyrillem28410 said:
90.3MB for me it's a security update not an system upgrade so very surprised that the proximity sensor is working much better
Click to expand...
Click to collapse
my proximity is trash here
Enter *#*#64663#*#* for test menu. Go to proximity centre and wave hand close to the sensor so the calibration menu becomes available calibraye and exit.
Whatsapp audio (proximity sensor) and Read/Write emmc speeds (clean big cache) still buugged. no pie and no bug fixes..sad
I haven't got it yet anyone knows why ? My OTA says there are no updates and I still have October security
I sell my phone and buy mate 10
Way more better
emprazol said:
I sell my phone and buy mate 10
Way more better
Click to expand...
Click to collapse
I'm gonna return my phone, too. Never a Xiaomi for me again.
emprazol said:
I sell my phone and buy mate 10
Way more better
Click to expand...
Click to collapse
Well for a double of the price, it should be better !
~500eur vs ~220eur
I know that mate 10 lite was a trash, and it worked like a trash.
Smart Lock stopped working in my device. It was working fine in the October patch.
kvnfjv said:
Whatsapp audio (proximity sensor) and Read/Write emmc speeds (clean big cache) still buugged. no pie and no bug fixes..sad
Click to expand...
Click to collapse
Same here, nothing changed. This is the patch just for security from Google. I think they will fix all this bugs only with Android Pie update, just not to make a double work )
It fix my october update failed issue. Nice .. about 1gb size..
I cant install, error.
I have root and bootloader unlocked, but i have flashed the boot.img to unroot, and still dont installing. Any suggestions? I dont want to flash stock again lol
sergiopjr85 said:
I cant install, error.
I have root and bootloader unlocked, but i have flashed the boot.img to unroot, and still dont installing. Any suggestions? I dont want to flash stock again lol
Click to expand...
Click to collapse
I have unlocked bootloader and had root. I uninstalled Magisk manager and restored the images then used completely uninstall and now it doesn't want to update.
Can anyone help?

Ambient Display in Pie

So there's the ambient display setting in the"display"section after you update to Pie ryt?
This is so cool cause i was missing this feature so badly?
Yeah
G cam not working after pie update
Recently asus gave pie update for max pro m1 and some youtubers say that camera 2api is enabled..... But i updated from oreo to pie and still it's not enabled.....
Amansingh1997 said:
Recently asus gave pie update for max pro m1 and some youtubers say that camera 2api is enabled..... But i updated from oreo to pie and still it's not enabled.....
Click to expand...
Click to collapse
I had enabled mine on oreo, updated to pie last evening and everything was fine even after update.
You can manually enable it again if it didn't carry on from oreo.
Sent from my ASUS_X00TD using Tapatalk
lord dredd said:
I had enabled mine on oreo, updated to pie last evening and everything was fine even after update.
You can manually enable it again if it didn't carry on from oreo.
Sent from my ASUS_X00TD using Tapatalk
Click to expand...
Click to collapse
How can i enable it... Please provide step by step instructions ...
Amansingh1997 said:
How can i enable it... Please provide step by step instructions ...
Click to expand...
Click to collapse
You can head to this https://forum.xda-developers.com/as...ow-to/guide-enable-camera-api-2-root-t3823498
Amansingh1997 said:
But i updated from oreo to pie and still it's not enabled.....
Click to expand...
Click to collapse
If you had enabled camera2api in pro then it'll become enabled in pie too. Otherwise you can the fast boot method provided for non root Oreo users in XDA
GliderZ said:
If you had enabled camera2api in pro then it'll become enabled in pie too. Otherwise you can the fast boot method provided for non root Oreo users in XDA
Click to expand...
Click to collapse
Now any method is not working... It's really frustrsting... I tried fastboot method but it was stuck at sercing for devices in cmd
Amansingh1997 said:
Now any method is not working... It's really frustrsting... I tried fastboot method but it was stuck at sercing for devices in cmd
Click to expand...
Click to collapse
It's working. Try the fastboot method

Question Nothing OS 1.5 beta - CTS profile fail

I updated my NP1 to NOS 1.1.7( with fix) and today to 1.5 beta. My device is not rooted with locked bootloader and still is not google certified and fails CTS. Any ideas on how to fix this?
I tried the default Universal SafetyNet Fix and it didn't work, I also tried using a custom fingerprint but it would break my fingerprint scanner, I ended up using a modded version of the fix it CTS is passing for me.
MarcoReckless said:
I tried the default Universal SafetyNet Fix and it didn't work, I also tried using a custom fingerprint but it would break my fingerprint scanner, I ended up using a modded version of the fix it CTS is passing for me.
Click to expand...
Click to collapse
My device is not rooted and the bootloader is still locked. I just installed NOS 1.5 beta by downloading the update zip for EEA and installing it with *#*#682#*#* etc. I tried to certify my device with google and see if anything can be done....
Chaotick said:
My device is not rooted and the bootloader is still locked. I just installed NOS 1.5 beta by downloading the update zip for EEA and installing it with *#*#682#*#* etc. I tried to certify my device with google and see if anything can be done....
Click to expand...
Click to collapse
I'm afraid you can't do anything while locked, we were warned that bank apps would break.
Chaotick said:
I updated my NP1 to NOS 1.1.7( with fix) and today to 1.5 beta. My device is not rooted with locked bootloader and still is not google certified and fails CTS. Any ideas on how to fix this?
Click to expand...
Click to collapse
it is normal for SafetyNet to fail in beta
in the mail from nothing it also says that netflix and googel pay / wallet does not work.
as soon as it is official A13 everything works again
MarcoReckless said:
I tried the default Universal SafetyNet Fix and it didn't work, I also tried using a custom fingerprint but it would break my fingerprint scanner, I ended up using a modded version of the fix it CTS is passing for me.
Click to expand...
Click to collapse
Thanks, the modded version works very well.

Categories

Resources