[GUIDE][Difficulty: Intermediate] Hold/Swipe-up Home Button to Enable One-Handed Mode - Tasker Tips & Tricks

A few months back, I wrote about a hacky way to enable one-handed mode using a shell script, taken from this reddit thread. With this task (provided you have root access), you can enable one-handed mode just by holding down the home button or swiping-up from it.
Prerequisites
Root access
Instructions
(For Android 6.0+) Go to Settings --> Apps. Press the settings cog up top, then go to Default Apps. Enter "Assist & Voice Input" and for the "Assist App" choose Tasker. Be warned that doing this will stop the "OK Google" on every screen (and off) from working, but if you're okay with that then go ahead and change it!
(For Android < 6.0) Clear the default app that is set for swiping up from the home button. You will enable Tasker as your default app after you're done following the rest of the steps below.
Create a new profile and name it whatever you want, then choose the Event context. Go to UI, then choose Assistance Request.
Back out, and create a new task named 'Overscan' or whatever else you want.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Now, we'll make the actions needed for the task itself.
Task --> If. Set the condition to %Overscan eq 1.
Code --> Run Shell. For the Command, type in wm overscan reset. Check "Use Root" and then back out.
Variables --> Variable Set. Under Name, choose %Overscan, and set it to 0.
Task --> Else.
Code --> Run Shell. For the command, type in wm overscan LEFT,TOP,RIGHT,BOTTOM where each of the directions are the pixel counts that the screen will shift in. On my Nexus 6p, I've set it to wm overscan 0,845,0,0. See my article for examples.
Variables --> Variable Set. For Name choose %Overscan and set it to 1.
Task --> End If.
That's it! Now when you swipe-up/long press the home button, you'll launch the Overscan tasker task which will shift your screen depending on whether or not it has already been shifted. The %Overscan variable is a global variable that is set to 1 if the screen is shifted and 0 if not.
Of course, this isn't the only thing you can do with long-pressing the home button. You can also do and set the Assistance Request to open a web-search overlay on any app.

Un 6.0.1 i don't have the option to change the assist app to tasker

mi_guel69 said:
Un 6.0.1 i don't have the option to change the assist app to tasker
Click to expand...
Click to collapse
+1

mi_guel69 said:
Un 6.0.1 i don't have the option to change the assist app to tasker
Click to expand...
Click to collapse
Umer520 said:
+1
Click to expand...
Click to collapse
Tasker's Accessibility Service should be enabled for it to show up, try that.

Tasker's Accessibility Service should be enabled for it to show up, try that.
Click to expand...
Click to collapse
I have this enabled and tasker still doesnt show up.

Set to shake event instead
When I just use play button in Tasker it works fine, but if I shake it sets only top overscan ignoring rest parameters
Oneplus2, CM13

mrorange4287 said:
I have this enabled and tasker still doesnt show up.
Click to expand...
Click to collapse
I had this problem as well. Create the profile with the context event "Assistance Request" and it will be available for you use set in the Assist menu

@MishaalRahman
Thanks for this great guide! I first set it up as suggested and then switched it to a shake event, quite handy. I might end up using this with a swipe gesture from Nova launcher.
Do you have any idea how we could realize a shrinking screen just like Samsungs one handed mode? Example here -> http://www.androidcentral.com/sites.../2015/09/note-5-reduce-screen-size-screen.jpg
I did some research and I think it might work using the commands "wm size" and/or "wm density", but I have very little knowledge about how to use them properly. Maybe you can help me out on this...?

https://imgur.com/a/e3e3y
When I use this in the home screen and all drawer I get what's in the pictures. Any thing I need to change to fix this? I am using Nova launcher on a rooted nexus 6.

Hi, nice works but how to set correct overscan? I'm using OP2

digitalpig82 said:
@MishaalRahman
Thanks for this great guide! I first set it up as suggested and then switched it to a shake event, quite handy. I might end up using this with a swipe gesture from Nova launcher.
Do you have any idea how we could realize a shrinking screen just like Samsungs one handed mode? Example here -> http://www.androidcentral.com/sites/androidcentral.com/files/styles/xlarge/public/article_images/2015/09/note-5-reduce-screen-size-screen.jpg
I did some research and I think it might work using the commands "wm size" and/or "wm density", but I have very little knowledge about how to use them properly. Maybe you can help me out on this...?
Click to expand...
Click to collapse
To mimic Samsung's implementation, you will have to change the LEFT and RIGHT parameters. However be noted that it will really mess with a lot of apps and they won't display properly.
mrorange4287 said:
https://imgur.com/a/e3e3y
When I use this in the home screen and all drawer I get what's in the pictures. Any thing I need to change to fix this? I am using Nova launcher on a rooted nexus 6.
Click to expand...
Click to collapse
Some apps just don't turn out that well, unfortunately. Like I said this is a very hacky method.
b.age said:
Hi, nice works but how to set correct overscan? I'm using OP2
Click to expand...
Click to collapse
Experiment a bit. Make sure you set a fail safe to revert it back to normal, say if you shake your phone.

Thanks for this trick! But i don't seem to be getting tasker as an option in the voice assist list of apps. I do get secure settings though. Anything that i might be missing here? Also, i've granted accessibility permissions for tasker. On 6.0.1 - Nexus 5

AshKaiser said:
Thanks for this trick! But i don't seem to be getting tasker as an option in the voice assist list of apps. I do get secure settings though. Anything that i might be missing here? Also, i've granted accessibility permissions for tasker. On 6.0.1 - Nexus 5
Click to expand...
Click to collapse
Hey, make sure Tasker is enabled as an assist device in settings

MishaalRahman said:
Hey, make sure Tasker is enabled as an assist device in settings
Click to expand...
Click to collapse
Yeah, trying to do that exactly, am not getting taker as an assist device option.

AshKaiser said:
Yeah, trying to do that exactly, am not getting taker as an assist device option.
Click to expand...
Click to collapse
I think you have to uncheck "Beginner Mode" in settings first

MishaalRahman said:
I think you have to uncheck "Beginner Mode" in settings first
Click to expand...
Click to collapse
Thanks! It worked! I use pie controls from gravity box, so had to point to this task directly. A little glitchy, but still somewhat usable![emoji106]
Any way we can change the background color after the over scan? Just a thought!
Sent from my Nexus 5 using XDA-Developers mobile app

I have checked the 'root'box. Accessibility on for Tasker. But as you can see from the pic above, it's not running. See the red dot? I'm on 6.0.1 and use Google launcher. Long press on home doesn't work either. I get the su toast message saying Tasker has been granted su permissions but that's it. Any help would be appreciated. @MishaalRahman
Sent from my XT1562 using XDA-Developers mobile app

Hello!
Help needed, I am on Galaxy S6 and I am looking for a way to start / stop the task by long pressing the home button.
As for now I didn't figured it out.
Any help please?

How can I get the correct overscan

Related

[GUIDE] Setup Tasker Buttons in Glance

So I recently got a Pebble and discovered there were several ways that one could start Tasker actions using the Pebble. I have become a big fan of Glance and decided since it already supports Tasker I would use it instead of relying on another app on my watch. The instructions on how to set things up on the Glance website aren't the easiest to understand so hopefully this guide will help anyone out who is having difficulty.
-Difficulty: Easy
-Requirements: Pebble with Glance, Tasker on your phone, and at least a basic understanding of Tasker
The first thing we're gonna do is get our buttons put into tasker, these are the buttons on the Pebble that you will be using to launch actions from within Glance. I named my profile Glance Buttons but you can name yours whatever you'd like.
-From within Tasker create a new profile. Select Event/System/Intent Received. In the Action field type:
Code:
uk.co.finebyte.pebbleglance.TASKERINIT
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
This profile is done, now let's make our task for this profile. I named mine Glance Tasker Buttons but again name your task whatever you'd like.
-Click the + to add an action to the task. Select Misc/Send Intent. In the Action field type:
Code:
uk.co.finebyte.pebbleglance.TASKERSEND
Don't exit yet.
For the next part you can substitute everything after msg: with whatever you would like your button labels to be, I will use mine as an example. There are 3 buttons and the first label will be for the top button, second middle and third bottom. Each button will be separated by :
-In the Extra field type:
Code:
msg:ACV On:ACV Off:Voice Recorder
The hardest part is over, now let's make the buttons actually perform a task.
Create another profile, I call mine Glance Assignments.
-Select Event/System/Intent Received. In the Action field type:
Code:
uk.co.finebyte.pebbleglance.TASKERKEY
Now for the task. Use if for the first action, just click + and type if and you will see it. Pictures are easier than words here so setup your if action as shown here in the picture:
So now you need to decide what happens "if" you press the top button (TASKERTOP) It's up to you pick anything you want, just add another action after the "if" action to assign it to that button.
You assign each button this way, one last picture to show you how it looks with each button assigned to an action.
If you found this helpful please hit the thanks button.:good:
Mine
You had a syntax error:
"uk.co.finebyte.pebblelgance.TASKERKEY" <- glance NOT lgance
Needs to be
"uk.co.finebyte.pebbleglance.TASKERKEY"
Took me awhile to catch that one. After that, everything works great. Thanks for the post.
slayorktc said:
You had a syntax error:
"uk.co.finebyte.pebblelgance.TASKERKEY" <- glance NOT lgance
Needs to be
"uk.co.finebyte.pebbleglance.TASKERKEY"
Took me awhile to catch that one. After that, everything works great. Thanks for the post.
Click to expand...
Click to collapse
Fixed. Thanks for catching that. :good:
This was really helpful, thank you
CYGNUZY said:
This was really helpful, thank you
Click to expand...
Click to collapse
Is there anyway to have Glance conduct hourly vibrates? I find myself wanting this feature a lot but cannot hide from the fact that Glance is just all around awesome.
I have messed around with Tasker very little and cannot find out how to program an hourly task. I tried creating a task that
1. Notify Vibrate - then Wait for 1 hour. It vibrates the first time on the phone then also the watch when I start it but there's nothing time specific. If I start the task at 8:10 then it'll vibrate at that time.
Hope someone can help.
Try making a profile that triggers every hour. Then have a task that broadcasts the intent " uk.co.finebyte.pebbleglance.TASKERVIBE"
The intent will make the pebble Vibrate.
Sent from my XT1060 using Tapatalk
Quentin.Sheley said:
Is there anyway to have Glance conduct hourly vibrates? I find myself wanting this feature a lot but cannot hide from the fact that Glance is just all around awesome.
I have messed around with Tasker very little and cannot find out how to program an hourly task. I tried creating a task that
1. Notify Vibrate - then Wait for 1 hour. It vibrates the first time on the phone then also the watch when I start it but there's nothing time specific. If I start the task at 8:10 then it'll vibrate at that time.
Hope someone can help.
Click to expand...
Click to collapse
Great job. I figured this out yesterday but man it racked my brain. Many thanks and this makes glance a NO brainer for my default app.
Sent from my SCH-I545 using xda app-developers app
what are some of the actions ppl are using glance+ tasker to perform? I've never used tasker but am willing to learn. I know it's extremely powerful but have never thought of anything I needed to run automatically. I'm sure some ppl have ridiculous profiles and actions setup. I read one guy has it configured to disable his lock screen when his pebble is connected and in range and enables a pass code when not.
Sent from my xposed VZW G2, using unlimited data
I use Pebble Tasker's ANDROID app, to populate the Tasker actions in Glance, with it's optional feature. Works great, much easier to set up and maintain, then setting it up via Glance's intents. The Pebble Tasker Android app, basically creates the intents for you.
I don't actually use the Pebble Tasker WATCH app at all. The author of Pebble Tasker, said he's adding Long Press Button support to his Glance Support soon! (awesome!) that'll increase Glance's actions to beyond 3!
As far as the Actions, I have my three Tasker buttons in Glance setup to do this:
1.) Flashlight (this triggers TeslaLED which has a tasker intent to toggle flashight / camera flash. One press to turn on, one to turn off.)
2.) Google Now (this opens the Voice Search application, so that I can interact with Google Now and do voice commands etc. I'm extra l33t, so I'm using the SecureSettings tasker plugin, to also first, turn the display on and wake the phone, and then disable keyguard (because otherwise, this won't work with the phonescreen off unfortunatly). It then waits 15 seconds, and re-enabled keyguard again).
3.) Voice Record (This starts recording via a tasker plugin for the app Easy Voice Recorder Pro. So when pressed, it starts a voice recording. Great for stealth recording, getting pulled over, etc. The author of Easy Voice Recorder is going to add a new Tasker option to "toggle recording" so you can start/stop with one button press. If Pebble Tasker adds long press support before that, then i'll just do Long press for Stop recording in the mean time).
somnambulator said:
what are some of the actions ppl are using glance+ tasker to perform? I've never used tasker but am willing to learn. I know it's extremely powerful but have never thought of anything I needed to run automatically. I'm sure some ppl have ridiculous profiles and actions setup. I read one guy has it configured to disable his lock screen when his pebble is connected and in range and enables a pass code when not.
Sent from my xposed VZW G2, using unlimited data
Click to expand...
Click to collapse
I use an app called Pebble Locker to disable the lockscreen when my watch is connected (in range). When it's disconnected, my phone then requires a PIN to unlock. I did have this set up in Tasker at one point, but Pebble Locker is much easier.
Sent from my SGH-M919 using XDA Premium 4 mobile app
Quentin.Sheley said:
Is there anyway to have Glance conduct hourly vibrates?
Click to expand...
Click to collapse
This is now a feature IN Glance, doesn't use Tasker at all.
Protonus said:
This is now a feature IN Glance, doesn't use Tasker at all.
Click to expand...
Click to collapse
Sent from my SCH-I545 using XDA Free mobile app
Where?
Sent from my SCH-I545 using XDA Free mobile app
Quentin.Sheley said:
Where?
Click to expand...
Click to collapse
In the Glance Android app: Customise Watch -> Vibrate on the hour
NOTE - it's possible this is only in the beta version right now, I'm on v0.10b1

[HOW-TO] Enable Multiuser on Nexus 5 (Root)

My 32GB Nexus 5 is less of a phone and more of a small tablet. But multiuser is not enabled!
You might ask, why do I want multiuser? Well... perhaps you give your phone to kids to play with on long trips. Or perhaps you want a "test" set of settings. Or you want to separate work and personal. Or maybe you just like to customize.
You do need the following:
1) Root
2) A way to enable the lock screen to rotate (I suggest Gravity Box: http://forum.xda-developers.com/showthread.php?t=2316070)
3) A way to edit your build.prop. (Do it old school or an app such as https://play.google.com/store/apps/details?id=com.jrummy.apps.build.prop.editor)
4) A current backup!
It is easy enough to do if you can edit your build.prop. This requires root, and YOU REALLY MUST BACKUP before you mess with build.prop. Seriously. Back up. It just takes a few minutes.
You can edit build.prop by pulling it to a PC and pushing it back or you can use a build.prop editor from the market (I used the one built into Android System Tuner Pro (https://play.google.com/store/apps/details?id=ccc71.pmw.pro&hl=en) because I was feeling lazy). If you are doing it by hand the build.prop is in /system/ The line you need is:
Code:
fw.max_users=4
You can set 4 to however many users you want to be able to support.
Reboot.
At this point, it seems like nothing has happened. You need to go to Settings and you'll find a new entry:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
If you click Users you should be able to figure it out from there:
Once you have set up a new user, you can press your user name in the settings to get to the lock screen. In portrait mode, it will look normal. But if you rotate to landscape mode you will see an icon for each user you've defined. If you set a different lock type/code for each (a PIN or a swipe code) you will have "some" security between users.
I did this on the 4.2.2 OTA that was slightly repackaged here: http://forum.xda-developers.com/showthread.php?t=2557523
You'd imagine it would work on most other ROMs that don't already support it, but BACK UP FIRST just in case!
sweet
Thanks for this find! So what's the default on fw.max_users? 1?
Thinking I might set this up so that when my son keeps asking "can I play on your phone" he gets his own setup. Interesting.
The default is the line is not there. This apparently sets it to a single user.
Sent from my Nexus 7 using Tapatalk
wd5gnr said:
The default is the line is not there. This apparently sets it to a single user.
Sent from my Nexus 7 using Tapatalk
Click to expand...
Click to collapse
So the line is not there? So we just click on edit and add this line?
Sent from my Nexus 5 using Tapatalk
---------- Post added at 04:10 AM ---------- Previous post was at 03:59 AM ----------
Juansegovia20 said:
So the line is not there? So we just click on edit and add this line?
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Edit: i went and add the line to build prop and it worked
Sent from my Nexus 5 using Tapatalk
just added the line to the build.prop and its working
Edit: any special setting i need to add to make it rotate on lockscreen?
Edit2: nvm just found out that i had an option to enable user selection on power screen
How do you switch users?
Sent from my SGH-I897 using Tapatalk
Oh yeah. I use xposed and gravity box to enable rotating lock screen. Forgot about that. To switch users you need the landscape lockscreen. My bad! Still, xposed and gravity box are a great add on too.
Sent from my Nexus 7 using Tapatalk
Good find. There's a couple other ways too like the app SwitchMe or my favorite: I just dual boot. The phone boots so fast that it's less than a minute to boot to the other side. That way my wife can set up the phone to be less confusing since my phone is mostly gesture based and not for the novice.
wd5gnr said:
Oh yeah. I use xposed and gravity box to enable rotating lock screen. Forgot about that. To switch users you need the landscape lockscreen. My bad! Still, xposed and gravity box are a great add on too.
Sent from my Nexus 7 using Tapatalk
Click to expand...
Click to collapse
Thanks
Sent from my Nexus 5 using Tapatalk
Is there any solution yet for (com.android.phone force closed) in the secondary user?
thanks
Maybe someone could help me. I'm on a routed nexus 5. The phone is still stock. Yet when I create a restricted profile and log into it, I only get a black screen. None of the apps I've enabled show up.
Sent from my Nexus 5 using xda app-developers app
rhemy1 said:
Maybe someone could help me. I'm on a routed nexus 5. The phone is still stock. Yet when I create a restricted profile and log into it, I only get a black screen. None of the apps I've enabled show up.
Sent from my Nexus 5 using xda app-developers app
Click to expand...
Click to collapse
I've run into the black screen problem a few times on different ROMs. I'm not sure what causes it, and no matter what I tried I couldn't get any wallpaper to show up.
Other ROMs I've used don't have any problems with wallpapers...again not sure what the difference is between those that work and those that don't.
Instead of modding the build prop to enable multi-users, I use Xposed Framework and Modaco Toolkit. Once Xposed is installed and the Modaco Toolkit module is enabled, selecting the "Show users on power menu" option in the "Google Nexus (all)" category enables the User Switcher in the power menu, and adds the "Users" option in the system menu. Reboot after making the selections to activate the settings.
I'm currently using CyanFox ROM found in the Nexus 5 Android Development forum and multi-user works perfect. Long-pressing the power button brings up the power menu along with the different users on the phone (after they've been set up).
CyanFox is a great ROM by the way...I highly recommend checking it out
Another good ROM that allows wallpapers on all users is AICP, also found in Android Development.
Xposed Framework: http://repo.xposed.info/module/de.robv.android.xposed.installer
Modaco Toolkit: http://www.modaco.com/topic/361634-xmod-modaco-toolkit-for-xposed-framework
Not sure if this helps you at all, but other than finding a ROM that has wallpapers for all users, I'm not sure how to fix the stock one.
It's looks awesome!!
Looks cool, maybe I'll try it out soon
Sent from my Nexus 5 using Tapatalk
Does someone know a way without Xposed (i love ART and wish to keep it)?
I seen a build.prop modification metod, but before doing some heavy "manual" modification i wanna check around for some "ready to flash" zip...
Sent from my Ne><us 5
ash1684 said:
Does someone know a way without Xposed (i love ART and wish to keep it)?
I seen a build.prop modification metod, but before doing some heavy "manual" modification i wanna check around for some "ready to flash" zip...
Sent from my Ne><us 5
Click to expand...
Click to collapse
Well, it isn't that heavy -- see the first post. Not flashable, but not hard at all.
wd5gnr said:
Well, it isn't that heavy -- see the first post. Not flashable, but not hard at all.
Click to expand...
Click to collapse
For Gravity box you need Xposed and so no ART...
ash1684 said:
For Gravity box you need Xposed and so no ART...
Click to expand...
Click to collapse
Yes, but Gravity box was only a suggestion for getting lock screen rotation. There are plenty of things out there that will do that and not all need Xposed. For example: https://play.google.com/store/apps/details?id=com.mah.screenrotationlock would probably work.
wd5gnr said:
Yes, but Gravity box was only a suggestion for getting lock screen rotation. There are plenty of things out there that will do that and not all need Xposed. For example: https://play.google.com/store/apps/details?id=com.mah.screenrotationlock would probably work.
Click to expand...
Click to collapse
great Thank you a lot !
YTayyar said:
Is there any solution yet for (com.android.phone force closed) in the secondary user?
thanks
Click to expand...
Click to collapse
Yes, when setting up the new user, don't start with "restricted". Do a full setup first.

[Android / HTC One (M8)] Dot View Mods

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Dot View Mods is a collection of modifications for the HTC One (M8)'s Dot View cover.
This module requires an unlock key for most features: https://play.google.com/store/apps/details?id=com.mohammadag.dotviewmodsforhtcmateunlockkey
Features include:
Control your music playback and see what's playing right from the Dot View cover.
Add gestures to the case and customise them.
See notifications at a glance, with support for all Android notifications. (enable the listener in Settings -> Security -> Notifications access)
* See the full notification when it first comes in: your notifications scroll across the screen.
Quick dial contacts right from the cover, with support for up to 9 shortcuts spread across 3 pages.
Don't have a contact and still want to dial them quickly? Open up a full dialer right from the cover.
And if you're bored:
Play a quick game of Snake, retro-style!
Compatibility:
This module was coded with the stock DotMatrix application set to 480DPI, the developer cannot guarantee it'll work fine with other DPIs.
If you have other modifications installed, support cannot be guaranteed.
Usage:
Dialer:
Swipe up to call the number, swipe down to close the dialer. If no numbers are input, a swipe up redials the last person called.
Swipe from right to left to delete a number, tap and hold the numbers at the top to delete all.
A future update may add speed dial from the stock dialer.​Snake:
Tap the HTC logo on your cover to pause the game, tap it again to save progress and quit the game.​Shortcuts:
Swipe left and right to change between shortcut pages.​
Great collection of m mods for the dot view. I bought the unlock key shortly after I installed it, great work.
Will you be posting future work here @MohammadAG?
Sent from my HTC One_M8 using Tapatalk
Toyyo said:
Great collection of m mods for the dot view. I bought the unlock key shortly after I installed it, great work.
Will you be posting future work here @MohammadAG?
Sent from my HTC One_M8 using Tapatalk
Click to expand...
Click to collapse
Yep, I realised email was bad for this kind of stuff since a lot of it is repeated.
I'm done with exams, so there should be more updates now. I've already added a torch feature.
MohammadAG said:
Yep, I realised email was bad for this kind of stuff since a lot of it is repeated.
I'm done with exams, so there should be more updates now. I've already added a torch feature.
Click to expand...
Click to collapse
Awesome, looking forward to it!
I have a couple of suggestions:
- Is it possible to make it so that none of the apps are turned on by default for notifications? So that people have to add the ones they want rather than untick the rest that aren't really useful?
- Is it possible to disable gesture controls completely? so no menu or music control etc?
This module will be perfect for me if it is as close to stock as possible, with the addition of custom notifications of course
Anyway, keep up the awesome work :good:
Believe it! Play SNAKE at Dot View. also play song.
I'm having trouble with it actually wo4king for long periods it will stop displaying notifications after like the first notifications (so after a message it will no longer work) also the dialer will work when it wants too I've had like 3 instance now were the phone will stay stuck on the dot view look even if I open the flap... I've Uninstalled it and reinstalled same issue
Any suggestions???
New version is out:
Major features:
Custom gradient support, pick the top and bottom colors from the settings app. Non scrolling text now uses this gradient.
Torch feature, either using gestures or menu items
For everything else, see the change log on Xposed.
Reboot immediately after installation.
asimoalex said:
I'm having trouble with it actually wo4king for long periods it will stop displaying notifications after like the first notifications (so after a message it will no longer work) also the dialer will work when it wants too I've had like 3 instance now were the phone will stay stuck on the dot view look even if I open the flap... I've Uninstalled it and reinstalled same issue
Any suggestions???
Click to expand...
Click to collapse
If it sticks on the screen, that's actually a crash, I'd need a logcat to debug that, but you need to use adb to get that.
The new version, however, has some bug fixes that will should reduce (or prevent) crashes. Try seeing if it still happens there.
problem
MohammadAG said:
If it sticks on the screen, that's actually a crash, I'd need a logcat to debug that, but you need to use adb to get that.
The new version, however, has some bug fixes that will should reduce (or prevent) crashes. Try seeing if it still happens there.
Click to expand...
Click to collapse
i have a problem with the new version instead of the weather icon i get a big yellow square displayed
MohammadAG said:
If it sticks on the screen, that's actually a crash, I'd need a logcat to debug that, but you need to use adb to get that.
The new version, however, has some bug fixes that will should reduce (or prevent) crashes. Try seeing if it still happens there.
Click to expand...
Click to collapse
I belive I got a log cat never had to make one so yea... Do you want it via personal message or??
I just downloaded the module, tried and purchased the unlock key in less than a minute. Also I wrote a positive comment at Play Store. Great idea @MohammadAG! I hope to see more functions soon!
Best regards.
asimoalex said:
I belive I got a log cat never had to make one so yea... Do you want it via personal message or??
Click to expand...
Click to collapse
Here is fine, I only need the lines starting with AndroidRuntime
Downloaded and immediately paid for the unlock key. Exactly what I was looking for, love your work.
How does one actually trigger the snaka game? Taping on the HTC logo isn't doing anything for me.
majorplayer88 said:
Downloaded and immediately paid for the unlock key. Exactly what I was looking for, love your work.
How does one actually trigger the snaka game? Taping on the HTC logo isn't doing anything for me.
Click to expand...
Click to collapse
Thanks!
You'll need to add it to the main menu in settings, same goes for the dialer.
Tapping the HTC logo exits the game.
MohammadAG said:
Thanks!
You'll need to add it to the main menu in settings, same goes for the dialer.
Tapping the HTC logo exits the game.
Click to expand...
Click to collapse
Thanx for the quick response.. Working perfectly so far!
Awesome update! Shukran @MohammadAG?
For anyone having trouble with the app recognizing the license key after the update, uninstall the license and then reinstall it... It should work after that.
Loving the new features, keep up the good work
Sent from my HTC One_M8 using Tapatalk
I like this mod but they is still some stability issue.
It happen my phone can't unlock and stuck during using dot view play song.
Force restart is the only way.
I believe this module will became better and better.
Andrewtst said:
I like this mod but they is still some stability issue.
It happen my phone can't unlock and stuck during using dot view play song.
Force restart is the only way.
I believe this module will became better and better.
Click to expand...
Click to collapse
I'm going to need a logcat filtered for AndroidRuntime. The reason the screen is stuck is because behind it is a dialog that says DotMatrix has stopped working and you'd need to click okay (which you can't).
But still, a crash is a crash and it needs to be fixed, so please, post a logcat
MohammadAG said:
I'm going to need a logcat filtered for AndroidRuntime. The reason the screen is stuck is because behind it is a dialog that says DotMatrix has stopped working and you'd need to click okay (which you can't).
But still, a crash is a crash and it needs to be fixed, so please, post a logcat
Click to expand...
Click to collapse
In future if happen again, I will post the logcat.
Could You please?
Could you please add ℃/℉ option?

[GUIDE][Difficulty: Beginner] Enable Speakerphone when Phone is Placed on Table

If you're busy with something and you get a phone call, it might frustrate you having to put your phone down and manually enabling speakerphone in order to actually talk with the person on the other end. However with Tasker, you can easily enable Speakerphone when you're in a call by placing your phone upright on a flat surface. It works by reading your accelerometer to grab the current orientation of the device. Let's set it up.
Instructions
Create a new Profile and name it "Speakerphone."
Create a new State context, go to Phone --> Call. Set it to "Any."
Create a new task, but there's no need to name it anything because it will only need a single action.
Within the Entry task, go to Audio --> Speakerphone and set it to On.
Exit the task editor, and then long-press on the Call Any,* context in order to add another Context.
Add another State context, and go to Sensor --> Orientation. Set "Is" to Face Up.
Exit out, and now long-press on the Entry task. Tasker will ask you to add an Exit Task. Create one.
Once inside the task editor again, go to Audio --> Speakerphone again. This time set Speakerphone to Off.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
That's it! Now, this profile will trigger when your phone is both a) within a phone call and b) face-up on a flat surface (the orientation is detected as face-up). On satisfying these conditions, Tasker will enable speakerphone, and when it fails to meet the condition (ie. when you exit the call or pick the phone up) speakerphone will turn off.
maybe little offtopic....but the same feature is available on my oneplus one, slimsaber-rom. in the phone-app under SETTINGS >> CALL u can find the option AUTOMATIC PROXIMITY SENSOR. set it ON and u have the same feature
Not working.. Any setting do I need to change for the accelerometer to recognize? I have done exactly like above..
I click + to add profile and it asks me for a "First Context"
Edit:
1. Create a new Profile, select State context and name it "Speakerphone."
---------- Post added at 11:15 AM ---------- Previous post was at 10:54 AM ----------
Trying to create the above and starting realise why I used Locale for so longer.
I must add a task and give it name?
how will this react to having headphones plugged in? at work, my phone is usually in a position that would trigger this but i plug in headphones to talk and listen. i wouldnt want speakerphone to override the headphones at work. at home though this would be fine since i dont use the headphones there.
tykob said:
how will this react to having headphones plugged in? at work, my phone is usually in a position that would trigger this but i plug in headphones to talk and listen. i wouldnt want speakerphone to override the headphones at work. at home though this would be fine since i dont use the headphones there.
Click to expand...
Click to collapse
Just Add Another Context for when Headphones are not plugged in, you can play with your own settings. Even by using Ifs but thats another thing you dont need to know now.
fenchai said:
Just Add Another Context for when Headphones are not plugged in, you can play with your own settings. Even by using Ifs but thats another thing you dont need to know now.
Click to expand...
Click to collapse
was just coming to make the same comment. added a third state context of headset plugged in > any > invert. seemed to do the trick. thanks!
I did not know I needed this profile until I read it! I have found myself in this scenario multiple times and I never thought to use Tasker to make my life easier! And it is so simple!
I guess it really depends on where the main speaker is located. If it is on the back, then you would want to have the orientation set to the back, otherwise, the front.
It worked on my LG G4, thanks!
dharish said:
Not working.. Any setting do I need to change for the accelerometer to recognize? I have done exactly like above..
Click to expand...
Click to collapse
Calibrate your accelerometer in Tasker's preferences. Click the 3 dot menu in the top right, go to preferences, go to the Monitor tab, then scroll all the way down to the Calibrate button under where it says "Accelerometer." Do that then try it again.
lywyn said:
I click + to add profile and it asks me for a "First Context"
Edit:
1. Create a new Profile, select State context and name it "Speakerphone."
---------- Post added at 11:15 AM ---------- Previous post was at 10:54 AM ----------
Trying to create the above and starting realise why I used Locale for so longer.
I must add a task and give it name?
Click to expand...
Click to collapse
The general idea for any tasker creation is like this: 1) create a context, 2) create a task. The context is what must occur on your phone in order for Tasker to be triggered, and the task is the action that Tasker then performs. In this case, the context is when Tasker detects that the orientation of your phone is face-up AND the fact that you are in the middle of a phone call. Then, Tasker fires the associated task that enables speakerphone. Naming a context or task is entirely optional.
MishaalRahman said:
If you're busy with something and you get a phone call, it might frustrate you having to put your phone down and manually enabling speakerphone in order to actually talk with the person on the other end. However with Tasker, you can easily enable Speakerphone when you're in a call by placing your phone upright on a flat surface. It works by reading your accelerometer to grab the current orientation of the device. Let's set it up.
Instructions
Create a new Profile and name it "Speakerphone."
Create a new State context, go to Phone --> Call. Set it to "Any."
Create a new task, but there's no need to name it anything because it will only need a single action.
Within the Entry task, go to Audio --> Speakerphone and set it to On.
Exit the task editor, and then long-press on the Call Any,* context in order to add another Context.
Add another State context, and go to Sensor --> Orientation. Set "Is" to Face Up.
Exit out, and now long-press on the Entry task. Tasker will ask you to add an Exit Task. Create one.
Once inside the task editor again, go to Audio --> Speakerphone again. This time set Speakerphone to Off.
That's it! Now, this profile will trigger when your phone is both a) within a phone call and b) face-up on a flat surface (the orientation is detected as face-up). On satisfying these conditions, Tasker will enable speakerphone, and when it fails to meet the condition (ie. when you exit the call or pick the phone up) speakerphone will turn off.
Click to expand...
Click to collapse
Did it. Never used speakerphone so see if it even works.
Live and learn obscure Taskerisms-2. This profile is stuck as its own entry, not under the "home" listing. Shown as enabled so we shall see.
On the one plus one there was an option, if you took a call, put it to up to your ear, then decided you wanted others to hear the call, you could pull it away from your face, and after 2-3 seconds the phone automatically switched to speakerphone. Is anyone able to replicate that within tasker. It was a cool option.
MishaalRahman said:
If you're busy with something and you get a phone call, it might frustrate you having to put your phone down and manually enabling speakerphone in order to actually talk with the person on the other end.
Click to expand...
Click to collapse
Love this Tasker stuff! THANKS for this feature, I DO hate putting that speaker phone on, and I'm always doing something when I get a call..
I've been meaning to update my article for about two years now.. since I last checked... College program is almost done!
If you wouldn't mind I could add this to the list in the future! Feel free to check out my profiles ready for download as well
Last one I remember working on was a failed login/Phone theft preventer which is still sitting half done on my phone.
For this to work, someone would have to attempt to login to your phone 3 times, Tasker would then Lock up the phone, force data and GPS on,
and take a few pictures using the front facing camera. Then send them through email, or text to give you a better idea of who has your phone.
D'OH!, this is a feature in this form now lol..
Cheers!
SkyboneNoya said:
Love this Tasker stuff! THANKS for this feature, I DO hate putting that speaker phone on, and I'm always doing something when I get a call..
I've been meaning to update my article for about two years now.. since I last checked... College program is almost done!
If you wouldn't mind I could add this to the list in the future! Feel free to check out my profiles ready for download as well
Last one I remember working on was a failed login/Phone theft preventer which is still sitting half done on my phone.
For this to work, someone would have to attempt to login to your phone 3 times, Tasker would then Lock up the phone, force data and GPS on,
and take a few pictures using the front facing camera. Then send them through email, or text to give you a better idea of who has your phone.
D'OH!, this is a feature in this form now lol..
Cheers!
Click to expand...
Click to collapse
Yup, you can expand what you want to do based on failed unlocks to whatever you want. Do you have a link to your other profiles? Could you share them on this forum? Thanks!
MishaalRahman said:
Yup, you can expand what you want to do based on failed unlocks to whatever you want. Do you have a link to your other profiles? Could you share them on this forum? Thanks!
Click to expand...
Click to collapse
Yeah just in the Sig, http://forum.xda-developers.com/showthread.php?t=2552570
MishaalRahman said:
Calibrate your accelerometer in Tasker's preferences. Click the 3 dot menu in the top right, go to preferences, go to the Monitor tab, then scroll all the way down to the Calibrate button under where it says "Accelerometer." Do that then try it again.
Click to expand...
Click to collapse
I can't make it work! When I click at "Calibrate" button nothing happens!!!
this is simply awesome!
Thanks for this =)
I tried this on my s6 edge but it didn't work. Any reason why?
Sent from my SM-G925F using Tapatalk
OK so now after calibrating it works. But unfortunately it doesn't seem to turn off when I pick up the phone. Any reason why?
Sent from my SM-G925F using Tapatalk

