Elias Pelcastre

Get One Hand Mode on any rooted device with Android KitKat

Nowadays, it’s not very uncommon to use a 5.5+ inch smartphone. We’ve grown used to huge screens on huge phones thanks to the amount of screen real estate we get and the ease of strain on our eyes, but there is a problem with using a big phone as a daily driver; the difficulty to reach the upper area of the screen one-handedly.

Wouldn’t it be nice if there was a function that could make that dang upper corner more reachable? Well thankfully there is one, it’s called One hand mode, sadly not a lot of manufacturers build it into their version of Android. Here is where the power of Googles developer commands come in handy, and all you need is a rooted phone with Android 4.4 and above and the automatization app: Tasker! You could naturally take the easy way out and use an Exposed module, but with Exposed’s lack of stability in Android Marshmallow this is an excellent way to make your life a little bit easier even in newer Android versions!
Do be aware of 3 things:

1. It can be done through ADB or Android Debug Bridge, but you do require a PC or a terminal emulator for your device.

2. It might create a buggy interface depending on which app you are using, making menus and buttons completely unusable (This is why we add a reset function to the end of the task.)

3. It is not very aesthetic, but it serves its purpose.

Here is everything you need to get One hand mode running on your device:

Step 1. Download Tasker.

Step 2. Open Tasker and tap on the “+” sign to create a new activation method and select “Event”.

Step 3. Now while in the event category selector tap on “Variables” and select “Variable Set”.

Step 4. In the first text field, write the value %VOLR, this so that Tasker knows something will be executed when the ringer volume changes to a value. Now go back to the past menu.

Step 5. You’ll be asked to set a task to be executed by the profile, here tap on “New Task” give the task a name of your choice.

Step 6. Now tap on the “+” sign and select the action category “Task”, and tap on “If”.

Step 7. In the first entry field type in %VOLR, and in the second field type 5 to be a condition for what will be executed during the if statement, now tap on the button between both entries and select “Equals”.

Step 8. Now go back to the “Task Edit” menu and tap on the “+” sign and select the action category “Code”, and select “Run Shell”.

Step 9. In the first entry box with the name “Command” over it write in the following wm overscan 300,600,0,0 to make the window accessible to your right hand (You can play around with the values to customize the size of the window to your liking, the command’s values are LEFT,TOP,RIGHT,BOTTOM).

Step 10. Now tick the option that says “Use Root” and give Tasker root permission.

Step 11. Now go back to the “Task Edit” menu and tap on the “+” sign and select the action category “Task” and tap on “Else”.

Step 12. Here you’ll need to tap the “+” sign on the right to transform the “else” statement into an “else if” statement. You’ll need to write a condition in case the first “If” statement turns out to be false (this will be the case if your ringer volume isn’t set to 5).

Step 13. Now add the same text to the first entry box, as the first if statement, %VOLR, and type in 4 into the second entry box.

Step 14. Now tap on the button between both entries and select “Equals”.

Step 15. Now go back to the “Task Edit” menu and tap on the “+” sign and select the action category “Code”, and select “Run Shell”.

Step 16. In the first entry box with the name “Command” over it write in the following wm overscan 0,600,300,0 to make the window accessible to your left hand.

Step 17. Now let’s make a condition for when you don’t need One hand mode, first tap on the “+” sign and select the action category “Task” and select “Else”.

Step 18. Tap on the “+” sign to add an “If” to the “Else” segment, now type in %VOLR in the first entry box and 4 in the second entry box. Now you’ll need to tap on the button between the entry boxes and select “Doesn’t Equal” in the “Select Condition Operator” menu.

Step 19. Now tap on the “+” sign again without going back to the previous menu. You’ll notice a button above two entry boxes and a button in between have appeared. Tap on the “And” button and select “And (High Precedence)”.

Step 20. Now type in %VOLR into the first entry box after the “And+” button, and 5 into the second entry box.

Step 21. Now tap on the button between the two entry boxes and change it to “Doesn’t Equal”.

Step 22. Go back to the “Task Edit” menu and tap on the “+” sign and select the category “Code”, and select “Run Shell”.

Step 23. Type in wm overscan reset (This resets the size of the window to the default size).

Step 24. Now tick the option that says “Use Root”.

Step 25. Exit the app by tapping the back button until you reach your home screen.

Now you are ready to test out your new function, check out the pictures below to see the result! You’ll need to set the ringer volume to 4 if you are using your right-hand and 5 if you are using your left hand!

 

One hand mode when using the left hand

 

One hand mode when using the right hand

We hope that you enjoyed this tutorial! Tell us in the comments if you found this useful!