yashsingh1/xdaforums huggingface dataset:
[Google Pixel 3a Themes, Apps, and Mods] j to the 4n:
Featured by:

XDA-Developers: Customize the Google Pixel 2’s Active Edge to do any action with Edge Sense Plus [XDA Spotlight]​

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 and Pixel3 also coming with a squeezable frame I found a way to make it compatible too.

Since google locked active edge down to just only be able to start Assistant it will require a device rooted with magisk

Requirements

You need to run a STOCK based ROM, because Active Edge is broken on AOSP roms.

You need to be rooted with magisk to use it.

Install the Active Edge System Mod Magisk Module from the MagiskManager Repo and the EdgeSensePlus from the playstore and you are ready to go!

Telegram Group

Join Telegram Edge Sense Plus Group

How does it work

To make it working on the Pixel3 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.
[Google Pixel 3a Themes, Apps, and Mods] j to the 4n:
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 Pixel3 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
[Google Pixel 3a Themes, Apps, and Mods] j to the 4n:
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

Flash the Magisk Module either in Magisk Manager or TWRP

Install Edge Sense Plus

Enjoy.

Downloads

Now also available via the MagiskManager Repo:

I recommend to install and update the Magisk Module directly via the MagiskManager repository directly in the MagiskManager app.

All releases will be also available on the GitHub repository

