Question How to remap Assistant button? - Sony Xperia 10 III

Can it be so to remap assistant buton on 10 iii like this?
Remap the Google Assistant button on the Sony Xperia 5 II with this app
You can reconfigure the Google Assistant button on the Sony Xperia 5 II to launch any other app or perform any action using this app.
www.xda-developers.com

in adb we write these commands and install the application shouko-0.6.0
adb shell pm grant xyz.ivaniskandar.shouko android.permission.READ_LOGS
adb shell pm grant xyz.ivaniskandar.shouko android.permission.WRITE_SECURE_SETTINGS
You will need to freeze or remove Google Assistant, otherwise, when you click, a notification will pop up about reassigning the button to Google Assistant

liwetlt said:
in adb we write these commands and install the application shouko-0.6.0
adb shell pm grant xyz.ivaniskandar.shouko android.permission.READ_LOGS
adb shell pm grant xyz.ivaniskandar.shouko android.permission.WRITE_SECURE_SETTINGS
You will need to freeze or remove Google Assistant, otherwise, when you click, a notification will pop up about reassigning the button to Google Assistant
Click to expand...
Click to collapse
Direct link to the XPERI+ latest version - https://github.com/ivaniskandar/shouko/releases/download/0.7.1/shouko-0.7.1.apk

liwetlt said:
in adb we write these commands and install the application shouko-0.6.0
adb shell pm grant xyz.ivaniskandar.shouko android.permission.READ_LOGS
adb shell pm grant xyz.ivaniskandar.shouko android.permission.WRITE_SECURE_SETTINGS
You will need to freeze or remove Google Assistant, otherwise, when you click, a notification will pop up about reassigning the button to Google Assistant
Click to expand...
Click to collapse
ksuuk said:
Direct link to the XPERI+ latest version - https://github.com/ivaniskandar/shouko/releases/download/0.7.1/shouko-0.7.1.apk
Click to expand...
Click to collapse
Danke! It work with magisk, app ask permission and it work!

Another useful app for this is Physical Button Master Control. This one is an Xposed module so it will need LSPosed or an equivalent Xposed framework. It's more advanced than XPERI+, it can handle all kinds of button patterns (long press, double/triple press etc.), it can do conditions (eg. only react when screen is on), and confirmations (toast, vibration, sound, led).
Unfortunately the latest version 4.3 of PBMC crashes when you try to add external actions (like opening apps, shortcuts, tasker tasks) otherwise it could completely replace XPERI+ for me.
It's still good if you need it to do one of the predefined actions (media controls, flashlight, previous app switch, kill app, wake up the screen or emit custom keys).
I'm using PBMC and XPERI+ together right now until PBMC fixes the external actions. I have PBMC handling the assistant button when screen is off and locked with action "turn screen on", so I can use it to quickly check my lockscreen without unlocking the phone. And I'm using XPERI+ to trigger a Tasker task that takes a screenshot. Since PBMC only reacts when screen is off (due to the condition I specified) and it doesn't let system or XPERI+ get the button click when it does, they don't overlap.
This is better than using XPERI+ alone because pressing the button when screen is off+locked will activate the unlock and then trigger the XPERI+ action (screenshot) and it's impossible to handle this in Tasker because it only receives control after the screen is unlocked. So basically I couldn't check out my lockscreen because the PIN keyboard came up, and I also ended up with a lot of screenshots of the launcher. Having PBMC handle this particular case (screen off+locked) was the solution.

liwetlt said:
in adb we write these commands and install the application shouko-0.6.0
adb shell pm grant xyz.ivaniskandar.shouko android.permission.READ_LOGS
adb shell pm grant xyz.ivaniskandar.shouko android.permission.WRITE_SECURE_SETTINGS
You will need to freeze or remove Google Assistant, otherwise, when you click, a notification will pop up about reassigning the button to Google Assistant
Click to expand...
Click to collapse
Thank you for the help, but it didn't work for me (Xperia 10III) so I figured out must be doing something wrong...
The phone is not rooted, connected via ADB (FWIW, always use elevated privileges when starting ADB server, you live and learn!) and connection is ok.
I've then uninstalled XPERI+ and reinstalled it (v. 0.7.1) via ADB Shell, and VOILA'! It works.
Hope this helps someone else in need.
Thanks for your hard work guys

Related

[Q] Tasker profile for Lecture Notes

I'd like to be able to use the S-pen button to activate some function when I'm using lecture notes, but I want air command to still appear when I press the button outside of the lecture notes app.
Is there a way to use Tasker to disable the air command setting when using lecture notes, but to re-enable it when lecture notes is not being used?
codeman0624 said:
I'd like to be able to use the S-pen button to activate some function when I'm using lecture notes, but I want air command to still appear when I press the button outside of the lecture notes app.
Is there a way to use Tasker to disable the air command setting when using lecture notes, but to re-enable it when lecture notes is not being used?
Click to expand...
Click to collapse
I was looking into this myself recently. I didn't come across anything for tasker, GMD S pen control, etc...granted, I mean I didn't come across anything before the time being invested outweighed any convenience from it.
What I ended up doing was just downloading this app, which brings up the air command menu when launched:
https://play.google.com/store/apps/details?id=com.gmd.aircommand
Turn off the built in Air Gesture hover click option in settings.
Then, there are two farily simple options:
1.) If you have GMD S pen control (requires root), you can create a custom s pen action (like double tap the top right corner of the screen) to bring up the menu. (https://play.google.com/store/apps/details?id=com.gmd.spencontrol)
2.) Get something like sidebar plus, and have the shortcut or widget or whatever it is for the air command app you downloaded as a selection in the sidebar. So whatever screen your on, pull out the sidebar and press that icon, and theres the wheel.
https://play.google.com/store/apps/details?id=com.rootuninstaller.sidebar
Neither is perfect, and there probably is a seemless way to do it. But honestly, how much do you use the wheel that pulling out a sidebar to select it is going to add up to too much wasted time?
Trying to figure this out for you now
---------- Post added at 10:30 PM ---------- Previous post was at 10:20 PM ----------
I think you could turn the relevant setting on and off From the command line (which could be automated from Tasker) It looks like it would be a hassle to figure out though

Fingerprint-only unlock working if using lock widget with root (updated for Nougat)

--ORIGINAL POST AND TITLE--
Title: Fingerprint only unlock not working if using lock widget
I'm using the app called Power Toggles, and when I lock my phone with the toggle, it will ask for my password pattern when I try to unlock with my fingerprint. If I use the power button to lock, the fingerprint unlock works fine.
--UPDATE (Marshmallow)--
Since I rooted, I can unlock my phone using my fingerprint when locking it using the below methods. Interested to hear from others, and I can update this list. Looks like a few on Nexus 6P have had issues, but let me know if you've tested on 5x, 6P, or both.
To be added to the list, you have to be able to lock the screen using the method listed. It has to be a true lock, not a short dimming of the screen like a few widgets do.
Phone state when tested: Stock OS, systemless root, custom kernel (Franco).
- Nova launcher gestures (e.g. double-tap to turn screen off) - 5x
- Power Toggles app - 5x
--UPDATE (Nougat)--
Phone state is stock OS, systemless root, Franco kernel.
Working:
- Nova launcher gestures (e.g. double-tap to turn screen off)
- Tasker "keyevent 26" command. Using this with a custom Power Toggles tile works, but there is a noticeable delay between pushing the button and the screen turning off. The delay varies.
Not working:
- Power Toggles. The native screen-off function requires a pattern/PIN/etc. to unlock. There is a feature that allows you to create a custom tile that links to Nova's double-tap function, but there's a bug that causes the app to crash when you try adding that button.
Yup, just tested and getting the same result.
Yep noticed that within the first hour when using Screen Off app.. I used a double tap Nova gesture to trigger the app and turn the screen off but using the fingerprint reader to unlock, it asks for the PIN/Pattern anyway
very annoying
Evidently something in Android causes those apps to "force" it to the lock screen. On prior devices without the finger print scanner, using those apps would always trump any sort of screen lock timer (like if you have it set to go off, but not lock until 5 minutes later, so you would do a regular swipe to unlock).
I don't have mine yet but know that will annoy me as I use that all the time.
I've tried a variety of screen off apps and they all do the same thing you are experiencing. Looks like it will take an app update from someone who has access to one of these phones.
Is it interfering with the fingerprint auth for Android Pay? If not, it may be just what I'm looking for. I want to use Pay, but I don't want my finger to unlock the phone, and I can't seem to find any way to limit what Imprint controls.
Doesn't interfere with Android Pay.
If rooted... Setup a Tasker task that uses the Secure Settings plugin to run command 'input keyevent 26' as root. Create a widget pointing to the task. Fingerprint/Imprint then unlocks phone as expected.
Thanks go to user nsg96:
http://forum.xda-developers.com/showthread.php?p=63465531
Sent from my Nexus 5X using Tapatalk
scottfreeze said:
If rooted... Setup a Tasker task that uses the Secure Settings plugin to run command 'input keyevent 26' as root. Create a widget pointing to the task. Fingerprint/Imprint then unlocks phone as expected.
Click to expand...
Click to collapse
I tried this but it doesn't lock the screen, it just turns it off (at least on my Nexus 6P).
dbareis said:
I tried this but it doesn't lock the screen, it just turns it off (at least on my Nexus 6P).
Click to expand...
Click to collapse
Do you have "Power button instantly locks" enabled in your security settings? "Input keyevent 26" is functionally identical to pressing the power button.
Sent from my Nexus 5X using Tapatalk
scottfreeze said:
Do you have "Power button instantly locks" enabled in your security settings? "Input keyevent 26" is functionally identical to pressing the power button.
Sent from my Nexus 5X using Tapatalk
Click to expand...
Click to collapse
You are probably correct, yes I do have that set but it appears that smart lock overrides that ?
Sent from my Nexus 6P using Tapatalk
This has been my experience as well and it sucks because I was looking forward to never having to use the power button or put in a code with the n5x. I am hoping for this to be fixed somehow.
this one works (experimental) https://play.google.com/store/apps/details?id=com.iglint.android.screenlockpro&hl=en
it is paid one
MODs please delete. Posted in wrong forum.
Thank you
Hi,
There's a android bug tracker report for this here: - star if this is affecting you.
https://code.google.com/p/android/issues/detail?id=191955
---------- Post added at 06:23 AM ---------- Previous post was at 06:12 AM ----------
kamerunka said:
this one works (experimental) https://play.google.com/store/apps/details?id=com.iglint.android.screenlockpro&hl=en
it is paid one
Click to expand...
Click to collapse
Works well - thanks for the spot.
An app called Gravity Screen works, can be set to screen off and lock when placed faced up on a table or a double Tap from home screen to activate short cut "persistent off"
Smart Lock Support in more settings in Gravity Lock needs to be enabled.
I suspected do not using unstock fingerprint app
Sent from my SHIELD Tablet K1 using Tapatalk
Guys try this attached apk. This was made with the AutoInput Tasker plugin to emulate the power button press.
steelorange said:
Guys try this attached apk. This was made with the AutoInput Tasker plugin to emulate the power button press.
Click to expand...
Click to collapse
Does require root ?
UnderXP said:
Does require root ?
Click to expand...
Click to collapse
yes it does

How to hide gesture bar while still being able to swipe between apps (no root).

