[Tool][i9505] HomeButton Control (HB disable apk) - Galaxy S 4 i9505 Android Development

HomeButton Control (HBC)
This apk prevents the annoying, unwanted activation of the display by disabling the 'homebutton- wake- function' at standby!
You also can enable the homebutton wake with it.
Root is required!
Functions:
- Disable/Enable the wake function on the Homebutton
Requires:
- Root
Compatible Device:
Tested:
GT-I9505 Samsung Galaxy S4
GT-I9300 Samsung Galaxy S3
GT-I8190 Samsung Galaxy S3 Mini
GT-I9100 Samsung Galaxy S2
Untested:
???
ToDo:
- more languages
- Double / long press to start other apps or whatever (can anyone "pro" help me figure out what todo for this feature? )
- find a tester with a GT-I9500
- add more galaxys S devices
Testet with Roms:
- Stock Rom
- Omega V 5.0
- Omega V 7.0
- please tell me if you use it on another rom and its work.
Changelog:
v0.07
add a compatibily device list
v0.06
pointless button removed
code cleanup
v0.05
Rebuild Layout
addet Switch Buttons
addet Power Wake funktion
v0.04
first Oficial release
v0.03
fix layout bugs
add buttons to about
v0.02
oh... more bugs
v0.01
great it works... not damn!
Help me Make it better,
1. what process musst be killed /restartet to reread the gpio-keys.kl?
2. i need help to find the service that conctrol the buttons and the commands of su base to control this service.

Thanks for this! Its very usefull
I have an idea for expanded functionality
Double or long press of the home button to launch an app could be cool :good:
So i can put my flashlight there

dashrink said:
Thanks for this! Its very usefull
I have an idea for expanded functionality
Double or long press of the home button to launch an app could be cool :good:
So i can put my flashlight there
Click to expand...
Click to collapse
Omg this is the best idea I've ever seen on any mobile forum...
Flash on if home button is pressed for say 2 seconds and screen/phone remains in sleep/lock status, ingenious.

Shebee said:
Omg this is the best idea I've ever seen on any mobile forum...
Flash on if home button is pressed for say 2 seconds and screen/phone remains in sleep/lock status, ingenious.
Click to expand...
Click to collapse
sarcasm? this has been in cm10 as well as various other mods for a very long time (eg JKay)
Sent from my GT-I9505 using Tapatalk 4 Beta

beaver2233 said:
sarcasm? this has been in cm10 as well as various other mods for a very long time (eg JKay)
Sent from my GT-I9505 using Tapatalk 4 Beta
Click to expand...
Click to collapse
No.. Last time I saw this function stock was on like Nokia e5.

Thx it's very usefull. For this function I need before to install a full framework mod on stock rom. Nice it could be done in app, thanks for your work.
Sent from my GT-I9505

Yeah thanks for the work you've done!
One thing, now my home button vibrates on pres.. :s

Shebee said:
One thing, now my home button vibrates on pres.. :s
Click to expand...
Click to collapse
hu? try disabling the vibrate on keys on the phone settings

Yeah but I want them to vibrate just not the home key :d

Thought I'd let you know this works on Verizon GS4 rooted and stock. Thanks as well, my phone was turning on in my pocket all the time.

twolasrnames said:
Thought I'd let you know this works on Verizon GS4 rooted and stock. Thanks as well, my phone was turning on in my pocket all the time.
Click to expand...
Click to collapse
Doesn't seem to work on my device... Already tried to reboot / reinstall :/

if you want to disable home button waking device use root browser lite go to system/usr/keylayout/ gpio-keys.kl you will have to open it as a text file then with inbuilt text editor. go down to bottom were it says (key 172 home wake ) and just delete the word WAKE then press menu and save and exit . reeboot phone and then the home button will be disabled... :thumbup:
Sent from my GT-I9505 using xda premium

port76 said:
if you want to disable home button waking device use root browser lite go to system/usr/keylayout/ gpio-keys.kl you will have to open it as a text file then with inbuilt text editor. go down to bottom were it says (key 172 home wake ) and just delete the word WAKE then press menu and save and exit . reeboot phone and then the home button will be disabled... :thumbup:
Sent from my GT-I9505 using xda premium
Click to expand...
Click to collapse
the app does exact the same

- Double / long press to start other apps or whatever (can anyone "pro" help me figure out what todo for this feature? )
Click to expand...
Click to collapse
any progress here?
or is there any other way to get this feature on S4?
Id like to start camera by double tap and flash by long press. (from locked/screen off, not from lockscreen)

hy,
sorry this function with camera and flash is not possible without edit an framework, my little app modify only the gpio-keys

