[Galaxy Note 3 Themes and Apps] tkari4:
Isn't my work all credits to [MENTION=2405427]jobnik[/MENTION] & [MENTION=369057]majdinj[/MENTION]

original thread: http://xdaforums.com/showthread.php?t=2038675

I made it only compatible with KitKat (4.4.2)

Root and deodexed SamsungCamera2.apk recommended.

Needed tools:

Backsmali/Smali

Notepad++

7Zip

1.) Baksmali SamsungCamera2.apk

1. Adding "Shutter Sound On/Off" option in Camera Menu:

Instead smali editing you can add this line to your others.xml (so you do not have to do step 2,3,4,5,6,7) :

<CscFeature_Camera_ShutterSoundMenu>TRUE</CscFeature_Camera_ShutterSoundMenu>

2.) Navigate to com\sec\android\app\camera\resourcedata folder

3.) Open CommonSettingsMenuResourceData.smali

find: "CscFeature_Camera_ShutterSoundMenu"

Add the blue line

.line 66
invoke-static {}, Lcom/sec/android/app/CscFeature;->getInstance()Lcom/sec/android/app/CscFeature;

move-result-object v0

const-string v1, [COLOR="DarkGreen"]"CscFeature_Camera_ShutterSoundMenu"[/COLOR]

invoke-virtual {v0, v1}, Lcom/sec/android/app/CscFeature;->getEnableStatus(Ljava/lang/String;)Z

move-result v0

[COLOR="Blue"]const/4 v0, 0x1[/COLOR]

if-eqz v0, :cond_a5

4.) Save and close

5.) Navigate to \com\sec\android\app\camera folder

6.) Open Camera.smali

find: "CscFeature_Camera_ShutterSoundMenu"

Add the blue line

const-string v22, "[COLOR="DarkGreen"]CscFeature_Camera_ShutterSoundMenu[/COLOR]"

invoke-virtual/range {v21 .. v22}, Lcom/sec/android/app/CscFeature;->getEnableStatus(Ljava/lang/String;)Z

move-result v21

[COLOR="Blue"]const/16 v21, 0x1[/COLOR]

if-nez v21, :cond_4a1

7.) Save and close

8.) Now open your customer.xml and delete the following line from it: <ShutterSound>on</ShutterSound>

Isn't included in every customer.xml..

Shutter sound selection will work only after Factory data reset

2. Camera can be used with flash in low battery state:

9.) Navigate to \com\sec\android\app\camera folder

10.) Open Camera.smali

find: .method protected handleLowBattery(Z)V

Add the blue line.

[COLOR="DarkGreen"].method protected handleLowBattery(Z)V[/COLOR]
.registers 9
.parameter "temp"

.prologue
const v6, 0x7f0c01cb

const v5, 0x7f0c001d

const/4 v4, 0x0

const/4 v3, 0x1

.line 3045
[COLOR="blue"]return-void[/COLOR]
const-string v1, "Camera2"

const-string v2, "handleLowBattery"

find: .method private handleBatteryChanged(Landroid/content/Intent;)V

now find: handleLowBattery(Z)V Delete the whole line which one contains it:

iput-object v2, p0, Lcom/sec/android/app/camera/Camera;->mPluggedLowBatteryPopup:Landroid/app/AlertDialog;

.line 2872
invoke-virtual {p0}, Lcom/sec/android/app/camera/Camera;->finishTimerCount()V

.line 2873
[COLOR="Red"]invoke-virtual {p0, v5}, Lcom/sec/android/app/camera/Camera;->[/COLOR][COLOR="DarkGreen"]handleLowBattery(Z)V[/COLOR]

find: .method private handleBatteryChanged(Landroid/content/Intent;)V

now find: handlePluggedLowBattery(Z)V

Delete the whole line which one contains it, delete only the next three lines (search down with Notepad++)

.line 2843
[COLOR="Red"]invoke-direct {p0, v6}, Lcom/sec/android/app/camera/Camera;->[/COLOR][COLOR="DarkGreen"]handlePluggedLowBattery(Z)V[/COLOR]

.line 2864
:cond_bf
:goto_bf
iget v2, p0, Lcom/sec/android/app/camera/Camera;->battLevel:I

iget v3, p0, Lcom/sec/android/app/camera/Camera;->mLowBatteryWarningLevel:I

.line 2878
[COLOR="red"]invoke-direct {p0, v5}, Lcom/sec/android/app/camera/Camera;->[/COLOR][COLOR="DarkGreen"]handlePluggedLowBattery(Z)V[/COLOR]

.line 2879
iget-object v2, p0, Lcom/sec/android/app/camera/Camera;->mEngine:Lcom/sec/android/app/camera/CommonEngine;

invoke-virtual {v2, v8}, Lcom/sec/android/app/camera/CommonEngine;->isCurrentState(I)Z

move-result v2

if-nez v2, :cond_e3

.line 2880
[COLOR="Red"]invoke-direct {p0, v5}, Lcom/sec/android/app/camera/Camera;->[/COLOR][COLOR="DarkGreen"]handlePluggedLowBattery(Z)V[/COLOR]

find: .method private handlePluggedLowBattery(Z)V

Add the blue line.

[COLOR="DarkGreen"].method private handlePluggedLowBattery(Z)V[/COLOR]
.registers 9
.parameter "temp"

.prologue
const v6, 0x7f0c019a

const v5, 0x7f0c0199

const/4 v4, 0x1

const/4 v3, 0x0

.line 3102
[COLOR="blue"]return-void[/COLOR]
const-string v1, "Camera2"

const-string v2, "handlePluggedLowBattery"

11.) Save your changes

12.) Smali classout folder

13.) Add the new classes.dex file to SamsungCamera2.apk with 7Zip

14.) Push to your Phone