[GUIDE][Difficulty: Beginner]Switch phone on/off using a flipcase

Hello guys,
I was totally stunned, when I saw that there's a member lead tasker forum. I love tasker and couldn't imagine a phone without it.
As I want to spread my thoughts here are several profiles coming for you
Requirements
Secure Setting
What does the script do?
Simple. It turns on your phone, when you open your flip case (or e.g. take it out of your pocket) and turns it off, when you're on the lockscreen and approximity sensor is cover (e.g. put it back in your pocket and/or close your flip cover).
Let's get started
Profile 1
Code:
[B] 1. State -> Approximity Sensor[/B] [I]check reverse
[/I] 2.[B] Enter task and name it[/B] [I]"turn display on"[/I] for example. Add the action[B] Plug-In --> Secure Settings --> Configuration --> Wake Device[/B].[I](Choose Wake Type Screen Bright; Duration 5 seconds)[/I]
Now exit the task section and add to the contexts of this profile:
- State --> Display State Off
- App --> Dialer App [your phone's dialer app]; Check reverse
Done
Profile 2
Set up a new profile
Code:
[B]State --> Approximity Sensor[/B]
Enter a task and name it for example [I]"display off"[/I], go to plug-ins --> Secure Settings --> Lock device [I]You have to enable device adming and grant Secure setting Device admin privileges[/I]
Exit the task and add to the contexts of this profile
[B]- State --> Variable value[/B]: Conditions %DISPLAYOFF ~ 1
-[B] App --> Dialer App[/B]; [I]Check reverse[/I]
Done
Profile 3
Code:
[B]Event --> Display --> Display on[/B]
Add the task [B]Variables --> Set Variables[/B]: [I]Name %DISPLAYOFF to 1[/I]
Done
Last Profile
Code:
[B]Event --> Display --> Display Unlocked[/B]
Add the task and name it "display unlocked" for example: [B]Variables --> Set variable;[/B] [I]%DISPLAYOFF to 0[/I]
Done!
Please don't forget to enable the proximity sensor under settings-->Display-->Proximity Sensor-->Yes, so the display can be turned on, when proximity sensor is triggered
So that's it. Very simple but saves you a lot of time.
Please feel free to post some imrpovement suggestions, thoughts or anything else that comes up your mind. I'd really be happy about it-
Love follow
I cannot find Plug-In --> Secure Settings on my Samsung S7, stock rom
What's the reason of using phone app in this profile? Also it'll be better if you post screenshot as our tasker version looks to be different.
svenvaeth said:
I cannot find Plug-In --> Secure Settings on my Samsung S7, stock rom
Click to expand...
Click to collapse
Install it from the Play Store.
Sent from my "i9300/1+2" powered by Carbon/Temasek
Fueled by 7000mAh ZeroLemon Battery
Okay, I tried to implement this, but using the 4 profiles does not do anything with my phone. I am using an S7, with stock ROM and Android 6.0.1
Tasker is enabled and shows the flash in the status bar. But it always says that no profile is active. Of course, I enabled the 4 profiles.
Is there any setting in Tasker I need to enable or change in order to make this running?
The four profiles are already enabled and Tasker is active, showing the little flash in status bar.
But closing the lid or blocking the proximity sensor does not do a thing.
Cheers man for your support.
Follow_and_Feel said:
Hello guys,
I was totally stunned, when I saw that there's a member lead tasker forum. I love tasker and couldn't imagine a phone without it.
As I want to spread my thoughts here are several profiles coming for you
Love follow
Click to expand...
Click to collapse
@svenvaeth
First you shouldn't quote the whole op, it looks uglu. Second you already asked the same question just five hours ago, don't repeat your questions at least for 24 hours, that's the forum's ethics. Now wait patiently till someone answer you.
Sent from my "i9300/1+2" powered by Carbon/Temasek
Fueled by 7000mAh ZeroLemon Battery
svenvaeth said:
Is there any setting in Tasker I need to enable or change in order to make this running?
The four profiles are already enabled and Tasker is active, showing the little flash in status bar.
But closing the lid or blocking the proximity sensor does not do a thing.
Cheers man for your support.
Click to expand...
Click to collapse
Hey. Yes, there is an option you have to enable within tasker.
Go into Tasker, hit the three dot menu, click on "settings". Under "Display" go to "proximity Sensor" and click on yes. This will allow the sensor to be triggered, when the display is off.
Additionally you can check, if your secure settings "System + Module" is enabled within secure settings.
Please try this and let me know if it works now
Cheers follow
EDIT: I'll change this in the OP, too!
Oh no...I just saw that secure settings needs root access. This I wanted to avoid with the S7. Damn it....
I guess it is related to the issue.
Follow_and_Feel said:
Hey. Yes, there is an option you have to enable within tasker.
Go into Tasker, hit the three dot menu, click on "settings". Under "Display" go to "proximity Sensor" and click on yes. This will allow the sensor to be triggered, when the display is off.
Additionally you can check, if your secure settings "System + Module" is enabled within secure settings.
Please try this and let me know if it works now
Cheers follow
EDIT: I'll change this in the OP, too!
Click to expand...
Click to collapse
svenvaeth said:
Oh no...I just saw that secure settings needs root access. This I wanted to avoid with the S7. Damn it....
I guess it is related to the issue.
Click to expand...
Click to collapse
Yeah. It's kinda my fault that I didn't mention that these profiles need root in order to work. I'm sorry that it won't be running on your phone then maybe you stick to one of the apps from the play store, which do pretty much the same.
Cheers follow
Do I need the Pro Version of Secure Settings? I rooted my device now, could remove bloatware and use root browser, but secure settings shows "no root detected" (?)
Follow_and_Feel said:
Yeah. It's kinda my fault that I didn't mention that these profiles need root in order to work. I'm sorry that it won't be running on your phone then maybe you stick to one of the apps from the play store, which do pretty much the same.
Cheers follow
Click to expand...
Click to collapse
svenvaeth said:
Do I need the Pro Version of Secure Settings? I rooted my device now, could remove bloatware and use root browser, but secure settings shows "no root detected" (?)
Click to expand...
Click to collapse
Use the app "root checker" from google play to verify if root is installed properly. If so, please enable the system+ module in secure settings. No paid version needed
It says properly installed. It must be properly installed because I could grant root access for other apps.
Follow_and_Feel said:
Use the app "root checker" from google play to verify if root is installed properly. If so, please enable the system+ module in secure settings. No paid version needed
Click to expand...
Click to collapse
---------- Post added at 08:02 AM ---------- Previous post was at 07:56 AM ----------
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
svenvaeth said:
It says properly installed. It must be properly installed because I could grant root access for other apps.
Click to expand...
Click to collapse
Well I don't know why Secure Settings isn't working for you (I'm not a dev). Unfortunately the developer has stopped working on the app 2015, so this might be related to it. But maybe you post your problem in the secure settings thread.
I'm really sorry, that it doesn't work on your device and with my little knowledge I'm not able to provide a workaround. Sorry bro
EDIT: Just an idea....could you check your super User app, if you really granted Secure Settings root permissions?
Oh, that's a good point. It does not show Secure Settings in SuperSU app. How can I add it there?
Follow_and_Feel said:
Well I don't know why Secure Settings isn't working for you (I'm not a dev). Unfortunately the developer has stopped working on the app 2015, so this might be related to it. But maybe you post your problem in the secure settings thread.
I'm really sorry, that it doesn't work on your device and with my little knowledge I'm not able to provide a workaround. Sorry bro
EDIT: Just an idea....could you check your super User app, if you really granted Secure Settings root permissions?
Click to expand...
Click to collapse
svenvaeth said:
Oh, that's a good point. It does not show Secure Settings in SuperSU app. How can I add it there?
Click to expand...
Click to collapse
Could you just run a task in tasker, e.g. "Time --> 13:35 (or whatever is close to now) --> Task--> Plug-In --> Secure Settings --> Root Actions --> Airplane mode on"
In fact there should be a prompt which asks you to grant secure settings root permissions. Try this and let me know
This is really driving me crazy. All the actions that require root are grayed out.
I cannot get the secure settings app to request root access.
No problem with adaway or titanium backup. It works fine.
Just Secure Settings will not send a request.
Follow_and_Feel said:
Could you just run a task in tasker, e.g. "Time --> 13:35 (or whatever is close to now) --> Task--> Plug-In --> Secure Settings --> Root Actions --> Airplane mode on"
In fact there should be a prompt which asks you to grant secure settings root permissions. Try this and let me know
Click to expand...
Click to collapse
svenvaeth said:
This is really driving me crazy. All the actions that require root are grayed out.
I cannot get the secure settings app to request root access.
No problem with adaway or titanium backup. It works fine.
Just Secure Settings will not send a request.
Click to expand...
Click to collapse
Well I can't help you much. I have no idea why this isn't working for you. Maybe uninstall/reinstall secure settings and try again?
I already did that several times. I even bought SuperSU.
I also contacted the dev, so let's see what the response will be.
I am gonna post the solution here, in case there is one
Follow_and_Feel said:
Well I can't help you much. I have no idea why this isn't working for you. Maybe uninstall/reinstall secure settings and try again?
Click to expand...
Click to collapse
svenvaeth said:
I already did that several times. I even bought SuperSU.
I also contacted the dev, so let's see what the response will be.
I am gonna post the solution here, in case there is one
Click to expand...
Click to collapse
Yeah this would be awesome! I'm really interested in why it isn't working, too
svenvaeth said:
It says properly installed. It must be properly installed because I could grant root access for other apps.
---------- Post added at 08:02 AM ---------- Previous post was at 07:56 AM ----------
Click to expand...
Click to collapse
Hey there. I have some good news and some bad news. The bad news are, that I checked this profile with a similar samsung phone and hat the same error notification like you had in secure settings.
The good news are, that you don't even need secure settings' "System + Module". I rewrote the script and it should actually work on any Samsung phone. Are you still interested?

Categories

Resources