immersive mode - active edge (and remapping) still works on lockscreen

tardis_42

Senior Member
Dec 9, 2014
144
84
48
Thought this might help some people get a little extra use out of a Pixel 2 feature: I'm using Custom Quick Settings to hide the nav bar and of course active edge stopped working, but I noticed it still functioned on the lockscreen. Squeeze-launching the assistant from the lockscreen is pointless to me because I still have to fingerprint- or pattern-unlock my phone before it will tell me anything, but I installed Button Mapper and although there's some warning in its description about not working while the phone is off, it does actually detect squeezes on both the ambient display screen and lockscreen.

I now have squeeze set up to toggle flashlight, since that's something I almost always need to do when the phone is locked and toggling it through quick settings is kind of annoying. This way I don't even have to look at the screen. But the point of this post is, if there's any task you want to be able to trigger while your phone is off, you can use squeeze to do that even if you have full-time immersive mode on.
 

sharkie405

Senior Member
Dec 22, 2008
2,752
1,870
193
Earth
I get permission denied when trying to type the script on my PC using ADB. How did you get around that?

Sent from my Pixel 2 XL using XDA Labs
 

sharkie405

Senior Member
Dec 22, 2008
2,752
1,870
193
Earth
What script and where? Please!!!

Sent from my Pixel 2 XL using Tapatalk
"Script" was the wrong word to use. When I toggle the "Customize" button to attempt to use Active Edge in the app Button Mapper, it tells me to use my PC and adb to execute this command:
Code:
adb shell sh /data/data/ flar2.homebutton/keyevent.sh
When I attempt to do so, I get "Permission Denied."
I've used adb to allow the Custom Navigation Bar app to make changes and it works just fine with that app.
 

bryantjopplin

Senior Member
Sep 15, 2010
1,635
722
0
"Script" was the wrong word to use. When I toggle the "Customize" button to attempt to use Active Edge in the app Button Mapper, it tells me to use my PC and adb to execute this command:
Code:
adb shell sh /data/data/ flar2.homebutton/keyevent.sh
When I attempt to do so, I get "Permission Denied."
I've used adb to allow the Custom Navigation Bar app to make changes and it works just fine with that app.
Adb shell only works with root right?

Sent from my Nexus 6 using Tapatalk

EDIT: NEVERMIND I found it.

---------- Post added at 09:41 PM ---------- Previous post was at 09:38 PM ----------

Shell doesnt require root, i believe /data does tho

"Script" was the wrong word to use. When I toggle the "Customize" button to attempt to use Active Edge in the app Button Mapper, it tells me to use my PC and adb to execute this command:
Code:
adb shell sh /data/data/ flar2.homebutton/keyevent.sh
When I attempt to do so, I get "Permission Denied."
I've used adb to allow the Custom Navigation Bar app to make changes and it works just fine with that app.
 
Last edited:

sharkie405

Senior Member
Dec 22, 2008
2,752
1,870
193
Earth
That's what I figured. Which brings me back to how the OP managed to get the Button Mapper app working with active Edge on a not-yet-rootable Pixel 2 XL...?

Sent from my Pixel 2 XL using XDA Labs
 

KHANrad_SIN

Senior Member
Jul 4, 2014
225
42
48
Nice find, I can confirm this works. I have mine mapped to turn on the flashlight also, much more useful for me. Never really use it to activate google, especially since with the new "Hey google" hotword its much more natural to say that now.
 

sharkie405

Senior Member
Dec 22, 2008
2,752
1,870
193
Earth
Nice find, I can confirm this works. I have mine mapped to turn on the flashlight also, much more useful for me. Never really use it to activate google, especially since with the new "Hey google" hotword its much more natural to say that now.
How did you get the ADB command to work on your PC? Did it just work for you? See the last two posts above.

Sent from my Pixel 2 XL using XDA Labs
 

sharkie405

Senior Member
Dec 22, 2008
2,752
1,870
193
Earth
Okay, I think I figured it out. I went into application settings and went into the button mapper permissions and gave it permission for all three. I don't see why that would have to be the case, but after doing that I tried putting in the ADB command again and it worked. Now I have active Edge to turn on and off the flashlight. Sweet!

Sent from my Pixel 2 XL using XDA Labs
 

bryantjopplin

Senior Member
Sep 15, 2010
1,635
722
0
Okay, I think I figured it out. I went into application settings and went into the button mapper permissions and gave it permission for all three. I don't see why that would have to be the case, but after doing that I tried putting in the ADB command again and it worked. Now I have active Edge to turn on and off the flashlight. Sweet!

Sent from my Pixel 2 XL using XDA Labs
Didn't have permission to access, makes since

Sent from my Nexus 6 using Tapatalk
 

JeffBea

Senior Member
Oct 11, 2010
672
143
0
51
Delaware, OH
I'm getting permission denied to when I run The "adb shell sh /data/data/ flar2.homebutton/keyevent.sh" command in ADB. I also went to App Permissions and check all three items: Camera, Phone and Storage. Also went to the Advanced section and allowed App to modify system settings. Still doesn't work. Any help would be appreciated.
 
Last edited:

enzeem2010

Senior Member
Apr 22, 2012
94
16
28
I'm getting permission denied to when I run The "adb shell sh /data/data/ flar2.homebutton/keyevent.sh" command in ADB. I also went to App Permissions and check all three items: Camera, Phone and Storage. Also went to the Advanced section and allowed App to modify system settings. Still doesn't work. Any help would be appreciated.
Remove the spaces between data/flar2 to resolve the permissions denied message. The rest: I can't get it to work either.
 
  • Like
Reactions: JeffBea

enzeem2010

Senior Member
Apr 22, 2012
94
16
28
Ok, figured it out too. I'm averse to allowing Google to follow my everything, so I hesitated at the location tracking permissions needed for Google Assistant, but once I followed through, it finally worked.