yashsingh1/xdaforums huggingface dataset:
[Google Pixel 2 Themes, Apps, and Mods] j to the 4n:
So you say it works in your pocket with the long squeeze?

I can add that feature, really no problem. Only thing I fear is that people that annoyed that they are forced to manually flash the updated magisk module when the app updates.

I

If you don't need the accessibility service I would disable it. Read here: https://www.xda-developers.com/working-as-intended-an-exploration-into-androids-accessibility-lag/
[Google Pixel 2 Themes, Apps, and Mods] bbeanss:
I just tried it on my commute to work and neither long or short squeeze is doing anything while the phone is in my pocket, the phone doesn't even vibrate. That's absolutely fine there's no rush for it I'll just have to be patient!
[Google Pixel 2 Themes, Apps, and Mods] j to the 4n:
okay, I'll check.
[Google Pixel 2 Themes, Apps, and Mods] PuffDaddy_d:
I've been using this app for a couple weeks now and I've had very inconsistent results with long squeezing while the screen is off. More often than not, the long squeeze will not activate the flashlight while the screen is off, but the few times it does work, it won't turn the light off unless I turn the screen on first. Short squeezes work just fine though. I've got root access enabled, but is there anything else in these permissions I should enable?
[Google Pixel 2 Themes, Apps, and Mods] expose_it:
I was getting similar results as you. It would take a very long squeeze to turn off flashlight. I did however install the new version and initially changed the long squeeze time to short. After doing that when I turned off the flashlight, it would turn back on. So I switched it back to long and now it works perfectly.
[Google Pixel 2 Themes, Apps, and Mods] j to the 4n:
The Long squeeze didn't create a 2 seconds wakelock like short squeeze did. That would cause that when the device gets into deep sleep the action won't execute.

In the magisk module v3 I added that missing wakelock, so check if it works now for you. In case not, I always rely on logcats, since I don't own the device.
[Google Pixel 2 Themes, Apps, and Mods] expose_it:
Ok. I just installed the accessibility add-on and now the flashlight will not come on when the phone is asleep.
[Google Pixel 2 Themes, Apps, and Mods] j to the 4n:
Shouldn't be related..but turn the accessibility service off and see yourself.
[Google Pixel 2 Themes, Apps, and Mods] expose_it:
I tried that, but still same results.
[Google Pixel 2 Themes, Apps, and Mods] j to the 4n:
Well. All I can say is that the accessibility helper has zero effect on the squeeze behavior.
[Google Pixel 2 Themes, Apps, and Mods] expose_it:
That's weird because I uninstalled accessibility helper and now it works perfectly again
[Google Pixel 2 Themes, Apps, and Mods] j to the 4n:
It is just an app accepting some commands, it isn't doing anything on its own.

No idea what is happening in your case.
[Google Pixel 2 Themes, Apps, and Mods] Fduch1984:
Same problem. Flashlight doesn't work. Actually nothing happens at all. It's strange because everything is fine on my 2 XL, but regular Google Pixel 2 have this issue. I've installed Magisk Module specific for Google Pixel 2 of course.
[Google Pixel 2 Themes, Apps, and Mods] j to the 4n:
Definitely know from one tester that it works for him on regular pixel. You just tried while screen is off or on?
[Google Pixel 2 Themes, Apps, and Mods] Fduch1984:
I have installed Magisk module and the app itself. When I squeeze the phone I can feel vibration but nothing happens except keyboard closing (if it was open in any app). When the screen is off, nothing happens at all.

I am on Verizon Google Pixel 2 and I have Russian interface, so Google Assistant is not available.

What concerns me is this vibration. It seems that your app somehow detects squeeze but can't take any action.
[Google Pixel 2 Themes, Apps, and Mods] j to the 4n:
can you try if long squeeze works?

Google Assistant is not an option in the native Active Edge Settings?

That would be a problem then, since the the magisk mod is implemented that way that it overrides the google assistant squeeze and forwards it to my app.
[Google Pixel 2 Themes, Apps, and Mods] Fduch1984:
I can feel long squeeze through vibration but it doesn't work too. Google Assistant is not an option. I can only turn on/off silencing phone calls and alarms.

