[THINK TANK] Remap Power/Lock to Camera Functions & Remove Low Battery Limitations
Hi all, i've had a thread about this in general for a while, but i think I would get more attention to this matter here.
I may not be a dev, but I do believe this is very doable, especially because Ive read this in a thread posted by rhcp0112345 titled Debug Codes which proves that the power button can be remapped to do certain functions just like my old G1 could do:
*#*#7594#*#*
This one is my favorite one. This code can be used to change the "End Call / Power" button action in your phone. Be default, if you long press the button, it shows a screen asking you to select any option from Silent mode, Airplane mode and Power off.
You can change this action using this code. You can enable direct power off on this button so you don't need to waste your time in selecting the option.
Click to expand...
Click to collapse
I also remember devs adding support for a Reboot Option to the Power Off Menu, so I think if that is possible, then it should be possible to add a Camera option to that list, and when the Camera is open, rather than use the power button to lock the screen and capacitive buttons, we can allow it to take pictures, and if you long press it, it will show the usual Power Off Menu plus the Lock option.
Also I was wondering if it was possible to remove what I call the Low Battery Limiter which denies the user access to the Camera, Avatar, Video Player and Music apps.
Opinions? Ideas?
Thanks for your time everyone! Our community is awesome!
speedysilwady said:
Hi all, i've had a thread about this in general for a while, but i think I would get more attention to this matter here.
I may not be a dev, but I do believe this is very doable, especially because Ive read this in a thread posted by rhcp0112345 titled Debug Codes which proves that the power button can be remapped to do certain functions just like my old G1 could do:
I also remember devs adding support for a Reboot Option to the Power Off Menu, so I think if that is possible, then it should be possible to add a Camera option to that list, and when the Camera is open, rather than use the power button to lock the screen and capacitive buttons, we can allow it to take pictures, and if you long press it, it will show the usual Power Off Menu plus the Lock option.
Also I was wondering if it was possible to remove what I call the Low Battery Limiter which denies the user access to the Camera, Avatar, Video Player and Music apps.
Opinions? Ideas?
Thanks for your time everyone! Our community is awesome!
Click to expand...
Click to collapse
If I remember correctly, the key mapping is actually in the kernal, which means that someone who was cooking up a full blown ROM would directly have to go in and map the driver function to the kernal. I don't think this is impossible, but it may not happen for a while. I do agree though, this is a very good idea except for moving Screen Lock to the menu for holding the power button. I think something simple like double press or Power+Volume Up. If I ever find time to muck around in the kernal source, I'll give this a look
speedysilwady said:
Also I was wondering if it was possible to remove what I call the Low Battery Limiter which denies the user access to the Camera, Avatar, Video Player and Music apps.
Opinions? Ideas?
Thanks for your time everyone! Our community is awesome!
Click to expand...
Click to collapse
This would be great!
Tydiz said:
If I remember correctly, the key mapping is actually in the kernal, which means that someone who was cooking up a full blown ROM would directly have to go in and map the driver function to the kernal. I don't think this is impossible, but it may not happen for a while. I do agree though, this is a very good idea except for moving Screen Lock to the menu for holding the power button. I think something simple like double press or Power+Volume Up. If I ever find time to muck around in the kernal source, I'll give this a look
Click to expand...
Click to collapse
ah so its all in the kernel i see. Yeah your idea the double tap sounds good too! I appreciate your interest in the idea! Do you know how to disable the Low Battery Limiter? would that be in the kernel too?
While they might not be in the right place, I think remapping the volume keys for the camera just makes more sense.
thegreatcity said:
While they might not be in the right place, I think remapping the volume keys for the camera just makes more sense.
Click to expand...
Click to collapse
maybe someone could make an apk along with the kernel to remap it to any button you want. i remember the g1 had a hack that allowed that possibility so im sure the vibrant can do it if someone had the will and know-how
The battery thing is here:
http://forum.xda-developers.com/showthread.php?t=748400
rhcp0112345 said:
The battery thing is here:
http://forum.xda-developers.com/showthread.php?t=748400
Click to expand...
Click to collapse
Thats not quite what I think they are talking about. That will simply make the popup that says "battery full, please unplug" go away. The issue is when your battery is low, the phone will deny you going into certain applications, such as the video player or other things.
Any progress on the low battery limiter?
thegreatcity said:
While they might not be in the right place, I think remapping the volume keys for the camera just makes more sense.
Click to expand...
Click to collapse
Then what would you do with the zoom in/out function that's currently mapped to the volume rocker?
I think the current "Lock Screen" function of the power button is useless, and would make way more sense as a physical button for the shutter.
While they might not be in the right place, I think remapping the volume keys for the camera just makes more sense.
Click to expand...
Click to collapse
Then what would you do with the zoom in/out function that's currently mapped to the volume rocker?
I think the current "Lock Screen" function of the power button is useless, and would make way more sense as a physical button for the shutter.
Click to expand...
Click to collapse
I second this statement.
No offense to anyone, but using the volume buttons is a stupid idea!
Sent from my SGH-T959 using Tapatalk
so i tried contacting JAC about this through a Private Message a few days ago, he hasnt responded yet but he's been active on twitter lately, so maybe he doesnt check his PMs, i dont have a twitter so i was wondering if anyone that does could tweet this thread to him and ask if he would be interested in implementing it in his kernel?
remapping the volume keys isn't necessarily in the kernel. just install adw launcher or launcher pro and add the camera app to your dock. it's easier.
xREVOx, I think you misunderstood the OP. I believe he is suggesting the power button be remapped to the camera shutter, which I believe is an excellent idea. I would love to help, if I could. I know c++, but have never messed with the linux kernel or android rom dev so I doubt I would be of much use. Either way, I would lover to see it a part of CM 6.1 when that comes out
Sent from my SGH-T959 using XDA App
xREVOx said:
remapping the volume keys isn't necessarily in the kernel. just install adw launcher or launcher pro and add the camera app to your dock. it's easier.
Click to expand...
Click to collapse
Like MinosDis said I was thinking of having an option to add Launch Camera to the power button menu, and once the camera app is launched the power button could be used as a physical shutter button.
Also I really wanna get rid of that low battery popup that prevents access to the music player video player and camera.
If anyone with a twitter echoes my sentiments perhaps they can retweet this thread to @wesgarner or @justanotherdev because I can't get ahold of them on here and I have no twitter.
I use mixzing, and it will play up until you phone powers off. Not quite a hack, but a viable workaround for now
Sent from my SGH-T959 using XDA App
adamcooks said:
I use mixzing, and it will play up until you phone powers off. Not quite a hack, but a viable workaround for now
Sent from my SGH-T959 using XDA App
Click to expand...
Click to collapse
Thanks for the tip, I use rock player for videos, and I tried some free camera apps but they all aren't as good as the stock one so I'm hoping jac or kingklick will implement this into one of their kernels
Did you guys Manage to Remove Low Battery Limitations? If not I have, mine is now set to warn / warning level at 5%
eugene373 said:
Did you guys Manage to Remove Low Battery Limitations? If not I have, mine is now set to warn / warning level at 5%
Click to expand...
Click to collapse
Hey eugene thanks for your input and contribution I don't think anyone made any progress on this front. JAC told me it is rom AND kernel related if I wanted the battery limits removed and the camera button remapped so it's not that easy. I'm very glad and thankful that you handled the low battery limitations thank you so much!
Just in case anyone subscribed to this thread.
There's an app in the market called "SGS Tools". You can now use the power button as a shutter button, take pictures when battery is low, and pinch to zoom on the camera (it's a little sluggish). Thanks to Fr4gg0r for developing this.
Article here
http://androidspin.com/2010/12/12/update-your-galaxy-s-camera-to-support-push-to-zoom/
Edit:Do Not Download. There has been reports of it messing up the camcorder and force closes.
Hi! I have a problem with camera. When i hold camera button camera don't lauch.When i open camera from menu, it opens but when i want to photo,i hear noise but when i go to camera roll, there is no photo. Please help me!
what sound do you hear is it the shutter sound? i thought mine didnt work then found out i had to press harder on the camera button, its like a 2 position button first press is focus and harder push is take picture
Hey everyone,
just woundering if there is a way that something like this could be made for our DHD
This was made for the HD2:
http://www.xda-developers.com/windo...0-1-use-your-volume-keys-as-a-camera-trigger/
I believe the app "vignette" has the ability to enable this feature, if you don't mind switching programs.
There is an app called volume key camera
Code:
xxx .androidzoom.com/android_applications/media_and_video/volume-key-camera_pffj.html
but kept getting FC , and have moved to camera 360, in which I can take pict by touching the screen itself
I found the best app for it and have been using it for a while now and very happy with it. It's called "pro capture". Hope this helps if anyone else is looking for one
Sent from my HTC Desire HD
in Cyanogenmod In the camera app you can use the volume buttons to zoom in and out also to make the search button capture pictures
It's too bad that the DHD doesn't have a camera button.
In fact I would wish to have something that turns the camera app on when pressed and takes a picture on long press for example.
The volume keys are good to some extent but not enough and will never replace the real camera button functionality.
power button idea
wonder if anyone could make power button as camera
I like the idea of using the volumes keys for zoom, that sound cool
I just finished replacing my volume rocker after it simply fell off following normal usage. I personally would not want to suggest doing anything which would make you use the key more. It's quite flimsy. Definitely the weak point in the design.
I know it has been discused on other phones that also dont have a camera button but i failed to get the answear i was looking for. So it is possible to modify the power button to be used as camera button while in camera app and still remain a power button in the other apps?
Rly sry i wanted to post this in thr Q&A Section but i accidentaly posted here if anyone can move it pls do so.
I think you would need some kind of app (or even a custom rom/root). I have never seen that done, but in theory it could be possible
No, well yes, but remapping that would mean you would have no power button. And it would be a lot harder to try and get it to only be when the camera is open, so the solution is to: instead of wanting the power button to control camera, why not use the volume buttons instead?
You can try button remapper(ing) I forgot the exact name, its an app. I forgot where I got it from. Only thing is I've never tried it on this phone so I'm not sure if it'll work or not.
Sent from my Nexus S 4G using XDA App. Developer of brickROM, and OP of XDA Thread of The Year 2011.
CM7 has this featrure. You can use volume buttons or power button to take a photo.
If you can do it without the standard app, you could try this: https://market.android.com/details?...DEsIm5ldC5tcnBsdXMuYW5kcm9pZC5kZWZ5cGhvdG8iXQ..
You kind of need a power button - unless you are talking about really changing the behavior.
i think the OP wants a temporary change in the behavior of the button (i.e. only acts like a camera button when you have the camera app open and are using it). That should be entirely possible given the fact it was already mentioned as a feature in CM7, which is now "old"
i would actually appreciate that. obviously its a pain to take pictures of yourself with the back camera without camera button.
it would be great if some kind of addon would change the power buttons function as long as the camera app is opened.
I am going to attempt to remap the outside keys for when the camera is being used to allow non-touchscreen controls as well. I don't know if anyone has tried or started work on this idea yet, but I will give it a go and post results and the update.zip on here once it is good to go.
Sent from my DROID4 using xda app-developers app
Not to stir the thread off topic, but can i just say how moto seemed to finally get the camera right? I cant believe how fast it starts up. It still has some of the weird focus isssues, but switching between modes, taking pics.. ive ditched my purchased apps in favor of the default camera.
I agree. It definitely runs so much smoother than in previous renditions. I just want to have a method for taking a picture via non touchscreen. Miss the dedicated camera button. Will be working on this during the week and hopefully will have it done and up by the weekend.
Sent from my DROID4 using xda app-developers app
what would you use? traditionally, the volume keys were the zoom in/out and the camera button took the pic. maybe something on the keyboard? have you tried the OK button?
640k said:
what would you use? traditionally, the volume keys were the zoom in/out and the camera button took the pic. maybe something on the keyboard? have you tried the OK button?
Click to expand...
Click to collapse
The "ok" button does take pictures, but then you need to have the keyboard out. I'm going to attempt to remap the power button to take the picture (as most people wouldnt be turning off the screen while the camera is on) and keeping the volume buttons as the zoom in/out as it currently is.
azrael293 said:
The "ok" button does take pictures, but then you need to have the keyboard out. I'm going to attempt to remap the power button to take the picture (as most people wouldnt be turning off the screen while the camera is on) and keeping the volume buttons as the zoom in/out as it currently is.
Click to expand...
Click to collapse
THIS WOULD BE PERFECT!!! Let us know what you come up with.
Thanks!
This is already possible by default, if I understand your question correctly.
In the ICS build (at least .215, not sure about earlier versions) there is a "Volume Key Function" option in the stock camera settings. You can use this to set the volume keys to 'Capture' instead of 'Zoom'. As I never use digital zoom, this already works great for me!
Sjaakbanaan said:
This is already possible by default, if I understand your question correctly.
In the ICS build (at least .215, not sure about earlier versions) there is a "Volume Key Function" option in the stock camera settings. You can use this to set the volume keys to 'Capture' instead of 'Zoom'. As I never use digital zoom, this already works great for me!
Click to expand...
Click to collapse
Trying to get the power button to act as camera and keep volume keys as zoom. also doing this on GB.
azrael293 said:
Trying to get the power button to act as camera and keep volume keys as zoom. also doing this on GB.
Click to expand...
Click to collapse
In that case, never mind and good luck
On my ME863 I installed a 3rd party camera app just because of the "volume button = shutter" function, and it was nice to see there was no need for that on the Droid 4!
Sjaakbanaan said:
In that case, never mind and good luck
On my ME863 I installed a 3rd party camera app just because of the "volume button = shutter" function, and it was nice to see there was no need for that on the Droid 4!
Click to expand...
Click to collapse
Thanks. Hopefully I can pull it off. Currently trying to fix my D4.. ran into a boot logo mod issue and just got it back up