Allow or Disallow the Home key from waking up the Phone [Galaxy Note] - Galaxy Note GT-N7000 Android Development

PREVENT - ALLOW GALAXY NOTE HOME KEY FROM ACCIDENTALLY WAKE UP DEVICE:
Some people complained about the Home keys of Galaxy Note sometime is touched and turned on accidentally when taking it in-out of the pocket.
After studying some articles on-line for Droid X phone (not same as the Galaxy Note), I digged around in the directory system/usr/ keylayout. Finally, I have found a way to do it. I can disable the HOME key from wake up the phone in off-screen state, but still let it to move from apps drawer to standby screen as usual. And I think it works!!
- Goal: Modify 2 file related to wake up function of the Home key (code 102).
- How to:
+ Using Root Explorer go to the folder: system/usr/keylayout, set permission to Mount R/W;
+ Click to select the 2 files: gpio-key.kl and sec_key.kl to modify them. When the menu appears, select: Text Editor to modify the files.
+ Move to the line: "key 102 HOME WAKE" in the 2 files above and put the cursor on the position of "WAKE" to erase the word "WAKE".
+ Press Menu hard button, select Save Changes, the phone will save the backup file and save the current files.
+ Set permission to Mount R/O for the folder: system/usr/ keylayout.
+ Shut down and then restart, Ahh, it worked!
Note: If you want to use Home key to wake up Galaxy Note again, go to delete two above modified files and rename the two backup files to gpio-key.kl and sec_key.
For people don't want to do it manually, I make the 2 flashable files for Allow and Disallow the Home key for Note and tested for working, at least on my Galaxy Note.
The 2 flashable files to do that is attached below. Copy to SDCard/ExternalCard and flash them in CWM Recovery, then reboot:

works for me. thx.
Sent from my GT-N7000 using XDA

kui425 said:
works for me. thx.
Sent from my GT-N7000 using XDA
Click to expand...
Click to collapse
OK. Hope that help.
Thanks for reply.

flashable zip
Could you make a flashable zip file for this?
Would be great!
Thanks in advance...

bunique said:
Could you make a flashable zip file for this?
Would be great!
Thanks in advance...
Click to expand...
Click to collapse
Yes..please.
+1
GT-N7000-LiquidSmooth-V [2.2] .

Wish I could give u more thanks for this. Works like a charm. Very very annoying that the home button would wake the phone up by default.

Flashable files to Allow or Disallow the wake-up function of Home key for Note
Flashable file for Allow and Disallow the Home key for Note
Phew! I tried my best to make the flashable file and tested for working, at least on my Galaxy Note.
Here is the link for Allow and Disallow the Home key for Note.
Copy to your SDCard and flash them with CWM Recovery.
Hope them could help.
bunique said:
Could you make a flashable zip file for this?
Would be great!
Thanks in advance...
Click to expand...
Click to collapse
firasusman said:
Yes..please.
+1
GT-N7000-LiquidSmooth-V [2.2] .
Click to expand...
Click to collapse

a big THANKS for the flashable files!
will give it a try....

Works perfectly, thanks
Cassie's xtra lite v2.9

Good Job

AWESOME. thanks!

Do not work on JB SLIM BEAN
Sent from my GT-N7000 using Xparent ICS Blue Tapatalk 2

I can not thank you enough for this as I have struggled with this issue for the past 12 months and as my job is a dirty one I can feel my phone getting hot in my pocket but cannot take it out as by hands are black. Thanks.

looks like this is not working in Jelly Bean / Cyanogen 10.1
vasiaeva said:
Do not work on JB SLIM BEAN
Sent from my GT-N7000 using Xparent ICS Blue Tapatalk 2
Click to expand...
Click to collapse
does somebody know whitch file(s) to edit for this to work in Jelly Bean or Cyanogenmod 10.1.
I'm on asylum 4.2.2.this is a cyanogen 10.1 mod , like slim bean .
It looks like we need to change more/other files for this to work , wile when i canche the here adviced ones , nothing seems to change ,, the volume buttens still behave the same.
/system/usr/keylayout/sec_key.kl is changed to..
key 115 POWER WAKE
key 114 POWER WAKE
key 102 HOME WAKE
key 107 ENDCALL
key 105 DPAD_LEFT
key 106 DPAD_RIGHT
key 103 DPAD_UP
key 108 DPAD_DOWN
key 232 DPAD_CENTER
key 116 POWER WAKE
key 212 CAMERA WAKE
look at line 115 and 114 this would change te volume button function in the power funtion , i suspect , AM I RIGHT ????
in fact this does not change the behavior of the volume buttons at all it still changes te volume , btw i did restart after changing te sec_key.kl file
please advice manny thanks in advance

Is it possible to add long press action to Home key or other capacitive keys like in CM roms ? How to make it turn on flash light ?

Any idea if this works on the s4 too?

StuartTheFish said:
Any idea if this works on the s4 too?
Click to expand...
Click to collapse
Just tried, and yes it does work on the s4. We only have the one file though, gpio-key.kl. Same location though. Find the line that says home, and delete the word wake. Save changes and reboot, job done!

Related

Tips - use G button as camera button / lock screen (change key binding)

I found it in a chinese forum (bbs.gfan.com/android-2014369-1-1.html)
I'm sure most people found the G button useless, so it would be nice to change that. The following is my experience with it:
The position of the G button make it perfectly useful as lock/unlock button, you can use it to shutdown as well, but cannot use it to switch on the phone, I guess it is electrically hardwired to the power button at the top.
Not too bad for camera, long press it will launch the camera app, but it don't have 2 levels so press it once and it will start auto-focus and take picture immediately, similar to touch and release shutter button in camera app, which mean you can't "dis-engage" a failed focus attempt.
here is the method:
1. make sure you have root and r/w to system partition
2. the file in question is "TWL4030_Keypad.kl", it's in /system/usr/keylayout/
3. before making any changes, copy the file to SDcard as a backup
4. open the file with any text editor, scroll down to 3rd line from the bottom, it should be "key 95 GESTURE"
5. if you want to use it as camera button, change it to "key 95 CAMERA WAKE_DROPPED"
if you want to use it as power/lock button, change it to "key 95 POWER WAKE_DROPPED"
6. save the changes, reboot to see the changes.
Very good.
In fact, I may even use this on nova.
the method is work.
after edit file it create backup file which is name "TWL4030_Keypad.kl.bak"
It works! Great!
worked perfectly thx!
thank u..
this work
hey, i was followed this method but my Optimus Black can't use it .. when i push my Gesture it can't go to camera .. somebody help me ??
My phone still on Original ROM.
After modify to Power/Lock mode, it's work.
but into Shutter mode, doesn't work.
Any idea?
SnoopyZ
digezter said:
hey, i was followed this method but my Optimus Black can't use it .. when i push my Gesture it can't go to camera .. somebody help me ??
Click to expand...
Click to collapse
did u reboot after making the changes?
digezter said:
hey, i was followed this method but my Optimus Black can't use it .. when i push my Gesture it can't go to camera .. somebody help me ??
Click to expand...
Click to collapse
notice you need to long press to start the Camera App. (you should feel the phone vibrate)
or just start the camera app, then press the G button to take a picture to see if it works.
It should be a pretty straight forward modification.
Could it be
"key 95 RECOVERY WAKE_DROPPED" ???
wow, very nice
Very nice. Thanks.
To all who could not manage get it to work: You must take care of file attributes after modyfing the file content ( otherwise it won't work ). It must be CHMOD 644.
( I use SD Maid for this )
It doesn't work for me, i am using pays ROM. Can someone upload the file? Thank u!
Enviado desde mi LG-P970 usando Tapatalk
"key 95 HEADSETHOOK WAKE"
to use headset button
I tried modifying the file and saving it ... but the it always comes up as an error and doesn't allow me to save it... any solutions???
you need to have your phone "root" AND mount system partition as read and write
fjsw said:
you need to have your phone "root" AND mount system partition as read and write
Click to expand...
Click to collapse
Hey my phone is rooted, how do I mount system partition a read and write ? Sorry I'm a noob
if you use ES File Explorer, goto setting, select 2 checkboxs "Root Explorer" and "Mount File System"
if you use root explorer, change directory to /system, then press "Mount R/W" button
yabgo said:
"key 95 HEADSETHOOK WAKE"
to use headset button
Click to expand...
Click to collapse
Sorry to ask but: what is the "headset button" and what is it good for?
Thanks,
Kusie

[Q] NOVA-could it wake up by pressing G or volume key

Hello,
I am using NOVA V8 and flash the huexxx fix
could I use any script to use the G button or the volume button to wake up my phone?
I tried to read the script and tutorial...but i wonder there is no key 95 which correspond to G button. I tried to make a new script for key 95...but it doesn't work at all.
it doesn;t matter to use G button to wake up, but i really want to use other key besides power key to wake up.
sorry for my poor english
In /system/usr/keylayout edit this file: TWL4030_Keypad.kl (I user root explorer, dont forget to backup!) and change this entry (it is in the bottom for me):
key 95 POWER WAKE_DROPPED
It worked for me.
dcop7 said:
In /system/usr/keylayout edit this file: TWL4030_Keypad.kl (I user root explorer, dont forget to backup!) and change this entry (it is in the bottom for me):
key 95 POWER WAKE_DROPPED
It worked for me.
Click to expand...
Click to collapse
I sorry to tell you that there is NO LINE with key 95 for me.
I tried to add this line "key 95", but it doesn't work at all. any other means?
how about volume key to wake up the phone?
Try this: http://forum.xda-developers.com/showthread.php?t=1210341
more specifically:
# Phone will wake up from hitting the volume rocker
ro.config.hwfeature_wakeupkey=1
dcop7 said:
Try this: http://forum.xda-developers.com/showthread.php?t=1210341
more specifically:
# Phone will wake up from hitting the volume rocker
ro.config.hwfeature_wakeupkey=1
Click to expand...
Click to collapse
i sorry to tell you that i don;t know how to do so...
Are there any tutorial to change this value?
Besides, I would like to ask whether we can have 2 or more function on one key, such as G button for both camera and power.
THANKS
Thanks
sonicpeter said:
i sorry to tell you that i don;t know how to do so...
Are there any tutorial to change this value?
Besides, I would like to ask whether we can have 2 or more function on one key, such as G button for both camera and power.
THANKS
Thanks
Click to expand...
Click to collapse
try the link I gave on the last post... it is there
Nova V10D?
Can I flash Nova on V10D?
dcop7 said:
In /system/usr/keylayout edit this file: TWL4030_Keypad.kl (I user root explorer, dont forget to backup!) and change this entry (it is in the bottom for me):
key 95 POWER WAKE_DROPPED
It worked for me.
Click to expand...
Click to collapse
This didn't work for me. I don't get it at all. I updated the key 95 line but still no waking up with g key... Suggestions would be very appreciated. Thx.
Paracetamol100 said:
This didn't work for me. I don't get it at all. I updated the key 95 line but still no waking up with g key... Suggestions would be very appreciated. Thx.
Click to expand...
Click to collapse
Check the permissions of the file,maybe it changed, and check the tabs in the file,maybe the spaces cause some type of conflict

[Q] double press home button

I'm trying to set double press home for home screen, as single press would be allocate to a task switcher.
my problem is that double press does nothing when i deactivate voice speech.
i tryed advanced home button on the market but it doesn't or can't make it work.
can someone help for this stupid thing ?
Homemyhome from the galaxy s2 works when set, but you have to re select the double press app on reboot, I haven't managed to sort out that problem with it yet.
Maybe I'm missing something here, but isn't this what's normal --
short single press HOME ==> home screen
long single press HOME ==> task switcher
psionic11 said:
Maybe I'm missing something here, but isn't this what's normal --
short single press HOME ==> home screen
long single press HOME ==> task switcher
Click to expand...
Click to collapse
That is what mine does.
seepage said:
That is what mine does.
Click to expand...
Click to collapse
Which taskswitcher do u use?
That is what mine does.
Chillz88 said:
Which taskswitcher do u use?
Click to expand...
Click to collapse
Phone is completely stock.
long press on stock rom is showing recent apps, not running ones...
padlad said:
Homemyhome from the galaxy s2 works when set, but you have to re select the double press app on reboot, I haven't managed to sort out that problem with it yet.
Click to expand...
Click to collapse
can't make it work mate... i'm still on it !
deleted voicetogo.apk, reboot, installed homemyhome.apk, reboot= nothing.
but now I want to go back to the previous state, tried to install voicetogo.zip in cwm, http://forum.xda-developers.com/show...postcount=5194 but have a red line in the process like "verifysignature failed" so i guess it didn't install.
I need your help
stylobic said:
can't make it work mate... i'm still on it !
deleted voicetogo.apk, reboot, installed homemyhome.apk, reboot= nothing.
but now I want to go back to the previous state, tried to install voicetogo.zip in cwm, http://forum.xda-developers.com/show...postcount=5194 but have a red line in the process like "verifysignature failed" so i guess it didn't install.
I need your help
Click to expand...
Click to collapse
Try extracting the app from the zip, copy it to your sd card and then copy it over to the app directory.

Add native android SIP stack for Wifi & 3G calls in ICS - Galaxy Note-GT-N7000

This is just to help people like me that use their mobile for internet calls. As you know, it is disabled in GNote ICS and the old method here http://forum.xda-developers.com/showthread.php?t=1109962 does not work for ICS ROMs.
TESTED ON
LPY
LPF
LP8
LP9
LQ2
LQ3
Kingdroid 2.0
Kingdroid 2.1
Kingdroid 3.0
GNote i717 Team Perfection ICS (UCLE2)
Criskelo V7
MIGHT WORK FOR YOUR ROM IS THE SIZE OF YOUR framework-res.apk IS: Size: 18.7 MB (19,623,222 bytes), Size on disk: 18.7 MB (19,623,936 bytes)---checked under windows.
I will attach a modified framework-res.apk for GNote ICS ROM and the Internet call settings menu file.
Just a little changelog of what the modified framework-res.apk can do
Enables internet call (Wifi & 3G)
Enables all orientations (your phone rotates all round)
Rotating Lockscreen (Landscape + Portrait)
Screen stays off on USB/Charger disconnect
Just download one of the .zip files below extract and copy android.software.sip.voip.xml (its in this folder \system\etc\permissions) file to /etc/permissions using ES file explorer, Root explorer or any root browsing app. You can also push this file via ADB but you must be rooted in order to do any of these. After copy framework-res.apk (its in this folder \system\framework) to /system/framework, you can also push this. Your phone will freeze and quickly reboot, if not reboot manually but give it enough time to copy the files.
You should have internet calling now and all the other extras.
NOTE: Always backup incase something goes wrong, I am not to be held responsible for any bricks.
However, if anything goes wrong, just push back Stock framework-res.apk or if not reflash Non-wipe ICS ROM.
This framework-res.apk is specifically tested on the GNote ICS ROMs listed above, use it in any other ROM at your own risk.
--------------------------EASIER STEP FOR NON-ROOTED ROMS--------------------------
To simplify these steps, I have made a flashable zip. Download one of the .zip files and put it in your sdcard (external)---Do not extract pls.
Boot into recovery (Vol up + Power button + Home button all together)
-------ALREADY HAVE CWM DO THIS-------
Scroll down to 'Install zip from sdcard'
Then 'Select zip from Internal/External sd'
Find the zip where you saved it and select it
Select Yes to install.
NOTE: CWM uses Vol up & down to scroll and Home button to select
----------STOCK RECOVERY DO THIS---------
Download CWM Touch
Copy to External sdcard
Boot into recovery
Scroll down to 'Apply update from external sdcard'
Locate CWM and select it
Select Yes to install
CWM Touch will load automatically
Click 'Install zip from sdcard'
Click 'Select zip from Internal/External sd'
Locate the zip where you saved it scrolling with your finger or with volume button
Click on it and select yes to install.
NOTE: Stock recovery uses volume up & down to scroll and Power button to select while CWM Touch uses hand + Vol up & down for scrolling and Touch and Home button to select.
When all is done, go back and select Reboot system.
If you have any questions post it here.
THERE ARE FOUR DIFFERENT WAYS TO GET THIS DONE
1. Copy using root explorer
2. Push using ADB
3. Install using CWM Touch temporary
4. Install using CWM kernel installed on your phone.
FOR STEP
1. You must have root and root explorer app, just download the file, extract and copy each to their respective directories (refer to the step above).
2. Push the two files using ADB but you need root in order to do this.
3. Install temporary CWM Touch via stock recovery and flash the zip. This does not install CWM in your phone, it disappears as soon as you reboot.
4. Install CWM kernel for your ROM and use it to flash the zip.
DOWNLOADS
framework-res.apk----------> SIP + Orientation Mods for Copy or Push
SIP xml file---------> android.software.sip.voip.zip, for Copy or Push
Enable SIP + Other Mods----------> SIP + Orientation Mods for CWM
Enable SIP only with this----------> SIP Only for CWM
Stock framework-res.apk----------> Stock in case you want to revert back.
KingDroid-2.0---------> Enable SIP in KingDroid 2.0 ROM
KingDroid-2.0-REVERT ----------> Revert back in case of issues 2.0
KingDroid-2.1----------> Enable SIP + CRT effects in KingDroid 2.1 ROM
KingDroid-2.1-REVERT----------> Revert back in case of issues 2.1
Kingdroid-3.0----------> Enable SIP in KingDroid 3.0 ROM
GNote-i717-Team Perfection ICS (UCLE2)----------> Enable SIP in GNote-i717-Team Perfection ICS (UCLE2) ROM
Criskelo-V7----------> Enable SIP in Criskelo-V7 ROM
If this worked for you in another ROM just post it here so others will have confidence in flashing it.
Can you do the same for Indian ics version?
Edit: This framework works on ddlp8, it also changes swipe lock to default ics lock.
With this the device SOS going to deep sleep
Can someone on lpy check if device goes into deep sleep after setting voip?
jaskiratsingh said:
Can you do the same for Indian ics version?
Edit: This framework works on ddlp8, it also changes swipe lock to default ics lock.
With this the device SOS going to deep sleep
Can someone on lpy check if device goes into deep sleep after setting voip?
Click to expand...
Click to collapse
I ll need your framework-res.apk
mrcasmir said:
And others I have not noticed yet
Click to expand...
Click to collapse
What are the others changes?
I ask that because I don't like install something on my phones without have all the informations/changelog.
tdomikael said:
What are the others changes?
I ask that because I don't like install something on my phones without have all the informations/changelog.
Click to expand...
Click to collapse
Well there are other options I changed from false to true and vise versa and then changed it from Phone device to Tablet device. I noticed most changes in the dialogue boxes and graphical interface.
Well its your call, if you want it then go for it.
So, if I understand, after apply your modifications, my phone will most look like tablet device than phone device?
There is no performance or battery changement (no bad surprise with anormal drain battery ou low performance), but just appearance modification.
I'm right?
And an other question : Is there possibility to just add native SIP in ICS, without apply others modifications?
PS : apologise for my english
tdomikael said:
So, if I understand, after apply your modifications, my phone will most look like tablet device than phone device?
There is no performance or battery changement (no bad surprise with anormal drain battery ou low performance), but just appearance modification.
I'm right?
And an other question : Is there possibility to just add native SIP in ICS, without apply others modifications?
PS : apologise for my english
Click to expand...
Click to collapse
You sound so scared, well I will add SIP only version in a few minutes. Just check back in 10
mrcasmir said:
You sound so scared
Click to expand...
Click to collapse
scared? Not really, I just like understand what I do. I think it's the best thing to do for progress.
For example, after read your post, I know that is possible to change option. So I actually trying know how to change the false/true options. I don't know where find the files where they are, and after how to open, look and try to understand them.
I'm "noob", so I think it will take me a long time!
mrcasmir said:
well I will add SIP only version
Click to expand...
Click to collapse
Thanks a lot!!
mrcasmir said:
I ll need your framework-res.apk
Click to expand...
Click to collapse
DDLP8 framework is uploaded at the below location:
http://www.multiupload.nl/XY6SR86687
jaskiratsingh said:
DDLP8 framework is uploaded at the below location:
http://www.multiupload.nl/XY6SR86687
Click to expand...
Click to collapse
Have just compared the two files, there are thesame. Just go ahead and install this one they use thesame framework-res.apk
tdomikael said:
scared? Not really, I just like understand what I do. I think it's the best thing to do for progress.
For example, after read your post, I know that is possible to change option. So I actually trying know how to change the false/true options. I don't know where find the files where they are, and after how to open, look and try to understand them.
I'm "noob", so I think it will take me a long time!
Thanks a lot!!
Click to expand...
Click to collapse
Here is the SIP only version https://rapidshare.com/files/3975298779/SIP-only-ICS-LPY.zip
Just flash via recovery, follow the guide above
Thanks a lot!!
Edit : Working perfectly
Tested with poivy.com account, no problems!
I also figured to enable the "Ask for every call" option in order to use the sip voip with the dialer XD
mrcasmir said:
Enables internet call (Wifi & 3G)
Enables all orientations (your phone rotates all round)
Rotating Lockscreen (Landscape + Portrait)
Screen stays off on USB/Charger disconnect
Tablet like dialogue boxes
Click to expand...
Click to collapse
How did you enable 4 way Rotation ?
mrcasmir said:
Have just compared the two files, there are thesame. Just go ahead and install this one they use thesame framework-res.apk
Click to expand...
Click to collapse
Thanks. Will use it
Sent from my GT-N7000 using XDA
Thanks! :thumbup: it's ok on the Kingdroid 2.0 fantastic!
Inviato dal mio GT-N7000 con Tapatalk 2
Can we configure SKYPE and use the native android SIP to make calls via SKYPE? i hate opening Skype every time i want to make Skype call to india from here..
sharan.mu said:
Can we configure SKYPE and use the native android SIP to make calls via SKYPE? i hate opening Skype every time i want to make Skype call to india from here..
Click to expand...
Click to collapse
Sorry, Skype is not supported.
Works great very positive feedback
Confirmed, this mod is also working on LQ2 firmware without any issues.
Sent from my GT-N7000 using Tapatalk 2

Lock gear from launcher shortcut

Alright guys,
Pretty much what I'm after is a launcher shortcut which locks our gear.. The reason for this when using custom launchers the home/power button by default does not lock the device anymore.
It seems that particular feature was hardcoded into the TW launcher.
There are various applications available on the playstore, although I haven't found any which work on the gear as they require additional settings to be enabled in a traditional settings dialog.. which obviously we dont have.
If anyone has any ideas please post ! Or even better if you know of a app in mind which works !
Click to expand...
Click to collapse
EDIT:
jrdejavux said:
can you guys please post instructions thank you!
Click to expand...
Click to collapse
MUST BE ROOTED
1. Push a Root File Manager or adb to your gear.
2. Navigate to "/system/usr/keylayout", Open/pull the "gpio-keys.kl" file.. Confirm any root permission popup's.
3. Modify "Key 172 HOME" to "Key 172 POWER", Using a text editor.
4. Save/Push changes.
5. Restart gear.
I like to use adb to pull the files I want to modify to my desktop, Modify them, Place them on the SDCARD of the gear and then manually place them using a root file browser to their original locations. Also remember to set permissions, Imitate any other permissions in the same directory.
fOmey said:
Alright guys,
Pretty much what I'm after is a launcher shortcut which locks our gear.. The reason for this when using custom launchers the home/power button by default does not lock the device anymore.
It seems that particular feature was hardcoded into the TW launcher.
There are various applications available on the playstore, although I haven't found any which work on the gear as they require additional settings to be enabled in a traditional settings dialog.. which obviously we dont have.
If anyone has any ideas please post ! Or even better if you know of a app in mind which works !
Click to expand...
Click to collapse
Screen off and Lock
https://play.google.com/store/apps/details?id=com.katecca.screenofflock
put a shortcut to the app and it'll lock your device
i'm now looking for a way to capture the 'home button' to run this app
karoolus said:
Screen off and Lock
https://play.google.com/store/apps/details?id=com.katecca.screenofflock
put a shortcut to the app and it'll lock your device
i'm now looking for a way to capture the 'home button' to run this app
Click to expand...
Click to collapse
I tried this particular application, although it FC's here..
fOmey said:
I tried this particular application, although it FC's here..
Click to expand...
Click to collapse
yeah, you have to enable the device administrator somehow.. on my phone, it works just fine, now to get it to the watch
karoolus said:
yeah, you have to enable the device administrator somehow.. on my phone, it works just fine, now to get it to the watch
Click to expand...
Click to collapse
Yes im aware of that, you obviously didn't read the OP very well.. Thanks anyway..
Can you try editing gpio-keys.kl in /system/usr/keylayout
I think that is the file that tells the os what hardware buttons do
btw this idea got me thinking about enabling mass storage, but I had no luck with the couple of apps I tried. I think kernel needs ums module
Brendo said:
Can you try editing gpio-keys.kl in /system/usr/keylayout
I think that is the file that tells the os what hardware buttons do
btw this idea got me thinking about enabling mass storage, but I had no luck with the couple of apps I tried. I think kernel needs ums module
Click to expand...
Click to collapse
Genius. Worked a charm.. I sussed the keylayouts out previously.. I was looking at Generic.kl..
Modified Key 172 to POWER and it works a charm.
fOmey said:
Genius. Worked a charm.. I sussed the keylayouts out previously.. I was looking at Generic.kl..
Modified Key 172 to POWER and it works a charm.
Click to expand...
Click to collapse
Brendo said:
Can you try editing gpio-keys.kl in /system/usr/keylayout
I think that is the file that tells the os what hardware buttons do
btw this idea got me thinking about enabling mass storage, but I had no luck with the couple of apps I tried. I think kernel needs ums module
Click to expand...
Click to collapse
Awesome tag team. Works great with Nova!
How do you modify the key?
Sent from my SM-N900V using xda app-developers app
bosshogg38 said:
How do you modify the key?
Sent from my SM-N900V using xda app-developers app
Click to expand...
Click to collapse
Root file explorer.. Open the file as a text file.
can you guys please post instructions thank you!
jrdejavux said:
can you guys please post instructions thank you!
Click to expand...
Click to collapse
MUST BE ROOTED
1. Push a Root File Manager or adb to your gear.
2. Navigate to "/system/usr/keylayout", Open/pull the "gpio-keys.kl" file.. Confirm any root permission popup's.
3. Modify "Key 172 HOME" to "Key 172 POWER", Using a text editor.
4. Save/Push changes.
5. Restart gear.
I like to use adb to pull the files I want to modify to my desktop, Modify them, Place them on the SDCARD of the gear and then manually place them using a root file browser to their original locations. Also remember to set permissions, Imitate any other permissions in the same directory.
fOmey said:
MUST BE ROOTED
1. Push a Root File Manager or adb to your gear.
2. Navigate to "/system/usr/keylayout", Open/pull the "gpio-keys.kl" file.. Confirm any root permission popup's.
3. Modify "Key 172 HOME" to "Key 172 POWER", Using a text editor.
4. Save/Push changes.
5. Restart gear.
I like to use adb to pull the files I want to modify to my desktop, Modify them, Place them on the SDCARD of the gear and then manually place them using a root file browser to their original locations. Also remember to set permissions, Imitate any other permissions in the same directory.
Click to expand...
Click to collapse
Do you happen to have the stock file setup? I think I may have accidentally edited the wrong key, so now i have two lines with "Key 172 POWER".
MaTtKs said:
Do you happen to have the stock file setup? I think I may have accidentally edited the wrong key, so now i have two lines with "Key 172 POWER".
Click to expand...
Click to collapse
I do not, Although this is what it should look like:
Code:
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
key 116 POWER WAKE
key 172 POWER WAKE
fOmey said:
I do not, Although this is what it should look like:
Code:
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
key 116 POWER WAKE
key 172 POWER WAKE
Click to expand...
Click to collapse
Awesome. Thanks buddy.
MaTtKs said:
Awesome. Thanks buddy.
Click to expand...
Click to collapse
I can't get this to stick...I make the changes, and save, but when I go back in they are different again.
Using root explorer.
Sent from my SM-N900V using xda app-developers app

Categories

Resources