ok, thanks for reply!

need help
okay guys and coders...
i need your help.
the app still dosn´t work since android 4.3 damn
i have serched and testet, but nothing.
atached the code of the app, please take a look into this and help me to make the app functions

Hope someone can make a version that you can disable the wakeup of the power button
Sent from my GT-I9505 using XDA Premium 4 mobile app

Hi guys,
Why don't just do this manually ?
1) Open Root Explorer
2) Navigate to: /system/usr/keylayout/
3) Press 'Mount R/W'
4) Long hold 'gpio-keys.kl' and choose "Open in Text Editor"
5) Remove "WAKE" from the line "172 HOME WAKE"
6) Back out, Save, Reboot
Sent from my GT-I9505 using XDA Premium 4 mobile app

Works on MIUI roms

Related

A couple simple things I can't figure out how to do.

My phone is rooted,
How do you multitask? For example if I am using Chrome or the stock browser, how do I switch to a app without exiting the browser? I thought it was long press the back button but it does not work. And how do I change the icons on my lock screen? Ive looked through all the setting and cant find it.
1. Press and Hold the HOME button (the physical button in the middle)
2. Settings --> Lock Screen --> Lock Screen Options --> (press) Shortcuts (not the on / off button .. the word)
If you dont have the multiwindow , you need to update firmware to get it.
Sent from my GT-N7100 using xda premium
Ghetto Geeksta said:
My phone is rooted,
How do you multitask? For example if I am using Chrome or the stock browser, how do I switch to a app without exiting the browser? I thought it was long press the back button but it does not work. And how do I change the icons on my lock screen? Ive looked through all the setting and cant find it.
Click to expand...
Click to collapse
multitask maybe not supported in Your phone.
and to change lock screen icons go to Settings > lock screen > lock screen options Shortcuts Drag any icon to delet it/Arrange it.
i hop i helped you.
*sorry for my English*
ameralkial said:
multitask maybe not supported in Your phone.
and to change lock screen icons go to Settings > lock screen > lock screen options Shortcuts Drag any icon to delet it/Arrange it.
i hop i helped you.
*sorry for my English*
Click to expand...
Click to collapse
Thanks you did help me with lock screen icons.
Why would multi-task not be supported by my phone? This should be a basic capability with smart phones these days.
MohJee said:
If you dont have the multiwindow , you need to update firmware to get it.
Sent from my GT-N7100 using xda premium
Click to expand...
Click to collapse
I don't think I have multi-task, when I press the Home button I just get recently opened apps. I am rooted, what firmware would I upgrade to?
Ghetto Geeksta said:
I don't think I have multi-task, when I press the Home button I just get recently opened apps. I am rooted, what firmware would I upgrade to?
Click to expand...
Click to collapse
That IS multitasking. You're in the browser, then you want to switch to for example the S Note app without exiting (as in closing down/quitting) the browser. You press and hold the home button and select S Note in the app list that pops up. Then when you're done you do the same thing to get back to the browser.
If you're talking about dividing the screen in two and having two apps visible at the same time, that's a different thing, it's called multi-window and is done by pressing and holding the back key, then in the list that pops up, drag for example YouTube and drop it on the top of your screen, then do the same thing again to drag some other app to the bottom of the screen.
If you don't have the multi-window feature, you need to update your firmware.
Kiahnlliya said:
That IS multitasking. You're in the browser, then you want to switch to for example the S Note app without exiting (as in closing down/quitting) the browser. You press and hold the home button and select S Note in the app list that pops up. Then when you're done you do the same thing to get back to the browser.
If you're talking about dividing the screen in two and having two apps visible at the same time, that's a different thing, it's called multi-window and is done by pressing and holding the back key, then in the list that pops up, drag for example YouTube and drop it on the top of your screen, then do the same thing again to drag some other app to the bottom of the screen.
If you don't have the multi-window feature, you need to update your firmware.
Click to expand...
Click to collapse
When I press the Home button in my browser I don't get a list of apps on my phone I only get recently opened apps. When you say update my firmware do you mean OTA updates? Will this affect my root?
Ghetto Geeksta said:
When I press the Home button in my browser I don't get a list of apps on my phone I only get recently opened apps. When you say update my firmware do you mean OTA updates? Will this affect my root?
Click to expand...
Click to collapse
OK. Forget about the whole update thing. I don't think we're talking about the same thing here.
Long pressing home = list of recent apps
Long pressing back = multi-window app selection bar
If you want a list of apps on your phone, you press the home button once to get back to your home screen, and from there open the app drawer.
Is that what you meant?
Sorry for my original post above, I misread what you said. I thought you were talking about the multi Window feature in note 2 which can be activated by long pressing the back button.
The multi tasking is when you long press the home button, correct. You get the list of recently opened apps. That's how it works and how it always worked.
If you want a customizable pad that's let's you switch to other apps on the fly, then I highly recommend SwipePad. You can find it in the market and it's free.
Sent from my GT-N7100 using xda premium
Kiahnlliya said:
OK. Forget about the whole update thing. I don't think we're talking about the same thing here.
Long pressing home = list of recent apps
Long pressing back = multi-window app selection bar
If you want a list of apps on your phone, you press the home button once to get back to your home screen, and from there open the app drawer.
Is that what you meant?
Click to expand...
Click to collapse
For me
Long pressing Home= list of only recently opened apps (not all the apps on my phone).
Long pressing back= does nothing on my phone when I long press it.
Long press home button gives you a list if recently opened apps, yes. That's how it works. It doesn't, in any version of android, give you a list of all installed apps in your phone. I don't know where you got that idea.
Second, if you want the multi Window feature (which opens when you long press the back button) then check OTA update. If there are no updates for you, then wait for it in the future.
Sent from my GT-N7100 using xda premium
Ghetto Geeksta said:
For me
Long pressing Home= list of only recently opened apps (not all the apps on my phone).
Long pressing back= does nothing on my phone when I long press it.
Click to expand...
Click to collapse
To open any other app on your phone, just press Home button and then run any app you wanted, and if you want switch back to your last app long press Home.
If you still dont get it, than search in youtube for Android multitasking.

How to remap menu key to multitasking

So I am to impatient to wait for the 4.4 update where hopefully we will get the recent apps button to replace the menu key so I did what I could for now.
You have to be rooted and have a root file manager.
open the file manger and go to system
then to usr
then to keylayout
now open the Generic.kl
scroll down to key 139
open as a text file
change from "MENU" to "APP_SWTICH"
no "" needed
save the file and reboot
Honestly i did it in the sec_e-pen.kl and sec_keyboard.kl and sec_touchscreen.kl just to be sure. I dont know if it is needed but i did anyway and have had no side affects.
Again if this has been posted before feel free to delete or move just i havent seen it so i thought others would want to know:good:
Sounds like a nice little tweak! But doesn't that cause problems with apps that don't have a menu button in the interface?
clouds5 said:
Sounds like a nice little tweak! But doesn't that cause problems with apps that don't have a menu button in the interface?
Click to expand...
Click to collapse
I suppose it would but so far most apps and games have the pull out menu or some kind of options thats easily accessible through the app itself. i guess since almost all of android expect samsung did away with the menu button most apps dont need you to have one
I love this option, but i wonder if its also possible to map the long press of the menu key to "menu", any ideas?
MarrowK said:
I love this option, but i wonder if its also possible to map the long press of the menu key to "menu", any ideas?
Click to expand...
Click to collapse
from what I read it is a lot more difficult to map a long press. but I will look into
MarrowK said:
I love this option, but i wonder if its also possible to map the long press of the menu key to "menu", any ideas?
Click to expand...
Click to collapse
Xposed Framework and GravityBox should be able to do that
Gesendet von meinem GT-I9505 mit Tapatalk
I tried it on both my GS3 and P600, and here's the result
On GS3, modifying Generic.kl alone is enough to do the trick
Yet on P600 I have to modify all 3 files to make it
With GravityBox I managed to remap the long press as menu
Sent from my SM-P600 using XDA Premium 4 mobile app
lokercy said:
I tried it on both my GS3 and P600, and here's the result
On GS3, modifying Generic.kl alone is enough to do the trick
Yet on P600 I have to modify all 3 files to make it
With GravityBox I managed to remap the long press as menu
Sent from my SM-P600 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
interesting. yea i guess something more needs to be done for the note.
thanks alot man, u solved my problem
i am using a local brand qmobile quadro z4,having jb 4.2.1 stock rom and by just modifying the one file, it worked, thanks alot
now i want to remap menu to long press menu key, or long press home, or long press back, can any one help,let it be difficult, doesnt matter
engrshabir said:
now i want to remap menu to long press menu key, or long press home, or long press back, can any one help,let it be difficult, doesnt matter
Click to expand...
Click to collapse
Bump....I too want to change longpress actions... Gravitybox module won't seem to load, so i'm hoping theres another approach....
Jaydawgx7 said:
Bump....I too want to change longpress actions... Gravitybox module won't seem to load, so i'm hoping theres another approach....
Click to expand...
Click to collapse
gravitybox works, i hope u r not mistaking, install xposed installer, open it, go to framework, click install/update, app_process and xposedbridge.jar will install n will reboot, now go to modules and install gravitybox, and then activate it, in the modules, tick it in the checkbox, so its activated, now it will work, try this, hope it will work for u as well,
When I do that, will apps that doesn't show on screen menu button start to show? (For example, Chrome)
Bumping cause awesome
waywardfrantz said:
Bumping cause awesome
Click to expand...
Click to collapse
+1
waywardfrantz said:
Bumping cause awesome
Click to expand...
Click to collapse
+1
The xposed module "menu be gone" remaps the menu key to be a recents key, and if you long press it, it is a menu key.
It work but it is "APP_SWITCH", you wrote wrong, beware!!!

[Q] Anyone know of a way to get menu overflow button?

Anyway to get the menu overflow button into all apps and disable menu key or make it multitask key? Xposed modules or Roms? I loathe the menu key. All of my other devices have software buttons so I'm always thrown off when going to my note. Thanks
supremekizzle said:
Anyway to get the menu overflow button into all apps and disable menu key or make it multitask key? Xposed modules or Roms? I loathe the menu key. All of my other devices have software buttons so I'm always thrown off when going to my note. Thanks
Click to expand...
Click to collapse
xposed module: 3-dot menu mod do the job(add soft menu key). Install it, activate in xposed and restart.
PS. And Samsung did it again wrong, because the menus are ugly in all their apps (light grey icons on a white background).
delete
Good stuff. This restored the 3 dot menu in Chrome after Google yanked it out in the last update.
I peronwly love the menu button
Duly.noted said:
I peronwly love the menu button
Click to expand...
Click to collapse
Agreed.
Sent from my SCH-I545 using Tapatalk
wingdo said:
Agreed.
Sent from my SCH-I545 using Tapatalk
Click to expand...
Click to collapse
Now to find a way to turn the menu button into a task switcher button and set long press home to google now
Youre right ... Listen to me get xposed modules install gravity box jellybean version... and use their pie controls.... make them appear on left side.... so use ur left thumb to acces home button and recent task on pie.... and your right thumb for the return button ... i know the feels... since that threw me off too ... this way you can comfortably navigate without sacrificing screen estate... .. trust me it rocks... contact me if you have more questions .. youre welcome
rajackar said:
Now to find a way to turn the menu button into a task switcher button and set long press home to google now
Click to expand...
Click to collapse
Long press home to Google Now can be done with Xposed. Both my phone and tablet work like that. I use Switchr for task switching with the activator in the bottom left and Button Savior Pro on the bottom right.
mine does that automatically. it also tried opening dolphin for some reason LoL

[Q] Screenshot button

Is there any way to add screenshot button to next to basic on-screen-buttons? I am running CleanROM.
itvaletchu said:
Is there any way to add screenshot button to next to basic on-screen-buttons? I am running CleanROM.
Click to expand...
Click to collapse
You can try a screens shot app.
Sent from my Nexus 7 Flo running CM 11 4.4.2 with ElementalX Kernel using XDA Premium 4 mobile app
itvaletchu said:
Is there any way to add screenshot button to next to basic on-screen-buttons? I am running CleanROM.
Click to expand...
Click to collapse
I personally haven't heard of any way to add a 4th button to the navigation bar for screenshots. That sounds like something that might be in a custom rom if it was even available. The other option I know of would be to use Xposed Framework with the GravityBox module. With GravityBox you can set a long press or double tap on any of the nav bar buttons to trigger a screenshot. You can add a tile in the Quick Settings for screenshots. And you can also add it to the Advanced Power Menu (power button). That's what I can think of at the moment other than finding an app or widget of some kind to put on your home screen.

[App] sideActions - Remap the Power button on Note10! NEW: S Pen button remapping!!!

