Needing to modify the latest Camera NX APK - Nexus 6 Q&A, Help & Troubleshooting

I have been using the latest Camera NX (arm obviously) on my phone for a while now.
I recently changed two build.prop values and the app now crashes on launch every time, even after reinstalling.
The keys I changed were "ro.product.model" and "ro.product.manufacturer"
I gave these the value of "Pixel XL" and "google" in order to trick my nexus 6 into thinking that it's Pixel XL and enable certain features like trusted voice and Google Lens.
One of both of these changes must have made the app incompatible with my phone.
However, I feel like it should be easy to modify the Camera NX apk file to allow it to run on a "Pixel XL" since it works with the hardware fine, I believe it's just a matter of values matching.
I've never done anything like this before though and don't quite no where to start. I've opened the apk file with an 7-Zip to see if I could see anything that would stick out, but I just don't know what I would be looking for.
Any help would be appreciated as I would love to be able to continue using my favorite camera app and also have Google lens and trusted voice working.
Thank you
Edit:
The Camera NX apk file can be found here at the bottom of the site
https://chromloop.com/2016/12/updat...g-fixes-performance-improvement-apk-download/

Related

camera app

hi everybody,
I'm running Lineage Os 14 on moto g Thea, and the camera has a problem when activating HDR, it always gets jammed. Plus when opening gallery things get very slow. So I turned to other apps and found two options:
- google camera 2.7: works fine, but it still is a little slow in opening and rotating to landscape.
- one plus camera 2.5.4: it is very fast, but the flash is disabled most of the time because it reads excessive heat (impossible).
anyone has experience in this or can suggest a camera app?
cheers
update
the flash issue on one plus camera is gone after some use.
nevertheless, it has a problem with the panorama image composition, does not work properly so all panoramas are screwed up..
Alternative method but can help in something, maybe...
Hello my friend, I'm using google translate to communicate with you.
I also use lineage 14.1 however I use a camera and gallery of the motorola, updated until.
But I flash the zip after GApps before the first reboot, and right after configuring it, I upgrade through the play store, and then, with a file manager, I go to the / data / app folder and find the two camera folders and of the gallery, I modify ALL permissions within these folders to 777, restart and I have a gallery and camera 100% functional.
Optionally there are other options, but that's how I do it.
If you want to try, I'll leave the zip LINK that I got in a part of the forum that I can not remember where else.
Remember that I have no responsibility for any damage, it is a way of trying to help, but as I only tested on mine, I have no guarantee of anything
It was testing on mya the XT1078 with lineage 14.1 and root (of course), because without it I would have no way to modify the permissions.
Unfortunately my account is new so I can not pass the link to you, then remove the spaces and join to form a link:
Download: https: //mega.nz/ #!vY5w3BKa!fx- wqPKS-tXvCyrQqIAA7MwjU_ 1QluMMxfkg7C2CL60
I wish luck and success there.

AR Sticker keeps stopping

Hello guys. I did everything step by step to enable AR sticker on modified Gcam, but failed. AR sticker keeps stopping when I tap AR sticker. What happened?
If you are using N it's normal. If you in O, flash updated magisk module for the AR. that is working on my oneplus 3T
februarysn0w said:
If you are using N it's normal. If you in O, flash updated magisk module for the AR. that is working on my oneplus 3T
Click to expand...
Click to collapse
Where from to get this mentioned magisk module ?? Any link please..
Thanks.
You can find some information from the link below.
https://forum.xda-developers.com/on...oogle-camera-hdr-60fps-video-t3658552/page207
I had the same issue. rebooting the phone solved the crashing issue for me =
Already Posted in the modded GCam thread, but it looks like its dead
DaKing1512 said:
ok, so regarding the AR Stickers, this is what Ive done so far (itll be a little long comment, but i like putting all the details)
First, this is my setup
- OnePlus 3T
- Freedom OS CE 3.2 Based on OOS OB18 (Oreo)
- Magisk 14.6
- Blu.Spark r209 for OOS based roms
- AKT kernel profiles (Project Zhana Profile, but this didnt matter, because with or without it, nothing changes)
I tried all possible combinations of the provided AR related modified apks which were posted here by @Arnova8G2
AR Core
ar.core_0.91.171127093
ar.core_0.91.171127093-V1.1
arcore-preview2
AR Stickers
vr.apps.ornament_1.0.171127163
vr.apps.ornament_1.0.171127163-V1.1
vr.apps.ornament_1.0.171127163-V1.2
and almost all provided calibration_cad.xml and device_profile.proto files provided here by the users (except magisk modules, because i like to do everything manually, and the zip files that contained billion other xml/proto files)
- all AR Core apks work fine
- both AR Stickers 1.1 and 1.2 work fine, take pictures and record video beyond 5 seconds (the first "no version" apk launches and closes itself, not FC),
The first time using AR Stickers is great, it prompts me to move my device in this circular motion to scan any surfaces and it detects them correctly (the dotted mesh is displayed on detected surfaces), and im able to place stickers.
After a while of not using AR Stickers (phone is idle, locked, or just using another app) AR Stickers doesnt ask me to rescan the environment and doesnt detect surfaces, and if i try to put stickers they dont stick to any surface. I tried clearing the data of both AR Stickers and AR Core, force closing, and rebooting, but nothing changes, BUT, if I replace the xml/proto file with another (plus clearing data and rebooting) it works again, detects surfaces, but after a while the same issue happens and I have to redo the previous steps every time I want to use these Stickers
I even tried to set the permissions of the xml/proto file to 444 (all read, no write) so maybe i can prevent anything from altering the file, yet the issue stayed.
Is there anything Im missing? this App is rather the most confusing thing ive ever used on my phone, because I cant tell what changes between the first time using it, and using it after a while, but its quite fun.
Help is appreciated
Also, @Arnova8G2, your GCam Mod is awesome
BTW, to everyone trying AR Stickers on any Nougat Rom, it wont work, AR Stickers will keep crashing, AR Stickers 1.1 will ask for permissions and show the initial screen then it crashes, 1.2 crashes immediately.
Sorry, another edit, and not related to AR stuff, but if you wanted to use Slow motion, check PureFusion Oreo Rom, it's the only Oreo Rom I tried where Slow Motion works. Not sure why and how
Click to expand...
Click to collapse
im also got these FC on AOSPA..
twentyfourinc said:
im also got these FC on AOSPA..
Click to expand...
Click to collapse
Assuming stable AOSPA, Nougat ROMs will not work with AR stickers. I've seen a few places suggest they will but it wont. Oreo is required at present.
Use this magisk module
https://forum.xda-developers.com/lenovo-zuk-z2/themes/google-ar-stickers-zuk-z2-twrp-t3721092
aswin620002 said:
Use this magisk module
https://forum.xda-developers.com/lenovo-zuk-z2/themes/google-ar-stickers-zuk-z2-twrp-t3721092
Click to expand...
Click to collapse
How about super su?
I installed the ar apps, edited build.prop and moved the calibration.cad file to /system/etc but it kept crashing. then I rebooted my op3t and now it isn't crashing any longer, but the stickers won't appear. I drag them into my field, the toast in bottom center shows me the name of the sticker but I can't see anything - I tried every sticker from Stormtrooper to Eleven.
Device OP3T
ROM: Omni 8.1 latest build
Rooted with Magisk
does anyone know a solution?
No environment tracking
I installed AR stickers just fine on my Oneplus 3 with that Calibration_Cad.xml thing and it doesn't crash or anything it workes. Sometimes. Other times it decides not to track the environment. The objects just float.
Anybody has an idea how to fix this?
Thanks ya'll
DaKing1512 said:
Already Posted in the modded GCam thread, but it looks like its dead
Click to expand...
Click to collapse
Having the same issues as OP describes - AR stickers work well on first run, but after that doesn't prompt to map environment and stickers just float. Has anyone managed to resolve this/ find a workaround?
Super su gives adb Verity error and phone encryption on oreo. I don't of they patched it now, but from that time I have been using magiskdisk manager to root and access super user permission.

