[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.
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.
Is it possible, perhaps via an app somewhere, to use one of the device's few buttons (home button, volume rocker, and so on) to take a picture rather than the horrible on-screen button?
Brad387 said:
Is it possible, perhaps via an app somewhere, to use one of the device's few buttons (home button, volume rocker, and so on) to take a picture rather than the horrible on-screen button?
Click to expand...
Click to collapse
if you are rooted, then yes, search for camera shutter mod, you will get a thread with a modified camera.apk file, just replace it with the original and restart and you are done. for more details, search for the thread. and if you are not rooted. then no there isnt.
sujaishukla said:
if you are rooted, then yes, search for camera shutter mod, you will get a thread with a modified camera.apk file, just replace it with the original and restart and you are done. for more details, search for the thread. and if you are not rooted. then no there isnt.
Click to expand...
Click to collapse
There are ones which let you do it whilst not rooted, since I used to have one. Can't remember it though.
Is it possible to set hardware button (or combination of buttons) to lunch camera application? I would like to be able to take a picture without use of touch screen. I tried camera zoom FX in which you can set volume button for shutter. To lunch application I have used S-voice, but it is very unreliable and requires internet connection. So Iām looking for other ideas.
Try another apps and if not I think we need a new kernel with this feature
Sent from my GT-I8190 using Tapatalk 2
No custom kernel needed
You could re-assign the S-Voice double home press through some framework editing. Of course you need some dev skill as it won't be easy!
I will post you some links asap!
EDIT: I'm quite sure that you can do this by editing android.policy.jar.
Decompile it using apktool and take a look at com\android\internal\policy\impl\PhoneWindowManager.smali, lines 3896 to 3922 define the double home press behaviour This is the best I can do, I hope you'll find it useful ^^
The easy way: you can always try to search on the play store and assign a custom gesture/key the camera launch activity
dariolob said:
No custom kernel needed
You could re-assign the S-Voice double home press through some framework editing. Of course you need some dev skill as it won't be easy!
I will post you some links asap!
EDIT: I'm quite sure that you can do this by editing android.policy.jar.
Decompile it using apktool and take a look at com\android\internal\policy\impl\PhoneWindowManager.smali, lines 3896 to 3922 define the double home press behaviour This is the best I can do, I hope you'll find it useful ^^
The easy way: you can always try to search on the play store and assign a custom gesture/key the camera launch activity
Click to expand...
Click to collapse
Thank you for your answer. I'm not familiar with apktool, so I did some more search on the play store and I found an application Home2 Shortcut. With this app you can reassign double click of menu key to start any application. Now with double click of menu button I lunch the Camera zoom FX and with volume button I take a picture. Now I'm able to take a picture with my winter biking gloves on.
Hi,
Does anyone know if there is compatibility for the old camera app on the new One Ui? Or is it possible to port it now or in the future?
Two things make the camera a downgrade when switching to the new One UI, for me at least:
- You had a separate button for video and picture, so you were one touch away from taking either a video or a picture. I had a really nice setup where I could take a video with the volume buttons and open camera and take picture with 1 click of the Bigsby button. This proved really useful when i went horse back riding for the first time, or with gloves on when the screen is not responsive.
- More importantly: You had a dual shot mode where you could take pictures/video with both cameras at the same time. This was really useful when trying to fit more people in a picture, or even for me to be in there, and have a nice memory stored.
They also locked the Bigsby button so you can no longer disable it... again...
Search for the app on apkmirror and try installing it.
dumitrudan608 said:
Hi,
Does anyone know if there is compatibility for the old camera app on the new One Ui? Or is it possible to port it now or in the future?
Two things make the camera a downgrade when switching to the new One UI, for me at least:
- You had a separate button for video and picture, so you were one touch away from taking either a video or a picture. I had a really nice setup where I could take a video with the volume buttons and open camera and take picture with 1 click of the Bigsby button. This proved really useful when i went horse back riding for the first time, or with gloves on when the screen is not responsive.
- More importantly: You had a dual shot mode where you could take pictures/video with both cameras at the same time. This was really useful when trying to fit more people in a picture, or even for me to be in there, and have a nice memory stored.
They also locked the Bigsby button so you can no longer disable it... again...
Click to expand...
Click to collapse
I agree with you. I would also like the previous functionality of having both the camera and video buttons on the same screen again.
As far as the Bixby button goes, you can use BxActions to disable and remap the button. It works pretty well.
Max_Terrible said:
I agree with you. I would also like the previous functionality of having both the camera and video buttons on the same screen again.
As far as the Bixby button goes, you can use BxActions to disable and remap the button. It works pretty well.
Click to expand...
Click to collapse
I do use BxActions,but how do you prevent Bigsby from appearing when you press it? You used to have to disable it from the Bigsby app, and yo no longer have that option.
dumitrudan608 said:
I do use BxActions,but how do you prevent Bigsby from appearing when you press it? You used to have to disable it from the Bigsby app, and yo no longer have that option.
Click to expand...
Click to collapse
I disabled my single press function. I only have a long-press function for my flashlight. Bixby doesn't show up for me when I single-, double-, or long-press the button. Occasionally it'll show the icon at the top and it did open Bixby once, but I couldn't figure out under which circumstance that was and I couldn't replicate it again since. Bottom line, Bixby doesn't show up for me when I press the button.