Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,731,116 Members 48,209 Now Online
XDA Developers Android and Mobile Development Forum

Disable Hard Reboot

Tip us?
 
GreatApo
Old
#1  
GreatApo's Avatar
Senior Member - OP
Thanks Meter 104
Posts: 251
Join Date: Feb 2011

 
DONATE TO ME
Default Disable Hard Reboot

Hello everyone,

I have a X8 with a broken power button, which causes reboots when i click the home button because on the Hard reboot feature.
Can we modify the kernel to change the camera button to power button? Or disable the reboot feature (power+home buttons)?

Point me to the right direction if anyone knows anything (i was not lucky searching kernel sources)

Thank you in advance
GreatApo (AKA Apo59m) | Web Developer
Xperia X8 White/Blue Owner | MiniCM & nAa User

Lenovo A850 Black Owner | Waiting for a Cyanogenmod port!
There are 10 types of people.
Those who understand binary and those who do not.
 
pilu1978
Old
#2  
pilu1978's Avatar
Senior Member
Thanks Meter 1677
Posts: 838
Join Date: Jul 2011
If you want to disable the keyboard reset, just revert this commit: https://github.com/nobodyAtall/nAa-k...49775e8609ebfc

or:

just replace the power button with camera button for the keyboard reset in the arch/arm/mach-msm/board-delta.c file

Code:
static struct keyreset_platform_data shakira_reset_keys_pdata = {
	.keys_up = shakira_reset_keys_up,
	.keys_down = {
		KEY_POWER,
		KEY_HOME,
		0
	},
};
Just change the KEY_POWER to KEY_CAMERA (or KEY_BACK, KEY_MENU, KEY_VOLUMEUP, KEY_VOLUMEDOWN)
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes