[MOD][GUIDE] [Team ReJectZ] FI03 Camera-Volume Rocker/Shutter Mod

timmetal6669

Inactive Recognized Developer
Apr 15, 2012
2,761
2,029
0
Redlands CA
FIO3 volume rocker / shutter mod


Made the mod from the guide here, be sure to thank his thread, camera mod

3. Camera Volume Up/Down as a shutter
* FILE:
com\sec\android\app\camera\Camera.smali

* METHOD:
.method public onKeyDown(ILandroid/view/KeyEvent;)Z
* MODIFIED switch case:
.line 1487
:sswitch_data_204
.sparse-switch
0x4 -> :sswitch_38
0x17 -> :sswitch_90
0x18 -> :sswitch_90

0x19 -> :sswitch_90
0x1a -> :sswitch_38
0x1b -> :sswitch_90
0x42 -> :sswitch_90
0x50 -> :sswitch_3a
0x52 -> :sswitch_36
0x55 -> :sswitch_38
0x59 -> :sswitch_38
0x5a -> :sswitch_38
.end sparse-switch
* EXPLANATION:
0x18 is volume up, 0x19 is volume down
We are telling these switch cases to link to sswitch_90 and act the same as touch shutter button.
----------
* METHOD:
.method public onKeyUp(ILandroid/view/KeyEvent;)Z
* MODIFIED switch case:
.line 1690
nop

:sswitch_data_184
.sparse-switch
0x4 -> :sswitch_3d
0x17 -> :sswitch_cd
0x18 -> :sswitch_cd

0x19 -> :sswitch_cd
0x1a -> :sswitch_3d
0x1b -> :sswitch_cd
0x42 -> :sswitch_cd
0x50 -> :sswitch_146
0x52 -> :sswitch_96
.end sparse-switch
* EXPLANATION:
0x18 is volume up, 0x19 is volume down
We are telling these switch cases to link to sswitch_90 and act the same as touch shutter button.
I took the camera from the black ROM and modded the smali to to allow you to take pictures with the volume rockers. Devs if you want to use this fio3 modded camera in your Rom I don't mind, just re theme it and gimme credit for making the mod, AND thank the Dev from the original thread.

Directions: download to sd card, boot into recovery, wipe cashe, dalvik cashe, and flash.

DOWNLOAD FIO3 camera/shutter mod here.camera volume rocker shutter mod
 
Last edited:

tdunham

Recognized Contributor
Jun 21, 2008
13,686
36,462
0
TampaBay
Hey Tim, do you want to post the one I did for FI25 also?
Camera sounds removed
Volume rocker mod
Camera can be used with less than 15% battery & during phone calls

I have the same mod for FI03 if you want it as well.
The camera app is definitely one of the harder ones to mod, especially since they changed a lot of the code from build to build.
 

timmetal6669

Inactive Recognized Developer
Apr 15, 2012
2,761
2,029
0
Redlands CA
Hey Tim, do you want to post the one I did for FI25 also?
Camera sounds removed
Volume rocker mod
Camera can be used with less than 15% battery & during phone calls

I have the same mod for FI03 if you want it as well.
The camera app is definitely one of the harder ones to mod, especially since they changed a lot of the code from build to build.
Ya bro, thats totally cool. Post a link, and I'll link it with credit to you in the OP. Good lookin out man! :)
 

tdunham

Recognized Contributor
Jun 21, 2008
13,686
36,462
0
TampaBay
FI03 & FI25 Modded camera

Here are both FI03 & FI25 deodexed modded camera flashable zips.

These have a couple of extra features:
- Sounds removed (note, this does not remove the sounds that come with the stock roms, just those in the camera.apk)
- Volume rockers can be used to take pictures
- Camera can be used with less than 15% battery and during phone calls
 

Attachments

Last edited:

timmetal6669

Inactive Recognized Developer
Apr 15, 2012
2,761
2,029
0
Redlands CA
Here are both FI03 & FI25 deodexed modded camera flashable zips.

These have a couple of extra features:
- Sounds removed (note, this does not remove the sounds that come with the stock roms, just those in the camera.apk)
- Volume rockers can be used to take pictures
- Camera can be used with less than 15% battery and during phone calls
Good job man. Excellent work .! I'll add those to the top shortly. Thank you sir!
 

timmetal6669

Inactive Recognized Developer
Apr 15, 2012
2,761
2,029
0
Redlands CA
Hey Tim, do you want to post the one I did for FI25 also?
Camera sounds removed
Volume rocker mod
Camera can be used with less than 15% battery & during phone calls

I have the same mod for FI03 if you want it as well.
The camera app is definitely one of the harder ones to mod, especially since they changed a lot of the code from build to build.
Thanks man again, awesome mods!
 
  • Like
Reactions: tdunham

timmetal6669

Inactive Recognized Developer
Apr 15, 2012
2,761
2,029
0
Redlands CA
Love this mod! Is there any to get an odex version?

Sent from my SPH-D710 using xda premium
Honestly I can't stand odexed. There are several threads for odexing and deodexing your rom/apps in the dev section. I would just look there if you would like to odex it. Shouldn't take too long.Or just google dexopt wrapper, and you should be able to odex it just fine.
 
Last edited:

g_ding84

Senior Member
May 15, 2012
5,943
8,938
0
Rochester, NY
Love this mod! Is there any to get an odex version?

Sent from my SPH-D710 using xda premium
If you want odex. The easiest way is if you have titanium backup. Hit the menu button and select integrate delvik cache into system. All you system apps will be odexed. :)

Sent from my SPH-D710 using xda premium
 

g_ding84

Senior Member
May 15, 2012
5,943
8,938
0
Rochester, NY
I don't understand that. If your on a deodexed rom and use titamium to integrate, does that odex your whole rom? Or just your apps?<br />
<br />
Sent from my SPH-D710 using xda premium
It will only odex you system apps. Which IMO is where you'll see the difference. :) speed wise

Sent from my SPH-D710 using xda premium