[codenameone-discussions] Re: CAMERA permission workaroud
Hi, this is effectively because Android is stupid. Permission isn't required because it's asked by the other intent so it has nothing to do with our app. The problem is that if the app does request the permission the way that permission passes through the intent chain is "flaky" for security purposes. I'm not sure how to workaround this, I'd check the manifest to see if a permission slipped in from somewhere. -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/codenameone-discussions. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/e17a260b-29b4-4def-85c0-9ba67004a4ad%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: CAMERA permission workaroud
Hi Shai, I'm in troubles with Android 6 permissions again and previous solution does not work for my second application I have two applications in the same eclipse workspace (CN1 v.3.8), libs ver. 196, no android hints at all, build.xml of the same version (3.8) ... setup is the same (except theme.res) One application, mentioned in posts above (let's name it app A) works as follows: I install app A on Android 6, run it. try to capture photo. Application asks for permission to access media, files, ... I allow the access, camera is started. Everything works OK. I check the phone Setting -> Permissions -> Camera and the application A is NOT in list of permissions for camera (despite this works ok) Second application (let's name it app B) work as follows: I install app B on Android 6, run it. try to capture photo. Application asks for permission to access media, files, ... I allow the access, camera is NOT started, exception occurs (SecurityException - Permission Denial, same like in my first post) I check the phone Setting -> Permissions -> Camera and the application B IS in list of permissions for camera, but is OFF (despite I clicked ALLOW in permissions dialog at runtime) When I set here the permission manually everything works ok. (also when I set target SDK = 21 app B works ok) Do you have an idea why two applications with the same setup behave differently? Why the app A does not appear in list of camera permissions but works and app B does appear there but the permission is not allowed despite the user allowed it at runtime? thanks in advance for each advice -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/codenameone-discussions. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/941e9485-4524-4516-87b6-b8f44e8e7e16%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: CAMERA permission workaroud
That's a bug in Android 6 because of the broken way permissions were changed in Android. If you have that hint they get confused and assume you need the permission. -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/codenameone-discussions. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/f7bcc377-74e0-4172-8614-59559686160e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: CAMERA permission workaroud
I had this in build hints and when I removed it, it works also on 6.0.x -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/codenameone-discussions. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/101dbab9-f870-4a95-aec8-7440c0e0eeeb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: CAMERA permission workaroud
Hi Shai, thanks for answer but I'm confused little bit now. I tried it on another device with Android 6.0.1 (Xiaomi Redmi A4) and the behavior is the same. I start the photo capturing, I get the question to allow photo capturing, I click yes and then I get above mentioned security exception. I found stack overflow discussion (mentioned in my previos post) about Android M Camera Intent + permission bug where you write about to add workaround to CN1 for that (on August 11th 2017). Is there the workaround or what should I do to make the camera working? Dňa nedeľa, 29. októbra 2017 6:07:53 UTC+1 Shai Almog napísal(-a): > > Hi, > this isn't a recent regression as this was never the issue. Camera > permission shouldn't be requested as we invoke an intent and that's a > request that should be made by the intent provider not by us. I think this > might be related to an app you might have installed recently on the device > that took over the camera intent. > -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/codenameone-discussions. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/094d8ed4-a2a7-4cf9-88df-8972419be9ea%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: CAMERA permission workaroud
Hi, this isn't a recent regression as this was never the issue. Camera permission shouldn't be requested as we invoke an intent and that's a request that should be made by the intent provider not by us. I think this might be related to an app you might have installed recently on the device that took over the camera intent. -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/codenameone-discussions. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/2afb08a5-a32f-43a9-9aa0-7bc47a1572be%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.