FORUMS
Remove All Ads from XDA

Scheduled contextual profiles doesn't seem to work (now with logcat)

6,011 posts
Thanks Meter: 2,271
 
By CZ Eddie, Senior Member on 19th July 2018, 02:07 AM
Post Reply Email Thread
I searched the forum titles for "contextual" and didn't get any hits.
Then I searched the Q&A thread and found three hits but nobody responding with fixes or saying it worked for them.

I've set up Scheduled Contextual Profiles (day vs night theme). I can restore each theme without issue. And the automatic scheduling *says* it's applied one theme or the other, but the theme remains unchanged from what it was.

Is this feature still being worked on or is it actually working for anyone?

Me: Oreo 8.1 on OnePlus 5T running AOSP Extended ROM with SElinux enforcing (I only just now thought to try unenforcing but it'll be hours before I know if that helped).

Here are the other three posts in the Q&A with the same question, which is why I'm posting in the main forum. To see if we can get some traction on whether the feature is currently broken or if maybe we're just doing something wrong because it works for everyone else?

Quote:
Originally Posted by thedr34m13

Scheduled contextual profiles aren't getting applied on my phone. I have a Moto g5 plus running NOS-Mod (with sysserv) 8.1. A notification pops up saying that the profile has been applied, but nothing changes. Manually changing profiles does work though. I tried with Andromeda, but it says debugging disabled, even though it isn't. Is there a possible fix?


Quote:
Originally Posted by KNGPN Q w Q

Hello everyone,

I just have a little question: is the automatic contextual profile switching actually working or do you manually need to do something to get it to work?
I have set it up to switch between Belo and Mono/Art during respectably day and night times and I noticed it actually tried switching between said themes, but didn't completely go through with it. What I mean with that, is that the theme of some elements did change, but not of all elements which made, for example, reading my notifications impossible. So again, is the automatic contextual profile switching completely working or did I simply have to wait a bit longer or are there some steps to be manually taken?


Quote:
Originally Posted by Dugatoembridge

I'm sorry if this has already been reported, but I searched on xda and other places but found nothing!
My problem is: automatic profile (day and night) does not work here! I get notification at the scheduled time saying that the profile will be applied as soon as the screen turns off, but this never happens. Deleted substratum data and re-created profiles, but problem persists.
Titan Xt1069 - EAX 4.4

The Following User Says Thank You to CZ Eddie For This Useful Post: [ View ] Gift CZ Eddie Ad-Free
 
 
19th July 2018, 04:26 PM |#2  
CZ Eddie's Avatar
OP Senior Member
Flag Austin, TX
Thanks Meter: 2,271
 
Donate to Me
More
I set up a profile to activate at 10:16AM and here are the logs of what happened (or didn't happen) for this activity.
My selinux was set to "permissive" at this time.

Code:
07-19 10:15:20.526  1319  3196 I ActivityManager: Start proc 12950:android.substratum.service/1000 for service android.substratum.service/.SubstratumHelperService

07-19 10:15:20.527 12612 12949 E SubstratumService: There was an exception when trying to apply profile

07-19 10:15:20.527 12612 12949 E SubstratumService: java.lang.NullPointerException: Attempt to invoke interface method 'void com.android.internal.substratum.ISubstratumHelperService.applyProfile(java.lang.String)' on a null object reference

07-19 10:15:20.527 12612 12949 E SubstratumService: 	at android.os.Parcel.readException(Parcel.java:2011)

07-19 10:15:20.527 12612 12949 E SubstratumService: 	at android.os.Parcel.readException(Parcel.java:1951)

07-19 10:15:20.527 12612 12949 E SubstratumService: 	at android.content.substratum.ISubstratumService$Stub$Proxy.applyProfile(ISubstratumService.java:493)

07-19 10:15:20.527 12612 12949 E SubstratumService: 	at projekt.substratum.common.platform.SubstratumService.applyProfile(SubstratumService.java:203)

07-19 10:15:20.527 12612 12949 E SubstratumService: 	at projekt.substratum.services.profiles.ScheduledProfileService$ApplyProfile.doInBackground(ScheduledProfileService.java:246)

07-19 10:15:20.527 12612 12949 E SubstratumService: 	at projekt.substratum.services.profiles.ScheduledProfileService$ApplyProfile.doInBackground(ScheduledProfileService.java:111)

07-19 10:15:20.527 12612 12949 E SubstratumService: 	at android.os.AsyncTask$2.call(AsyncTask.java:333)

07-19 10:15:20.527 12612 12949 E SubstratumService: 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)

07-19 10:15:20.527 12612 12949 E SubstratumService: 	at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245)

07-19 10:15:20.527 12612 12949 E SubstratumService: 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)

07-19 10:15:20.527 12612 12949 E SubstratumService: 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)

07-19 10:15:20.527 12612 12949 E SubstratumService: 	at java.lang.Thread.run(Thread.java:764)
Full logcat attached.
Attached Files
File Type: txt log_substratum.txt - [Click for QR Code] (32.6 KB, 4 views)
24th February 2019, 04:03 PM |#3  
CZ Eddie's Avatar
OP Senior Member
Flag Austin, TX
Thanks Meter: 2,271
 
Donate to Me
More
Does anyone know if this feature will ever come back to Substratum?
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes