[THINK TANK] Remap Power/Lock to Camera Functions & Remove Low Battery Limitations - Vibrant Android Development

[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.

Related

The useless "Search" soft key.

Any apps to make it open something else?
Thanks.
there are plenty
quicksettings
quickdesk
handcent sms
are a few off the top of my head
i used to have a bunch more, but i have since uninstalled after trying nearly all the apps i want to try
(these will allow you to launch them by long press. i dont know if you can replace the short press)
Pretty sure short press is not easily changed. With froyo though longpress opens Google voice commands.
Sent from my SAMSUNG-SGH-I897 using XDA App
Nice.
Thank you.
id be interested in a kernel or rom that would allow this to be changed. long press on menu opens search so why a seperate key that can be usefull as something else? can any of those apps change the short press? ive only seen long press on search and on home.
I use visual task switcher and assigned the long press of the search key to bring up a list of currently running apps. Pretty handy.
I installed "screen lock" and assigned it to screen lock to take some stress off the power button.
I don't remember where, but I found a post somewhere on how to change it, short press on mine opens camera.
Button Shortcut in the market.
Sent from my Captivate.
Dani897 said:
id be interested in a kernel or rom that would allow this to be changed. long press on menu opens search so why a seperate key that can be usefull as something else? can any of those apps change the short press? ive only seen long press on search and on home.
Click to expand...
Click to collapse
AReynante said:
I don't remember where, but I found a post somewhere on how to change it, short press on mine opens camera.
Click to expand...
Click to collapse
wow, this is an old thread, for those interested dragon remaps the key as camera launch.
can be done in button remapper. also touch jestures can be mapped as keys in galay tuner.
for people who want to get custom and dont see the otions they want in button remapper, i think the key table is in /system/usr/keylayout/s3c-keypad.kl
this is good for fixing i9000 roms (partially) when no kernel is available for those who want to try samsung gingerbread
I like the long press for google voice search. Thanks for the idea.
If you end up flashing a ROM, CM7 has a way to change the search key in the settings menu
I took a look at the system/usr/keylayout/s3c-keypad.kl file but I'm having trouble figuring it out. Anyone know how to get more info on it? Would love to map QuickDesk to it
Dani897 said:
wow, this is an old thread, for those interested dragon remaps the key as camera launch.
can be done in button remapper. also touch jestures can be mapped as keys in galay tuner.
for people who want to get custom and dont see the otions they want in button remapper, i think the key table is in /system/usr/keylayout/s3c-keypad.kl
this is good for fixing i9000 roms (partially) when no kernel is available for those who want to try samsung gingerbread
Click to expand...
Click to collapse
OK.. I have the issue, seems quite random with the Search button. Am wondering if it is related to moisture from my palm (right-handed)... not sure. Will have to try the rice trick.
Have also taken a look at the remapping option, but don't seem to have write permissions to any of the files, much less, what values to place in the file(s).
Any assistance would be appreciated on teh edit option.
BTW: Captivate with CM7.1 (and a functional GPS after a number of patch/fixes applied)
cm7 has this option.

Use keyboard or volume keys for camera?

Hi,
Is there any way to use the keyboard (e.g. ENTER) or the volume keys to take a picture? The lack of shutter button is really bugging me..but either one of these keys would make it a lot more tolerable.
Any one?
Thanks
Have you tried the "OK" button? Works for me
id like this also
As said above, the OK button takes photos.
Thanks didn't know.
Though when closed volume keys would be even better or you'd have to slide every time
I use camera zoom fx which allows for pressing anywhere om screen to take a photo. Makes it easier to take photos when you can't see the screen to hit the touch shutter button
Rooted xt860, debloated and overclocked to 1.1
Camera Zoom FX/Pro in the market allows you to assign the volume keys to a shutter action. Plus, of course, it does a better job than the stock camera app.
doogald said:
Camera Zoom FX/Pro in the market allows you to assign the volume keys to a shutter action. Plus, of course, it does a better job than the stock camera app.
Click to expand...
Click to collapse
Sounds good but it's 3.50 euro
ProCapture allows you to use the volume buttons.
redsox985 said:
ProCapture allows you to use the volume buttons.
Click to expand...
Click to collapse
Thanks but the free version is limited to 3.2MP and the mute function doesn't work
DoubleYouPee said:
Thanks but the free version is limited to 3.2MP and the mute function doesn't work
Click to expand...
Click to collapse
The "free" version is a relative term based upon your moral standing.
redsox985 said:
The "free" version is a relative term based upon your moral standing.
Click to expand...
Click to collapse
ehm.. no. Free = 0 euro's.
It's not like im asking for advanced camera features. All I want is to change the shutter button from OK to volume button. How hard can it be? Especially in open source world of android..
DoubleYouPee said:
ehm.. no. Free = 0 euro's.
It's not like im asking for advanced camera features. All I want is to change the shutter button from OK to volume button. How hard can it be? Especially in open source world of android..
Click to expand...
Click to collapse
I'm sure you could extract the app from the /system/app folder, expand it, edit the apk, then replace it on the phone with the edited apk, and see how it works. As to how to do this...IDK, but it can't be that simple if it hasn't been done yet, because many people have requested this be changed.
redsox985 said:
I'm sure you could extract the app from the /system/app folder, expand it, edit the apk, then replace it on the phone with the edited apk, and see how it works. As to how to do this...IDK, but it can't be that simple if it hasn't been done yet, because many people have requested this be changed.
Click to expand...
Click to collapse
Well it's been done for galaxy (adjusting the apk). Unfortunately I'm too noob
But I was thinking more simple by e.g. apps that switch around keys when a certain app is opened or something
Please, I don't think we want third party paid apps for just changing one feature. It's more about: "How can we change the BlurCamera.apk to also take photos with the volume buttons".
"/system/usr/keylayout/cdma_solana-keypal.kl”
Replace VOICE to CAMERA etc.
mvp3 said:
"/system/usr/keylayout/cdma_solana-keypal.kl”
Replace VOICE to CAMERA etc.
Click to expand...
Click to collapse
Hehe I was doing some research and just wanted to type this.. But shouldn't we use qwerty.kl?
Anyway can you give a key 2 functions? E.g. volume - = volume - but also camera?
DoubleYouPee said:
Hehe I was doing some research and just wanted to type this.. But shouldn't we use qwerty.kl?
Anyway can you give a key 2 functions? E.g. volume - = volume - but also camera?
Click to expand...
Click to collapse
I think it is impossible.
replace a not the commonly used key that is a good method like 'Search'
mvp3 said:
I think it is impossible.
replace a not the commonly used key that is a good method like 'Search'
Click to expand...
Click to collapse
Well why would the search button be any better than the default OK button?
DoubleYouPee said:
Well why would the search button be any better than the default OK button?
Click to expand...
Click to collapse
no/don't need open keyboard

Power Button Camera Button

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.

Remap Keys During Camera

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

Is it possible to port the old camera to the new Pie One UI

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.

Categories

Resources