If you hide the gesture bar, it disables the ability to swipe between apps. But with a single ADB command to hide the bar and STILL be able to swipe between apps:
./adb shell wm overscan 0,0,0,-39
To revert the change, use
./adb shell wm overscan 0,0,0,0
What this does is pushes the bar down off the screen, effectively permanently hiding it (until you revert it)—but the functionality of the bar remains intact as if it were still there.
*Note: this has the effect of "pulling" the UI elements down by the same amount which would normally appear on the bottom of the screen, e.g. the hide keyboard button, switch keyboard button, lockscreen shortcuts, etc. They are all still visible and functional, just shifted down by 39 pixels.
You're welcome!!
For total newbs, here's a quick rundown of how to set up ADB for your device. Trust me it's much simpler than it looks:
PART ONE—Getting ADB on your computer
1. Download the Platform Tools from Google.
2. Unzip it.
3. Start a command prompt or terminal from the new platform-tools folder that step 2 created.
- On Windows, this means opening the platform-tools folder and then holding shift and right clicking and opening a powershell (or command prompt or whatever option you get)
- On Mac, this means open the terminal (cmd+space > terminal), type cd and then drag the platform tools folder onto the terminal and then press enter (basically, cd changes the directory of the terminal, and dragging the platform-tools folder tells it that's where you cd'ing to), then press enter. (cd > drag folder > press enter)
4. That's it. You're now able to do ./adb and ./fastboot commands. If any posts online tell you to type adb, use a ./ in front of the adb. Same with fastboot. There's a separate process to avoid having to type the ./ but it's frankly more work than it's worth IMO.
PART 2—Making your phone allow ADB
1. Go to settings > about phone > software information
2. Tap "Build number" 7 times
3. Go back one page, at the top search "usb debugging" and enable the option
4. Plug your device into your computer and go past your lockscreen
5. In the terminal in platform-tools, type
./adb devices
6. This will trigger a popup on your phone asking you to allow. Accept this popup.
7. Now you can run ./adb commands for your specific device.
Hmm, I don't have the gesture bar at all (it's one of the first things i disabled) and i didn't need adb to do it. Are you using the Android 10 gestures or Samsung?
I don't know also if you mean the gesture bar from Samsung that takes a little line of space in every app. But it is still possible to switch between apps, I wrote this to another guy with that kind of problem:
"It's still possible to swipe between apps but it's more difficult because you don't have the line for orientation. You have to slide up very gently and then left or right."
Sure with the bar it is really flawless, but still possible without. Just needs to be pushed little bit up and then swiping apps is possible.
Gesendet von meinem SM-N975F mit Tapatalk
freeza said:
Hmm, I don't have the gesture bar at all (it's one of the first things i disabled) and i didn't need adb to do it. Are you using the Android 10 gestures or Samsung?
Click to expand...
Click to collapse
TheFerhatKing said:
I don't know also if you mean the gesture bar from Samsung that takes a little line of space in every app. But it is still possible to switch between apps, I wrote this to another guy with that kind of problem:
"It's still possible to swipe between apps but it's more difficult because you don't have the line for orientation. You have to slide up very gently and then left or right."
Sure with the bar it is really flawless, but still possible without. Just needs to be pushed little bit up and then swiping apps is possible.
Gesendet von meinem SM-N975F mit Tapatalk
Click to expand...
Click to collapse
Sorry I should have been more clear. With this command, you can still swipe left and right to switch between apps. The toggle in settings forces you to do a new arching swipe gesture that's pretty bad IMO (and I assume in everyone's opinion, which is why it's not the way iOS does it or any of the Android 10 phones that are copying the iOS gesture).
Hi, tried this but after executing the command the nav bar move but immediately back to its original position.
I use edge gestures app, I find it very useful, you can asign a variety of gesture actions at left, right and bottom, has the switch apps option, it also provides a "pie" control at every edge, give it a try
https://play.google.com/store/apps/details?id=com.ss.edgegestures
Display. Navigation bar, full screen gestures + gesture hints. Then swipe on the bottom to move between apps.
This app does the best job for gestures on a samsung device
https://play.google.com/store/apps/details?id=com.samsung.android.sidegesturepad
Don't have the gesture bar, and swiping between apps works just fine...
I don't understand this, my gesture swipe works perfectly fine just hiding navigation bar.
finshan said:
If you hide the gesture bar, it disables the ability to swipe between apps. But with a single ADB command to hide the bar and STILL be able to swipe between apps:
./adb shell wm overscan 0,0,0,-39
To revert the change, use
./adb shell wm overscan 0,0,0,0
What this does is pushes the bar down off the screen, effectively permanently hiding it (until you revert it)—but the functionality of the bar remains intact as if it were still there.
*Note: this has the effect of "pulling" the UI elements down by the same amount which would normally appear on the bottom of the screen, e.g. the hide keyboard button, switch keyboard button, lockscreen shortcuts, etc. They are all still visible and functional, just shifted down by 39 pixels.
You're welcome!!
Click to expand...
Click to collapse
You can also use good luck and 100 operation plus use the hide navigation bar while you're in gestures and you'll have a complete full screen no gesture bar but be able to use all gestures

