FORUMS
Remove All Ads from XDA

[MOD] TAKE PICTURE with VOLUME KEY (ONE KEY SHOOT & FAST CAPTURE) 67FW 02/10/13

667 posts
Thanks Meter: 714
 
By black97one, Senior Member on 6th May 2013, 05:35 AM
Post Reply Email Thread
Hello,

Sony the Xperia Z is the best of SONY...but they are mess something, an hardware camera key
So i decide to enable the volume key to take picture and also "FastCapture MODE" when holding in stanby mode


https://www.youtube.com/watch?v=dNag...e_gdata_player




to ZOOM IN/OUT you use the "pinch to zoom" functionnality
out of the camera app the volume key work like before



INSTALLATION:

1) Just flash one of the MOD with CWM RECOVERY...then reboot


2) Don't forgot to enable the FAST CAPTURE in camera app settings







DOWNLOAD:






I decided to separate my "MOD" in two independent zip ...

you can choose to use one ... either ... or both


MOD for VOLUME DOWN KEY to CAPTURE...


V7: compatible for all JB 4.2 ROM on 244 FW using the STOCK CAMERA APP:
http://www.mediafire.com/download/r2..._VolumeMOD.zip


V5a: compatible for all JB 4.2 ROM using the STOCK CAMERA APP: http://www.mediafire.com/download/r1..._VolumeMOD.zip


V4a: compatible for all JB 4.1 ROM using the STOCK CAMERA APP:http://www.mediafire...a_VolumeMOD.zip



If you want the FastCapture look just above for the " MOD for Standby FastCapture"


know connu: NONE







MOD for Standby FastCapture
flash only one compatible for your ROM


-For STOCK-JB-67-ODEX:--->> http://www.mediafire.com/download/wa...K-67-ODEX_.zip

-For STOCK-JB-67-DEODEXED:--->> http://www.mediafire.com/download/49...67-DEODEX_.zip




-For STOCK-JB-244-ODEX:--->> http://www.mediafire.com/download/0p...-244-ODEX_.zip
-For STOCK-JB-244-DEODEXED:--->> http://www.mediafire.com/download/74...44-DEODEX_.zip
-for monxDIFIED[JB4.2] [v04-03)]--->> http://www.mediafire.com/download/kj...Bv04-03%5D.zip



-For STOCK-JB-423-ODEX:--->> http://www.mediafire.com/download/r7...-423-ODEX_.zip
-For STOCK-JB-423-DEODEXED:--->> http://www.mediafire.com/download/wn...-DEODEXED_.zip
-For eXistenZ-V4: http://www.mediafire.com/download/hb...XistenZ-V4.zip
-for monxDIFIED[JB4.2] [v03-60)]--->> http://www.mediafire.com/download/ek...v03-60)%5D.zip


-For STOCK-307-ODEX:--->> http://www.mediafire.com/download/v2...-307-ODEX_.zip
-For 307-DEODEXED:--->> http://www.mediafire.com/download/3o...-DEODEXED_.zip
-for monxDIFIED[307] [v02-01]--->> http://www.mediafire.com/download/fk...Bv02-01%5D.zip
-for RomAur-V5--->> http://www.mediafire.com/download/m2..._RomAur-V5.zip
-For eXistenZ-V3: http://www.mediafire...eXistenZ-V3.zip
-For STOCK-253-ODEX: http://www.mediafire...24kgc9jbc9qgbmf
-For 253-DEODEXED: http://www.mediafire...q7vr33g4ghe4xym
-For STOCK-434-ODEX: http://www.mediafire.com/download/es...-434-ODEX_.zip
-For KA07 Revolution: http://www.mediafire.com/download/c0...r_KA07_ROM.zip
-For RomAur: http://www.mediafire.com/download/3g...RomAur_ROM.zip
-For STOCK-350-ODEX: http://www.mediafire.com/?gxrqkiinotqa9bn

Know Bug:
ONLY WHEN LISTENING MUSIC SCREEN OFF: no possibility of lowering the volume (using the volume down key)

alternative solution:
press the POWER button to turn on the lockscreen in order to reduce VOLUME (no need to unlock)



CHANGELOG:

V1: enable volume key (key UP then key DOWN) to take picture and video

V2: enable Standby FastCapture with Volume DOWN key

V3: ONE KEY to shoot by volume down key

V4: one key capture with volume Down key...on flastcapture and other mode

V5: update to JB 4.2

V6: test version... ONLY for HONAMI ROM

V7: Update to 244 FIRMWARE


NEXT CHANGE
POWER Key to shoot...don't know if i can do it








thank to Cemal and niaboc79 for your help