With sideActions you can easily remap the Power or S Pen Button on your Galaxy Note10 to any action or app you like! Use the Power Button to mute your phone, turn on flashlight, launch Google Assistant or take a screenshot with just one click!
When you remap the S Pen you can remotely turn on the flashlight or use the button to navigate your phone! unlimited possibilities!
Optionally you can remap the volume buttons to Skip tracks when listening to music, or whatever you like!
With per app remapping! Use the Power Button / side key to take pictures in camera apps, take screenshots in browser and start flashlight when the screen is off!
FEATURES:
• Double and long press supported!
• Remap the Power Button / side key on Galaxy Note10!
• Remap the S Pen button!
• Launch Google Assistant with the Power Button
• Remap the Volume buttons!
• Per app remapping
• Turn on the flashlight with the Power Button
• Disable the Power Button
• Skip tracks with the volume buttons
• High performance! No lags!
• No annoying ads
ACTIONS:
• Turn on flashlight
• Take a screenshot
• Mute phone
• Answer phone calls
• Launch Google Assistant
• Launch camera or any other app
• Switch to last app
• Disable the Power Button
• 35+ actions
NOTES:
• You can remap the Power Button / side key on your Galaxy Note10
• Samsung may block this app with future updates!
• Please check if sideActions is compatible before updating Bixby or phone software!
DOWNLOAD:
Forum download:
soon
Reserved
Reserved #2
Initial release, please test and post your feeedback!
Enjoy!
Love these Apps is fully immersive mode available yet?
brockyneo said:
Love these Apps is fully immersive mode available yet?
Click to expand...
Click to collapse
This app fixes that with just one adb command.
https://play.google.com/store/apps/details?id=it.simonesestito.ntiles
ggrant3876 said:
This app fixes that with just one adb command.
https://play.google.com/store/apps/details?id=it.simonesestito.ntiles
Click to expand...
Click to collapse
Ok great dont have to have root do I as I dont want to root
Thabks
brockyneo said:
Ok great dont have to have root do I as I dont want to root
Thabks
Click to expand...
Click to collapse
Nope, just one command line.
ggrant3876 said:
Nope, just one command line.
Click to expand...
Click to collapse
Ok great thanks does it work well as I've heard fully immersive doesnt work well with the camera punch hole
brockyneo said:
Ok great thanks does it work well as I've heard fully immersive doesnt work well with the camera punch hole
Click to expand...
Click to collapse
I use a black wallpaper so I don't notice it much and am using Swift Black theme.
ggrant3876 said:
Nope, just one command line.
Click to expand...
Click to collapse
Doesnt seem to work I've done the command and now immersive mode is enabled but nothing happend
brockyneo said:
Doesnt seem to work I've done the command and now immersive mode is enabled but nothing happend
Click to expand...
Click to collapse
You need to pull quick settings tab down and click reorder buttons, then you can add the tile.
Jawomo said:
Initial release, please test and post your feeedback!
Enjoy!
Click to expand...
Click to collapse
Single tap not customizable?
Also "double tap" & "double tap + hold" not working since it always turns screen off since it detects its native action first. Am I doing something wrong?
Edit: Even "hold" sometimes activate native action / display off.
Am I doing something wrong? I used PC method and bought you a coffee
Power Button - Screenshot not working....
Pro Version!
2,99 Euro please back
BxAction ist working
Vol-Up - Screenshot ist working
Emp0ri0 said:
Single tap not customizable?
Also "double tap" & "double tap + hold" not working since it always turns screen off since it detects its native action first. Am I doing something wrong?
Edit: Even "hold" sometimes activate native action / display off.
Am I doing something wrong? I used PC method and bought you a coffee
Click to expand...
Click to collapse
Cannot reproduce, working fine here. Anyone else?
Benny100 said:
Power Button - Screenshot not working....
Pro Version!
2,99 Euro please back
BxAction ist working
Vol-Up - Screenshot ist working
Click to expand...
Click to collapse
Screenshot is working fine here. More details please.
Is not working Power Button!
Benny100 said:
Is not working Power Button!
Click to expand...
Click to collapse
Is Bixbi app setup correctly as stated in setup?
Is power button set to open Bixbi? (see FAQ for details)
Its recommended to connect phone to PC once and start remapping over PC to unlock full potential. Takes less than a minute.
Jawomo said:
Is Bixbi app setup correctly as stated in setup?
Is power button set to open Bixbi? (see FAQ for details)
Its recommended to connect phone to PC once and start remapping over PC to unlock full potential. Takes less than a minute.
Click to expand...
Click to collapse
So do I need to fully setup and activate Bixby first and then install the app? Cruz I didn't do anything to Bixby at all
Emp0ri0 said:
So do I need to fully setup and activate Bixby first and then install the app? Cruz I didn't do anything to Bixby at all
Click to expand...
Click to collapse
If you use the PC to stert remapping none of this is needed, otherwise you have to setup Bixby
Jawomo said:
If you use the PC to stert remapping none of this is needed, otherwise you have to setup Bixby
Click to expand...
Click to collapse
Yeah I did. So it won't fix my issue eather.
So what should I do? Every time I try hold the button to go back it might go back but it turn the screen off aswell
And if I double press to flashlite, it will turn on flash lite and for some reason go to lockscreen so basically it does screen of and instantly screen on. Judging by this it really also register the power button native action as well no matter what I do.
Ps. Is there even a slim chance single press will be programmable later?

Categories

Resources