Themes / Apps / Mods How-To Enable Two-Button Navigation

Flash the module attached, reboot
Then ADB Command: "adb shell cmd overlay enable com.android.internal.systemui.navbar.twobutton"
Thanks to naed3r
Steve0007 said:
Flash the module attached, reboot
Then ADB Command: "adb shell cmd overlay enable com.android.internal.systemui.navbar.twobutton"
Thanks to naed3r
Click to expand...
Click to collapse
Thank you for the tip, it's working great.
Was wondering if there is a way to be in gesture mode + navbutton enabled to, in a sort of overlay. That would allow some app to use nearly a fullscreen mode.
I'm acoustumed to use those button as I come from a HTC U11 that have physical button to switch from an app to another and feel unconfortable with the gesture mode to do that
if you are within any app there is double haptic feedback when you open the running apps list (swipe up pill button), is there a way to fix that and make single haptic feedback on this action just as on any other action in the system? seems like two buttons navigation just is not optimized for op8t and/or oos11, so you feel first haptic feedback when you swipe up the pill button and the second one when you release the button, that is a very fast action so you actually feel a "rattling" double feedback, it is very frustrating

Question Anyone know removing navigation bar?

I am a S22 user and want to use FNG or VNG.
To use FNG or VNG, it needs to remove navigation bar.
Anyone know removing navigation bar??
I cant find any way to remove it completely.
I've found a solution
Hex installer works completely on one ui 5.0.
Thanks.
omnik3000 said:
I am a S22 user and want to use FNG or VNG.
To use FNG or VNG, it needs to remove navigation bar.
Anyone know removing navigation bar??
I cant find any way to remove it
Click to expand...
Click to collapse
Adb app control
skinza said:
Adb app control
Click to expand...
Click to collapse
what Adb?
I tried some adb commands like below
"adb shell wm overscan 0,0,0,-200"
but it doesnt work.
Did I do something wrong?
As far as I know, there is no method to remove the navbar on s22. The only thing I know, you can suppress back gestures in "swipe gestures" mode using ADB command. In that way, you will be able to utilize only the sides of the screen for FNG.
For that just use this command with ADB:
adb shell pm grant com.fb.fluid android.permission.WRITE_SECURE_SETTINGS
and then chose "One UI full screen gestures" option in FNG settings.
Oleroma said:
As far as I know, there is no method to remove the navbar on s22. The only thing I know, you can suppress back gestures in "swipe gestures" mode using ADB command. In that way, you will be able to utilize only the sides of the screen for FNG.
For that just use this command with ADB:
adb shell pm grant com.fb.fluid android.permission.WRITE_SECURE_SETTINGS
and then chose "One UI full screen gestures" option in FNG settings.
Click to expand...
Click to collapse
Oh, and that would last ONLY untill reboot if you have no root.
If you install Samsung "Good Lock" and the install "NavStar" there is an option "Show and hide button". Then you have a little point on the left of the navbar. With double tab on it you could switch between hide ansd show.
braunie said:
If you install Samsung "Good Lock" and the install "NavStar" there is an option "Show and hide button". Then you have a little point on the left of the navbar. With double tab on it you could switch between hide ansd show.
Click to expand...
Click to collapse
want to remove not to hide
Both Good Lock and One ui display option have only a hide function.

Categories

Resources