r/Android • • Mar 21 '17

Android O is here

https://android-developers.googleblog.com/2017/03/first-preview-of-android-o.html
11.5k Upvotes

2.0k comments sorted by

View all comments

1.9k

u/polezo Mar 21 '17 edited Mar 21 '17

Building on the work we began in Nougat, Android O puts a big priority on improving a user's battery life and the device's interactive performance. To make this possible, we've put additional automatic limits on what apps can do in the background, in three main areas: implicit broadcasts, background services, and location updates.

YES! REIN IN THE ABUSERS! PUT A STAKE IN IN THE FACEBOOK APPS' BATTERY SUCKING VAMPIRE HEART!

Seriously though, I hope this helps with the worst battery hogging apps.

456

u/jazavchar Device, Software !! Mar 21 '17

The way things are going we're gonna end up with ios level of multitasking

523

u/Zee2 $$ Pixel XL Quite Black $$ Mar 21 '17

If it comes to that, but with manual options, I'm absolutely psyched. I'd love to have iOS level background restrictions, but with the ability to check a box authorizing background use for individual apps. I have maybe three apps on my phone that I want updating in the background, all the rest can go to iOS jail for all I care!

68

u/justjanne Developer – Quasseldroid Mar 21 '17

Actually, we're already there.

Apps can do as much in background as on iOS, but with no options around it.

But apps can always force a notification and stay running, and prevent you from removing the notification

60

u/Natanael_L Xperia 1 III (main), Samsung S9, TabPro 8.4 Mar 21 '17

iOS can't have Tasker style background tasks.

10

u/justjanne Developer – Quasseldroid Mar 21 '17

Android N can't have any background tasks anymore either, except for a few seconds after some important events happen.

11

u/Natanael_L Xperia 1 III (main), Samsung S9, TabPro 8.4 Mar 21 '17

Source? What's the criteria?

12

u/architta Nexus 6p Mar 21 '17

If you're still curious. He/She is just talking about doze. (fun conversation).

But that doesn't cover when your screen is on or your phone is not in doze. During that time background tasks are not that restricted.

8

u/Natanael_L Xperia 1 III (main), Samsung S9, TabPro 8.4 Mar 21 '17

Even with Doze you can still have recurring scheduled execution, right? Tasker wouldn't work otherwise.

→ More replies (1)

10

u/justjanne Developer – Quasseldroid Mar 21 '17

Source?

The Android M, N and O documentation, every single blogpost, in fact, even the article linked here mention it, and explain how and why

8

u/architta Nexus 6p Mar 21 '17

The article linked here is specifically android O. I don't think there is any such restrictions on android M/N. Please give us a source if you have it.

→ More replies (20)
→ More replies (2)
→ More replies (2)
→ More replies (4)

135

u/temp9995 Mar 21 '17

Sony had this, Xiaomi still do, but Google decided they knew best and Doze > everything else and banned STAMINA mode

10

u/JohnDalysBAC Mar 21 '17

I loved my Z5c it had pretty terrific battery life!

6

u/fenbekus Mar 21 '17

Mind some insight on how Xiaomi (MIUI I guess?) deals with it? I'm a newcomer to the Xiaomi family and I'd love to learn more! Also, "banned"? Did they seriously outright banned it?

11

u/BajingoWhisperer Z play Mar 22 '17

No play services if you messed with doze, so yeah basically banned.

→ More replies (7)
→ More replies (1)

9

u/[deleted] Mar 21 '17

I've always wanted "run in background" to be a permission.
There are many apps that I've uninstalled just because they feel the need to wake up all the time.

→ More replies (17)

34

u/CraziestSin Pixel 3 Mar 21 '17

Is that a good thing or bad thing? Haven't used iOS since my iPod Touch days

90

u/TunakTun633 iPhone 16 Pro | Galaxy S10E | OnePlus 6 Mar 21 '17

Mixed blessing; less background activity, better standby time. I find it to be a very good thing!

65

u/jazavchar Device, Software !! Mar 21 '17

iOS has traditionally been ridiculed for having "fake" multitasking. That's why they have better battery life

27

u/Jinxyface Mar 21 '17

Yeah it's not really multitasking when the apps are completely frozen and have to be restarted when you open them.

42

u/accountforrunning iPhone 7 Plus/ Redmi note 3/G4 Play Mar 21 '17

They will stutter for a fraction of a second but they aren't restarted for the most part unless you are going way back.

22

u/erasmustookashit Mar 21 '17

You can't have used an iOS device all that recently. iOS apps don't restart (unless you run out of memory), they launch where you left them just like on Android.

Honestly, the whole "fake multitasking" thing just seems like salt over the very real strengths Apple's approach has.

→ More replies (11)
→ More replies (1)
→ More replies (4)
→ More replies (4)
→ More replies (6)

7

u/abqnm666 Root it like you stole it. Mar 21 '17

Implicit broadcasts and background services are only affected if the app targets API 26+. So anyone that doesn't want to play ball can leave their app targeting an old version.

So it will likely take until P until the changes become mandatory. Got to dismantle the wild west of Android one step at a time.

Oh and in case you're worried Facebook won't update to API 26 to get around this, don't fret. Facebook has been one of the very first apps to update their app to the new SDK targets in the past. When M introduced runtime permissions, everyone cited Facebook as an app that would likely not target the new API level so they could avoid the permissions. But that didn't happen. They were the first non-Google app to target API 23 as soon as the API level was finalized, and the runtime permissions. So I don't think they'll do anything different this time. The app already uses GCM (now called FCM) to push notifications, so dealing with the restrictions shouldn't cause too much damage.

→ More replies (1)
→ More replies (12)