[ROOT] Manual Video mode and other features on Oreo

Hello everybody,
I've been looking at the /system/etc/camera_config.xml file, and I noticed that there are so many features that the LG camera app supports, but some of them are disabled even if they work on our G5. So I made a flashable zip to enable these features:
Manual Video mode: works very well, but doesn't support 21:9 aspect ratio (also broken in Fulmics 5.5 G6 camera port)
Graphy (applies settings from existing photos to yours): working perfectly, you just need to install Graphy from the Play Store to access to many more photos.
Adjust Exposure in Automatic mode with a slider: working
Add signature: not working on my phone, may be worth to try on some other phones
ZSL (zero shutter lag) on Manual mode: working, but if you set exposure or shutter to AUTO, the camera shows a value of "0" for both ISO and shutter. It's just an UI bug, the photos are taken as expected.Removed, as it has too many drawbacks.
If you don't have TWRP, just extract the camera_config.xml file and place it in /system/etc/ and be sure to set permissions correctly.
If the options are not available after flashing the zip, clear the data of the camera app.
By the way, looking inside the Smali code of the camera app, it seems thate there is a [email protected] mode, but I have no clue on how to enable it to test if our camera supports such a high frame rate.
Lowering exposure on automatic would be useful. I always though on stock it was set too high with the wide angle exposure being perfect.
How exactly does that work? Will a slider button appear where there was none before? And do you think it can be done for Nougat?
EDIT: I'd like to manually edit the file myself, what do you have to change just to get the automatic mode exposure slider?
Thanks mate for your great finding.. I manually edit my LG V20 camera config according to yours and it's working as it should.
Those exposure slider should be a handy to me.. and graphy? idk what that is but i will try to explore those someday..
thanks again..
EDIT -
there is no need to reboot if change those config line, simply just clear the camera data and voila ! this should be time saving..
anyway, i'm going to spread your finding on LG V20 forums.. keep on the good works !
@tremalnaik
wow this is awesome, it is LG V30+ features for the Graphy things. Could you please find out how to get Cine Video Effect working as well?
@daniLaLaLaLaLa
Just found this thread, thanks to you.
Am I able to use this mod using Nougat on LGV20?
Please advise.
Thank you.
karkand said:
@tremalnaik
wow this is awesome, it is LG V30+ features for the Graphy things. Could you please find out how to get Cine Video Effect working as well?
@daniLaLaLaLaLa
Just found this thread, thanks to you.
Am I able to use this mod using Nougat on LGV20?
Please advise.
Thank you.
Click to expand...
Click to collapse
I guess it won't work on Nougat due to different camera apps.
ezzony said:
Lowering exposure on automatic would be useful. I always though on stock it was set too high with the wide angle exposure being perfect.
How exactly does that work? Will a slider button appear where there was none before? And do you think it can be done for Nougat?
EDIT: I'd like to manually edit the file myself, what do you have to change just to get the automatic mode exposure slider?
Click to expand...
Click to collapse
To lower the exposure just tap on the screen on the area you want to focus, then a slider with two suns will appear next to the shutter button. That's the slider for the exposure.
If you want to add that feature yourself, open the /system/etc/camera_config.xml file with a text editor (TotalCommander, Root Explorer, etc...) and look for AE_focus_supported string and replace "false" with "true".
If you want to do it on Nougat you can try, if you already find AE_focus_supported string in camera_config.xml, it will likely work.
karkand said:
@tremalnaik
wow this is awesome, it is LG V30+ features for the Graphy things. Could you please find out how to get Cine Video Effect working as well?
@daniLaLaLaLaLa
Just found this thread, thanks to you.
Am I able to use this mod using Nougat on LGV20?
Please advise.
Thank you.
Click to expand...
Click to collapse
I'll try to find out a way to use Cine Video Effect, there are some other modes, like mode_cinema and mode_disney_camera that are built in the camera code, but they make the camera app crash when selecting mode. There's also mode_food, that is shown correctly in the mode selection menu, but then crashes. Maybe some complementary files are missing from G5. I'll try to debug and see if it's just a matter of adding some files or if we need to edit the code.
If you want to use my file on V20 Nougat you can try, but make a backup of camera_config.xml, because different versions of camera app might not recognize some strings and crash. If you don't succeed, try editing your file, it's quite simple, you just have to replace some "false" with "true" and check if all works as expected.
EDIT: tried mode_cinema: the interface works perfectly, but it doesn't do anything You have the tutorial, the interactive zoom and the LUTs, but none of them works out of the box. As @xpirt explains here, Cinema Mode depends on the V30 camera sensor, and cannot be ported to G5 (and of course to G5, having the same sensor, at least on the primary camera).
Also Grid Photo (there are 4 modes) is buggy, because it takes stretched photos, with wrong aspect ratio and weird glitches. In this case doesn't seem to be a bug related to the hardware, but to the software.
@tremalnaik, ya that worked but it's ae_supported I think you meant not ae_focus. Anyway the setting was not available on my Nougat fone, I guess it could be made to work some way. I think I have the G6 camera app on my nougat g5 fone now I can't remember. Maybe it could be made to work by porting the G5 Oreo camera app over.
Incidentally what I don't like about the main rear camera is that it has a slighly orangy/yellow-y hue at times. The G4 camera was better. I wonder if there is any way to adjust it or is it basically the camera hardware.
For the AE Focus you might try adding this lines to your camera_config.xml
Code:
<item name="AE_focus_supported">
true
</item>
and see if your camera app makes use of this setting.
For the color I really don't know, there's so much code in that app to explore... If the color is too orange, you may want to switch to manual mode and set the white balance to something cooler. The problem would be if the color was too green or too purple (magenta), it wouldn't be possible to correct it using white balance, you woud need to edit the RAW file (or the JPG, with worst results).
https://drive.google.com/open?id=0BwmsIySoHg2FamhOaEQ1T1o0Wkk
---------- Post added at 01:30 PM ---------- Previous post was at 01:28 PM ----------
use this apk instead of playstore.after that active it in setting of camera.perhaps you may restart phone after install the apk.that's all
While I was testing the H-ROM G7, I noticed a bug in the camera that made me realize that Zero Shutter Lag and Manual mode are not compatible. If you have flashed the configuration with ZLS active in manual mode, please replace it flashing the other zip file.
Enabling ZLS has 2 huge drawbacks: not being able to save DNG raw files and having less control over shutter speed (especially not being able to take long exposures).
As I'm currently using H-ROM, I can't test if on stock Oreo this bug is there, but I'm pretty sure it is.
After playing around with smali code of the camera app, it seems to be possible to make manual video work without root (and the G7 camera app)
@jc9896 mind sharing your work?
Black_Eyes said:
@jc9896 mind sharing your work?
Click to expand...
Click to collapse
Extract the zip, install the app but dont open, and then copy the CamMod folder into the root of the internal storage.
I modified the app to search the CamMod folder for the relevant xml files.
Not a developer, no idea how to fix bugs and crashes.
Download here : https://mega.nz/#!ORIUBY6D!QzzC6m1BBYp-9LQB9kYIW9b2TFYyf7AqiO26T46sgos
Frank
Merci
tremalnaik said:
Hello everybody,
I've been looking at the /system/etc/camera_config.xml file, and I noticed that there are so many features that the LG camera app supports, but some of them are disabled even if they work on our G5. So I made a flashable zip to enable these features:
Manual Video mode: works very well, but doesn't support 21:9 aspect ratio (also broken in Fulmics 5.5 G6 camera port)
Graphy (applies settings from existing photos to yours): working perfectly, you just need to install Graphy from the Play Store to access to many more photos.
Adjust Exposure in Automatic mode with a slider: working
Add signature: not working on my phone, may be worth to try on some other phones
ZSL (zero shutter lag) on Manual mode: working, but if you set exposure or shutter to AUTO, the camera shows a value of "0" for both ISO and shutter. It's just an UI bug, the photos are taken as expected.Removed, as it has too many drawbacks.
If you don't have TWRP, just extract the camera_config.xml file and place it in /system/etc/ and be sure to set permissions correctly.
If the options are not available after flashing the zip, clear the data of the camera app.
By the way, looking inside the Smali code of the camera app, it seems thate there is a [email protected] mode, but I have no clue on how to enable it to test if our camera supports such a high frame rate.
Click to expand...
Click to collapse
Greetings!
I have a question. Is it possible in any way to install this apk on LG G5 running Nougat 7.0. When I try to install the app, It says "error parsing the package". This is probbably due to incompatibility with Nougat. I know there is a minimum SDK version set inside the apk files (AndroidManifest.xml) so would it be possible to tweak some settings? The software of the camera app on Oreo is messed up, producing noisy images so I wouldn't like to sacrifice that.
ToTheSpace2 said:
Greetings!
I have a question. Is it possible in any way to install this apk on LG G5 running Nougat 7.0. When I try to install the app, It says "error parsing the package". This is probbably due to incompatibility with Nougat. I know there is a minimum SDK version set inside the apk files (AndroidManifest.xml) so would it be possible to tweak some settings? The software of the camera app on Oreo is messed up, producing noisy images so I wouldn't like to sacrifice that.
Click to expand...
Click to collapse
For noisy images and general picture quality, I recommend Google Camera 6.1 on Oreo. (5.x on Nougat) Makes a huge difference in image quality.
You can find a good version by searching up google camera ports on xda, such as cstark's and Arnova's versions work well.
As for the stock cam, I tried with no success to port manual video over. There has been attempts iirc but it seems that manual video encoding is broken on Nougat. That issue is resolved on Oreo.
jc9896 said:
For noisy images and general picture quality, I recommend Google Camera 6.1 on Oreo. (5.x on Nougat) Makes a huge difference in image quality.
You can find a good version by searching up google camera ports on xda, such as cstark's and Arnova's versions work well.
As for the stock cam, I tried with no success to port manual video over. There has been attempts iirc but it seems that manual video encoding is broken on Nougat. That issue is resolved on Oreo.
Click to expand...
Click to collapse
Thank you for the reply!
Do you mind checking out a thread I made about LG G5 noise problem on Oreo (link: https://forum.xda-developers.com/lg-g5/help/long-exposure-images-lg-g5-oreo-noisier-t3956693)
I don't know if that's the general problem or is it just me, maybe you know something more about it? The manual video for Oreo is amazing but this image noise bug bothers me.
ToTheSpace2 said:
Thank you for the reply!
Do you mind checking out a thread I made about LG G5 noise problem on Oreo (link: https://forum.xda-developers.com/lg-g5/help/long-exposure-images-lg-g5-oreo-noisier-t3956693)
I don't know if that's the general problem or is it just me, maybe you know something more about it? The manual video for Oreo is amazing but this image noise bug bothers me.
Click to expand...
Click to collapse
There is noise on mine. Seems to be about the same as Nougat (can't really tell from my pics), but as I use GCam nowadays its not as much of a problem. Night sight on Oreo (GCam 6.1) does a lot to improve night shots and noise.
jc9896 said:
Extract the zip, install the app but dont open, and then copy the CamMod folder into the root of the internal storage.
I modified the app to search the CamMod folder for the relevant xml files.
Not a developer, no idea how to fix bugs and crashes.
Download here : https://mega.nz/#!ORIUBY6D!QzzC6m1BBYp-9LQB9kYIW9b2TFYyf7AqiO26T46sgos
Click to expand...
Click to collapse
I have tested your port for several days on my LG G5 (Oreo stock) and I am very grateful for your work. I know that some functions do not work but the most important ones for me such as manual video and manual photo modes work quite well. The LG Camera app 7.0 with your modifications is infinitely better than the one included in the stock rom.
Before, I had tried several video recording apps with manual controls from the Play Store but they used to have small jumps in the recordings. It seems that only LG apps record well in 4K with stock rom.
Works as described. Thank you for these tweaks. ???

Anyone find a GCAM Port that works?

It's taken some doing but I've been able to unlock and root my Bold N1. (bricked it 3 times before I figured it out, luckily I found all the tools/files I need to flash back to stock).
For Now I have it on the stock rom but rooted via Magisk.
My only issue is I NEED to replace the camera app. The phone is AMAZING for the price point (the screen alone is worth the price) but the camera is total garbage.
I was Hoping GCAM could salvage some of that for me.
So far I hear some folks have had luck with GCAM 6.1.20 but I haven't been able to. I can get it to install but the app crashes a few minutes after I load it up. And once crashes it won't start up again until I delete cache/data on the app.
I've been searching the net for a few weeks now looking for the best GCAM Port for Mediatek Helio P70 phones but so far no real luck.
I've tried using Magisk modules to force it (bricked my device and had to wipe to stock) tried to modify the build.prop (even though the phone is already camera2api enabled) needless to say that didn't work either.
Anyone find a good GCAM Port yet? I mean the phone is camera2api enabled out of the box so it shouldn't be so hard to find a good Port. The P70 is a popular SoC and with all those GCAM devs out there Im surprised this is so hard to find. Ive tried ports that say they're for a phone with the same SoC but they fail as well. (the realme 3 has the same SoC and a working GCAM Port but I can't get it running on my bold)
At this point the camera is the only thing stopping me from putting my iPhone x in a drawer and making this my daily driver.
Only real version I've found that work is this one...
Fairly old version.
Try Open Camera
kcasante said:
My only issue is I NEED to replace the camera app. The phone is AMAZING for the price point (the screen alone is worth the price) but the camera is total garbage.
I was Hoping GCAM could salvage some of that for me.
At this point the camera is the only thing stopping me from putting my iPhone x in a drawer and making this my daily driver.
Click to expand...
Click to collapse
I don't know if you found a working gCam app for the Bold N1, but if not, try using Open Camera (free with no ads in the Google Play store). For me, it totally has saved the Bold N1's photography and I actually prefer it over to gCam (which I used on an Essential Phone) due to all the different options and manual control.
One thing Open Camera cannot do, however, is make artifical bokeh ("portrait mode" on many phones). So I use Google Camera (also free with no ads in the Google Play Store; not to be confused with gCam, which is ported from the Pixel) and its Lens Blur function for that purpose. Otherwise I use Open Camera for everything else.

persist.camera.switch.aux=unknown

What is purpose of this prop? It appeared after android 10 update. I could not find any information about it but I cannot use second rear camera with any third party apps. I tried changing camera.aux.packagelist, vendor.camera.aux.packagelist, persist.vendor.camera.expose.aux, I also added persist.camera.expose.aux but apps still can't detect second rear camera. Does anyone know values of prop in the title?
Thanks in advance.
Edit: persist.vendor.camera.switch.aux=unknown
If you want to use the second cam on the rear you need different things:
1. A gcam that can switch between cams like the latest The_Dise version here: https://www.celsoazevedo.com/files/android/google-camera/dev-the_dise/#apk1549
2. You also need the Magisk module to enable the auxiliary buttons. You can download this from within The_Dise's gcam or from here directly: https://f.celsoazevedo.com/file/cfiles/gcm1/dmgcaux_v1.zip
3. You need a ROM that can handle it. It didn't work on stock for me, but on Pixel Experience it works.
All and all it was not worth the trouble in my opinion, but I just wanted to test it. I think it has more purpose for the higher end phones with more different cams on their back.

Categories

Resources