r/tasker • • Mar 13 '19

Android Q will prevent background apps launching activities.

Hi people. The new Android Q release will prevent background apps (including foreground services) from launching activities. See here for details: https://developer.android.com/preview/privacy/background-activity-starts

This seems to be a further limitation by Google on what automation apps like Tasker will be able to do, so I have filed an issue report to request that they provide some mechanism to allow the user to disable this restriction:

https://issuetracker.google.com/issues/128511873

Please star the issue and let's try and get it some attention before they go ahead and cripple Android Q.

141 Upvotes

31 comments sorted by

12

u/mawvius šŸŽ© Tasker Engolfer|800+ Core Profiles|G892A|Android7|Root|xPosed Mar 13 '19

Time for another revolution me thinks!

19

u/gvillepa Mar 14 '19

Thanks for proactively making us ignorant folks aware. I had no idea. And since talk is cheap, I decided to act and just commented on the issue tracker.

Thanks again good fellow

4

u/xd1936 Mar 14 '19

I mean, it just came out a couple of hours ago. It's understandable that not everyone knows this stuff yet. Hopefully Google provides an official alternative.

5

u/[deleted] Mar 14 '19

Please STAR the issue. Commenting is great of course but the number of stars count.

4

u/[deleted] Mar 13 '19

... And here I was excited to install Q beta 1...

4

u/instantbitsapps Mar 14 '19

New Android releases should be a very exciting time but for some of us developers it is just a time to go read the new ways this will kill parts of our apps.

3

u/ersatz_feign • Decade-long Tasker fan and still learning Mar 14 '19

Like the last time something like this came up, it would be a really good idea to make the link to the tracker very bold and obvious with capitals saying click here.

2

u/ballzak69 Automate developer Mar 14 '19 edited Mar 14 '19

2

u/3m0 Mar 14 '19

Everyone who uses Tasker or any automation app, please click the 2nd link in the original post and then click the star on the top left corner of the page. After that please reply to the thread. We need this to be as visible as possible.

5

u/SpecialFX99 Mar 14 '19

I would take an honest look at iPhone if Tasker was killed

4

u/VisuelleData Mar 14 '19

I think that I'd just buy old phones and stay on an ancient Oreo custom ROM.

3

u/Morphior Mar 14 '19

I'm still on Oreo. I know people who still use Samsung Galaxy S4 Minis with Android 4.x... Android isn't dead.

4

u/dlerium Mar 14 '19

There are still plenty of reasons to use Android.

5

u/ersatz_feign • Decade-long Tasker fan and still learning Mar 14 '19

Steady! Let's not loose logic and sanity over this!

2

u/KickMeElmo Mar 14 '19

Eh, I'd just go to the Librem 5 and never look back. I'm already considering doing that.

1

u/ersatz_feign • Decade-long Tasker fan and still learning Mar 14 '19

But sadley, Purism are too orientated towards monetisation to be taken seriously by the open OS community.

1

u/Plsnotmyelo Mar 14 '19

Yeah if background apps are gonna be restricted I’d rather have better standby battery life in exchange and not having to deal with play services bullshit.

2

u/hasuris Mar 14 '19 edited Mar 14 '19

This. Google is kneejerking developers while their own junk is the worst offender.

Hypothesis: phones would last longer, if they wouldn't track us all the time

3

u/rumourmaker18 Mar 14 '19

So... While I don't like the implications for Tasker, I think this is a good thing overall. Too many apps abuse the privilege.

1

u/hasuris Mar 14 '19

Just when you think it can't get any worse, Google proves otherwise. A total shitshow

I miss Kitkat. My phone did last longer then and I could do more with it. What's the point of all those restrictions?

1

u/ballzak69 Automate developer Mar 14 '19

It's going down hill fast now.

1

u/ersatz_feign • Decade-long Tasker fan and still learning Mar 14 '19

Thanks! You may also wanna consider putting all of tge bold stuff at the very top so its visible from outside the thread and so pursuades people to click into the subs thread.

1

u/el_smurfo Mar 14 '19

Bummer...I'm already finding Macrodroid is spotty about performing macros on Android P, i.e. I have it read the time every 15 minutes while at the gym...I'd say it works 75% of the time.

1

u/ballzak69 Automate developer Mar 15 '19

Even the purposed solution require additional permission it seems:

https://developer.android.com/reference/android/Manifest.permission.html#USE_FULL_SCREEN_INTENT

1

u/false_precision LG V50, stock-ish 10, not yet rooted Mar 15 '19

1

u/Ramiferous Mar 18 '19

I can't Star the issue, it says access denied for me.....

1

u/jcgonzalez13 Mar 22 '19

Damn man I was just experiencing this and didn't understand what was going on. I was reading online for a possible explanation and came to this. I don't like that restriction I mean sure is ok if it helps in a way for security purposes and what not but I think it should be at the users hand to decide that...you know OPEN SOURCE thing ? That's broad

1

u/zorbat5 Mar 14 '19 edited Mar 14 '19

I don't think there will be much change we can feel. Mybe with a couple of simple fixes to your tasker profiles this will not make a difference.

Android Q places restrictions on when apps 
can start activities. This behavior change 
helps minimize interruptions for the user 
and keeps the 
user more in control of what's shown
on their screen. In particular, apps 
running on Android Q can start activities only when 
one or more of the following conditions 
are met:

The app has a visible window, such 
as an activity in the foreground.
A different app that's in the foreground 
sends a PendingIntent belonging 
to the app. 
Examples include a 
Custom Tabs provider 
sending a menu item pending intent. 
The system sends a PendingIntent that 
belongs to the app, such as tapping 
on a notification. Only pending intents where the 
app is expected to launch a UI 
are exempt. The system sends a broadcast, 
such as SECRET_CODE_ACTION, to 
the app. Only 
specific broadcasts where the app 
is expected 
the launch a UI are exempt.

https://developer.android.com/preview/privacy/background-activity-starts

As tasker has a foreground activity (the notification) there shouldn't change anything.

4

u/ballzak69 Automate developer Mar 14 '19

A notification is not a window.

1

u/false_precision LG V50, stock-ish 10, not yet rooted Mar 15 '19

Improved formatting:

Android Q places restrictions on when apps can start activities. This behavior change helps minimize interruptions for the user and keeps the user more in control of what's shown on their screen. In particular, apps running on Android Q can start activities only when one or more of the following conditions are met:

  1. The app has a visible window, such as an activity in the foreground.

  2. A different app that's in the foreground sends a PendingIntent belonging to the app. Examples include a Custom Tabs provider sending a [menu item](https://developer.android.com/reference/android/support/customtabs/CustomTabsIntent.Builder.html#addMenuItem(java.lang.String,%20android.app.PendingIntent)) pending intent.

  3. The system sends a PendingIntent that belongs to the app, such as tapping on a notification. Only pending intents where the app is expected to launch a UI are exempt.

  4. The system sends a broadcast, such as SECRET_CODE_ACTION, to the app. Only specific broadcasts where the app is expected the launch a UI are exempt.

0

u/[deleted] Mar 14 '19

[deleted]

2

u/joaomgcd šŸ‘‘ Tasker Owner / Developer Mar 14 '19

Ok, done