But I have the same on big 2 XL phone (Russian interface, no Google Assistant) and Edge Sense Plus works there!

Also Force English option does work on 2XL and doesn't work on Pixel 2. Very strange difference between 2 and 2XL.
[Google Pixel 2 Themes, Apps, and Mods] j to the 4n:
Can you join https://hangouts.google.com/group/7xAHEDMMEycrGa4N2 so we can debug it?
[Google Pixel 2 Themes, Apps, and Mods] j to the 4n:
Thanks to [MENTION=7104988]Fduch1984[/MENTION] that found a little issue with remapping Active Edge.

In case you didn't went through the google assistant setup the short squeeze was blocked. Since google Assistant isn't available in some countries that could happen more often to some users.

I updated the magisk module on the first page to work around that issue.
[Google Pixel 2 Themes, Apps, and Mods] PuffDaddy_d:
Sorry for asking a newb question, but how can I take a logcat while the screen is off? I'd like to send it to you through Hangouts.
[Google Pixel 2 Themes, Apps, and Mods] j to the 4n:
You can use adb to take a logcat.

adb logcat > log.txt

What is your issue actually?
[Google Pixel 2 Themes, Apps, and Mods] j to the 4n:
WTF
[Google Pixel 2 Themes, Apps, and Mods] PuffDaddy_d:
[/COLOR]

Long squeeze to toggle flashlight while the screen is off rarely ever works. See my post from earlier in the thread:

https://xdaforums.com/showpost.php?p=75328566&postcount=71

But to be clear, you're saying I should run the ADB command while the screen is off and long squeeze the phone - but then what is my last step to stop the logcat?
[Google Pixel 2 Themes, Apps, and Mods] j to the 4n:
Ah. You can hit ctrl+c to stop it. But that is not even needed. The log should be filled up without stopping it.

Best is to reboot before, so I have a clean log without unnessecary stuff. Start the logging then, reproduce the error and then send me the log.
[Google Pixel 2 Themes, Apps, and Mods] PuffDaddy_d:
Tried to take a logcat, but the trigger worked this time, and every time since. I can't get it to fail again. #GoFigure

:confused:

So, the more I test it, I am starting to realize that it only works consistently while plugged into the computer with ADB running. If I unplug the device and let it sit for a few minutes, the long squeeze to launch the flashlight fails again.
[Google Pixel 2 Themes, Apps, and Mods] j to the 4n:
Seems being plugged in prevents the device getting into deep sleep then.

Not sure what is different to the short squeeze. In the last update I ensured that it works exactly like the short squeeze, a wakelock was missing before.

Will look into it again tonight if I find something.

For now you could just use double press as workaround.
[Google Pixel 2 Themes, Apps, and Mods] smorgar:
Hello and thanks for a wonderful app!

Im wondering about the proximity sensor. I have set my Pixel 2 to change media tracks on short/long squeeze. But when i cover the proximity sensor it does not work, for example when its in my pocket.

I have not yet paid for the pro version (evaluating the app) so i dont have accesss to the proximity setting. But even so it should detect squeezes with the sensor covered or am i missing something?
[Google Pixel 2 Themes, Apps, and Mods] j to the 4n:
The pocket detection in Edge Sense Plus works just then the screen is on.

There is native pocket dection that works whent the screen is off. I have no setting for that (yet) to toggle that.
[Google Pixel 2 Themes, Apps, and Mods] j to the 4n:
Any users here that use long squeeze with flashlight or similar and have issues that it turns on when the device is off for a longer time?
[Google Pixel 2 Themes, Apps, and Mods] PuffDaddy_d:
He means does not turn on...

For some reason, this bug bites me every day
[Google Pixel 2 Themes, Apps, and Mods] j to the 4n:
I know that you have the issue :P

Check your hangouts later....got a debug version for you.
[Google Pixel 2 Themes, Apps, and Mods] j to the 4n:
A new update is now on playstore.

Also a new magisk module version is available now.

When you open Edge Sense Plus after the update, it should ask you to update the module.

Now it won't link you to a download on xda, but open MagiskManager, where you can update the module.

Since I can't test that myself without device, I would appreciate if someone could give a feedback, if that works.
[Google Pixel 2 Themes, Apps, and Mods] bigruss:
yup worked exactly as you describe, thank you
[Google Pixel 2 Themes, Apps, and Mods] clcdev:
I updated to the latest version (playstore version is 1.21.4) and it keeps prompting me to install the magisk module. I currently have the v4 of the magisk module installed and don't see any newer version. Should I try just uninstalling everything and re-installing?
[Google Pixel 2 Themes, Apps, and Mods] bhow11:
Latest update working great
[Google Pixel 2 Themes, Apps, and Mods] CraiZJak:
I keep getting this error. Tried uninstalling everything and installing the module 1st then the app. Everything works like a charm, it's just that msg that appears on every squeeze. View attachment 4415254
[Google Pixel 2 Themes, Apps, and Mods] j to the 4n:
mhhh, will check. somehow I don't get that toast though.

Edit:

try that: https://www.dropbox.com/s/lkgqmtefslhtbla/app-release.apk?dl=0
[Google Pixel 2 Themes, Apps, and Mods] CraiZJak:
You're the man. That fixed the issue. [emoji1303]
[Google Pixel 2 Themes, Apps, and Mods] tiniwings:
Hi I am trying to install Magisk module but its failing. I am attaching the log, can you please check it.

Device: Pixel 2, 8.1 January update.

Thank You
[Google Pixel 2 Themes, Apps, and Mods] j to the 4n:
Mhh, very weird. You install via twrp or magisk manager?

You are the first reporting such issue.
[Google Pixel 2 Themes, Apps, and Mods] tiniwings:
Hi I tried to install other modules but getting same error, seems something issue with my magisk manager.

Sorry for the trouble.

Thank You
[Google Pixel 2 Themes, Apps, and Mods] j to the 4n:
Looks likean issue with busybox.

Try re-installing magisk, or install in twrp. Both come with their own busybox.

If nothing helps, you can try to download busybox installer from play store and install it manually.
[Google Pixel 2 Themes, Apps, and Mods] tiniwings:
Thanks for the tip.It worked I am able to install it, brought PRO version to use all features and support your development.

Edit2: Is there any option to ser long squeeze to open/call favorite contact??

Thank You.
[Google Pixel 2 Themes, Apps, and Mods] j to the 4n:
sure: shortcut-direct call
[Google Pixel 2 Themes, Apps, and Mods] tiniwings:
Thanks, I am able to add it.
[Google Pixel 2 Themes, Apps, and Mods] Ascorbyl:
Brightness states aren't working for me. No matter which one I select there is always 6 states to cycle through on the quick settings panel.
[Google Pixel 2 Themes, Apps, and Mods] j to the 4n:
will take a look and will post a quick fix here in a few minutes.
[Google Pixel 2 Themes, Apps, and Mods] j to the 4n:
Ahh, you mean quicksettings panel. That setting is currently just used for the squeeze action.

Gimme a few minutes to fix it.
[Google Pixel 2 Themes, Apps, and Mods] j to the 4n:
Here you go, attached the fixed version
[Google Pixel 2 Themes, Apps, and Mods] 水攸月羽:
Second this. Sometimes it turns on automatically at the moment I pick up the phone. Even if I set the long squeeze with no action, phone still sometimes vibration as I pick it up.

The squeeze sensitivity is not working properly with long squeeze either, you can sometimes trigger long squeeze when gripping the phone firmly in hand(phone vibrates only once and trigger the long squeeze action).

Edit:

Seems like I miss the v6 update, will report back if it works.
[Google Pixel 2 Themes, Apps, and Mods] j to the 4n:
Yeah, the v6 version should fix the issue with the long squeeze sensitivity. It took our testers and me several fa
[Google Pixel 2 Themes, Apps, and Mods] j to the 4n:
Yeah, the v6 version should fix the issue with the long squeeze sensitivity. It took our testers and me several days to fix that ***** (-:
[Google Pixel 2 Themes, Apps, and Mods] PuffDaddy_d:
I can confirm that v6 did not solve the issue for the regular pixel 2. I sent my logcat to you in the Hangouts.

Thanks for working so hard on this though!
[Google Pixel 2 Themes, Apps, and Mods] bakemcbride21:
Hey Jan. I did...Just installed everything yesterday. My current setup now is Squeeze: Google Assistant; Long Squeeze: Per App Action (mostly to skip to next track in Play Music which I use); Double Squeeze: Flashlight

Using the Flashlight on the long squeeze I was experiencing the random flashlight turn on after I had turned it off so I made it the double squeeze (which seems to have quelled the behavior)

Runnning v6 of the Magisk Module and v. 1.21.7 of Edge Sense Plus

Great to have you on this phone! Any chance of Sensing it up? LOL SO JK! :)
[Google Pixel 2 Themes, Apps, and Mods] j to the 4n:
A logcat of that behavior would be useful.
[Google Pixel 2 Themes, Apps, and Mods] bakemcbride21:
I'll switch it back after work/this weekend and get that to you!
[Google Pixel 2 Themes, Apps, and Mods] 水攸月羽:
Seems like the edge sense triggers a 2 second wakelock every time the phone got unlocked. I didn't squeeze it at all while the screen off. Is this normal?
[Google Pixel 2 Themes, Apps, and Mods] j to the 4n:
Currently it starts a wakelock even if you didn't squeeze long enough to cause a long squeeze.

But the squeeze on your side really actually happens.

I tried to solve an issue some had that the device didn't execute the flashlight when the device is in deep sleep.

I will push v8 to the magisk repo in a few, so the wakelock really just happens when long squeeze gets executed.

Gimme 10 minutes
[Google Pixel 2 Themes, Apps, and Mods] j to the 4n:
it is up now, sry, took a bit longer.
[Google Pixel 2 Themes, Apps, and Mods] danslelac:
Love this mod thank you! Is it possible to make it not take a screenshot if the screen is off? (I always found the default buttons annoying so it's great I can remap to a squeeze)
[Google Pixel 2 Themes, Apps, and Mods] j to the 4n:
There is a "screen off actions" section.

Set it to disable Or something else
[Google Pixel 2 Themes, Apps, and Mods] danslelac:
Ah thanks! I overlooked it since I didn't upgrade to premium yet.
[Google Pixel 2 Themes, Apps, and Mods] drmason:
Just found your app and liked it very much, directly bought premium :) But one question, since I'm on a rooted P2 & Magisk without TWRP, will the uninstallation of the module restore the stock apk? Since I update monthly by sideloading the OTA and patching the kernel via Magisk. I guess a sideload would fail with the replaced apk.
[Google Pixel 2 Themes, Apps, and Mods] j to the 4n:
much appreicated (-: - yeah, disabling module suffices
[Google Pixel 2 Themes, Apps, and Mods] j to the 4n:
Android P is supported now.

Magisk module got updated in the MagiskManager Repo. No new Edge Sense Plus Version required.
[Google Pixel 2 Themes, Apps, and Mods] psychomaniac82:
Love the app. But the pixel 2 is so fast in everything except edge sense with this app. No offense,I can imagine it isn't easy creating something like this. When I squeeze the phone my flashlight goes on but it takes a second or 2. Is this fixable, did I do something wrong in the settings or is there no other way?
[Google Pixel 2 Themes, Apps, and Mods] joetheshmo:
This hasn't been my experience at all
[Google Pixel 2 Themes, Apps, and Mods] j to the 4n:
you are the first reporting that.

It should be really close to instant.

The squeeze itself is not my doing.

My magisk module just forwards it to my app Edge Sense Plus and that handles the action you set up. There shouldnt be a huge delay like 2 seconds, maye some milliseconds.

The only delay that can happen, which would be 600ms per default and can be lowered to 300ms in the edge sense plus settings, is when you have set up any double squeeze action.

Once set every single squeeze you do, needs to wait 600ms (or the double squeeze interval you set) before it executes the action, because I need to wait if a second squeeze happens to execute a double squeeze action if wanted.

So if you use a double squeeze action, ore multiple, try lowering the double squeeze interval...or if you can't live with the delay, remove all double squezee actions.
[Google Pixel 2 Themes, Apps, and Mods] psychomaniac82:
Thanks! It was the double squeeze action that did it. I think it wasn't 2 seconds but the 600ms you said. It felt like 2 seconds thought ;)

Thanks for the help :)
[Google Pixel 2 Themes, Apps, and Mods] j to the 4n:
np, you are welcome
[Google Pixel 2 Themes, Apps, and Mods] dra1c:
edge sense not working since magisk 16.3

updated magisk, now edge sense does not recognize the installed magisk module. Pixel 2 running 8.1 Oreo
[Google Pixel 2 Themes, Apps, and Mods] joetheshmo:
I've also noticed this after updating to 16.3 today
[Google Pixel 2 Themes, Apps, and Mods] j to the 4n:
bummer.

[MENTION=8369284]topjohnwu Magisk Queries[/MENTION]
[Google Pixel 2 Themes, Apps, and Mods] dra1c:
16.3 removed a lot of old symlinks that shouldn't be used anymore.
[Google Pixel 2 Themes, Apps, and Mods] j to the 4n:
I just do:

private boolean isPixelModEnabled(){

String command = "[ -e /magisk/" + PIXEL_MOD_MAGISK_FOLDER + " ] && echo true || echo false";
String output = ShellInterface.getProcessOutput(command, false);

return Boolean.parseBoolean(output);

}

...that is broken on 16.3
[Google Pixel 2 Themes, Apps, and Mods] j to the 4n:
Can you guys try this: https://www.dropbox.com/s/lkgqmtefslhtbla/app-release.apk?dl=0

Update to magisk 16.3 before ofc.
[Google Pixel 2 Themes, Apps, and Mods] atlantix1:
Short feedback: long press actions work with screen on and off, short press actions do not. At least for me. Thanks anyway for the quick update.
[Google Pixel 2 Themes, Apps, and Mods] j to the 4n:
Was aware of that. flash in magisk manager: https://www.dropbox.com/s/vaelhipxswhj3mw/active_edge_system_mod.zip?dl=0

.
[Google Pixel 2 Themes, Apps, and Mods] atlantix1:
Great, everything is working again....
[Google Pixel 2 Themes, Apps, and Mods] j to the 4n:
Awesome, thanks for the quick feedback, highly appreciated.
[Google Pixel 2 Themes, Apps, and Mods] j to the 4n:
New Edge Sense Plus version is pushed to playstore (may take a while till available for all countries).

New Magisk Module pushed to MagiskManager Repo.
[Google Pixel 2 Themes, Apps, and Mods] sean222:
Is stock ROM required for this? I'm on AquariOS on my Pixel 2 and It's not working. Magisk add-on installed just fine from repo, Edge Sense app installed from play store and I gave it ALL permissions even those not necessary.

I really want to but your app! Thanks!
[Google Pixel 2 Themes, Apps, and Mods] j to the 4n:
Active Edge is broken AOSP roms unfortunately, nothing I can do about. The AOSP rom devs need to work on getting Active Edge working on custom roms.
[Google Pixel 2 Themes, Apps, and Mods] sean222:
Thanks! I might switch back to stock rooted just for this :)
[Google Pixel 2 Themes, Apps, and Mods] joetheshmo:
Yeah after using this app and module it's the one thing keeping me from moving to an aosp custom rom
[Google Pixel 2 Themes, Apps, and Mods] floepie:
Fantastic app, thanks!

Have you ever thought about adding "Night Light" as one of the actions?

Also, would 2 actions per input (squeeze) add unnecessary complexity? For example, DND *and* Night Light for a bedtime routine.
[Google Pixel 2 Themes, Apps, and Mods] j to the 4n:
what's night light?

For more complex tasks you should use the tasket plugin.

actions/conditions/combinations are nearly endless with it.
[Google Pixel 2 Themes, Apps, and Mods] floepie:
Night Light is a Pixel 2 feature (perhaps 8.1?) which attenuates the blue light making for a reddish screen, good for reading just before bed. Apparently blue light stimulates us into staying awake.

Night Light can be activated either with a toggle in the settings or via one of the tiles in the notification shade. It appears as a crescent moon icon.
[Google Pixel 2 Themes, Apps, and Mods] j to the 4n:
k, will take a look. should be possible to add.
[Google Pixel 2 Themes, Apps, and Mods] j to the 4n:
Can you try in a root adb shell if following command toggles the "Night Light".

