r/androiddev • u/[deleted] • Feb 20 '18
News Android P will Prevent Background Apps from Accessing the Camera
https://www.xda-developers.com/android-p-background-apps-camera/81
11
u/xbuttcheeks420 Feb 20 '18
What happens to face unlock?
It won't affect me, anyways. I have an S7E and I'm still waiting for Oreo.
2
u/adamhighdef Feb 20 '18
At least we've been getting monthly security patches albeit 1 month behind. I reaally hope they bite the bullet and implement treble.
3
0
5
u/AmIHigh Feb 20 '18
It'd be really nice if they'd add a new permission to allow this functionality.
There's a lot of good use cases for this functionality, but it's being abused. At least having the user have to accept a permission for it should stop most of the abuse, while still allowing people to use it knowingly.
1
u/hjames9 Feb 21 '18
Yep exactly. A better solution is to add more explicit entitlements around this feature rather than just disabling it.
6
u/jecxjo Feb 20 '18
So security apps like Cerberus won't be able to take photos of the person who stole your phone...awesome /facepalm
5
u/leggo_tech Feb 20 '18
foreground notification? Hopefully something that you could customize so it doesn't say "CERBERUS SECURITY THE CAMERA IS ON".
3
u/s33man Smali Pirate Feb 20 '18
If youre going to steal someones phone its going to be turned off / battery removed right away. I guarantee you that use case with the camera doesn't happen often
4
1
1
u/pgetsos Feb 21 '18
I've seen a guy that stole a friend's phone using his Viber and added his mobile phone to the profile, no format or anything. Police caught him next day
2
1
Feb 20 '18
If you exclude the app from Doze, it would be excluded from this feature as it currently appears to be designed.
-1
-1
-12
u/Reid89 Feb 20 '18
Lol until they crack it nothing is permanent.
2
u/bernaferrari Feb 20 '18
Still better than current version where there is no protection and you don't even need to crack, it is open..
-10
u/Reid89 Feb 20 '18
Indeed just plan on homebrew mod ect community and Russians and Asian hackers will find a crack in year or two after release. The idea is if you can crack something like that to find an exsploite then you can plant sofwear of some sort to root next gen devices. But in general to protect again random access from a game or app like facebook sure cheers. Just I can for see it may be the first exsploite cause its new and not mature tech.
0
Feb 20 '18
[deleted]
-10
u/Reid89 Feb 20 '18
Idk lol just felt like writing no real point be sides it be cracked other then that rambling on about dumb shitππ.
-26
Feb 20 '18
That's rediculous. The tricks people have to pull in order to use the camera in the background. What's the point of having a camera if the app needs to run in the foreground?
16
u/dudewhatev Feb 20 '18
Persistent notification solves this. The camera should not be able to be used in the background silently. A notification akin to music playing should be required.
2
u/Mavamaarten Feb 20 '18
What's the point of having an app that uses the camera but runs in the background? There's literally not a single legitimate use for that, other than spying on you or on others.
6
u/FelicianoX Feb 20 '18
Cerberus can take pictures in the background if your phone gets stolen. With this change I don't know how that's going to work without alerting the thief.
-15
Feb 20 '18 edited Feb 20 '18
The point of having a camera is to record, not to display what's being recorded, that's simply a waste of battery life. Yes it can be used as a security camera and so what? You're against user security too?
9
u/tom808 Feb 20 '18
I think you are missing the point. If an app is in the foreground is has to be visible to the user in some way. That could mean as much as notification that it's being used and by what app.
-13
Feb 20 '18 edited Feb 20 '18
So what happens when there are multiple background apps that are using the camera at once? (assuming this could one day be possible) Are you going to force every one of them to display a notification too?
I don't like notifications that stick around. One of the features I despite the most, is the VPN notification icon. Because it's pointless.
11
u/maybe-ios-dev Feb 20 '18
You can't use the camera if it's already being used by another app. Try using the flashlight function while taking a photo.
0
u/Zhuinden Feb 20 '18
Yeah, camera is that one thing that you HAVE to release in
onPause()and not just in onStop or onDestroy because it gets stuck!6
u/tom808 Feb 20 '18
I imagine they would yes as they do currently ... How many apps are you going to use at once with the camera?
-5
Feb 20 '18
There are many things you can do with camera feeds, this is the age of convolutional neural networks. I could see many reasons why you'd want it to be shared between different apps, in the background on a single phone.
8
u/rjp0008 Feb 20 '18
If they're good reasons you'd be ok with a persistent notification for all of them.
-3
Feb 20 '18
There's no good reason for applications to liter notifications just because they're running in the background. The point of notifications is to notify, not to state the obvious.
4
u/MacroMeez Feb 20 '18
i am very glad that you are not in charge of android security decisions
1
Feb 20 '18
No single person is in charge of making decisions for large corporations. They make decisions based on how it will change the market value of there products. Not whether they're extending the security or freedom of there users. To them it as nothing to do about ethics. They're just as psychopathic as I am.
From a business prospective, this is the obvious choice.
1
u/MacroMeez Feb 20 '18
nah i disagree. good people work there.
0
Feb 20 '18
Data scientist is amongst the most hated modern discipline. If there's one thing you can't call people who do market research today, it's good. Because everyone seem to hate them. So if this discussion is about the hive minds definition of good, I'm afraid you've just fallen a little short.
1
u/MacroMeez Feb 20 '18
good thing data scientists have absolutely nothing to do with security decisions
3
u/Mavamaarten Feb 20 '18
It's absolutely not pointless. A VPN means you're tunneling all your traffic through some service. Third party apps can configure a VPN, so you definitely want to know if that happens without your consent.
-1
0
Feb 20 '18
[deleted]
27
Feb 20 '18
I'm pretty sure that a foreground notification can solve this problem and that's already how most of the video chat apps handle this anyway.
-4
u/BacillusBulgaricus ComposableThermosiphon Feb 20 '18 edited Feb 20 '18
What if I wish to do both video chat and browsing in Chrome at the same time? Currently Viber or Skype just stop the video soon after they are not in foreground. And with P it will stop right away. p.s. You mean the notification will allow the camera to work in background? If that's the case then I agree it's fine way to solve it.
8
Feb 20 '18
I mean foreground services. AFAIK you can access the camera from such a service and since Oreo there is even the PIP API for this kind of use case.
1
u/Zhuinden Feb 20 '18 edited Feb 20 '18
Can't they just release the camera when they're not in front?
Orrrrr they could allow multi-tasking by not blocking multi-screen? I think they can also use picture-in-picture.
49
u/baylonedward Feb 20 '18
Are you telling me that right now apps with camera use permissions can run on background and use it without me knowing? What apps do this?