[LG Optimus 3D] defcomg:
Will check it out .

Okay im tryna Add the following scene modes

IV'e done the Most Part i have never seen so much errors anyway

I need the following

in \smali\com\android\camera\ConfigureDef.smali

I need to add the Values i Inputed from Camera Engine

0x20000075 -> :sswitch_a4
0x20000076 -> :sswitch_a5
0x20000077 -> :sswitch_a6

0x20000081 -> :sswitch_aa
0x20000082 -> :sswitch_ab
0x20000083 -> :sswitch_ac
0x20000084 -> :sswitch_ad
0x20000085 -> :sswitch_ae
0x20000086 -> :sswitch_af
0x20000087 -> :sswitch_b0
0x20000088 -> :sswitch_b1
0x20000089 -> :sswitch_b3
0x20000090 -> :sswitch_b4
0x20000091 -> :sswitch_b5
0x20000106 -> :sswitch_b6

in Search for the last Value eg 81 82 83 84 etc

In this arrays

.line 460
const/16 v0, 0x23

new-array v0, v0, [[I

new-array v1, v3, [I

fill-array-data v1, :array_526

aput-object v1, v0, v6

new-array v1, v3, [I

fill-array-data v1, :array_532

aput-object v1, v0, v7

const/4 v1, 0x2

new-array v2, v3, [I

fill-array-data v2, :array_53e

aput-object v2, v0, v1

const/4 v1, 0x3

new-array v2, v3, [I

fill-array-data v2, :array_54a

aput-object v2, v0, v1

new-array v1, v3, [I

fill-array-data v1, :array_556

aput-object v1, v0, v3

new-array v1, v3, [I

fill-array-data v1, :array_562

aput-object v1, v0, v4

const/4 v1, 0x6

new-array v2, v3, [I

fill-array-data v2, :array_56e

aput-object v2, v0, v1

const/4 v1, 0x7

new-array v2, v3, [I

fill-array-data v2, :array_57a

aput-object v2, v0, v1

const/16 v1, 0x8

new-array v2, v3, [I

fill-array-data v2, :array_586

aput-object v2, v0, v1

const/16 v1, 0x9

new-array v2, v3, [I

fill-array-data v2, :array_592

aput-object v2, v0, v1

new-array v1, v3, [I

fill-array-data v1, :array_59e

aput-object v1, v0, v5

const/16 v1, 0xb

new-array v2, v3, [I

fill-array-data v2, :array_5aa

aput-object v2, v0, v1

const/16 v1, 0xc

new-array v2, v3, [I

fill-array-data v2, :array_5b6

aput-object v2, v0, v1

const/16 v1, 0xd

new-array v2, v3, [I

fill-array-data v2, :array_5c2

aput-object v2, v0, v1

const/16 v1, 0xe

new-array v2, v3, [I

fill-array-data v2, :array_5ce

aput-object v2, v0, v1

const/16 v1, 0xf

new-array v2, v3, [I

fill-array-data v2, :array_5da

aput-object v2, v0, v1

const/16 v1, 0x10

new-array v2, v3, [I

fill-array-data v2, :array_5e6

aput-object v2, v0, v1

const/16 v1, 0x11

new-array v2, v3, [I

fill-array-data v2, :array_5f2

aput-object v2, v0, v1

const/16 v1, 0x12

new-array v2, v3, [I

fill-array-data v2, :array_5fe

aput-object v2, v0, v1

const/16 v1, 0x13

new-array v2, v3, [I

fill-array-data v2, :array_60a

aput-object v2, v0, v1

const/16 v1, 0x14

new-array v2, v3, [I

fill-array-data v2, :array_616

aput-object v2, v0, v1

const/16 v1, 0x15

new-array v2, v3, [I

fill-array-data v2, :array_622

aput-object v2, v0, v1

const/16 v1, 0x16

new-array v2, v3, [I

fill-array-data v2, :array_62e

aput-object v2, v0, v1

const/16 v1, 0x17

new-array v2, v3, [I

fill-array-data v2, :array_63a

aput-object v2, v0, v1

const/16 v1, 0x18

new-array v2, v3, [I

fill-array-data v2, :array_646

aput-object v2, v0, v1

const/16 v1, 0x19

new-array v2, v3, [I

fill-array-data v2, :array_652

aput-object v2, v0, v1

const/16 v1, 0x1a

new-array v2, v3, [I

fill-array-data v2, :array_65e

aput-object v2, v0, v1

const/16 v1, 0x1b

new-array v2, v3, [I

fill-array-data v2, :array_66a

aput-object v2, v0, v1

const/16 v1, 0x1c

new-array v2, v3, [I

fill-array-data v2, :array_676

aput-object v2, v0, v1

const/16 v1, 0x1d

new-array v2, v3, [I

fill-array-data v2, :array_682

aput-object v2, v0, v1

const/16 v1, 0x1e

new-array v2, v3, [I

fill-array-data v2, :array_68e

aput-object v2, v0, v1

const/16 v1, 0x1f

new-array v2, v3, [I

fill-array-data v2, :array_69a

aput-object v2, v0, v1

const/16 v1, 0x20

new-array v2, v3, [I

fill-array-data v2, :array_6a6

aput-object v2, v0, v1

const/16 v1, 0x21

new-array v2, v3, [I

fill-array-data v2, :array_6b2

aput-object v2, v0, v1

const/16 v1, 0x22

new-array v2, v3, [I

fill-array-data v2, :array_6be

aput-object v2, v0, v1

sput-object v0, Lcom/android/camera/ConfigureDef;->SUPPORTED_SCENE_MODE:[[I

array_6be is below and contains the data

eg

:array_436

.array-data 0x4

0x2t 0x0t 0x0t 0x0t

{0x15t 0x0t 0x0t 0x20t} Camera Engine ref number for the object

{0x75t 0x0t 0xbt 0x7ft} Public

0x0t 0x0t 0x0t 0x0t

.end array-data

Last But Not least smali\com\android\camera\ui\ResId.smali

I have the values from public.xml

compare these to public.xml

const v0, 0x7f020184

iput v0, p0, Lcom/android/camera/ui/ResId;->drawable_camera_preview_quickfunction_scenemode_night:I

const v0, 0x7f020339

iput v0, p0, Lcom/android/camera/ui/ResId;->drawable_camera_preview_quickfunction_scenemode_action:I

const v0, 0x7f02033a

iput v0, p0, Lcom/android/camera/ui/ResId;->drawable_camera_preview_quickfunction_scenemode_beach:I

const v0, 0x7f02033b

iput v0, p0, Lcom/android/camera/ui/ResId;->drawable_camera_preview_quickfunction_scenemode_barcode:I

const v0, 0x7f02033c

iput v0, p0, Lcom/android/camera/ui/ResId;->drawable_camera_preview_quickfunction_scenemode_candlelight:I

const v0, 0x7f02033d

iput v0, p0, Lcom/android/camera/ui/ResId;->drawable_camera_preview_quickfunction_scenemode_cine:I

const v0, 0x7f02033f

iput v0, p0, Lcom/android/camera/ui/ResId;->drawable_camera_preview_quickfunction_scenemode_closeup:I

const v0, 0x7f020340

iput v0, p0, Lcom/android/camera/ui/ResId;->drawable_camera_preview_quickfunction_scenemode_document:I

const v0, 0x7f020341

iput v0, p0, Lcom/android/camera/ui/ResId;->drawable_camera_preview_quickfunction_scenemode_fireworks:I

const v0, 0x7f020342

iput v0, p0, Lcom/android/camera/ui/ResId;->drawable_camera_preview_quickfunction_scenemode_mood:I

const v0, 0x7f020343

iput v0, p0, Lcom/android/camera/ui/ResId;->drawable_camera_preview_quickfunction_scenemode_night_indoor:I

const v0, 0x7f020344

iput v0, p0, Lcom/android/camera/ui/ResId;->drawable_camera_preview_quickfunction_scenemode_old_film:I

const v0, 0x7f020345

iput v0, p0, Lcom/android/camera/ui/ResId;->drawable_camera_preview_quickfunction_scenemode_party:I

const v0, 0x7f020346

iput v0, p0, Lcom/android/camera/ui/ResId;->drawable_camera_preview_quickfunction_scenemode_snow:I

const v0, 0x7f020348

iput v0, p0, Lcom/android/camera/ui/ResId;->drawable_camera_preview_quickfunction_scenemode_steadyphoto:I

const v0, 0x7f020349

iput v0, p0, Lcom/android/camera/ui/ResId;->drawable_camera_preview_quickfunction_scenemode_super_night:I

const v0, 0x7f02034a

iput v0, p0, Lcom/android/camera/ui/ResId;->drawable_camera_preview_quickfunction_scenemode_theatre:I

{0x75t 0x0t 0xbt 0x7ft} Public

0x0t 0x0t 0x0t 0x0t

.end array-data

who ever is intrested below is the smali and java source

GB STK Camera.rar - 21.24 MB