Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,741,979 Members 46,629 Now Online
XDA Developers Android and Mobile Development Forum

[MOD] Camera Mod: Take pictures with the power button

Tip us?
 
Frooty
Old
(Last edited by Frooty; 31st July 2011 at 08:20 PM.)
#1  
Senior Member - OP
Thanks Meter 39
Posts: 208
Join Date: May 2011
Default [MOD] Camera Mod: Take pictures with the power button

This is a mod to the stock camera app that comes with the Infuse.

Features:
  • Take pictures with the power button
  • Take pictures even when low on battery (less than 15%)
  • Record videos even when low on battery (less than 15%)

Know bug:
The only known bug so far is the home key ceases to function on odd presses of the power button. So if you take a picture with the power button, the home key won't close the app, but if you take another picture with the power button, the home key will work correctly again. It keeps flip flopping between working and not every time you press the power button.

However, even when the home key doesn't work, you can still close the app with the back key. I tried forever to fix this but so far couldn't. If people complain about it then I'll look into it more.
Thanks MikeyMike01 for giving me the fix!

Update:
  • Version 1.1 has the fix to the home key not working.

Note: This is my first ever mod for any phone. I've tested it and had some other people test it and everything seems to be working perfectly, however keep in mind that since this is my first mod that something I may not have thought of may go wrong. If something does happen, let me know and I'll do my best to help.

Installation:
Download link


It is a CWM flashable zip. Download the zip, boot into CWM, and install it. Then reboot and you're good to go. Be sure to back up your current Camera.apk (/system/app/Camera.apk) in case something happens to it. Nothing should happen, but better be safe than sorry.

Do not install this on a stock ROM. This requires you to be on a deodexed ROM in order to use; installing it on a stock ROM with just cause it to FC whenever you open it. If you still want to use it on a stock ROM, try installing it and then deleting Camera.odex from /system/app.

If something gets screwed up and you want to go back to the stock camera, put this in your /system/app : http://www.mediafire.com/?agjxja90ord61xc
Again, that camera is deodexed and won't work on a stock ROM.

If you need help with anything feel free to ask. Questions, comments, and concerns are always welcome.

Thanks
Whoops, forgot to thank people! Thanks to arcangels03 (he doesn't know it, but that post is what I used to get started in modding), h8rift, hoofadoo, RockingKK, gtg(for helping me realize the home button is a lost cause), aleadam for the Home Key fix and MikeyMike01 for linking me to it, as well as a few other people from the IRC whose names I am forgetting.
The Following 18 Users Say Thank You to Frooty For This Useful Post: [ Click to Expand ]
 
MikeyMike01
Old
#2  
MikeyMike01's Avatar
Recognized Developer
Thanks Meter 2461
Posts: 6,411
Join Date: Jul 2010

 
DONATE TO ME
The home button fix is detailed here:

http://forum.xda-developers.com/show...2&postcount=20
Apple iPhone 5S
Google Nexus 7
.
Motorola Moto X
Nokia Lumia 521
Apple iPhone 5
Google Galaxy Nexus
Samsung Galaxy S II
Motorola Xoom
Samsung Infuse 4G
Samsung Captivate
The Following User Says Thank You to MikeyMike01 For This Useful Post: [ Click to Expand ]
 
DevilDogAK
Old
#3  
DevilDogAK's Avatar
Senior Member
Thanks Meter 19
Posts: 171
Join Date: Oct 2009
Location: Juneau, AK
Causes camera app to fc. Good idea,execution needs work though. Thanks for the effort.

Sent from my SAMSUNG-SGH-I997 using XDA Premium App
Rooted AT&T Galaxy Note 3
 
Frooty
Old
#4  
Senior Member - OP
Thanks Meter 39
Posts: 208
Join Date: May 2011
Quote:
Originally Posted by MikeyMike01 View Post
The home button fix is detailed here:

http://forum.xda-developers.com/show...2&postcount=20
You are the man! I scoured the internet as far as I could and could not find a fix to this at all. I did have the idea this morning of doing something similar to what the person in the link said but I was being lazy and didn't really feel like trying anything new at the moment.

Also is this causing anyone else's camera to FC? If it does could you post what ROM you're using and any other information that you think may or may not be helpful?
The Following User Says Thank You to Frooty For This Useful Post: [ Click to Expand ]
 
diablo009
Old
#5  
diablo009's Avatar
Senior Member
Thanks Meter 1340
Posts: 5,528
Join Date: Apr 2009
Location: Atlanta GA
Works on mine. Am on infused 1.5.0 with the default bundled kernel. Thanks mate.


T Mobile Galaxy S5: [ROM] AllianceRom - Build 2

AT&T Galaxy S5: [ROM] Stock Rooted


All Infuse modems individually packed into CWM flashable packages


Android Memory Management
Customizing Icons

Clicking "THANKS" is the simplest and easiest way of showing appreciation.
 
Frooty
Old
#6  
Senior Member - OP
Thanks Meter 39
Posts: 208
Join Date: May 2011
Quote:
Originally Posted by diablo009 View Post
Works on mine. Am on infused 1.5.0 with the default bundled kernel. Thanks mate.
Awesome, good to hear!

I also just uploaded a new version with the home key working. Thanks Mikey!
The Following User Says Thank You to Frooty For This Useful Post: [ Click to Expand ]
 
The Jack of Clubs
Old
#7  
The Jack of Clubs's Avatar
Senior Member
Thanks Meter 444
Posts: 2,685
Join Date: Jan 2007
Location: Houston
im richard nixon and i approve this message.
The Following 3 Users Say Thank You to The Jack of Clubs For This Useful Post: [ Click to Expand ]
 
RockingKK
Old
(Last edited by RockingKK; 17th July 2011 at 10:17 PM.) Reason: update install results
#8  
RockingKK's Avatar
Member
Thanks Meter 2
Posts: 58
Join Date: May 2011
Location: Outside Tuscola Texas
Good to see ya got it working. Gonna give it a try now.

K got it installed and no issues on my end. Worked like a charm.
Running Refuse 1.6 with its included kernel
 
abr27440
Old
#9  
Junior Member
Thanks Meter 0
Posts: 12
Join Date: Jul 2010
Works great thanks!
 
matermine
Old
#10  
Junior Member
Thanks Meter 0
Posts: 28
Join Date: Apr 2009
Works perfectly for me. Quick install too. Thanks!

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes