LG v10 camera exposure gets unlocked when onConfigurationChange - LG V10 Q&A, Help & Troubleshooting

Please find attached sample Android Studio project which is an adaptation of github googlesamples android-Camera2Basic except the activity handles rotation so it does not get destroyed upon rotation and sets a manual exposure to the request.
When installed on LGv10, if auto-rotate is enabled, after rotating landscape -> portrait a couple of times (5 - 6 times) the exposure gets unlocked thus the output will be a brighter image. This behaviour is unexpected; on other phones the exposure is the same. In the zip you can find also out.log which is an adb logcat of the device when the error is happening.
I suspect this to be a problem in the camera implementation of this particular phone. Thank you for your time.
I have filed a bug report on Google: 214345 where you can find the sample code as well.

Related

[Q] Rikomagic MK802II, portrait mode

Hello all,
this is my first post here so be gentle :cyclops:
I've bought Rikomagic MK802II with Android 4.0.4. with HDMI.
I want to rotate screen to portrait mode. I spent days trying to make it work but without success.
Device came without "Auto-rotation" option in settings. It is somehow locked to landscape rotation.
I tried to do:
1) Unpacked original IMG file, then unpacked system and changed build.prop.
- I've added "ro.sf.hwrotation=90" to build.prop file and flashed the device.
- after rebooting system stuck at loading screen
2) Again fresh start from original IMG file.
- changed "config_AllowAllRotation" from "false" to "true" in framework-res.apk
- packed all and flashed the device
- after reboot system running OK but still in landscape
3) Made file local.prop in /data/.
- In it I've added:
launcher.force_enable_rotation=true
qemu.sf.lcd_density=160
- nothing helped...
4) Changed settings.db.
- changed user_rotation from 3 to 0 (to 1 also)
- after rebooting screen is still in landscape but settings.db doesn't have anymore this row: user_rotation and 20 next rows too.
I also spot some AutoRotationController.smali file but I don't know is everything about it or?
How I testing portrait mode:
- Tried with Rotation locker application
- made my app which have orientation to portrait (tested it on my tablet and on my smartphone and in emulator and in all cases app is in portrait except on MK802II).
Does anyone know what is needed to be changed to get portrait rotation? No matter locked portrait rotation or Auto rotation enable. Just possibility to rotate screen to portrait.
Are there some parameters needed to be changed or some features to be added or something else?
Are there some group of parameters considering to screen rotate?
Any luck with the rotation? Same story on the mk802 fw.
Cheers,
Martijn
Still no luck. I didn't gave up but I need to learn more about android to better understand the problem about rotation and to to prevent/allow screen rotation. That is hard way for me but only because I didn't get any help on the forums and cannot find any blog on the net who have this there written down.
I'm guessing all your previous attempts to configure or manipulate the devices screen orientation are unsuccessful probably because all these system settings, configurations and used apps rely on a hardware feedback of sum sort.
Which probably is absent on these devices.
I don't believe an android stick as this comes with a gyroscopic sensor (hardware). Thus not able to supply or react to the correct information.
I don't think its impossible though, it just needs a more low-level programatically approach.
Good luck :good:
And please share your solution if you get it solved. I can imagine more people are facing this problem.
Semi - Solution
Hello,
I have been working with one of these devices recently and also needed to display something in Portrait mode.. Alas it's locked in to landscape.
Instead, I figured out a work around. I built an application that is landscape, but the internal objects are rotated 90 degrees. The app I am working on (and hope to have in the app store soon) is a web browser kiosk style app. This application design would allow you to display something in portrait mode even if the devices is locked to landscape. Added bonus, with the way I have it set up I am able to also set it to 180 degrees or 270 degrees (this is useful if the picture needs to be flipped on a projector lets say)
Just thought I'd share what I figured out so far. I'll post the link once I have the app ready for prime time.

Xperia z3c: orientation sensor misconfigured

Hey there,
I recently had a problem with my Xperia Z3Compact, though the solution I found might not be device specific. It's orientation sensor didn't work properly:
- It didn't change back from landscape to portrait mode
- Some photos taken were turned upside down
Here my solution so others maybe can profit:
Using sensoring tools, i managed to find out that the device reported to be flipped 180degrees (On its y-axis/tilt back and forth). Recalibrating the sensors with any apps I tested did not work.
Research showed, that the sensor orientation can be changed in the following file: /etc/sensor_def_qcomdev.conf; changing any values didn't take any affect though.
From some link I am not allowed to post here because I didn't post much yet, I learned that removing the following file lets android reconfigure/recalibrate its sensors according to the config-file: /data/misc/sensors/sns.reg
after all: just deleting the sns.reg-file was enough to fix the orientation issue. I mentioned the conf-file because it could be of use for somebody.
applican said:
Hey there,
I recently had a problem with my Xperia Z3Compact, though the solution I found might not be device specific. It's orientation sensor didn't work properly:
- It didn't change back from landscape to portrait mode
- Some photos taken were turned upside down
Here my solution so others maybe can profit:
Using sensoring tools, i managed to find out that the device reported to be flipped 180degrees (On its y-axis/tilt back and forth). Recalibrating the sensors with any apps I tested did not work.
Research showed, that the sensor orientation can be changed in the following file: /etc/sensor_def_qcomdev.conf; changing any values didn't take any affect though.
From some link I am not allowed to post here because I didn't post much yet, I learned that removing the following file lets android reconfigure/recalibrate its sensors according to the config-file: /data/misc/sensors/sns.reg
after all: just deleting the sns.reg-file was enough to fix the orientation issue. I mentioned the conf-file because it could be of use for somebody.
Click to expand...
Click to collapse
I really want this link in here: http:[doubleslash]blog[dot]csdn[dot]net/yushuang20140403/article/details/23907159
You fixed my problem, http://forum.xda-developers.com/one...tic-sensor-t3176956/post62301573#post62301573

[Q] Problems with the camera of Huawei Mediapad 10 link

Hello, yesterday I took a tablet Huawei Mediapad 10 link Android 4.1.2 and while I was playing with it I noticed some things.
Snapchat:
- The picture of the camera is always turned at 90 °, meanwhile in the app-a camera, everything is correct.
Messenger:
- When you choose to take a picture, it gives a black screen and crashes and can not load camera
- When you want to record a voice message and hold the red button, the tablet orientation rotates (landscape <-> portrait) for 1 second and it rings with sound similar to "error"
For now in the other app camera and audio recording work properly.
Attempts to fix:
- I downloaded another camera app and tried to make it default, but the results are the same.
- I read around the net and tried different things - none result.
- Factory Reset, without recovery of information from google account - everything is the same ...
After that I don't know what to do and I hope someone of you can help me!

Emui 8.1 - Honor 10 camera bug

I'm using a Honor 10 with EMUI 8.1.0
Patch version: COL-L29 8.1.0.146 (C432patch02)
Actual version: COL-L29 8.1.0.146 (C432)
Issue:
When using the camera with the AI and it recognizes a human face (portrait mode) I can only shoot two pictures no matter what I do.
At the first two picture taken, it can be seen on the lower left small picture preview icon that the photo is taken, but after that, no matter on what I aim the AI can change its mode (e.g. from portrait to text), but neither the software camera button does not do anything, neither the volume buttons.
The button itself is pushed but nothing happens.
I've already tried to erase the cache and wipe all data what the camera have from the application settings.
Also tried to restore default settings from the camera app settings, but nothing helped.
This issue occurs since the latest update which are fixes some pubg related graphical issues.
Before that point I could do infinite portrait pictures.
Does anyone else have this issue?
Any idea what can I do to fix this issue?
Same issue
I have the same issue, I have also taken the same steps to try and eliminate it.
Build number: COL-L29 8.1.0.148(C432)
I have found that disabling AI camera stops the issue, the camera still does the face recognition and focus, but you don't get the AI enhancements and the auto portrait mode. At the moment I've just had to disable AI which is a shame

Have any of you experienced "Auto Rotate" keeps turning on in Android 12?

I've been on Android for years and only when I upgraded from Android 11 to Android 12 has my Auto-Rotate constantly been turned on, even as I turn it off every single day whenever the darn thing rotates on me.
I NEVER want my phone screen to rotate.
Yet, it does.
Why?
I googled and found out that Android 12 did add to the "intelligence" of the auto-rotate functionality; but I don't see others with the same problem that I have that it keeps turning itself on even after I have turned it off.
How to use Android 12’s clever new auto-rotate system
With Android 12, Google has introduced a smarter way to control when your screen switches between its vertical and horizontal orientations. Instead of relying solely on your phone’s accelerometer to figure out which way you’re holding the device and then rotate your screen accordingly, Android 12 allows your device to use its front-facing camera as a guide. That way, the software can sense how that striking face of yours is positioned at any given moment and make sure the screen is always positioned to match. The advantage is that you then avoid those awkward situations where you’re lying down — and thus holding your phone at an angle — and the screen then flips into its landscape orientation when you’re actually looking at it in its portrait mode. Since the system pays attention to the position of your face, it makes the screen match the way you’re actually using the device, no matter how you might be holding it.
Click to expand...
Click to collapse
I do NOT know if that Android 12 "intelligence" is the REASON my phone keeps auto rotating, which is why I'm asking here if the rest of you are also having to turn OFF the auto-rotate time and again, day in and day out, all day every day, on Android 12?
And yes, I searched first:
Search results for query: rotate
Search results for query: automatic rotate
Search results for query: auto-rotate android 12
It doesn't seem to be a problem for others - so why is it a problem for me?
Anyone have any debugging ideas to figure out WHAT is turning on the automatic rotation feature of Android?

Categories

Resources