Edge Sense Plus:
[Google Pixel 3a Themes, Apps, and Mods] c_tho:
fwiw i have been using this since day 1 and is wayyy more useful than i expected it to be. great stuff.
[Google Pixel 3a Themes, Apps, and Mods] j to the 4n:
Thanks for the kind feedback, much appreciated.
[Google Pixel 3a Themes, Apps, and Mods] crackedvenom2:
This thing is awesome. I didn't originally check it on XDA because I had no idea what it was. Last night I found it while browsing the Magisk modules and man I'm loving it. Just bought the premium version.
[Google Pixel 3a Themes, Apps, and Mods] j to the 4n:
You are welcome and thanks for the purchase :)
[Google Pixel 3a Themes, Apps, and Mods] lattosimbaste:
Great stuff, well worth the price for premium!
[Google Pixel 3a Themes, Apps, and Mods] j to the 4n:
much appreciated, thanks for your support (-:
[Google Pixel 3a Themes, Apps, and Mods] j to the 4n:
Due a 150 users limit in hangouts we created a telegram group: https://t.me/activeedge_edgesenseplus
[Google Pixel 3a Themes, Apps, and Mods] ritchea:
Can anyone tell me why I have two icons for the app in app drawer? Pixel 3a P June update.
[Google Pixel 3a Themes, Apps, and Mods] j to the 4n:
Sure, those shortcuts can launch the short and long squeeze actions, but are actually just required for non rooted HTC devices or AOSP Roms on Pixel.

You can hide those in Edge Sense Plus in the Configuration section, it is the very last option in this section and called "App drawer shortcuts".
[Google Pixel 3a Themes, Apps, and Mods] ritchea:
Thanks. I do use both short and long squeeze.
[Google Pixel 3a Themes, Apps, and Mods] j to the 4n:
you dont need the shortcuts though, you can disable them
[Google Pixel 3a Themes, Apps, and Mods] HpNoTiQ:
Hi,

Don't know why but now camera won't launch if screen is off/locked.

I'm using last magisk canary (19.4) and v40 of magisk module.

It works if screen is on.
[Google Pixel 3a Themes, Apps, and Mods] j to the 4n:
What rom you are on, it wont work on an AOSP rom, just on stock.
[Google Pixel 3a Themes, Apps, and Mods] HpNoTiQ:
P3a stock with exkernel 1.02
[Google Pixel 3a Themes, Apps, and Mods] j to the 4n:
There was an issue with may patch where google added some more restrictions when starting apps in background.

I fixed that with an update to Edge Sense Plus by starting a shell command to start it. You are on latest version of the app I guess though?

I have not much Pixel 3a users to test. But it works on the regular pixel 2 and 3. Can you maybe join the telegram group and share a logcat?

https://t.me/edgesenseplus
[Google Pixel 3a Themes, Apps, and Mods] Toilet Paper:
Is it possible to make it start the camera, and in the camera app take a picture as you squeeze?
[Google Pixel 3a Themes, Apps, and Mods] j to the 4n:
the camera action is already doing that
[Google Pixel 3a Themes, Apps, and Mods] creeve4:
Can I disable the ActiveEdge module before taking an OTA or do I need to uninstall it?
[Google Pixel 3a Themes, Apps, and Mods] j to the 4n:
In the latest version of the magisk modudle it will disable itself, if the security patch level is not officially supported.

To be safe, you can just deactivate it yourself too if you want.

There are no breaking changes in the OTA though, so the old module would just work fine. But you will see that it will deactivate itself because the current security patch level version

is higher than the one I supported in the v39 module.

The v40 of the magisk module supports the July patch level.
[Google Pixel 3a Themes, Apps, and Mods] Toilet Paper:
I am hearing conflicting reports (sorry, new to all of this). I am hearing that before any updates, you should remove Magisk as it can screw up the update process and brick your phone (factory reset needed) before doing any sort of updates., this includes removing any magisk components beforehand.
[Google Pixel 3a Themes, Apps, and Mods] j to the 4n:
I don't have a Pixel device, so no experience with that one.

But I'm sure there are people that just dirty flashed the factory image or ota, in that case disabling magisk modules is needed for most modules that replace system apps, like mine.

But mine disables itself now if you update your patch level, so it should be save.

Here is one guy for example that shows the bahvior of my magisk module disabling itself to ensure it does not softbrick your device:

https://xdaforums.com/showpost.php?p=79829588&postcount=154
[Google Pixel 3a Themes, Apps, and Mods] sic0048:
There are two different elements to Magisk in play here. You have the actual Magisk framework and then the individual modules as well.

You have to uninstall the Magisk framework in order to take an OTA normally. The phone will not finish the update process with Magisk installed because it will fail the checks that the system goes through while updating.

Uninstalling the Magisk framework does not uninstall the individual Magisk modules however. Of course they are inactive without a Magisk Framework and shouldn't effect anything (including the OTA update process). However, once the Magisk framework is reinstalled, it is possible the installed modules could be incompatible with the latest OTA image. The good news is that it sounds like Magisk is smarter about this than previous versions and will disable modules automatically the Edge Sense Plus Magisk module is smarter about this than previous versions and will disable itself automatically.

Also, now that we have at least a temp TWRP, it is always possible to boot into TWRP and flash the Magisk Module Uninstaller to remove any module that you think is causing an issue. You would do this if the phone bootloops after installing an OTA and the Magisk framework. Prior to getting TWRP for the 3a series, if you found your phone bootlooping it was very difficult to remove a module without having to reflash the stock OS image. It was because of this inability to remove Magisk modules easily if your phone bootlooped without TWRP that I recommended that people take the extra step of uninstalling Magisk modules prior to taking an OTA update. Now that we have TWRP, this issue is moot.

With the Edge Sense Plus module automatically disabling itself, along with TWRP being available now, I personally wouldn't worry about uninstalling individual modules prior to taking an OTA update now.

Hopefully all that makes sense.
[Google Pixel 3a Themes, Apps, and Mods] j to the 4n:
Thanks for the clarification.

Just one correction. It is not magisk disabling incompatible modules. It is one specific feature of my module, being able to disable itself when the security patch level doesn't match.
[Google Pixel 3a Themes, Apps, and Mods] sic0048:
Thank you for the clarification!

Your technique should be built into all modules that are sensitive to OS changes!
[Google Pixel 3a Themes, Apps, and Mods] j to the 4n:
Well, it might not be easy for many modules to build that in.

It is easy for me, because my mod basically works on one rom base.

Here is what I'm doing:

https://github.com/Magisk-Modules-Repo/active_edge_system_mod/blob/master/common/post-fs-data.sh
[Google Pixel 3a Themes, Apps, and Mods] c_tho:
any word on Android Q compatibility? magisk module currently refuses to install.
[Google Pixel 3a Themes, Apps, and Mods] j to the 4n:
Q supported Magisk module here: https://t.me/edgesenseplus

I think 3a is the only device though without supprt though since I have no testers yet.

So ping me there and I'll work on it.
[Google Pixel 3a Themes, Apps, and Mods] 12paq:
This is all great advice if you are on Pie. Currently TWRP does not work on Q. Some modules do not work on Canary Magisk on Q. If on Beta Q or upgrading to Q, uninstalling modules is still a good practice. It's a beta, anything can break (rhetorical statement as you know).
[Google Pixel 3a Themes, Apps, and Mods] Archangel:
I can confirm the latest version of Edge (V41) works perfectly on the 3a., thanks brother!
[Google Pixel 3a Themes, Apps, and Mods] Archangel:
I can confirm the latest Aug 05 update works perfectly on the 3a.
[Google Pixel 3a Themes, Apps, and Mods] dark90_:
Works on Q beta 6?
[Google Pixel 3a Themes, Apps, and Mods] j to the 4n:
It will be available on our telegram tonight.
[Google Pixel 3a Themes, Apps, and Mods] Sneeuwtijger:
Pixel 3A 10(QPA1.191105.004)

Edge Sense Plus 1.22.3,

Magisk Module V54

When I open the Edge Sense Plus app I get a toast message :

Xposed Available : False

There is no mention in this topic that Xposed is used or should be available - so my question is : why should I have Xposed available ?
[Google Pixel 3a Themes, Apps, and Mods] j to the 4n:
it was mentioned in the google play changelog, that Edge Sense Plus includes now an xposed module.

I forgot to remove the toast message before I uploaded it to the playstore. Was just for debugging.

You don't need xposed to have Edge Sense Plus working...as you might figured out.

It is just an altertive to the magisk module.

Both verisions have advantages and disadvantages...your choice what you use.
[Google Pixel 3a Themes, Apps, and Mods] Sneeuwtijger:
Oké, thx for the info - later I read something about it in the Telegram chat

Is there some text that compares both the implementation and lists the differences?
[Google Pixel 3a Themes, Apps, and Mods] j to the 4n:
If you are in the telegram chat, why writing here?

There are no differences. The xposed module is doing exactly the same as the magisk module. I mean what else should it do then providing short squeeze and long squeeze customizaton? For further discussions please write in the telegram chat.
[Google Pixel 3a Themes, Apps, and Mods] Sneeuwtijger:
I find it very hard to find the right info in the Telegram chat - it's all over the chat and repeated many times in just a minor different way, that's why I contacted you here, but I will place a future question in the chat ;)
[Google Pixel 3a Themes, Apps, and Mods] Rejosh1:
Hi, I'm very glade that I found this wonderful app to give the squeeze function an sense and have closely instandly purchased to the premium version. But the WI-FI ON/OFF function doesn't work (the Bluetooth function does work) and it would be a nice to have to have this.

I'm using the Pixel 3a with Android 10 and the October security patch.

Last but not least I have an additional question, if "squeeze and hold" is supported by this device, because in the category "Gestues" and "Screen off actions" it's greyed out but not in "Media controle". At first this was marveled to me, but I suppose that it isn't supported on my device.
[Google Pixel 3a Themes, Apps, and Mods] j to the 4n:
hey, it is supported, but it needs you to be rooted unfortunately. WIll look at the Wifi on/off bug. probably got broken with Android 10. I'm sure it worked on Pie.
[Google Pixel 3a Themes, Apps, and Mods] AudibleDruid:
i didnt get the chance to read the full thread. ive been trying to install the active edge module from the magisk app for the last week or so and every time i install i get an error. does anyone know whats up with that? it sayd the md5 checks dont match but the md5 for the magisk module is blank. like its not there. i could see why they wouldnt match lol. i have an old active edge zip v54 that ive tried installing through twrp but i get error code 1 on that. anyone know what the problem is? im using a google pixel 3a android 9(pie) with elementalX kernell 1.06(i think).

edit:

sorry ive jsut been messing with this in my spare time between work and college. my magisk version is 20.1. its the zip to flash magisk from twrp. idk what version of magisk it actually is. twrp version is sargo 3.3.1-1
[Google Pixel 3a Themes, Apps, and Mods] j to the 4n:
You flash always in magisk manager.

About the official version and the md5 sum issue. Can your share the installation log?
[Google Pixel 3a Themes, Apps, and Mods] AudibleDruid:
[IMG="it says this"]https://drive.google.com/file/d/1-WSSki7H68rInJsoOzGBCxeIYMpfiIj3/view?usp=drivesdk[/IMG]

heres the image if you cant see it. theres a space between "google." and "com" youre gonna have to delete it to see the image. i cant post links yet.

drive.google. com/file/d/1-WSSki7H68rInJsoOzGBCxeIYMpfiIj3/view?usp=sharing
[Google Pixel 3a Themes, Apps, and Mods] j to the 4n:
That file is private. Also that's not how you upload an image here.

Easier it would be if you have telegram: https://t.me/edgesenseplus
[Google Pixel 3a Themes, Apps, and Mods] AudibleDruid:
yeah i used the image button at the top but it tells me to link to a website? idk where i link to though so i put the image on my google drive. ill use telegram. thanks for the help.
[Google Pixel 3a Themes, Apps, and Mods] j to the 4n:
My app Edge Sense Plus got permanentely suspended because it contained a link to the xda Magisk thread.

Make some noise..maybe it helps (-:
[Google Pixel 3a Themes, Apps, and Mods] nullsec:
Works perfectly for me on my 3A running 10/Q :good:

Only bug I've encountered is that when trying to enable "Rooted mode" it fails to recognized that my phone is rooted,

and now shows that error whenever I launch the app. I rooted using the Magisk (patched boot) method,

and have had no other issues with any other apps properly requesting and receiving root access.

Also, the "Long squeeze interval" setting doesn't stick properly. It resets for me (literally) every time I open the app.

I would REALLY appreciate this being fixed :)
[Google Pixel 3a Themes, Apps, and Mods] j to the 4n:
you probably denied root access once. check in magisk manager and grant it manually there.
[Google Pixel 3a Themes, Apps, and Mods] nullsec:
I didn't, but for some reason it was blocked.

After granting root privs, all features of the app are working flawlessly! Fantastic work!
[Google Pixel 3a Themes, Apps, and Mods] kingofcomedy:
Thanks for this app and the Magisk Module, I've been using it since I got my Pixel 3a in February 2020. I had no problems with the (really fast!) module-updates after the monthly android-patches until June, but v67 and v68 of the module are not working for me with the July-Android-Patch. Is it a known bug? Maybe I can help to find the problem. :)
[Google Pixel 3a Themes, Apps, and Mods] j to the 4n:
Not working means? Log/Screenshot of installation?
[Google Pixel 3a Themes, Apps, and Mods] kingofcomedy:
Not working means, nothing happens on a single squeeze, not even a vibration. Normally a single squeeze should turn on/off my display. I tried different actions, same result. Re-Granted superuser-rights to Edge Sense Plus and re-installed it too.

Turning on active edge in android does work.

Thanks.
[Google Pixel 3a Themes, Apps, and Mods] j to the 4n:
Check that:

https://hastebin.com/migiluxiqe.sql
[Google Pixel 3a Themes, Apps, and Mods] kingofcomedy:
Ok, checked the Edge Sense Plus Quicksetting and activated it. After a reboot it is deactivated again, but it is working nevertheless. :) And just bought the premium-version. ;)
[Google Pixel 3a Themes, Apps, and Mods] stanley321:
Can I use Edge Sense unrooted now on Android 10?

I have Magisk Module now, I tried uninstalling and reinstall but the instruction for unrooted won't show up, it keeps asking me for root and install the Magisk Module again.
[Google Pixel 3a Themes, Apps, and Mods] j to the 4n:
If you have root and the magisk module why would you want to use the unroofed version which lacks on a lot of features?

The instructions how to use the unrooted version just pops up if you do not have magisk installed.
[Google Pixel 3a Themes, Apps, and Mods] stanley321:
To prepare for the inevitable moment when hardware CTS attestation come.

As I only need lock screen from Edge Sense, I don't need root for that right, as long as I give device admin rights to it?

Can I use unrooted even when Magisk is installed?
[Google Pixel 3a Themes, Apps, and Mods] j to the 4n:
yeah, sure. run this commands:

adb shell settings put secure assist_gesture_any_assistant 1

adb shell settings put secure assist_gesture_setup_complete 1

Then you need to set the default assistant to lauch Edge Sense Plus.

If you magisk hide root from Edge Sense Plus, the instructions should show up.
[Google Pixel 3a Themes, Apps, and Mods] yelped:
Hi, I just installed the app and set it up without root to be able to use the edge for taking pictures. I have it set for opening "camera/take picture", and it works great for opening the camera, but it does not take a picture when I squeeze it again. Am I doing something wrong? I am on a Pixel 3 XL.
[Google Pixel 3a Themes, Apps, and Mods] j to the 4n:
Check or you have the root toggle enabled.

It's at the very bottom.

Else send me a logcat
[Google Pixel 3a Themes, Apps, and Mods] yelped:
Hi, thanks for the reply!

It is not enabled, as I do not have root.

How do I send you a logcat?
[Google Pixel 3a Themes, Apps, and Mods] j to the 4n:
It requires root to capture an image.
[Google Pixel 3a Themes, Apps, and Mods] yelped:
Oh...

Oh, well. Thanks!
[Google Pixel 3a Themes, Apps, and Mods] sillycat98:
Hi there, is it possible to get the assistant with lens and keyboard instead of the full screen search type assistant?
[Google Pixel 3a Themes, Apps, and Mods] j to the 4n:
Only if rooted
[Google Pixel 3a Themes, Apps, and Mods] kingofcomedy:
I just read in the Pixel 4-thread that there won't be a magisk module for Android 11. So I can't turn on/off my display (single squeeze) just using the app, right?
[Google Pixel 3a Themes, Apps, and Mods] j to the 4n:
If you use accessibility services it will still work.
[Google Pixel 3a Themes, Apps, and Mods] kingofcomedy:
That's what I tried so far:

- reinstalled edge sense plus

- magisk hide edge sense plus

- both commands "adb shell settings ..."

- set edge sense plus as default digital assistant app

- grant accessibility permissions

- grant device admin permissions

- set single squeeze to turn the screen on/off

- reboot

Am I missing something? :)
[Google Pixel 3a Themes, Apps, and Mods] j to the 4n:
11 compatible module is in the magisk repo.

Updated ESP from playstore should be installed to, else you get a missleading message about the module not being installed.

No sargo and crosshatch support, because no one provided me the files yet.
[Google Pixel 3a Themes, Apps, and Mods] kingofcomedy:
Which sargo-files do you need? :)
[Google Pixel 3a Themes, Apps, and Mods] j to the 4n:
SystemUIGoogle.apk
[Google Pixel 3a Themes, Apps, and Mods] kingofcomedy:
Found in /system_ext/priv-app/SystemUIGoogle/. ;)
[Google Pixel 3a Themes, Apps, and Mods] j to the 4n:
thanks, its online in the magisk repo now.
[Google Pixel 3a Themes, Apps, and Mods] kingofcomedy:
Thanks. Now I just have to wait for the app-update in the play store.
[Google Pixel 3a Themes, Apps, and Mods] j to the 4n:
it not mandatory, in the app just hit "ignore" when the dialog comes.

somehow the release is still pending on the playstore altough I published it yesterday
[Google Pixel 3a Themes, Apps, and Mods] kingofcomedy:
I still can't get it to work. :/

- reinstalled edge sense plus

- reinstalled magisk module

- adb shell settings put secure assist_gesture_any_assistant 0 (had set it to 1 while there was no magisk module for android 11)

- adb shell settings put secure assist_gesture_setup_complete 0 (same as above)

- grant accessibility permissions

- grant device admin permissions

- grant root permissions

- activated via quicktile setting

- rebooted a lot

Maybe you could reupload this:

https://hastebin.com/migiluxiqe.sql

?

Thanks.

Edit: well, it's working now. "adb shell settings put secure assist_gesture_any_assistant 1" + "default digital assistant app" -> "none" did it.