Is there a certain way to disable the home key? (related to modding stock apps)
<p>I was just searching for it, and it seems like most people say that it is impossible to disable the home key without making your app an alternate launcher. I'm curious if there is some special way that companies like Samsung are allowed to use to disable it.</p>

<p>For example, I have a Samsung Infuse and when I open the Camera app and press the power button, it locks all of the hardware buttons. The home key, back key, everything. When you press them after they are locked, they don't do anything at all. You can press the power button again to unlock them, and you are free to lock them again later whenever you want.</p>

<p>I'm curious because I'm trying to mod the camera app on my phone to use the power button to take pictures. I've decompiled the app using apk manager and modified Camera.smali to take pictures with the power button, however it is still locking the home key and all the others. I tried searching in there for anything related to locking any buttons, but I couldn't find anything.</p>

<p>Does anyone know how they would be able to lock/disable the home key? Based on what I've found from searching, it's not possible to disable it unless you use your app as an alternate launcher, but clearly Samsung(or Google? I'm not sure if this is a Samsung/TouchWiz app or a stock Android one) was able to do it in their Camera app without making the app act as a launcher.</p>
