'Take picture' function returns black photo

Post your questions and help other users.

Moderator: Martin

Viking84
Posts: 22
Joined: 01 Dec 2013 08:01

'Take picture' function returns black photo

Post by Viking84 » 13 Jul 2014 07:28

Hi all,

I'm just trying to create my own intrusion alert that's supposed to take GPS/network coordinates, snap a front camera picture and email both to my secondary mail account.

Location works, but the photo is just plain black - anyone knows why and how to get around?

Nexus 5, Android 4.4.2, fully rooted, Google camera 2.3.019.

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: 'Take picture' function returns black photo

Post by Martin » 14 Jul 2014 16:20

Hi,

Take Picture works for me on a Nexus 5. Could you please post the flow that produces the black pictures so I can try to reproduce it with the same settings? You can post a link to the flow using the Publish Flows/Widgets button within the forum in Automagic.
Are you using Xposed or a custom ROM?

Regards,
Martin

Viking84
Posts: 22
Joined: 01 Dec 2013 08:01

Re: 'Take picture' function returns black photo

Post by Viking84 » 14 Jul 2014 17:11

Sure thing, please find the flow attached. I'm using Xposed, but stock ROM.

Best,
Chris
Attachments
flow_Intrusion_detection_20140714_170850.xml
Intrusion detection flow
(7.49 KiB) Downloaded 836 times

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: 'Take picture' function returns black photo

Post by Martin » 14 Jul 2014 17:37

Hmm, the flow works on my device. Perhaps yet again some kind of Xposed problem.
Could you please enable Debug Log in the preferences of Automagic, execute the flow once manually in Automagic (menu->Execute), verify that the picture is black again and then send the log to me by mail (on the flow list: menu->Manage->Log, menu->Send Log).

Viking84
Posts: 22
Joined: 01 Dec 2013 08:01

Re: 'Take picture' function returns black photo

Post by Viking84 » 14 Jul 2014 18:50

Don't ask me why, but for some reason it's working now. Very weird, I've been playing around with it the whole weekend without success. Oh well... Sorry for bothering you over nothing!

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: 'Take picture' function returns black photo

Post by Martin » 14 Jul 2014 18:55

No problem, glad it's working now :)
Please send me a mail with the debug log if it should start to fail again.

Viking84
Posts: 22
Joined: 01 Dec 2013 08:01

Re: 'Take picture' function returns black photo

Post by Viking84 » 14 Jul 2014 18:58

I will, thanks for the support!

Viking84
Posts: 22
Joined: 01 Dec 2013 08:01

Re: 'Take picture' function returns black photo

Post by Viking84 » 15 Jul 2014 07:02

Hi Martin,

I just unintentionally recreated the error when trying to login half asleep. Failing twice, I triggered the flow and the pic was taken, plain black. Could it possibly be a result of not being logged in? That's how i tried it over the weekend, while yesterday I manually executed the flow (while being logged in).

I'll send you the log in a minute, but it looks totally normal, no errors at all...

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: 'Take picture' function returns black photo

Post by Martin » 15 Jul 2014 16:00

Hi Chris,

The log looks normal but lacks some details. Could you please check that Debug Log is enabled in the preferences of Automagic and try to make the flow produce a black image again. Please also ensure that the log is not filtered (indicated in the title of the log screen). You can use the pencil-button to remove the filter.

Taking a picture should work even when the screen is locked. I'm using a similar flow on a Nexus 5 since quite a long time and did not get any black pictures yet. Did you try to disable all Xposed modules to see if Xposed somehow interferes with the cam? Are you using Xposed modules or other automation tools/device administrators that could disable the cam when the lock screen is shown?
Which lock screen are you using?

Regards,
Martin

Viking84
Posts: 22
Joined: 01 Dec 2013 08:01

Re: 'Take picture' function returns black photo

Post by Viking84 » 15 Jul 2014 16:29

I'm using the stock lockscreen, although in use through nova launcher, not sure if this is making any difference. Got about 10 Xposed modules running, but none of them is effecting camera or lockscreen behavior. Just deactivated them all, rebooted and sent you the resulting log (including debug, missed that in the first attempt). Picture is still black :-(

I'm just now going through the list of functions I've been freezing with titanium backup, killed about 30% of the systems apps. Maybe one of those relates to the error...

Post Reply