HOW TO



1) décompile your "android.policy.jar"

2) open the "PhoneWindowManager.smali"






3) go to the method "interceptKeyBeforeQueueing"






4) go to the end of the method and change the line


0x18 -> :sswitch_c7

to

0x18 -> :sswitch_2c5








5) save and recompile your "android.policy.jar"


enjoy
The Following 106 Users Say Thank You to black97one For This Useful Post: [ View ] Gift black97one Ad-Free
 
 
6th May 2013, 05:45 AM |#2  
Spikestrip's Avatar
Senior Member
Thanks Meter: 18
 
More
Cool! Trying it now.

EDIT: Hmm. For some reason every time I mount system as r/w the phone reboots. I had to be in there to make Google Wallet work, and that never happened then.
6th May 2013, 06:19 AM |#3  
black97one's Avatar
OP Senior Member
Thanks Meter: 714
 
Donate to Me
More
try to root your phone again...problem with your ric file
The Following 5 Users Say Thank You to black97one For This Useful Post: [ View ] Gift black97one Ad-Free
6th May 2013, 06:49 AM |#4  
Spikestrip's Avatar
Senior Member
Thanks Meter: 18
 
More
So that worked. I was using the ROM in the development section that is stock, deodexed, and zipaligned. Guess I should inform that dev of my issue. Anyway, now my camera disappeared. I even had the foresight to append the original file with .bak, except I did that to the wrong file. Any chance you have an unmodified version I can put back?

EDIT: I figured out my problem, it was all my fault. Works great now! It's a little weird to press both volume buttons at once, but still a great way to take pictures underwater.
The Following User Says Thank You to Spikestrip For This Useful Post: [ View ] Gift Spikestrip Ad-Free
6th May 2013, 09:01 AM |#5  
Senior Member
Thanks Meter: 76
 
More
Awesome mod!!!

Works fine on stock Rom.

Thank you so much!

Sent from my C6603 using xda app-developers app
The Following 2 Users Say Thank You to FiDra For This Useful Post: [ View ] Gift FiDra Ad-Free
6th May 2013, 09:01 AM |#6  
nhoc_huhu's Avatar
Senior Member
Flag Thái Nguyên
Thanks Meter: 131
 
More
Quote:
Originally Posted by Spikestrip

Cool! Trying it now.

EDIT: Hmm. For some reason every time I mount system as r/w the phone reboots. I had to be in there to make Google Wallet work, and that never happened then.

Do u flash CWM without UB???
6th May 2013, 09:24 AM |#7  
Spikestrip's Avatar
Senior Member
Thanks Meter: 18
 
More
Quote:
Originally Posted by nhoc_huhu

Do u flash CWM without UB???

I'm not sure what you mean.

EDIT: I think you mean Unlocked Bootloader. My bootloader is still locked, if that's what you were asking. There was no flashing involved with getting CWM or this mod installed. I didn't flash Google Wallet either, it was a fairly manual install. I *did* flash the ROM I'm using, this one. I also flashed the DoCoMo status bar, the smaller nav bar and related camera fix, and a zip provided by a forum member to make the status and navigation bars transparent. Flashing the ROM caused me to have to root again and to rename the /data/usf directory in order to get NFC working again.

Let me know if none of this answered your question.
6th May 2013, 10:20 AM |#8  
black97one's Avatar
OP Senior Member
Thanks Meter: 714
 
Donate to Me
More
Quote:
Originally Posted by FiDra

Awesome mod!!!

Works fine on stock Rom.

Thank you so much!

Thanks for report
It will work for every ROM with stock camera app



Xperia Tapatalk
The Following 3 Users Say Thank You to black97one For This Useful Post: [ View ] Gift black97one Ad-Free
6th May 2013, 11:16 AM |#9  
vibecatalin's Avatar
Senior Member
Thanks Meter: 88
 
Donate to Me
More
If this works with no problems, it will be a final version of this mod? Or this is it?
6th May 2013, 11:36 AM |#10  
black97one's Avatar
OP Senior Member
Thanks Meter: 714
 
Donate to Me
More
Actually no problem and no BUG with my MOD

It's first release...I'm working to enable "fast capture" and "one key shoot" for futur release

They are other things I want to enable like burst mode


Xperia Tapatalk
The Following 4 Users Say Thank You to black97one For This Useful Post: [ View ] Gift black97one Ad-Free
6th May 2013, 11:53 AM |#11  
vibecatalin's Avatar
Senior Member
Thanks Meter: 88
 
Donate to Me
More
Ok. I will install the mod. Thank you!
Post Reply Subscribe to Thread

Tags
xperia z camera volume

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes