Question Repurposeing Google Assistant button. - Sony Xperia 1 III

Any suggestion on how to remap Google Assistant button on Sony Xperia 1 iii to take screenshots instead of having to press volume down button at same time as power button?

Assistant button remapper module (magisk/xposed)
I've created a very simple Magisk module to allow Xposed Edge to properly remap the Google Assistant button. You'll need Magisk and a Magisk-based Xposed implementation (I use LSPosed) for this to work. Xposed Edge is the only remapping tool...
forum.xda-developers.com
alternatively, just press the button and tell google assistant to take a screenshot.

I was able to remap my assistant button. I do not know if my previous uninstall of Google as well as the Google assistant App(s) had any bearing on the results...but I did use ADB to uninstall those things and it did disable the button, because when the phone was unlocked pressing the button did nothing at all. However, I did notice that when the phone was locked if I pressed the assistant button it would call up the login screen, so evidently it was still doing something!
At any rate this is how I did it:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Release 0.6.0 · ivaniskandar/shouko​Add Assistant Button Override support for Xperia 1 III and 10 III (Thanks to @malibcia, @TheNetAdmin and @andreidobrica for testing) Fix Assistant Button Override not working when Google app is uni...
github.com
I want to thank each and every person who provided all this information as well as for the technical know-how to make this work!!!
I just wanted to add that when I press the assistant button the app I chose (for now the settings app) opens immediately with no hesitation at all.

Folks: Sorry to disappoint but regrettably I'm not digitally savvy enough, yet, to understand your responses; but does this entail having to root my phone with the possibility of it being bricked at some point? In these Covid-19 times can't afford that, essentially, having to buy a new one.

ScorpioViking said:
Folks: Sorry to disappoint but regrettably I'm not digitally savvy enough, yet, to understand your responses; but does this entail having to root my phone with the possibility of it being bricked at some point? In these Covid-19 times can't afford that, essentially, having to buy a new one.
Click to expand...
Click to collapse
The post/link by jaseman is also discussed in the thread link I posted. xda has been deleting duplicate threads, and your thread maybe a duplicate of the thread I posted which is why I redirected you there.
Anyway, as recommended, you should use the app above, Shouko / XPERI+. I quote from their github readme:
Assistant Button Override
This feature is available on Xperia 5 II, Xperia 10 III, Xperia 1 III.
Launches an app or a shortcut when the Assistant button is pressed. You can also disable the button completely.
This feature needs READ_LOGS and WRITE_SECURE_SETTINGS permission granted manually with ADB or root. A guide to grant this permission is available in the app.
Click to expand...
Click to collapse
As mentioned, root is optional. You can use ADB if you don't want to root your phone. I didn't root mine, I used ADB and it works nicely when I tried it out. There are also instructions posted in the app on how to grant those ADB permissions, but if you need more help, feel free to ask.
Btw, If you use side sense as I do, you can also set a gesture to take a screenshot. I went back to this as I wanted to use the button for Google Assistant after all.

I have disabled my google button, i never use it.

kms108 said:
I have disabled my google button, i never use it.
Click to expand...
Click to collapse
I can't stand to have a button there and not use it for something. Since I use a Spigen rugged armor case I suppose I could just cut off the rubber part that covers the button and then it would basically not be there, but I prefer to assign it to a hidden, encrypted, password app that I have been using for years. I press the button and open the database with my fingerprint. Works great!

Hello,
Anyone knows why it is show me an error when I try to do the Read permissions?
"Error: no permission specified"

Related

[APP] - HomeCatcher redirect n button to standard launchers

I wanted to post this up here as some of you may not follow over in the DEV section.
OK, Based on feedback here sounds like this is working properly. I have uploaded a new version 2.1 this is mostly just code clean up on my end as well as a better icon etc. Sideload it, also make sure you have an Alternative Launcher installed ie. ADW, Launcher Pro, VTL.Launcher. When you hit the n button depending on your setup first push brings up little nook menu second push it should make it act like a normal home button. Some setups may operate differently. Just uninstall the app to return n button to normal nook operation.
Please Provide Feedback..... Constructive Feedback Please (ie. Logs, errors, etc.) in the DEV POST http://forum.xda-developers.com/showthread.php?t=1356206 all other feedback ie "thanks! or awesome!" post in this thread.
********** ROM Devs can feel free to INCLUDE it in any work no prior permission required. *********************
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
http://vegantab.gojimi.com/download/HomeCatcher2_1.apk
W00t
Sent from my Samsung Legendary 4G, a Universe UTES phone, running "two.three.five"
Works Great...Icon Size Change
This works great...the Go Launcher icons are a bit small. Any ideas if they can be changed? Also I want to create a folder but the application won't let me on the Tablet like it does my Android phone...
THANK YOU!
Wow, I was about to return my NT. I thought it had somehow managed to download the 1.4.1 update again even though I had OTA updates blocked. This got me back to my home screen but I am still unable to add folder widgets & I lose the other widgets as soon as I reboot my NT.
Will keep looking for a solution.
can someone provide clearer instructions? I want to have the first push bring me back to the home screen, push twice to bring up that B&N menu
how to install
So I guess I am an idiot.
I have the nt hidden settings app installed on my rooted 8g nt. When I click the "unknown sources hack" not much seems to happen short of it saying I have root permissions.
But, how do I actually install this apk? I have it downloaded, and could install it from the sdcard if there was a way to do that, but I can't figure that out.
When I view this thread on the device, the links are not actual links, just text. So, I really am unsure what to do.
Go Launcher is working great, I just want to be able to go to it when pressing the N button.
Thanks.
Redirect other buttons
Would it be possible to have an option to redirect other buttons, such as the browser and shop buttons? I use Firefox as my browser and Play for apps, so it would be nice to make use of the nook button menu.
Same old story..can't use Homecatcher to catch the N button clicks....
hexaguin said:
Would it be possible to have an option to redirect other buttons, such as the browser and shop buttons? I use Firefox as my browser and Play for apps, so it would be nice to make use of the nook button menu.
Click to expand...
Click to collapse
My kid must have done something...last month I was able to get it back right (Homecatcher successfully catching the clicks and redirecting to Go Launcher)...
This time, I can't make it work anyway....I have downloaded the Homecatcher apk and have installed it several times. Clicking the button brings me back to the default Nook Tablet Home screen....urggg!!
have also uninstalled Go Launcher and re-installed and have set it as the default launcher....whenever I reboot the Nook, Go Launcher starts up as expected...but as soon as I press the N button twice....I'm back into the Nook Home screen and then there's no way to go back to my default Go Launcher desktop...unless I reboot...
Is there anything that I can do to make it work again? Many thanks...
Gizmo
PS: I have a rooted 1.4.1 Nook Tablet and it has been fine like this ever since I bought it Nov 2012...after 1,5 years of usage..it happened...oh dear....
the download link leads to
The download link leads to gobbledygook please fix I like this apk

why android does not have hardware hold button?

Am I not comparing iphone and ipod to android
but I think the hardware hold button on the side is such a good idea?
is there app that does similar thing?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Yeah. It's called the lock screen.
ultimatebuster said:
Yeah. It's called the lock screen.
Click to expand...
Click to collapse
Yup, i dont understand whats so confusing haha.
Sent from my overclocked desire z via tapatalk app
I think they should have one button like that but the lock screen does kind of the same thing...
What kind of functionality would the hold button have that differs from the lock screen? They both act the same way, so why put an extra button on an android device that isn't going to be used?
valent|n0 said:
Am I not comparing iphone and ipod to android
but I think the hardware hold button on the side is such a good idea?
is there app that does similar thing?
Click to expand...
Click to collapse
Sent from my SPH-D710 using XDA
you can contact the service provider..........
What different is when i watch youtube and accidentally press the screen or the button the video still plays
So, if I have correctly understood your wish, you would like the power button to stop running applications when the screen is locked or at least to stop YouTube and music playing.
Though I am still making the first steps into android's knowledge, I think the only way would be rewriting the single apps in order to tell them to stop working (killed? Frozen?) when the screen is locked. I suppose that's their behavior in ios. On the other side, it would be a no way out remapping the power button so that it could close all running apps or some of them, because a bunch of Google code should be rewritten to modify its standard behavior. Another solution could be remapping a physical key for it to launch a single software (still to be written) whose aim should be to kill o freeze the above said applications.
IMHO it is so simple tapping on the running app and pressing the power button that no developer will ever spend a lot of time to build a solution like the ones I have just spoken about and, though I see it's a matter of taste, I think it would be better accepting android as it is
A lot of programs already has that. I think MX player has a button that locks out the control
Oh yes, it is true. I had never noticed that feature!
Do MX player lock works on all apps or only when you have mx player running
how about when you browse and watch Flash movie on flash website
I am looking for ways to prevent accidental button press ..
pressing the power button turns off the screen as well.
It's not on all the apps. But some do, like MX. Maybe this stuff should go on the android design site
you mean each app developer has to keep this in mind?
maybe I can suggest to youtube, skyfire and dolphin browser app to add the feature
other reading app .. where you can spend a long time on one single page.
I think YouTube kindaa has this. Where I think if you don't see the controls any more, you have to tap the screen once to activate the controls before you can use them.

Fully customise OPX'S capacitive buttons

Rooting and custom kernels has really opened up how much I can push my phones battery life and this hasn't been helped more so than with greenify.
However, when lots of apps start and I want to lock my device, unless I use the hibernate and lock screen shortcut, the battery drain while in standby is present.
Currently, in the OOS buttons section I have my long press or home button set to lock my phone but what I'm really after is for it to lock+hibernate at the same time. Over the past few days I've tried as many different ways as I can and was most hopeful that gravitybox would do the trick but even if I set my buttons in OOS to none, it appears as though this overrides it or gravitybox is not recognising the capacitive buttons on the device
I appreciate any help on any other ways to go about doing this.
Thanks.
I haven't tried this, but what about Tasker? Should be as easy as setting up a profile which launches/activates the hibernation app/widget then use the Secure Settings plugin to lock the screen. You could then assign it to a button in your notification area or activate it when you turn the display off. Just an idea.
dgrasley said:
I haven't tried this, but what about Tasker? Should be as easy as setting up a profile which launches/activates the hibernation app/widget then use the Secure Settings plugin to lock the screen. You could then assign it to a button in your notification area or activate it when you turn the display off. Just an idea.
Click to expand...
Click to collapse
Hmm, didn't think about that, I'll give it a go. Cheers.
Heres the solution!
Go to button setting
Keep the long press (home) to search assistant.
And if greenify is installed with xposed , then long press the home button and a pop up will show u to choose ,
Hibernate+sleep ,
Tap on it and tap on always,
And u r ready to hibernate and sleep the device by long pressing ur home button.
It works on cm12.1 and i m using it , but i believe it will work on every rom!
?
Sactgr said:
Go to button setting
Keep the long press (home) to search assistant.
And if greenify is installed with xposed , then long press the home button and a pop up will show u to choose ,
Hibernate+sleep ,
Tap on it and tap on always,
And u r ready to hibernate and sleep the device by long pressing ur home button.
It works on cm12.1 and i m using it , but i believe it will work on every rom!
?
Click to expand...
Click to collapse
That seems like a great idea! Weirdly though I just tried it and for some reason the screen is still turning off with the long press... Even after a reboot. Odd right?
No idea what's conflicting with it. However your idea seems to work as I managed to the same with the recents capacitive button.
Thanks though, hopefully I can figure it out!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
EDIT: Found the culprit, gravitybox. Disabled it and set the button, re-enabled it and everything's fine now. Thanks a lot [emoji108]

Remap Assistant Button

