[Q] Enable Camera2 APi on MTK variant? (tried editing build.prop but doesn't work) - Xiaomi Redmi Note 4 Questions & Answers

Hello guys,
Been lurking here for ages and already benefited tons from the help posted here. However, this is one issue that I can't seem to figure out.
I have the MTK variant of the RN4 and I'm trying to enable the Camera2 API so that I can take RAW pictures, use Google HDR+ etc.
I am rooted on MIUI 9 (though as it's MTK, it is still Android 6.0) and I edited the build.prop file using ES Explorer (I added the persist.camera.HAL3.enabled=1 line). I've rebooted the device, used checker apps and Lightroom to check if there's RAW support, but without luck.
Do you guys have any other ideas as to how I can enable Camera2 API support?
I don't have bootloops, I don't have any issues other than the fact that there's no Camera2 API support. Restarting the device does not erase my mods to the build.prop file.
Any help is appreciated!

Forget about it since GCam is supposed to work on Snapdragon devices only.

Kavute said:
Forget about it since GCam is supposed to work on Snapdragon devices only.
Click to expand...
Click to collapse
I wouldn't mind using other apps such as Lightroom if I can get RAW to work. Any ideas as to whether that's possible?

I've had a similar problem before, but MIUI would revert my changes to the build.prop. I solved it by using a systemless root via Magisk.
What I did:
1. Unroot your phone
2. Flash Magisk using TWRP (link to Magisk thread).
3. Download the "camera2api-enabler.zip" from this thread
4. Add the zip (Module) using the Magisk Manager app that comes installed after you flash Magisk
5. Reboot, and you should see the camera2api enabled.
If you do run into a boot loop after installing Magisk, you may need to flash the LazyFlasher zip file after Step 2.

yohyah said:
I've had a similar problem before, but MIUI would revert my changes to the build.prop. I solved it by using a systemless root via Magisk.
What I did:
1. Unroot your phone
2. Flash Magisk using TWRP (link to Magisk thread).
3. Download the "camera2api-enabler.zip" from this thread
4. Add the zip (Module) using the Magisk Manager app that comes installed after you flash Magisk
5. Reboot, and you should see the camera2api enabled.
If you do run into a boot loop after installing Magisk, you may need to flash the LazyFlasher zip file after Step 2.
Click to expand...
Click to collapse
Thank you! I'll look into Magisk. I have to admit that I'm tempted if only to get this and Super Mario Run working.
But I do like having sys root access, I've just fixed the Cell Standby battery drain with an edit to the build.prop file, as MIUI 9 doesn't have the option to disable VoLTE.
So I'll give it a thought.
Thank you! and if anyone has any other tips, preferably something that doesn't alter my setup too much, it'd be ace.

rottensong said:
Thank you! I'll look into Magisk. I have to admit that I'm tempted if only to get this and Super Mario Run working.
But I do like having sys root access, I've just fixed the Cell Standby battery drain with an edit to the build.prop file, as MIUI 9 doesn't have the option to disable VoLTE.
So I'll give it a thought.
Thank you! and if anyone has any other tips, preferably something that doesn't alter my setup too much, it'd be ace.
Click to expand...
Click to collapse
Hi!
If it isn't work, you should try out this:
Go in Engineer mode https://forum.xda-developers.com/showthread.php?t=2313812 or download the Engineer mod apk from play store. (It's working just on stock ROM)
Swipe left to Hardware testing, and there will be the Camera option.
I think, after you find this, you can get through the settings (where will be a raw capture option)

Related

[TUTORIAL][Tethering]+[Android Pay] How to have your Nougat, and eat it too!

Dupe from N6 forums for all you 6P junkies.
Obviously I'm not responsible for your mom exploding or your phone disowning you, but.....
I got tethering and Android Pay working on stock Nougat - that's Android N, folks - on a Nexus.
(confirmed will work on Marshmallow and up on 5, 5x, 6, 6p...etc.)
Thanks to @Chainfire, @ManHands and @interloper, and you!
click thanks if this helps, or buy me a beer or something.
prerequisites:
working adb and fastboot (from platform-tools in the Android SDK if you don't know where to find it)
twrp .img for your device
latest stable systemless supersu
1. be on Marshmallow or Nougat obviously
2. flash twrp
(volume down + power on nexus gets you into bootloader, then after flashing recovery, use volume buttons to scroll and power button to select recovery mode)
3. flash systemless root while booted into twrp (unsure if .supersu SYSTEMLESS=true in /data is still needed, but can't hurt - mine is still there from earlier.)
4. while still in twrp, go to mount and check system. Make sure you allow changes.
5. from your computer, do this
Code:
adb shell
echo "net.tethering.noprovisioning=true" >> /system/build.prop
6. reboot into Android.
7. Install Terminal Emulator from the Play Store.
8. Launch it, and in Terminal Emulator, do this
Code:
su
settings put global tether_dun_required 0
exit
9. go into Supersu, expert, scroll to the bottom and hit full unroot. No, you don't want it to patch you back to the stock boot image or recovery*. If it hangs, just reboot and try doing it again.
10. ????
11. Profit! You should have tethering unlocked, be unrooted, and have full Android Pay goodness working.
To take an OTA, do this, because Flashfire gets confused after you've done build.prop edits -
1. go to About Phone, scroll down. Find your build number.
2. download that Nexus Factory Image.
3. Unzip it all. ALL OF IT.
4. Make sure you have Android SDK & platform-tools (or just a working Fastboot and ADB)
5. just flash boot, system, and recovery - you can now OTA with no problems. Then repeat the above guide on your new OTA. Confirmed working 10 minutes ago, OTA'ing from Marshmallow to Nougat and then getting tethering working again
ALTERNATE IF YOU PREFER FLASHFIRE:
All the above steps, but you only have to flash the System image to fix the build.prop hash fail then flashfire should work for you. Wouldn't necessarily recommend upgrading version numbers (6.0.1 to 7.0.0) with Flashfire, but who knows, it might work great! Chainfire is a wizard.
*you can do this if you want, but when I let it patch my boot image I got the dreaded "device corrupt!!!!1" message at boot. Did not try letting it flash stock recovery image.
What if tethering already works on my N device? I haven't yet seen an N device failing to tether...
dtective said:
What if tethering already works on my N device? I haven't yet seen an N device failing to tether...
Click to expand...
Click to collapse
Then you don't need to apply the tethering tweak. Android allows you to tether just fine. The issue lies with certain carriers that charge extra for tethering. By default, Android allows the carriers to check to see if you're tethering and this is what this tweak changes.
I was also able to get ad blocking working using AdAway, on a one time host name update basis. SafetyNet check passes and Android Pay works. To enable this:
1. Prior to Step 9 above, Download and install the AdAway apk. It is available here: https://f-droid.org/repository/browse/?fdid=org.adaway
2. Go into the AdAway settings, Under "Target hosts file" select /data/data/hosts.
3. Enable Ad Blocking. Adaway will complain about not being able to create the symlink. To overcome this, I made /system read/write in Root Explorer, then created it manually in terminal:
Code:
su
ln -s /data/data/hosts /system/etc/hosts
4. Reboot. Go into AdAway and verify it is enabled.
5. Proceed with step 9 above. Make sure you say no to patching back to the stock boot image or recovery.
After Reboot You'll be unrooted with a host name ad blocker and working Android Pay. Worked for me anyway...YMMV. I will probably try and keep /data/data/hosts updated manually.
With the tethering mods t mobile still sees that I'm tethering and slotted my tethering speeds to a crawl after 5gb. Any way around this?
Sent from my Nexus 6P using Tapatalk
So this will allow me to get around Cricket's tethering ban (or rather, lack of support for the N6P in particular)?
Anyone confirm this works for Verizon / UDP?
DualSportDad said:
With the tethering mods t mobile still sees that I'm tethering and slotted my tethering speeds to a crawl after 5gb. Any way around this?
Sent from my Nexus 6P using Tapatalk
Click to expand...
Click to collapse
If you are visiting unsecured website (https://www.instantssl.com/https-tutorials/what-is-https.html) You'll need to change your browser's user agent, or use VPN to encrypt your traffic.
keda said:
If you are visiting unsecured website (https://www.instantssl.com/https-tutorials/what-is-https.html) You'll need to change your browser's user agent, or use VPN to encrypt your traffic.
Click to expand...
Click to collapse
I've tried both, it still sees tether useage.
Sent from my Nexus 6P using Tapatalk
I'm on Android N and have been since the dev previews. I've never seen trouble with tethering... I'm on vzw UDP.

Local root for the Amazfit watch (SuperSU 2.79)

Hello all, I got my Amazfit Pace a few days ago and the first thing that I wanted to do after flashing PACEified was get proper on-device root, as you know right now PACEified comes with adb root shell so we can modify the watch however we want from and adb shell but that means we're always dependent on another device for doing so, apps on the watch have no way of getting root access.
I am actually amazed that no one else even seemed to have any interest in achieving this as it was somewhat easy for me to figure it out and now I'm sharing it with y'all.
Requirements: being on a ROM that has adb root (ex: PACEified) or ability to boot the temproot kernel.
WARNING: If the stock kernel has dm-verity the temproot then install SuperSU method will lead to the device refusing to boot, I do not know whether it does or not.
Disclaimer: I am in no way responsible for any damage this can or will cause to your watch and/or phone, you are the only one responsible for your own actions.
Anyway here's the steps to getting SuperSU 2.79 fully working on your watch:
Download the attached zip file.
Copy the zip file to the watch.
Open a terminal/cmd/powershell in the folder where your adb binary is located.
Run the following commands in order:
Code:
adb root
Code:
adb remount
Code:
adb shell
Now you are running shell commands on the watch itself so do:
Code:
busybox unzip /sdcard/SuperSU-2.79-amazfit.zip
Code:
cd /sdcard/supersu/
Code:
sh root_amazfit.sh
Done, reboot and enjoy!
I hope this helps others as it did help me and I do hope I didn't make any mistake.
Credits:
Chainfire for SuperSU
Neuer_User for PACEified
KevinX8 for the SuperSU 2.79 zip for Android Wear (I used that one cause it already is setup to allow all by default)
Everyone else that I can't remember right now
List of useful root apps for the Amazfit:
MiXplorer-useful file manager with addons and root file management options: https://forum.xda-developers.com/showthread.php?t=1523691
Kernel Adiutor 4 Wear-very popular kernel options management app, won't give too many options since the stock kernel is actually quite limited but still allows tweaking a few things like changing the schedulers and their options, enabling init.d and other such stuff: https://forum.xda-developers.com/android-wear/development/app-kernel-audiutor-4-wear-t3126122 (I only tested this version but the latest normal Kernel Adiutor version might also work perfectly since the interface seems pretty friendly with low resolutions)
Advanced Settings for Watch-provides a plethora of options like Bluetooth and WiFi settings management, reboot menu and most importantly PACKAGE MANAGEMENT and by that I mean it doesn't just have the normal app settings menu that allows you to clear data/cache, force stop or disable/uninstall apps but ALSO INCLUDES A PACKAGE INSTALLER for installing apks straight on the watch: https://play.google.com/store/apps/details?id=com.sssemil.advancedsettings&hl=en (get the wear apk from inside the main apk, it is located in /res/raw just open the phone apk as an archive also WARNING: many menus/options make it crash cause this is not Android Wear)
Another one.
Wich are the benefits of doing that?
jmpcarceles said:
Wich are the benefits of doing that?
Click to expand...
Click to collapse
Same as on any other rooted Android device.
A few apps I have on the watch that use root are:
MiXplorer-file manager
Kernel Adiutor-can improve battery life/performance by messing around with it a bit
Root Essentials (the wear part sent from inside the phone apk)-it's great for uninstalling apps and such
Hello. Stock ROMs can boot "temproot kernel"? Could you please like to where it's explained? Thanks.
Ranomez said:
Same as on any other rooted Android device.
A few apps I have on the watch that use root are:
MiXplorer-file manager
Kernel Adiutor-can improve battery life/performance by messing around with it a bit
Root Essentials (the wear part sent from inside the phone apk)-it's great for uninstalling apps and such
Click to expand...
Click to collapse
Nice.
MiXplorer is my mobile favourite Android explorer.
I don't know the other apps, i must learn about it.
Any suggestions about them, Kernel auditor seems very interesting. I have very much problems with my Amazfit battery, last month suddenly i don't get more than 2 days of autonomy
Thx.
lfom said:
Hello. Stock ROMs can boot "temproot kernel"? Could you please like to where it's explained? Thanks.
Click to expand...
Click to collapse
Stock ROM can boot temproot kernel only if old enough version to not have the bootloader locked OR you unlocked the bootloader after, to get the temproot kernel go to the PACEified thread and read the install instructions, it has you booting the temproot kernel on order to flash it and it might be possible to just boot it, root and reboot but I am not entirely sure, if the Amazfit has dm-verity it will refuse to boot after altering the system, I actually didn't think about that when I wrote this guide cause it was 5AM so would recommend flashing a custom ROM.
@Neuer_User does the Amazfit have dm-verity?
Also would you consider adding SuperSU to PACEified in the future?
Double post cause mobile XDA is messed up, delete.
jmpcarceles said:
Nice.
MiXplorer is my mobile favourite Android explorer.
I don't know the other apps, i must learn about it.
Any suggestions about them, Kernel auditor seems very interesting. I have very much problems with my Amazfit battery, last month suddenly i don't get more than 2 days of autonomy
Thx.
Click to expand...
Click to collapse
To be honest MiXplorer just about works but isn't really 100% usable cause things don't fit on screen, looking for a better root file explorer for the watch.
The stock kernel doesn't really allow you to control much cause the stock kernel doesn't seem to have too many features but can still change governor and a few other stuff and if nothing else it can enable init.d if you don't already have it enabled, I use the Kernel Adiutor 4 Wear version but TBH I think the normal one should be just as usable.
For your battery problem you could try deleting some unneeded apps like the Mi Home or the Chinese radio one (if on Chinese ROM/PACEified) and maybe Greenify will also work but wouldn't really put my bets on it, perhaps try using some battery saving scripts?
Right now I'm looking for an apk installer...I have a solution already but it's probably the worst one possible: a init.d script that checks if there are apps in a folder on the internal storage then installs all of them and deletes the apk files but that means you need to reboot in order to install apps, could make crond run the script every hour or so but that would also not be too convenient so either a script runner or a apk installer would be best.
BTW after uninstalling apps from the watch using a root app you need to crash the launcher or it will still show the icons for the uninstalled apps.
Also I'm working on improving the script to add safety checks (if someone tries to run it without the other files in the same folder right now it would most certainly end up in a mighty bootloop, fortunately a bootloop with adb access so easy to fix but still not great, I made that script in like 5-10 min after I manually did it on my own watch) and add more features like installing a newer busybox version and linking missing applets (unzip for example).
Updated 2nd post with a few useful apps, one of them finally giving us the power to install apps straight on the device, will publish the new version of my script in a few days, have been working on adding A LOT of new features and now I kinda need to concentrate on the project for my Android class for a bit, sorry for the delay.
Ranomez said:
Updated 2nd post with a few useful apps, one of them finally giving us the power to install apps straight on the device, will publish the new version of my script in a few days, have been working on adding A LOT of new features and now I kinda need to concentrate on the project for my Android class for a bit, sorry for the delay.
Click to expand...
Click to collapse
Hi Ranomez,
When do you plan to publish the new script for local root?
Thx in advance.
Merry Xmas.
jmpcarceles said:
Hi Ranomez,
When do you plan to publish the new script for local root?
Thx in advance.
Merry Xmas.
Click to expand...
Click to collapse
Most probably next week, haven't really had time to work on it with the last week of college before the holidays and the fact that I bought Xenoblade Chronicles 2 on launch day and it's been eating most of my free hours, lol, sorry for the delay, anyways the current script still works for simply rooting but will give a no such file or directory error if init.d isn't already enabled, just ignore that.
Thank you @Ranomez
I've just tried your local root using the temproot kernel on the latest stock rom, and it worked great. So, I can say my pace doesn't have dm-verity enabled?
btw, SU was added to Stockfied, Pacefied and Stratosfied, just needs to be enabled.

[GUIDE][MOD][TREBLE]Camera2 API Enabler

Flashing this enable Camera2 API for GSI/Treble based roms. Remains even after clean flashing another GSI
Things needed:
Unlocked Max Pro with custom recovery flashed
Instructions:
1. Download Cam2API.zip and copy/move to external sd/otg drive
2. Reboot phone to recovery and install as normal zip
3. Test results using this app
4. Google camera mod should work now
Hi,
As from my check in 247 version ROM, the build.prop already has the line persist.camera.hal3.enabled=0.
If you have rooted, you only need to change the 0 to 1 >> persist.camera.hal3.enabled=1
Or if you don't want to modify the build.prop, you can just create the value at the /data partition using terminal emulator (with root access), this leaves the /system intact.
Code:
su
setprop persist.camera.HAL3.enabled 1
The downside is everytime you factory reset, you have to set the value again.
Desmanto said:
Hi,
As from my check in 247 version ROM, the build.prop already has the line persist.camera.hal3.enabled=0.
If you have rooted, you only need to change the 0 to 1 >> persist.camera.hal3.enabled=1
Or if you don't want to modify the build.prop, you can just create the value at the /data partition using terminal emulator (with root access), this leaves the /system intact.
Code:
su
setprop persist.camera.HAL3.enabled 1
The downside is everytime you factory reset, you have to set the value again.
Click to expand...
Click to collapse
t1 zip changes that 0 to 1, no new entry is added
t2 zip adds a new line to enable the same
Post some pictures taken with Google camera and also do a comparison between stock camera images and gcam images.
SumitGupta2442 said:
Post some pictures taken with Google camera and also do a comparison between stock camera images and gcam images.
Click to expand...
Click to collapse
No
SumitGupta2442 said:
Post some pictures taken with Google camera and also do a comparison between stock camera images and gcam images.
Click to expand...
Click to collapse
OP doesn't have the device. We need to try and share feedback. Else wait for someone to share.
Appreciate efforts from OP.
Someone check what is supported camera 2 level
Via camera2 probe app
Any improvement in picture quality when captured in gCam?
Sudeep Duhoon said:
Flashing this should enable Camera2 API.
Things needed:
Unlocked Max Pro with custom recovery flashed
Instructions:
1. Download Camera2 API_t1.zip and copy/move to external sd/otg drive
2. Reboot phone to recovery and install as normal zip
3. Test results using this app
4. If fails, flash Camera2 API_t2.zip same way.
5. Google camera mod should work now
Someone please test and report
Click to expand...
Click to collapse
Please Send Me A Google Camera With HDR Support For Zenfone Max Pro
arjunav4748 said:
Please Send Me A Google Camera With HDR Support For Zenfone Max Pro
Click to expand...
Click to collapse
I tried both api doesn't work
is there any way to enable it on a locked bootloader and without root?
austinpinto said:
is there any way to enable it on a locked bootloader and without root?
Click to expand...
Click to collapse
sadly, no
learntechnology8452 said:
I tried both api doesn't work
Click to expand...
Click to collapse
works for everyone else (it was reported though)
tested myself and was not working
fixed
dafaq you doing testers???
Can anyone tell the performance of the camera,Is it better than the stock sd camera!
google camera keeps stopping please help even after following all steps
Akashnaresh said:
google camera keeps stopping please help even after following all steps
Click to expand...
Click to collapse
Enable camera2api manually
Yeah, I have done it using buildprop...still it's not working
Akashnaresh said:
Yeah, I have done it using buildprop...still it's not working
Click to expand...
Click to collapse
Have you tried bacon camera, it's quite a substitute for flashing a module for enabling c2api
Do I need to unlock my bootloader and flash twrp to flash this zip?
Tried the zip method and manual method but google camera still crash when open. Any other solution?

Google Camera mods doesn't work on Xperia XZ1 and here's why

If you looking for a google camera mod for XZ1 and whatever you already downloaded is crashing while opening the app (except the apks that hasn't HDR+ feature) and you want this gcam so bad that thinking about opening your bootloader and rooting your phone just for that feature don't do it (againg if you rooting just for gcam).
First of all the reason that gcam not working because in your device Camera 2 API isn't enabled so if you made a little research you know that you can enable that with just unlocking your bootloader but here is the catch if you already unlock the bootloader even rooted your phone and you still can't enable Camera 2 API that's because SONY doesn't want you to enable. Now I'm going to talk what I already tried. (If you know how please kindly explain it in the mentions)
DAY 1(Bootloader locked - Non rooted)
Making research from various sites for just getting information about camera 2 api
After research backing up my phone several times with companion app
Looking for tutorials to enable without rooting and unlocking the bootloader
DAY2(Bootloader unlocked - Non rooted)
After realizing that you can't do anything without unlocking your bootloader prepared for unlocking (By the way you need to get a unlocking key from Sony's website with your IMEI)
After unlocking bootloader trying adb shell and fastboot commands I couldn't able to enable then searched for solutions in fastboot mode booting on custom recovery (in my case TWRP) try to flash it and running adb shell commands it didn't enable. (The main problem is I couldn't get RAW checked from camera probe app and gcam needs it for processing.)
DAY3(Bootloader unlocked - Rooted)
I rooted with magisk but with TWRP i didn't use the install section because I couldn't able to find the .zip file so I used the adb sideload thing. After downloading the magisk manager app and access to root I've tried using build.prop, terminal both phone and computer, magisk modules and adb sideload to flash .zip files for enabling camera 2 API (that gave me error while doing) but whatever I've tried to do didn't work out for me.
For who are wanting gcam to work in your Xperia XZ1 for my case and research I couldn't able to enable Camera 2 API and couldn't find a way to enable I think Sony needs to give us RAW processing option. All in all rooting your XZ1 not that bad idea after all because I don't think Sony give this lineup an another android update (Android Q). If you have any questions about the process don't hesitate to ask. Take care of yourselves and be aware of what you're doing with your lifes and your devices.
I think RAW capture is supported on the official AOSP builds. So ,theoretically, Camera2 api should work on the official AOSP.
Suggest rom with working gcam and gcam link
Generic123. said:
I think RAW capture is supported on the official AOSP builds. So ,theoretically, Camera2 api should work on the official AOSP.
Click to expand...
Click to collapse
Before and after root when I looked for camera probe app I couldn't able to check RAW and some other white balance settings XZ1's camera capable to provide most of the Camera 2 API's needings out of the box but if you've any way to enable raw image processing I genuinely want to know how. Thanks for your reply by the way.
deniz_nam said:
Before and after root when I looked for camera probe app I couldn't able to check RAW and some other white balance settings XZ1's camera capable to provide most of the Camera 2 API's needings out of the box but if you've any way to enable raw image processing I genuinely want to know how. Thanks for your reply by the way.
Click to expand...
Click to collapse
Check this and this. These are both AOSP ROMs, which I've heard have full Camera 2 api support(including RAW). Unfortunately, neither are even remotely stable enough for daily use, so it's not really worth it. Besides, the forums seem to show that google cam doesn't work too well(although no photos, so it may be a subjective thing). That's honestly all I know about this kind of stuff; if you want a decent camera experience on a custom ROM, you might want to try LineageOS; the stock camera was ported and works for the most part(except 4K recording, which I heard was fixed in the next version). Other than that, I have no other idea on how to get RAW support on stock firmware, sorry.
Generic123. said:
I think RAW capture is supported on the official AOSP builds. So ,theoretically, Camera2 api should work on the official AOSP.
Click to expand...
Click to collapse
what about this link : https://androidfilehost.com/?fid=6006931924117914458. by SonyAOSP Team are they stable builds and how to flash them? they are updated evey month and have the latest security patch as i think
deniz_nam said:
If you looking for a google camera mod for XZ1 and whatever you already downloaded is crashing while opening the app (except the apks that hasn't HDR+ feature) and you want this gcam so bad that thinking about opening your bootloader and rooting your phone just for that feature don't do it (againg if you rooting just for gcam).
First of all the reason that gcam not working because in your device Camera 2 API isn't enabled so if you made a little research you know that you can enable that with just unlocking your bootloader but here is the catch if you already unlock the bootloader even rooted your phone and you still can't enable Camera 2 API that's because SONY doesn't want you to enable. Now I'm going to talk what I already tried. (If you know how please kindly explain it in the mentions)
DAY 1(Bootloader locked - Non rooted)
Making research from various sites for just getting information about camera 2 api
After research backing up my phone several times with companion app
Looking for tutorials to enable without rooting and unlocking the bootloader
DAY2(Bootloader unlocked - Non rooted)
After realizing that you can't do anything without unlocking your bootloader prepared for unlocking (By the way you need to get a unlocking key from Sony's website with your IMEI)
After unlocking bootloader trying adb shell and fastboot commands I couldn't able to enable then searched for solutions in fastboot mode booting on custom recovery (in my case TWRP) try to flash it and running adb shell commands it didn't enable. (The main problem is I couldn't get RAW checked from camera probe app and gcam needs it for processing.)
DAY3(Bootloader unlocked - Rooted)
I rooted with magisk but with TWRP i didn't use the install section because I couldn't able to find the .zip file so I used the adb sideload thing. After downloading the magisk manager app and access to root I've tried using build.prop, terminal both phone and computer, magisk modules and adb sideload to flash .zip files for enabling camera 2 API (that gave me error while doing) but whatever I've tried to do didn't work out for me.
For who are wanting gcam to work in your Xperia XZ1 for my case and research I couldn't able to enable Camera 2 API and couldn't find a way to enable I think Sony needs to give us RAW processing option. All in all rooting your XZ1 not that bad idea after all because I don't think Sony give this lineup an another android update (Android Q). If you have any questions about the process don't hesitate to ask. Take care of yourselves and be aware of what you're doing with your lifes and your devices.
Click to expand...
Click to collapse
UPDATE: By the way after couple days of use with
device I found out a strange behavior. After many tries to get a working gcam I gave up so while I was looking for how to see device's cameras status I used getprop in adb shell to look for did I enable Camera 2 API or not, actually I was very surprised it looks like it's enabled (persist.camera.HAL3.enabled = 1) then I looked for an alternative to gcam and downloaded the open camera. While in the app tweaking with the settings, found out that there's a Camera 2 API toggle for that supported devices. After tweaking, I take some photos with that I've shocked how good the HDR was I added some sample photos and HDR settings that I used in open camera. I hope I could help you with the journey of yours.
NOTE:In the sample photos when you zoom in there are artifacts on leafs and car that passing away thats because of hdr is 3 stops of dynamic range and shooting 3 different exposed photos so for the best detailed photos you should keep your hands stable and you should be around somewhere has not much moving objects. And in open camera there is a scene mod option, with that if you adjust your camera you can get night sight like photos in near complete dark scenes.
As always take care of yourselves and be aware of what you're doing with your lifes and your devices.
https://drive.google.com/drive/folders/1-4Jc5HIxvzi2T4Zb3Ws_kreCGPHfUBhm?usp=sharing
deniz_nam said:
UPDATE: By the way after couple days of use with
device I found out a strange behavior. After many tries to get a working gcam I gave up so while I was looking for how to see device's cameras status I used getprop in adb shell to look for did I enable Camera 2 API or not, actually I was very surprised it looks like it's enabled (persist.camera.HAL3.enabled = 1) then I looked for an alternative to gcam and downloaded the open camera. While in the app tweaking with the settings, found out that there's a Camera 2 API toggle for that supported devices. After tweaking, I take some photos with that I've shocked how good the HDR was I added some sample photos and HDR settings that I used in open camera. I hope I could help you with the journey of yours.
NOTE:In the sample photos when you zoom in there are artifacts on leafs and car that passing away thats because of hdr is 3 stops of dynamic range and shooting 3 different exposed photos so for the best detailed photos you should keep your hands stable and you should be around somewhere has not much moving objects. And in open camera there is a scene mod option, with that if you adjust your camera you can get night sight like photos in near complete dark scenes.
As always take care of yourselves and be aware of what you're doing with your lifes and your devices.
https://drive.google.com/drive/folders/1-4Jc5HIxvzi2T4Zb3Ws_kreCGPHfUBhm?usp=sharing
Click to expand...
Click to collapse
Can you give instructions to be able to do as you can?
Sent from my Sony G8342 using XDA Labs
haiha2001 said:
Can you give instructions to be able to do as you can?
Sent from my Sony G8342 using XDA Labs
Click to expand...
Click to collapse
If you asking for enabling the Camera 2 API I mentioned it in the original post but basically you need;
bootloader unlocked device (You need to get a key for it from Sony's website)
TWRP .img file
some adb and fastboot commands
newest Magisk .zip file (for root)
Basic Steps You Need To Follow (I'm not giving all the details because there could be a difference between devices from software wise or steps that could damage your performance or device and I'm not taking any responsibility for it.)
First you need to unlock your bootloader there many posts that explain how to in xda.(You need a key from Sony that you can get with your IMEI)
Then you need latest drivers and files for ADB and Fastboot that you can get it from developer.android site.
After that, you have to plug your device to computer with USB debugging on. And reboot in fastboot mode that you can make with adb commands or volume up with power buton (after 3 vibrations release just the power buton until you see a blue indicator from your notification led.).
In fastboot mode boot in recovery that you downloaded into your computer (in my case that was TWRP).
If you can find magisk file in install section you can do it from there but I couldn't find in install section so I use adb sideload to install magisk.(XDA has very nice explanation for how to download magisk on your device you should check that out.)
After installation and reboot I downloaded Magisk Manager apk file to device I used both build.prop and terminal (also both in device's and computer's terminal) to write camera.HAL3 code. ( I couldn't able to check the RAW box in camera prob app)
Finally you should need to look for camera specifications in your terminal that your proccess made it or not. (with getprop method)
I would recommend downloading Open Camera from play store and enabling for Camera 2 API for app and tweaking other settings for your liking. (Especially HDR settings)
If have any other question don't hesitate to ask. And if I skipped any steps or so please inform me about it.
deniz_nam said:
If you looking for a google camera mod for XZ1 and whatever you already downloaded is crashing while opening the app (except the apks that hasn't HDR+ feature) and you want this gcam so bad that ...
Click to expand...
Click to collapse
So, versions without HDR+ works on our devices?
If yes could you please provide the link, thanks.
sohrab1985 said:
So, versions without HDR+ works on our devices?
If yes could you please provide the link, thanks.
Click to expand...
Click to collapse
https://forum.xda-developers.com/xperia-xz1/themes/google-camera-mod-xperia-xz1-t3786993 from this discussion you can get the apk but like I said I tried this apk too, it has photosphere and panorama as features no HDR+ or night sight which you want I believe. I'd download open camera rather than this apk. Open camera hasn't that beautiful ui but it's better capabilities than gcam without HDR+.
deniz_nam said:
https://forum.xda-developers.com/xperia-xz1/themes/google-camera-mod-xperia-xz1-t3786993 from this discussion you can get the apk but like I said I tried this apk too, it has photosphere and panorama as features no HDR+ or night sight which you want I believe. I'd download open camera rather than this apk. Open camera hasn't that beautiful ui but it's better capabilities than gcam without HDR+.
Click to expand...
Click to collapse
Exactly, I'm looking for night sight feature.
I try open camera then.
Thanks for the help.
deniz_nam said:
If you looking for a google camera mod for XZ1 and whatever you already downloaded is crashing while opening the app (except the apks that hasn't HDR+ feature) and you want this gcam so bad that thinking about opening your bootloader and rooting your phone just for that feature don't do it (againg if you rooting just for gcam).
First of all the reason that gcam not working because in your device Camera 2 API isn't enabled so if you made a little research you know that you can enable that with just unlocking your bootloader but here is the catch if you already unlock the bootloader even rooted your phone and you still can't enable Camera 2 API that's because SONY doesn't want you to enable. Now I'm going to talk what I already tried. (If you know how please kindly explain it in the mentions)
DAY 1(Bootloader locked - Non rooted)
Making research from various sites for just getting information about camera 2 api
After research backing up my phone several times with companion app
Looking for tutorials to enable without rooting and unlocking the bootloader
DAY2(Bootloader unlocked - Non rooted)
After realizing that you can't do anything without unlocking your bootloader prepared for unlocking (By the way you need to get a unlocking key from Sony's website with your IMEI)
After unlocking bootloader trying adb shell and fastboot commands I couldn't able to enable then searched for solutions in fastboot mode booting on custom recovery (in my case TWRP) try to flash it and running adb shell commands it didn't enable. (The main problem is I couldn't get RAW checked from camera probe app and gcam needs it for processing.)
DAY3(Bootloader unlocked - Rooted)
I rooted with magisk but with TWRP i didn't use the install section because I couldn't able to find the .zip file so I used the adb sideload thing. After downloading the magisk manager app and access to root I've tried using build.prop, terminal both phone and computer, magisk modules and adb sideload to flash .zip files for enabling camera 2 API (that gave me error while doing) but whatever I've tried to do didn't work out for me.
For who are wanting gcam to work in your Xperia XZ1 for my case and research I couldn't able to enable Camera 2 API and couldn't find a way to enable I think Sony needs to give us RAW processing option. All in all rooting your XZ1 not that bad idea after all because I don't think Sony give this lineup an another android update (Android Q). If you have any questions about the process don't hesitate to ask. Take care of yourselves and be aware of what you're doing with your lifes and your devices.
Click to expand...
Click to collapse
I tried it in a similar way in June,and the results are the same. As far as I know, Sony has no plans to open Camera2 APIs - they are more inclined to force users to use Sony's own cameras,than open APIs to allow users to use Google cameras or others. This brand is just like this, always paying less attention to user feedback. But at least we've tried to do this - it's better than someone who hasn't tried it.
P.S.There's a way to backup TA partition before unlock bootloader: https://forum.xda-developers.com/xp...devonly-exploits-temp-root-to-backup-t3795510 .I know it's too late to tell you...sorry.
TimCrownie said:
I tried it in a similar way in June,and the results are the same. As far as I know, Sony has no plans to open Camera2 APIs - they are more inclined to force users to use Sony's own cameras,than open APIs to allow users to use Google cameras or others. This brand is just like this, always paying less attention to user feedback. But at least we've tried to do this - it's better than someone who hasn't tried it.
P.S.There's a way to backup TA partition before unlock bootloader: https://forum.xda-developers.com/xp...devonly-exploits-temp-root-to-backup-t3795510 .I know it's too late to tell you...sorry.
Click to expand...
Click to collapse
Thanks for your explanation and help, I really appreciate it. Only if Sony listen us their market share can grow and they can compete with others much better.
Hi, thanks for share this tutorials!
I've some questions, sorry before, im like super noob
1. Its seems you still using stock rom, is right? And what version?
2. The image looks very noisy, is that because you lost the drm keys?
Thanks before
Apakah maksudnya kamera terbuka adalah kamera manual?
deniz_nam said:
If you looking for a google camera mod for XZ1 and whatever you already downloaded is crashing while opening the app (except the apks that hasn't HDR+ feature) and you want this gcam so bad that thinking about opening your bootloader and rooting your phone just for that feature don't do it (againg if you rooting just for gcam).
First of all the reason that gcam not working because in your device Camera 2 API isn't enabled so if you made a little research you know that you can enable that with just unlocking your bootloader but here is the catch if you already unlock the bootloader even rooted your phone and you still can't enable Camera 2 API that's because SONY doesn't want you to enable. Now I'm going to talk what I already tried. (If you know how please kindly explain it in the mentions)
DAY 1(Bootloader locked - Non rooted)
Making research from various sites for just getting information about camera 2 api
After research backing up my phone several times with companion app
Looking for tutorials to enable without rooting and unlocking the bootloader
DAY2(Bootloader unlocked - Non rooted)
After realizing that you can't do anything without unlocking your bootloader prepared for unlocking (By the way you need to get a unlocking key from Sony's website with your IMEI)
After unlocking bootloader trying adb shell and fastboot commands I couldn't able to enable then searched for solutions in fastboot mode booting on custom recovery (in my case TWRP) try to flash it and running adb shell commands it didn't enable. (The main problem is I couldn't get RAW checked from camera probe app and gcam needs it for processing.)
DAY3(Bootloader unlocked - Rooted)
I rooted with magisk but with TWRP i didn't use the install section because I couldn't able to find the .zip file so I used the adb sideload thing. After downloading the magisk manager app and access to root I've tried using build.prop, terminal both phone and computer, magisk modules and adb sideload to flash .zip files for enabling camera 2 API (that gave me error while doing) but whatever I've tried to do didn't work out for me.
For who are wanting gcam to work in your Xperia XZ1 for my case and research I couldn't able to enable Camera 2 API and couldn't find a way to enable I think Sony needs to give us RAW processing option. All in all rooting your XZ1 not that bad idea after all because I don't think Sony give this lineup an another android update (Android Q). If you have any questions about the process don't hesitate to ask. Take care of yourselves and be aware of what you're doing with your lifes and your devices.
Click to expand...
Click to collapse
CameraAPI 2 works normally on the XZ1 AOSP10 under development by Sjll, but there is an ISP problem and the pictures taken are not saved.
try and camera super pixel for static themes.
excellent performance!!!
a little edit after just for shadows and hight light and you will have an outstanding results.
Georgerapp said:
try and camera super pixel for static themes.
excellent performance!!! a little edit after just for shadows and highlights and you will have an outstanding results.
Click to expand...
Click to collapse
Outstanding pictures for real! Did you take these pictures with the Open Camera App? Which app you used for the 'little editing' afterwards? Nice church! :good:
SGH-i200 said:
Outstanding pictures for real! Did you take these pictures with the Open Camera App? Which app you used for the 'little editing' afterwards? Nice church! :good:
Click to expand...
Click to collapse
ι shoot them with camera super pixel from playstore .
that app is for stills photos , no people , no pets .
after i edit the large file that gives on photoshop express and reduse the file at 40% quality to give me more comfortable image size.
open the app and at settings put resolution at 32 mp for back and 51.9 for the front.
enable noise reduction edge enhancement debug mode and place jpeg quality at 100.

Viper4fx on MIUI 12 and any GSI

Yes you hear right. You can install it in your redmi 9 MIUI 12. But you have to root your device. Without root it will not work.
First of all, make sure that Your Magisk is updated to the latest version.
Now, Install the V4fx.apk(from this post) app on your phone.
Open the App but, Don’t install drivers in the app.
Minimize the app in the background and open the Magisk Manager.
Go to Menu>Downloads and search Audio Modification Library.
Install the AML module and permissiver.zip(from this post), Don’t reboot your device.
Go back to the Viper4FX app and Click on the Install driver button.
Your Device will reboot automatically.
After device reboots, Open Magisk manager and Go to Modules.
Uncheck the Audio Modification library (don’t remove).
Open the Viper4FX app again and click Ok to install the driver.your device reboot automatically..
You successfully install it. But there is a problem. Install the driver correctly. But no sound modification will available. Because neon is not enabled. You have to enable it. After many research I found a solution. go to viper4fx and open setting then enable legacy mode...
Do not forget to thanks me if you can successfully install it...good bye
Update. (For Miui only)
when you restart your phone then you see that the YouTube is suddenly stop working. I found a solution for this. You need to install termux emulator and run this command
su
setenforce 1
setenforce 0
Problem is solved...
Remember...
In many gsi their are a audio modified app called 'Audio Fx '...you must disable it to get audio effect from viper4fx
Is this method work on miui 11?
quangkhai6912 said:
Is this method work on miui 11?
Click to expand...
Click to collapse
Try yourself..I think. It should work

Categories

Resources