Trigger Amolad AOD with Tasker - OnePlus 7 Pro Guides, News, & Discussion

A main disadvantage of the OP7P is the lack of AOD and Led. The ambient display is very short, so you never know if you missed call or message.
Some AOD Apps are heavy battery consumers, or disabling face recognition unlock, OPAODmod block chrome, Plus Beat is reasonable solution, though it is not AOD.
gigiion came up with the idea to trigger the Amolad AOD app to run only if notification was missed, using Macrodroid. Here is the way I implemented his idea, using Tasker:
1. Install Always on AMOLED from google play store. Do not enable the service. For OP7P choose One UI theme.
2. Screen condition
In Tasker, make these two profiles:
- Display off > Veriable set %Screen_Locked ~ 1
- Display Unlocked > Veriable set %Screen_Locked ~ 0
In such way the native ambient display will not interrupt the AOD whet it turn the screen on.
3. Main task
If %Screen_Locked ~ 1
Veriable set %Titel1 to %NTITLE
Veriable set %Text1 to %evtprm3
Wait 15 secondes
From Amolad plugin – start amolad display if %Screen_Locked ~ 1
End if
The variables %Title1 and %Text1, can be used to track the situation that the AOD start without any known trigger. Such phenomenon can happened if WhatsApp notify “Searching for messages”.
The 15 sec delay is for the native ambient display. The double condition of Screen_locked, disable AOD if you unlocked display in this period, of just answer a call.
4. Triggers
Make profiles of event/notification, missed call, state/power/power or whatever you like, and assign to the task you just made. Name those profiles – it is necessary for next stage.
5. Toggle profiles
Make “toggle aod profiles” task:
Profile Status missed_call set toggle
Profile Status aod set toggle
etc ……..
if % PENABLED ~ *,aod,* (“aod” is name of one of the trigger profiles)
setup quick setting (number: 1st, Name: toggle aod profiles, status: inactive)
else
setup quick setting (number: 1st, Name: toggle aod profiles, status: active)
end if
I do not understand way the active/inactive are replaced.
6. Assign quick setting button
In Tasker’s main screen upper right corner three dots: Preferences/ Action tab/ quick setting tab.
Then add it in the quick setting editor.
7. Automatic toggle triggers
Clone the task you made in section 5, and change “toggle” to “on” of “off”, then you can make any profile you like to toggle the triggers.

Seems like alot of work when you can just use this mod.
https://forum.xda-developers.com/on...ice-themes-apps--mods/oxygen-aod-mod-t4023587

hallo dare said:
Seems like alot of work when you can just use this mod.
https://forum.xda-developers.com/on...ice-themes-apps--mods/oxygen-aod-mod-t4023587
Click to expand...
Click to collapse
The main reason that I didn't use it, is the long remind interval (min 15 sec) and the short display time. You can miss notifications if you don't looking into the black screen all the time. Any case I found stable AOD to be better, otherwise i could use Plus beat.

Related

Tasker or similar apps

Hey everyone. Anyone here use Tasker or any similar app. If so so what are your favorite profiles or things to do with them?
tEcHsAvY said:
Hey everyone. Anyone here use Tasker or any similar app. If so so what are your favorite profiles or things to do with them?
Click to expand...
Click to collapse
Use search
I'm a long time Tasker user and cannot think using any device without it.
The main thing I use it for are:
- automatic change of audio volumes based on time and location;
- hourly chime;
- missed notifications reminder;
- automatic switch GPS ON/OFF when using maps;
... Other little things depending on specific ROM I'm using ...
Macro droid is pretty good, A tad easier to setup tasks
For me, Tasker knocked me down. I use Automateit Pro, a little bit more user friendly and does the job accurately.
tEcHsAvY said:
Hey everyone. Anyone here use Tasker or any similar app. If so so what are your favorite profiles or things to do with them?
Click to expand...
Click to collapse
I am using macro droid. Its really smooth and user friendly. Not as versatile as Tasker may be but it almost serves all the needs with more macros. It was my first purchase from google play.
Only use it to turn volume down when I arrive at the office.
Tasker and Secure Settings. I use it to:
1) Set ringtone to vibrate between 11pm to 6am
2) Trigger high accuracy GPS when I open waze.
3) Auto rotate only when in the camera, gallery, youtube and a few others.
4) Switch between edge and HSPA (to save battery) i.e. only swtich to hspa when youtube, web browser or app that needs a fast data connection is active.
5) Send emergency SMS to certain people when battery reaches to 10% (hardly ever happens but hey safe than sorry)
6) Switch to car mode (app) when connected to my bluetooth headset.
7) Open up emulator when game controller is connected.
8) When within range of my home town cell tower, switch on wifi, similarly when out of range of the tower, wait 2 mins then switch off wifi.
amd-dude said:
Tasker and Secure Settings. I use it to:
1) Set ringtone to vibrate between 11pm to 6am
2) Trigger high accuracy GPS when I open waze.
3) Auto rotate only when in the camera, gallery, youtube and a few others.
4) Switch between edge and HSPA (to save battery) i.e. only swtich to hspa when youtube, web browser or app that needs a fast data connection is active.
5) Send emergency SMS to certain people when battery reaches to 10% (hardly ever happens but hey safe than sorry)
6) Switch to car mode (app) when connected to my bluetooth headset.
7) Open up emulator when game controller is connected.
8) When within range of my home town cell tower, switch on wifi, similarly when out of range of the tower, wait 2 mins then switch off wifi.
Click to expand...
Click to collapse
Do any of these require root?
I can't recall but I think secure settings requires root, someone correct me if I'm wrong. Most of them don't. Secure settings trigger different gps modes.
Ok cool thank you
Llama - is similar, as some alright features
I personally went for tasker and added secure settings
After 3 failed unlocks, takes picture on front cam and logs location
when face down, set phone to silent
when near home or work turn wifi on
when at home and connected to wifi, turn lock off
when connected to bluetooth in car turn lock off
on boot set lock to on
similar to others... other additions:
> read SMS sender and text contents while connected to car bluetooth [developing] (anyone know the right audio channel to play notifications through?)
> shake vertically to lock device (too big to always reach power button)
and per someone's earlier question yes you need root for secure settings to do most of its worthwhile tasker actions. although my secure settings is not working for enabling/disabling pattern unlock in 5.0 [liquidsmooth v4.0 unofficial]
I mainly use it to control the lights at home. I haven't been able to think of any other use cases for me
c8503 said:
> shake vertically to lock device (too big to always reach power button)
Click to expand...
Click to collapse
want to share this? looks a bit nifty
Below are the Tasker Profiles that I use:
1. Turn Wifi On when I'm connected to a cell tower near home. Turn off when I exit.
2. Notify to take my ID card when disconnected from wifi (reminds me in the elevator)
3. Turn on silent mode when I'm connected to a cell tower near office.
4. Switch to 2G when screen is off.
5. Turn on location for Maps, Uber, etc. Turn off when not using.
6. Increase the display timeout when using Feedly, Facebook, Play Store, etc. Change it back to 15 secs when not using.
Hampa_D said:
want to share this? looks a bit nifty
Click to expand...
Click to collapse
Superquick:
New Profile "Shake it off" > Event > Shake Backwards & Forwards > Sensitivity = High, Duration = Medium > New Task "LockSystem" > If %SCREEN ~ on > System Lock
Note the "IF Screen ~ ON" otherwise while your phone is in your pocket it will keep locking which is not a problem untill you try to run with your phone playing music and you get the lock sound effect every step you take
The "Shake Backwards-Forwards" is not intuitive but the shake actions are sort of misnamed in tasker. This locks the phone if you shake it up and down vertically [insert masturbation gesture here].
The medium duration is also key so you get the right kind of threshold for not having the screen go off while you ride the bus but also not having to shake it for a while.
<3
Tasker, AutoVoice, Secure Settings
- Set Silent mode as soon as connected to WiFi at work
- Turn off mobile data when connected to WiFi
- Invisible unlocker to unlock phone from locksreen
- Change input method when i take out the pen on my Note 3
- Read my calendar for work events and set my alarm accordingly
Tasker, AutoVoice, Secure Settings
- Set Silent mode as soon as connected to WiFi at work
- Turn off mobile data when connected to WiFi
- Invisible unlocker to unlock phone from locksreen
- Change input method when i take out the pen on my Note 3
- Read my calendar for work events and set my alarm accordingly
Tasker with OnePlus One
Hello,
I am using Tasker with some of the following tasks/settings...
Sound and Timeout profiles for Home, Out, Work and Night situations.
Toggle between different screens in Lightning launcher for Home, Out, Work or Night situations.
They than look similar to the Smart Screen Launcher screens.
Capturing notifications and displaying them in situations when I want them to appear, including sound and/or vibration.
Retrieving Sunrise/Sunset times and weather information, displaying the info via Zooper Widget.
Setting different wallpapers according the time and location during the day.
Adding the current location to for instance Evernote (like the app Where Am I).
A working time registration including reporting worked hours.
-Tasker
-Lightning Launcher
-Zooper Widgets
-AutoNotification (plugin for tasker)
-AutoLocation (plugin for tasker)
-AutoLaunch (plugin for tasker)
-Email Me (plugin for tasker)
There is so much you can do with tasker
Regards, Rob

Best settings for Gravity Screen on Gear

I've been messing around with this app obsessively for a few days as a possible replacement for the Gear wake-up gesture. The app seems to be great for two things...
1.) Screen turns off immediately as you start to lower your arm instead of the watch having to wait a minimum of 5-7 seconds
2.) Keep Screen ON by Motion option to prevent a screen timeout for as long as you are looking at it.
I've realized however that the "Turn screen on by motion" option uses more energy and is NOT a good replacement for the normal wake-up gesture found in gear settings. The normal wake-up gesture seems to be better optimized for the watch. No matter how many times i've tried to set up Gravity Screen to do the same thing, the angles don't work right and the screen comes on a lot when it shouldn't.
So i've combined the two...using the wake-up gesture of the gear (keeping the "screen on by motion" unchecked in Gravity screen) and utilizing the Screen Off feature and "Keep Screen ON by motion" feature of Gravity Screen. This has worked the best for me.
Here are the settings i use for everthing...
In the Gear settings:
-Set screen timeout to 7 seconds or whatever you prefer (not important if you keep Gravity Screen running all the time)
-Wake-up gesture set to "Last screen viewed".
(I simply turn off Wake-up gesture and pause Gravity Screen before going to bed... Still looking for a way to toggle these actions as a widget without having to go into settings everytime. Possibly tasker could do it? If anybody knows a way please tell me!)
In the Gravity Screen settings from top to bottom:
Pocket Sensor = 90 degrees
Table Sensor = 90 degrees
Keep Screen ON by Motion = checked
Sensitivity set = 100
Booster = checked
Running During Call = checked (your preference)
Notification = checked
Low Priority (hide icon) = checked
Start at boot = checked
(Everything else leave unchecked)
So that's it. Manually turning on/off the screen is always the best battery saver...but if you want to have the automatic wake-up then using either the app or the gear settings by themselves isn't as good on battery as combining the two as I have described. Let me know what you guys think.
Thanks for sharing your findings.

[Guide] Skip to next music track on phone shake

Function/ Purpose:
Skip to next track when the phone is shaken (specially for Google's standard music app, some 3rd party music apps already have this feature built-in)
Requirements:
• Tasker
• Phone with Proximity sensor
Tasker How to:
1. Create a Profile, Select Event, Select Sensor, Select Shake
If a warning about setting preference pops up, press OK​2. Input the following in the options for shake:
Axis: Left-Right
Sensitivity: Very Low
Duration: Very Long​3. New Task>Give some task name
4. Task>If %MTRACK Set
5. Media> Media Control>Cmd Next
Both simulate media button and label should be unchecked​6. Task>End If
Go to Monitor tab in Tasker preferences and set Proximity Sensor as Yes
I mainly use this while driving/ commuting. One of the problems I had initially faced was this profile getting triggered every time I got a notification (email/ SMS/ ...) and my phone vibrated or if the road was bad and bumpy. I experimented with several combinations of Sensitivity and Duration in Step 2 above and these issues are eliminated now.

Pulse Notification Light

Hi guys,
Trying to get some control over my LED lights! Ideally what I'd like to do is switch the LED on and off using tasker but the tasker action that toggles "Settings" -> "Display" -> "Pulse notification light" seems to be broken (for some time). I've tried setting tasker up to run the command below (from here) but that throws an error in tasker (screenshot) so perhaps the location of that particular setting has changed since 2012.
Code:
echo 0 > /sys/devices/virtual/sec/led/led_pattern
Does anybody know the correct command that I could execute with tasker to toggle this setting?
I'm using a OnePlus 3T with OOS 4.1.1 (Adroid 7.1.1)
Cheers!
Noosentaal
I'm not familiar with the OnePlus, but I know on my Pixel going into the settings and changing the notification light option ends up changing the notification_light_pulse system setting between 0 and 1. I figure it would be possible to also change that setting on a rooted phone with Tasker shell commands, or something like AutoTools Secure Settings could also do it on an unrooted phone. The setting changes I've tried have usually worked on my phone, except for preferred_network_mode1, so if your phone also uses that setting I would expect it to work. The link below has some information about shell commands in Tasker, and at the top it describes how to list the system settings on your phone, so you can see if notification_light_pulse is used by your phone. Below the link are the Tasker shell commands to turn the setting off or on for my phone, and the use root option needs to be checked so the shell commands will work.
http://www.notenoughtech.com/tasker/tasker-run-shell-commands/
settings put system notification_light_pulse 0
settings put system notification_light_pulse 1
Thanks, this is perfect! I did a quick check to see if this will work on my phone and running:
settings get system notification_light_pulse
returns: 0
Which is correct as I've currently toggled the setting off.
Just following back up on this - I've experimented a bit with this but it doesn't seem to be properly toggling the setting. Here's what I've found:
- Manually toggling the "Pulse notification light" setting sets that variable in settings (checked by using "settings get system notification_light_pulse" in a terminal app - toggles between 0 and 1)
- Manually toggling the "Pulse notification light" setting has the desired behaviour on the phone: LEDs are not lit up when charging when off, they are when on - using this to test as its reliable and easy to replicate
- Running a shell command in tasker sucessfully sets either a 1 or 0 for notification_light_pulse (checked using terminal as above) however it does not move the toggle in the settings screen in the phone
- Using tasker to set notification_light_pulse does not have the desired behaviouro n the phone: LEDS are unaffected (they retain whatever setting was set by the switch in settings before tasker got involved)
Any ideas what's going wrong here?
I'm not sure. It might be specific to how your phone is setup. I tested my phone, and the previously noted shell commands do cause the settings screen to reflect the change on the Pixel, which is different than what you were seeing. Changing preferred_network_mode1 doesn't cause my phone to actually change the radio until the Cellular networks setting screen is opened or the phone is restarted, so I've seen one similar example, where using the shell command doesn't cause a change in how the phone functions. On the pixel many settings menu items can be altered with shell commands, so I'd guess it could be ROM related.
EDIT: It looks like in the following post someone was using shell commands on a previous OnePlus phone and rom. I suppose it's possible there might be a custom OnePlus setting that's being used, and that idea could be tested using the list commands from the notenoughtech site to check if any other option changes when the setting screen is altered. If listing the settings doesn't turn up another option being changed, then it's something that's out of my current depth with using Tasker to make Android setting changes.
https://forum.xda-developers.com/oneplus-3/how-to/guide-oneplus-3-custom-tasker-shell-t3571732
I've done a little more playing with this and it seems my testing method was actually at fault in the post above. Changing that setting does correctly set the LED flashing for notifications - it just doesn't affect the charging LEDs. This is actually ideal as I don't want charging LEDs ever!
It seems that in the Oneplus 3T at least this toggle changes more than one setting and the charging LED must be another setting that I haven't discovered yet.
Just to summarise for anyone else that might want this in the future:
If you want charging LEDs on: toggle "Pulse notification light" in display settings to on then use tasker to set the desired setting for notifications using the code above
If you want charging LED off: toggle "Pulse notification light" in display settings to off and use tasker to change the notification settings accordingly
Noosentaal said:
Changing [the] setting does correctly set the LED flashing for notifications - it just doesn't affect the charging LEDs.
It seems that in the Oneplus 3T at least this toggle changes more than one setting and the charging LED must be another setting that I haven't discovered yet.
Just to summarise for anyone else that might want this in the future:
If you want charging LEDs on: toggle "Pulse notification light" in display settings to on then use tasker to set the desired setting for notifications using the code above
If you want charging LED off: toggle "Pulse notification light" in display settings to off and use tasker to change the notification settings accordingly
Click to expand...
Click to collapse
Have some kudos! Many thanks for sharing this information.
Verified on OnePlus 3. Switch off Pulse Notification Light in standard settings and then the Tasker toggle can be used to switch on notifications to be controlled by Light Flow or Light Manager (or presumably Tasker itself). These then are not overridden by any inbuilt charge notifications.
The only downside is that the notification then only appear if the screen is off. I came at this wanting to dim the inbuilt charge notification with an always on night clock. But next best is that I can use a night clock with the bright charge LED completely off :good:
Excellent, glad I could help!
I've never understood charging LEDs - my phone is my alarm clock and I want it face up to snooze first thing in the morning and I definitely don't need an LED lighting up the entire room! I appreciate that others might find charging LEDs helpful, seems like this should be straightforward toggle in settings (possibly with a dimmer switch for your particular use case!)

Notification toggles come up sometimes, sometimes not

I created Turbo Notify under [ Tasks ]
I created an action named Notify for Turbo Notify
Notify:
Title: Turbo Modes
Text: Toggle CPU Speeds
Under Actions: I added - Plugin / Kernel Aduitor then Configured it to toggle a cpu profile called Maximum.
I added 2 more. basically 3 toggles for Kernel Aduitors profiles.
So then I setup a Profile to work off of Device Boot then pointed it to Turbo Notify
So my question is this. Turbo Modes always comes up when the device boots. But the buttons below it do not always come up. Sometimes they may even go away during device use.
I am new to tasker and am a nub. Just wondering if I am missing something obvious. When I go into tasker then go into Tasks / Turbo Notify There is the action Notify and tap on the Play icon at the bottom left, the buttons show up on the notification. ( lil green light/icon shows up)
Sorry if it is a nub question. But how can I make it active all the time, and start on boot? The notification is always there, just not the buttons.
- Thnx in advance
I created a task to mimic what your doing. The buttons disappeared on me when unlocking the screen after my battery got (very) low. I've not had a lot of time to play with this, but I did notice when the buttons were missing, the notification did not look like it was expanded. They came back after a few notification drawer open/close cycles.
Still, I don't think you're doing anything wrong. Some thoughts;
Do you have icons assigned to the notification and each button? If not, try adding them.
Is "run in foreground" checked in the preferences -> monitor settings?
Yes I have icons assigned. Built-In ones. And yes to "run in foreground"
I have the priorities set to max, I don't know if that makes a difference.
Like I said I am new to tasker, I'm wondering if i overlooked something simple. Dunno.

Categories

Resources