Real shame that dev support or really much users for this phone is so slim. It's such a good phone.
Anyway, I think it's another real shame that it's extremely difficult for me to find a way to remap this dedicated Assistant button on this phone. There's so many other ways in which to summon GA that I don't need that button to do it. I can be used for so much else.
Samsung folks have that awesome dev to remap their Bixby button. I wish someone could do the same here. There's clearly no root method for the LG V60 so there has to be another way to do this. Something that doesn't involve the skills of an Android developer.
roaduardo said:
Real shame that dev support or really much users for this phone is so slim. It's such a good phone.
Anyway, I think it's another real shame that it's extremely difficult for me to find a way to remap this dedicated Assistant button on this phone. There's so many other ways in which to summon GA that I don't need that button to do it. I can be used for so much else.
Samsung folks have that awesome dev to remap their Bixby button. I wish someone could do the same here. There's clearly no root method for the LG V60 so there has to be another way to do this. Something that doesn't involve the skills of an Android developer.
Click to expand...
Click to collapse
There is an app to do that, I used Button Mapper Pro: https://play.google.com/store/apps/details?id=flar2.homebutton
russnash said:
There is an app to do that, I used Button Mapper Pro: https://play.google.com/store/apps/details?id=flar2.homebutton
Click to expand...
Click to collapse
I tried using that one but I could never get it to work. I downloaded that program the app asked me to download. Phone connected to the PC but the program kept telling me the phone wasn't connected. Had USB Debugging on. Dunno what the issue was.
I just have mine turned off. A waste of space if you ask me.
roaduardo said:
I tried using that one but I could never get it to work. I downloaded that program the app asked me to download. Phone connected to the PC but the program kept telling me the phone wasn't connected. Had USB Debugging on. Dunno what the issue was.
Click to expand...
Click to collapse
I installed this and got it working great. You might want to check to that when your phone is connected to your PC that you have the USB debugging set to "USB charging" and that you authorize the connection on your phone when running the app on the PC.
hwsenter said:
I installed this and got it working great. You might want to check to that when your phone is connected to your PC that you have the USB debugging set to "USB charging" and that you authorize the connection on your phone when running the app on the PC.
Click to expand...
Click to collapse
You son of a *****! I love you! Hahahaha! That was the mistake I made, the debugging set to charging. I had it set to file transfer. UGH! Small mistakes. So annoying. Thanks! Now this extra button isn't useless anymore. Yeah, I have to use that program to unlock the features after every reboot but I rarely reboot anyway.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Thank you - it worked on my phone!
This was a great find - thank you! I was able to get it to work and remap the Google Assistant button but did need to install the LG drivers (available from LG's website):good:
Works great! I remapped it to Wide Mode for LG through actions from Nova launcher. Perfect!
Verstuurd vanaf mijn LM-G850 met Tapatalk
I've paid for the pro version, did the PC thing successfully but it doesn't work at all. It is enabled in the accessibility menu. Anyone know what I'm doing wrong?
roaduardo said:
You son of a *****! I love you! Hahahaha! That was the mistake I made, the debugging set to charging. I had it set to file transfer. UGH! Small mistakes. So annoying. Thanks! Now this extra button isn't useless anymore. Yeah, I have to use that program to unlock the features after every reboot but I rarely reboot anyway.
Click to expand...
Click to collapse
AWESOME ! , i was so close to giving up my search them found this conversation Cheers!

Remap the Google Assistant Button?

A separate dedicated button shouldnt be locked down for only Google Assistant.
Any way to remap it?
+1 Anyone?
I'd rather map this to Dialler which I'd use far more widely compared to any other app.
same here
ShaQ Blogs said:
+1 Anyone?
I'd rather map this to Dialler which I'd use far more widely compared to any other app.
Click to expand...
Click to collapse
Same here, did anyone fine any way ?
Not remappable yet. May be they'll change it via future updates.. highly unlikely imo.
So, here's the thing. I used an app called "Cometin" to try and remap the button. It didn't work (although, click and hold home button to summon assistant was successfully remapped) and when I got in toch with the developer, I was told,
"This appears to be difficult as the OS is calling google assistant directly."
If that's the case, I highly doubt it is possible to remap the button without root. I don't believe motorola will provide and update to allow remapping.
Disable Google Assistant Button
I hate this button. I wish manufacturers would stop shoving non customizable hardware bundled with unwanted software combo on to our devices. I guess this is the compromise that Motorola has made, in place of the usual plethora of software bloatware.
Is there a way to even disable this button? I read elsewhere that setting the 'default assistant app' to 'None', disables this button (instead of remapping it). Has anyone tried this?
ShubhamSinha said:
So, here's the thing. I used an app called "Cometin" to try and remap the button. It didn't work (although, click and hold home button to summon assistant was successfully remapped) and when I got in toch with the developer, I was told,
"This appears to be difficult as the OS is calling google assistant directly."
If that's the case, I highly doubt it is possible to remap the button without root. I don't believe motorola will provide and update to allow remapping.
Click to expand...
Click to collapse
i used this app and it seems to work for both button and home hold
SonuPanchal said:
i used this app and it seems to work for both button and home hold
Click to expand...
Click to collapse
Whoa, you mean you tried it on the one fusion+ and it worked? ? I guess I'll give it another go in that case
---------- Post added at 05:59 PM ---------- Previous post was at 05:49 PM ----------
Well, I tried it again, and it still isn't working for me for the dedicated button. Can you confirm which version of the app & device software version you're using?
I got the same issue.
I'm guessing I'll end up sending it to a repair shop to remove the button or, Jesus, just glue it unpressed.
Cyanoacrylate should work, I'll let you know if I decide to go for it.
Whoa! No need for that! So I'm rooted and first thing I did was uninstall Google Assistant which makes it so pressing the button doesn't do anything. Also, I found the file that controls what the button does. It's "/system/usr/keylayout/gpio-keys.kl" the only problem is the stupid kernel is write protected so I can't actually modify the file...
Honestly I really hate this extra button and since its ther I'd rather remap it as a firing button for wither pubg or cod. Just hope these morons give the option to remap in a future update
So yeah, I have a working solution without having to root your device.
All you need to do is to install Tasker, either buy it or rip it, I don't really care.
After that, follow some easy steps:
0. Create a task containing two steps: switching to home screen (you'll need that to prevent endless cycle of entering your fav application again and again when you swipe/press back) and then launching your fav app.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
1. Then create a profile for Google app on the Profiles tab (not the Assistant app!) and assign your newly created task to it.
2. Save everything and enjoy.
The only little annoyances here are that you'll have to sacrifice the entire Google app in favor of another app, and also that annoying google beep at the launch.
Happy hacking, dudes and dudettes.
reactorcoremeltdown said:
So yeah, I have a working solution without having to root your device.
All you need to do is to install Tasker, either buy it or rip it, I don't really care.
After that, follow some easy steps:
0. Create a task containing two steps: switching to home screen (you'll need that to prevent endless cycle of entering your fav application again and again when you swipe/press back) and then launching your fav app.
View attachment 5378233
View attachment 5378235
1. Then create a profile for Google app on the Profiles tab (not the Assistant app!) and assign your newly created task to it.
View attachment 5378239
2. Save everything and enjoy.
The only little annoyances here are that you'll have to sacrifice the entire Google app in favor of another app, and also that annoying google beep at the launch.
Happy hacking, dudes and dudettes.
Click to expand...
Click to collapse
I just disabled google assistant in Google settings and then I disabled the Google app in phone's setting and now when I press google assistant dedicated button nothing happens ( GOD THANKS )
my phone is Motorola g 5g plus
I think my solution is much easier
Vicmanarg said:
I got the same issue.
I'm guessing I'll end up sending it to a repair shop to remove the button or, Jesus, just glue it unpressed.
Cyanoacrylate should work, I'll let you know if I decide to go for it.
Click to expand...
Click to collapse
reactorcoremeltdown said:
So yeah, I have a working solution without having to root your device.
All you need to do is to install Tasker, either buy it or rip it, I don't really care.
After that, follow some easy steps:
0. Create a task containing two steps: switching to home screen (you'll need that to prevent endless cycle of entering your fav application again and again when you swipe/press back) and then launching your fav app.
View attachment 5378233
View attachment 5378235
1. Then create a profile for Google app on the Profiles tab (not the Assistant app!) and assign your newly created task to it.
View attachment 5378239
2. Save everything and enjoy.
The only little annoyances here are that you'll have to sacrifice the entire Google app in favor of another app, and also that annoying google beep at the launch.
Happy hacking, dudes and dudettes.
Click to expand...
Click to collapse
I disabled google assistant in Google settings>assistant>general and also I disabled the Google app in phone's setting and now when I press google assistant dedicated button nothing happens ( GOD THANKS )
my phone is Motorola g 5g plus

Categories

Resources