Custom Action for Alert Slider Oneplus 2 - OnePlus 2 Q&A, Help & Troubleshooting

What if we set custom actions e.g. custom apps, toggle internet, toggle cpu governer, powersave modes, emergency actions etc. , any actions like in Tasker.
It should be done on this phone
i'm only user, not programmer.

I myself thought this very idea, the switch must trigger some sort of intent or alert function that maybe can be intercepted and changed to do something else.. I think this would be a neat custom rom feature that devs should look into.

Alert slider custom action
This would also easy for developers, im not software engineer but programmer can easily do this, i think

Related

[Q] Better vibrations on smartwatch

Hi,
Is there a way to make watch's vibrations on notification stronger or longer, except installing custom ROM? It can be mod, or something that i need to root my watch or unlock it's bootloader to use, but i just want to stay stock. I have used custom ROM on my lg g watch but it had lately a lot of dangerous crashes and at the end I realised that except better vibrations it doesnt have anything "new" so i guess i dont need it that much. I will appreciate every answer
If you are willing to root your phone and run Xposed, then yes you can.
The vibrations on the watch are set by the vibration attached to the actual notification on the phone. You can test this out if you like, using the trial version of Tasker (if you don't already have it). Just make a notification that has a custom vibration pattern. The watch will vibrate accordingly.
To modify other apps notifications, I use the paid version of GravityBox Xposed module. I can set the vibration pattern for each individual app. My texts do something akin to an SOS, and my emails go short - long - short. You can't increase the intensity of the vibration this way, but longer vibrations and patterns are far more notifiable for me.
Edit: I forgot to mention, Xposed does not yet support 5.0 Roms.
hawkjm73 said:
If you are willing to root your phone and run Xposed, then yes you can.
The vibrations on the watch are set by the vibration attached to the actual notification on the phone. You can test this out if you like, using the trial version of Tasker (if you don't already have it). Just make a notification that has a custom vibration pattern. The watch will vibrate accordingly.
To modify other apps notifications, I use the paid version of GravityBox Xposed module. I can set the vibration pattern for each individual app. My texts do something akin to an SOS, and my emails go short - long - short. You can't increase the intensity of the vibration this way, but longer vibrations and patterns are far more notifiable for me.
Edit: I forgot to mention, Xposed does not yet support 5.0 Roms.
Click to expand...
Click to collapse
But can i do it with tasker only then? I tried vibration pattern but im not sure what i have to write there... (empty line just comes up and i have to write something - i guess length of vibrations, so i tried "200,200,200,200,200" and it didnt work)
You could definitely make supplementary notifications with Tasker, but I don't think it can modify existing ones. I would basically have it monitor for any notification you are interested in, then post a second notification with your custom pattern. Then use a wait for as long as the vibration needs and cancel the second notification. You'll get the original with its short pulse, then your own longer one. The Tasker notification will show up briefly on the watch, but will go away once canceled.
To get Tasker to vibrate the watch, you need the Notify Vibrate command. The vibrate pattern is a series of pause and vibrate times. So 500,500,500,500 is wait a half second, vibrate a half second, wait a half, vibrate a half.
With last update Light Flow added support for vibrations in wear device, easy to configure and you can set different vibration paths without double notifications other apps I tried give. Highly recommended!
Lasiu said:
Hi,
Is there a way to make watch's vibrations on notification stronger or longer, except installing custom ROM? It can be mod, or something that i need to root my watch or unlock it's bootloader to use, but i just want to stay stock. I have used custom ROM on my lg g watch but it had lately a lot of dangerous crashes and at the end I realised that except better vibrations it doesnt have anything "new" so i guess i dont need it that much. I will appreciate every answer
Click to expand...
Click to collapse

App dedicated to enabling silent mode [Quest for a simple APK]

Dear XDA Community,
As you know thanks to touchwiz it is still possible to turn on silent mode on Android 6.0.
I have been searching the web for hours but could not find "a simple app that when launched turns on silent mode without the need to tap anything (like a widget)".
Can you tell me where to find such an app ? or create it for me ?
I would really appreciate it and I think it help other people facing the same issue.
You must be thinking why isn't he using a widget or an app with a button to tap or something like tasker for silent mode. Well that's because I don't like Tasker and use "Smart connect" instead but Smart connect has limited sound options (ring/vibrate/Do not disturb). However Smart connect allows you to launch an app automatically, so a workaround could be to launch this simple app automatically.
Why the following solutions won't work for me :
- Do not disturb mode
On samsung phones correct me if I'm but you can't set up more that one DND profile. The problem is I need silent mode when I'm at work where I can't accept any sound. On the other hand I use DND at night where I only allow calls (in case of emergency).
- Sound mode toggle widget
I want silent mode to turn on in a certain time period on weekdays. I don't want to have to press a widget every time. I don't even need a widget for that because I could tap on the quick setting in the notification menu.
- A tasker like app for sound modes
Would work but I don't like the idea to have several tasker like apps on my phone. I believe having multiple tasker-like apps triggers wakelock that would impact battery life and/or create wakelocks.

Alert Slider is a Letdown

Does anyone else feel like the alert slider is disappointing? I like the feature, but the settings for them are very restrictive. The silent and DND setting is different from what I assumed. They should have given us total freedom to customize it. Mine would be like:
Silent
Alarm sound optional
options to set volume silders
a timeout setting (to prevent phones getting lost forever when on silent)
DND
Alarm default on
Reminders/Events sounds optional
System sounds silent by default
Ring
This one is actually fine But they should allow us to set ringer all the way to vibate
Can anyone think of a workaround to customize the sliders?
Generally, I agree with you. A lot more customization would greatly benefit this feature, and I hope to see a way to change it on a rooted(/maybe future xposed, maybe?) I've gotten used to it, but I'd like to be able to set the phone to vibrate without sliding it to silent. For me I'd like it to be possible to change a profile, and have those settings come back when you switch to it. In fact, they could make the profiles have arbitrary names that can be set, and with all settings available for each. I'd want it like:
Silent:
Everything but alarms off.
Vibrate:
Like silent is now, but media not silent (yes I know you can change media settings)
Ring:
Like it is now.
It's the lack of customization that bothers me. I wouldn't call it a letdown, it's still useful, and I've gotten used to it, but it's not the way I'd ideally like it. Also, AFAIK, you can't control it like you can with no hardware using Tasker.
Coming from similar experience in the past with OP3 and OP3T I am very optimistic that our great developers will come up with all kind of solutions. Given the hot discussions everywhere its easy to forget that this phone is only available since a week (and in hands of most persons since much less)....
Just add a vibrate option to the DND mode! Then it would be ring, vibrate/priority, silent...customizable however is preferred.

Is there a way to set phone volume to 0 in Ring mode using Tasker? (Automated silent)

Does anyone know if there's any way around the silent mode thing using Tasker? I know it's linked to the slider but I want to automate it.
I have a profile in Tasker that is supposed to set the phone to silent mode when I have a meeting scheduled. It works fine, has always done, until I got the OnePlus.
What happens is that when my "In a meeting"-profile in Tasker triggers (and my phones hardware trigger is set to Ring), Tasker tries to set the volume to 0 but since the Ring mode prevents it the volume only goes down to 1 (out of 7 steps).
I'm on OOS and rooted with Magisk.
UPDATE:
So Elsydeon tipped me of an app called "Sound Profile +volume schedule" which actually managed to change the volume to 0 in my phone when I applied the apps "silent" profile!
One step closer!
I still have to make this happen in Tasker though...
I however am not that clever at Tasker (yet) that I can figure out what this app called on to make this happen.
But I'm hoping that some of you smart guys and girls here might know.
I do not think it is possible, but it would be useful.
Bye
I'd recommend an app called Sound Profile. The UI is rather amateurish, but the customization options for setting up ringing profiles is very deep, and you can schedule as well.
Have you tried "Automate it" - look in the play store for it. Seems to be very flexible.
This actually works!!! Somehow it hooks into the right command and makes the phone go to volume 0 while the switch is in the Ring position!
I need to find what it hooks into and add that to my Tasker automation.

[Question] Ability to customize the alert slider?

Is there a way to customize the alert slider on the 6T? I know that there was a Xposed module that allowed for it but nothing in Magisk or the likes. Wasn't sure if someone knew of a way to or if we could manually do it directly from the phone.
I'd like to change vibrate to DND as I use that more then vibrate.
You can try with Tasker, create event Custom settings; Global; three_Key_mode to detect slider position and task to set dnd.
three_Key_mode:
1 - silent
2 - vibration
3 - ring
uglavnom_bezopasni said:
You can try with Tasker, create event Custom settings; Global; three_Key_mode to detect slider position and task to set dnd.
three_Key_mode:
1 - silent
2 - vibration
3 - ring
Click to expand...
Click to collapse
Hmm....that is an option. I'll have to look at that tonight. Will keep people posted. Thank you.
Other options are welcome as well.
That works for adding additional alert slider behavior, but the built in OOS behavior applies too, and I can't find a way to disable it, even with root.
For example, I want the center position on the slider to be DND in priority only mode, with ringer on. Tasker does the former, but the OS still forces the ringer on vibrate in that switch position.
I know this is an old thread, but hope someone has the answer?
EDIT: I see hardware keys maps in /system/usr/keylayout/gpio-keys.kl, but not for the slider

Categories

Resources