FORUMS
Remove All Ads from XDA
Honor View 10

[ROOT] Custom Active Edge Actions with Edge Sense Plus

15,091 posts
Thanks Meter: 44,712
 
Post Reply Email Thread



What is Edge Sense Plus?

Edge Sense Plus was initially just meant for the HTC U series. It let's you customize the squeeze action and adds some more squeeze gestures and features.
But with the Pixel2 also coming with a squeezable frame I had the goal to make it compatible with it too.
..and after a couple of days debugging with @k4r70ng (I don't own the device, big thanks to him, was a great help) we are here now!


Requirements

You must be on at least Oreo 8.1.

You need to be rooted with magisk to use it.
Install the magisk module and the EdgeSensePlus.apk from the 3rd post and you are ready to go!


How does it work

To make it working on the Pixel2 I had to modify the SystemUIGoogle.apk that runs the ElmyraService (Service that processes the squeeze gestures).
I intercept the events and pass them to the EdgeSensePlus Application that starts the appropriate action then that you selected.
Some more adjustments were made, so the squeezing also works when you are in immersive mode, camera or when Google Assistant is deactivated/uninstalled.
Attached Thumbnails
Click image for larger version

Name:	1.jpg
Views:	2196
Size:	191.8 KB
ID:	4383495   Click image for larger version

Name:	2.png
Views:	2130
Size:	154.8 KB
ID:	4383496   Click image for larger version

Name:	3.png
Views:	2062
Size:	175.2 KB
ID:	4383497   Click image for larger version

Name:	4.png
Views:	1974
Size:	222.6 KB
ID:	4383498   Click image for larger version

Name:	5.png
Views:	1902
Size:	133.8 KB
ID:	4383499   Click image for larger version

Name:	6.png
Views:	1820
Size:	203.6 KB
ID:	4383500   Click image for larger version

Name:	7.jpg
Views:	1744
Size:	52.8 KB
ID:	4383501   Click image for larger version

Name:	8.png
Views:	1708
Size:	152.6 KB
ID:	4383502   Click image for larger version

Name:	9.png
Views:	1650
Size:	172.4 KB
ID:	4383503   Click image for larger version

Name:	10.png
Views:	1610
Size:	160.1 KB
ID:	4383504   Click image for larger version

Name:	11.png
Views:	1612
Size:	6.4 KB
ID:	4383505   Click image for larger version

Name:	12.png
Views:	1552
Size:	6.2 KB
ID:	4383506  
The Following 24 Users Say Thank You to j to the 4n For This Useful Post: [ View ]
 
 
8th January 2018, 06:24 PM |#2  
j to the 4n's Avatar
OP Recognized Developer
Flag apktool d -b -f Freetime.apk xda
Thanks Meter: 44,712
 
Donate to Me
More
What can it do?

Custom actions:

Currently you can choose from over different actions
  • Quickly Start camera - Also when screen is off and locked
  • Per App Action - Execute different squeeze actions depending in what app you are!
  • Sidebar
  • Gesture Panel - Draw custom gestures to start different actions
  • Custom App
  • Shortcuts - e.g. to make direct calls, start tasker tasks and more!
  • Scroll up/down
  • Flashlight
  • Recent Apps
  • Toggle Autorotation
  • Autobrightness (6 states: Auto, Min, Low, Mid, High, Max)
  • Split Screen
  • Expand/Collapse Statusbar
  • Toggle NFC
  • Toggle Display on/off
  • Toggle Autorotation
  • Toggle DND
  • Toggle Vibration
  • Toggle Bluetooth
  • Toggle WiFi
  • Music Play/Pause
  • Previous Track
  • Next Track
  • Toggle Keep awake
  • Google Assistent
  • Lock Screen
  • Back
  • Home
  • Toggle Sync
  • Sync all accounts
  • Previous App
  • Take Screenshot
  • Clear all notifications
  • GPS
  • Answer/End call
  • Immersive Mode
  • Shell command


Per app actions:

With the per app action, you can define different squeeze actions per app. So the chosen action will be executed dependent in what app you are currently are.



Double Squeeze: (Premium)

If you often accidentally trigger a short squeeze, that won't happen anymore if you map your desired action to the double squeeze gesture.
You can define a double squeeze interval, to ensure you are quick enough to trigger it every time.

Long Squeeze:

Missed a long squeeze action on your Pixel? Edge Sense Plus has it!

G-Sensor usage: (Premium)

If enabled, will be able to execute different actions depending on the current position of your device, whether it is flat or upright in your hand.
That way you can have six different squeeze gestures: short, long, doublepress in flat or upright device position.


Media control:

The media control will override your set squeeze actions while media is playing so you can control your media.
That includes play/pause, increase/decrease volume and skip to next and previous track.


Squeeze sounds:

Ever thought it would be funny if a squeeze of your Pixel2 would make a sound, if it is a *click*, *oink* , *fart* or whatever you think of?
You can use any .mp3 file to make that happen!


Sidebar:

The Sidebar has 4 different panels, Applications, Shortcuts, Recent Apps (Premium), Quicksettings (Premium).
Panel colors are customizable

The Following 8 Users Say Thank You to j to the 4n For This Useful Post: [ View ]
8th January 2018, 06:25 PM |#3  
j to the 4n's Avatar
OP Recognized Developer
Flag apktool d -b -f Freetime.apk xda
Thanks Meter: 44,712
 
Donate to Me
More
Instructions


You must be on at least Oreo 8.1 to to be able to use it. Root with Magisk is required since the magisk module is mandatory!
It is recommended to have a working TWRP backup in case something goes wrong. Check the FAQ for help too.
Like always: Flash on your own risk. I'm not responsible for any damaga to your device

  1. Flash the Magisk Module either in Magisk Manager or TWRP
  2. Install Edge Sense Plus
  3. Enjoy.


Changelog

Version 1.13.1:
  • Fixed Pixel2/XL Google Assistant not working when device is off and locked (Active Edge Magisk Module v2 required)

Version 1.13.0:
  • Added Kill foreground app action (root)
  • Added Mute microphone action
  • Fixed Google Assistant for Pixel2/XL
  • Fixed Pocket Detection for Pixel2 XL

Version 1.12.1:
  • Fixed Pixel2/XL Magisk Module detection

Version 1.12.0
  • Added Pixel2/XL compatibility. Root with Magisk is required!
  • Fixed Action per App not working with flat and lanscape gesture.



Downloads

Active Edge Magisk Module v2

Edge Sense Plus:
The Following 5 Users Say Thank You to j to the 4n For This Useful Post: [ View ]
8th January 2018, 06:51 PM |#4  
j to the 4n's Avatar
OP Recognized Developer
Flag apktool d -b -f Freetime.apk xda
Thanks Meter: 44,712
 
Donate to Me
More
FAQ

Q: Will it also work on the Pixel2 XL?
A: No, it will bootloop your device. There is a separate thread on the Pixel2 XL forum.

Q: My device bootloops after flashing the magisk module.
A: Ensure you are on the latest Pixel2 OTA. To get out of the bootloop, go to the magisk thread and install the magisk uninstaller and then reinstall magisk again.

Q: Why is Edge Sense Plus showing as incompatible in playstore?
A: I didn't add the Pixel2 into the compatibility list, since it works just on rooted devices. Afraid of getting bad rating on playstore because root is required
8th January 2018, 06:55 PM |#5  
Senior Member
Flag Brooklyn
Thanks Meter: 341
 
Donate to Me
More
Quote:
Originally Posted by j to the 4n

You tried while locked or unlocked?

it worked.
i corrected my post.
will get the premium and support you for your hard work

thanks
The Following User Says Thank You to TheUndertaker21 For This Useful Post: [ View ] Gift TheUndertaker21 Ad-Free
8th January 2018, 06:56 PM |#6  
j to the 4n's Avatar
OP Recognized Developer
Flag apktool d -b -f Freetime.apk xda
Thanks Meter: 44,712
 
Donate to Me
More
Quote:
Originally Posted by TheUndertaker21

it worked.
i corrected my post.
will get the premium and support you for your hard work

thanks

Much appreciated, thanks!
8th January 2018, 07:49 PM |#7  
Member
Thanks Meter: 4
 
More
im not seeing an option for a magisk uninstaller in the magisk thread and im stuck on a bootloop as it didnt say 8.1 required in the main post. mind pointing me in the right direction for the magisk uninstaller??
8th January 2018, 07:51 PM |#8  
j to the 4n's Avatar
OP Recognized Developer
Flag apktool d -b -f Freetime.apk xda
Thanks Meter: 44,712
 
Donate to Me
More
Quote:
Originally Posted by razgriz1234

im not seeing an option for a magisk uninstaller in the magisk thread and im stuck on a bootloop as it didnt say 8.1 required in the main post. mind pointing me in the right direction for the magisk uninstaller??

Well it said latest OTA.

here it is: http://tiny.cc/latestuninstaller
8th January 2018, 08:03 PM |#9  
Member
Thanks Meter: 4
 
More
Quote:
Originally Posted by j to the 4n

Well it said latest OTA.

here it is: http://tiny.cc/latestuninstaller

didnt catch that part i was looking for the numbers lol. and thanks for the quick response. just to make sure its the january update not the december one right? will reinstalling the factory image minus the -w bit fix it or will i need to to do a full wipe? i have all my stuff backed up thanks to [TIbu] so im not really worried.
8th January 2018, 08:09 PM |#10  
j to the 4n's Avatar
OP Recognized Developer
Flag apktool d -b -f Freetime.apk xda
Thanks Meter: 44,712
 
Donate to Me
More
Quote:
Originally Posted by razgriz1234

didnt catch that part i was looking for the numbers lol. and thanks for the quick response. just to make sure its the january update not the december one right? will reinstalling the factory image minus the -w bit fix it or will i need to to do a full wipe? i have all my stuff backed up thanks to [TIbu] so im not really worried.

Think any 8.1 should be fine. you just need to install the magisk uninstaller, then reinstall magisk. after that you should be able to boot again.
Then update to 8.1 and you are ready to go.
8th January 2018, 08:19 PM |#11  
Member
Thanks Meter: 4
 
More
Quote:
Originally Posted by j to the 4n

Think any 8.1 should be fine. you just need to install the magisk uninstaller, then reinstall magisk. after that you should be able to boot again.
Then update to 8.1 and you are ready to go.

awesome. and that zip i just fastboot? or flash through temp twrp?
Post Reply Subscribe to Thread

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

Advanced Search
Display Modes