Enable: adb shell settings put secure night_display_activated 1

Disable: adb shell settings put secure night_display_activated 0
[Google Pixel 2 Themes, Apps, and Mods] btreu1:
I've noticed that Active Edge is no longer allowing me to toggle NFC. My phone is a Pixel 2, not XL.
[Google Pixel 2 Themes, Apps, and Mods] j to the 4n:
Worked on Oreo I guess.

Toggling NFC with public API got removed by google a few years ago.

It workdc till P only with root and with reflection (hacky way)....seems with Android P they even broke that.

Probably because of security reasons.

Can you try:

"adb shell service call nfc 7" to disable

and "adb shell service call nfc 8" to enable
[Google Pixel 2 Themes, Apps, and Mods] BR2JZ:
Well I wasn't going to root my Pixel 2 XL simply because I didn't have the plethora of bloatware (Samsung) and pure android, but this mod single-handedly has convinced me otherwise. I will be purchasing a premium membership. Thanks!
[Google Pixel 2 Themes, Apps, and Mods] j to the 4n:
Hehe, thanks. Greatly appreciated (:
[Google Pixel 2 Themes, Apps, and Mods] floepie:
It works! :)
[Google Pixel 2 Themes, Apps, and Mods] j to the 4n:
Built it already in. Will be available in the next release
[Google Pixel 2 Themes, Apps, and Mods] j to the 4n:
Android P DP2

..seems not compatible.

Someone needs to pull me the SystemUIGoogle.apk
[Google Pixel 2 Themes, Apps, and Mods] j to the 4n:
DP2 users please join to test the new module: https://hangouts.google.com/group/rZC0gCQGisbV5KTx2

EDIT: successfully tested. Will update the magisk repo tonight.

FYI: Long squeeze is broken unfortunately. Google reafactored their code and moved some important stuff I need to recognize a long squeeze.

There is really nothing I can do about that unfortunately.
[Google Pixel 2 Themes, Apps, and Mods] vandyman:
I have the May update on my Pixel 2 and long squeeze is working okay for me.

I am using ElementX and 64 bit Magisk.

Not sure kernel changes something or not.
[Google Pixel 2 Themes, Apps, and Mods] joetheshmo:
Using O or P? I believe long squeeze is broken in P
[Google Pixel 2 Themes, Apps, and Mods] vandyman:
Sorry I over looked your post and missed the DP2.

Anyway I am using Oreo.
[Google Pixel 2 Themes, Apps, and Mods] j to the 4n:
If someone updates to DP3 please share the SystemUIGoogle.apk with me.
[Google Pixel 2 Themes, Apps, and Mods] stevexce:
There you go.
[Google Pixel 2 Themes, Apps, and Mods] j to the 4n:
Join the hangouts and help testing the new module: https://hangouts.google.com/group/VESCiDReVRerM5HI2
[Google Pixel 2 Themes, Apps, and Mods] j to the 4n:
V11 with DP3 support pushed to Magisk Repo
[Google Pixel 2 Themes, Apps, and Mods] goran98:
AFAICS, there's no way to have a specific touch gesture trigger a Tasker event? When going to Configuration -> Manage Gestures, it lets me add a gesture and select "Forward to Tasker (Event Plugin)", but when actually going to Tasker to add a profile and selecting the Edge Sense event, the configuration only lets me choose between the various squeeze gestures, not the custom touch gestures.

Pics for reference:

Within Edge Sense Plus

[IMG="Within Edge Sense Plus"]https://s33.postimg.cc/vxvhbvqmn/Screenshot_20180610-170547.png[/IMG]

Within Tasker

[IMG="Within Tasker"]https://s33.postimg.cc/n2un1c6z3/Screenshot_20180610-170526.png[/IMG]
[Google Pixel 2 Themes, Apps, and Mods] j to the 4n:
Select "Shortcut" as Action, then you can select Tasker and then its Tasker Profile/Task
[Google Pixel 2 Themes, Apps, and Mods] goran98:
That worked, thank you! Purchased Premium, keep up the good work. :o
[Google Pixel 2 Themes, Apps, and Mods] j to the 4n:
Thx, much appreciated (: