[Verizon Samsung Galaxy S III] AskinSavascisi:
thanks

---------- Post added at 09:07 PM ---------- Previous post was at 08:08 PM ----------

another question fellow members.. hope u can help me :)

i'm getting an error when placing this command in PhoneStatusBar.Smali

the code @ OP

invoke-virtual {v9, v10}, Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;->findViewById(I)Landroid/view/View;

move-result-object v9

check-cast v9, Landroid/widget/LinearLayout;

iput-object v9, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mIcons:Landroid/widget/LinearLayout;

[COLOR="red"] iget-object v9, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarView:Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;

const v10, 0x7f0d0120

invoke-virtual {v9, v10}, Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;->findViewById(I)Landroid/view/View;

move-result-object v9

check-cast v9, Landroid/widget/LinearLayout;

iput-object v9, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mCenterClockLayout:Landroid/widget/LinearLayout;[/COLOR]

.line 627
iget-object v9, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarView:Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;

const v10, 0x7f0d003e

invoke-virtual {v9, v10}, Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;->findViewById(I)Landroid/view/View;

move-result-object v9

iput-object v9, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mTickerView:Landroid/view/View;

Mine :

invoke-virtual/range {v15 .. v16}, Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;->findViewById(I)Landroid/view/View;

move-result-object v15

check-cast v15, Landroid/widget/LinearLayout;

move-object/from16 v0, p0

iput-object v15, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mIcons:Landroid/widget/LinearLayout;

[COLOR="red"]iget-object v15, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarView:Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;

const v16, 0x7f0d011b

invoke-virtual {v15, v16}, Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;->findViewById(I)Landroid/view/View;

move-result-object v15

check-cast v15, Landroid/widget/LinearLayout;

iput-object v15, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mCenterClockLayout:Landroid/widget/LinearLayout;[/COLOR]

.line 630
move-object/from16 v0, p0

iget-object v15, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarView:Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;

const v16, 0x7f0d0040

The error :

java version "1.7.0_21"
Java(TM) SE Runtime Environment (build 1.7.0_21-b11)
Java HotSpot(TM) 64-Bit Server VM (build 23.21-b01, mixed mode)
I: Checking whether sources has changed...
I: Smaling...
[COLOR="Blue"][8940,4] The register number must be less than v16
[8944,4] All register args must fit in 4 bits
[8946,4] [/COLOR]mismatched tree node: I_STATEMENT_FORMAT21c expecting I_CATCHES
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file
: C:\Users\hp\Desktop\apk ubuntu\other\..\projects\SystemUI.apk\smali\com\androi
d\systemui\statusbar\phone\PhoneStatusBar.smali
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:45)

at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:33)

at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:66)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:50)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:37)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:257)
at brut.androlib.Androlib.buildSources(Androlib.java:214)
at brut.androlib.Androlib.build(Androlib.java:205)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)

Those BLUE lines refer to these codes colored in blue :

invoke-virtual/range {v15 .. v16}, Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;->findViewById(I)Landroid/view/View;

move-result-object v15

check-cast v15, Landroid/widget/LinearLayout;

move-object/from16 v0, p0

iput-object v15, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mIcons:Landroid/widget/LinearLayout;

[COLOR="red"]iget-object v15, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarView:Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;

[COLOR="blue"]const v16, 0x7f0d011b[/COLOR]

invoke-virtual {v15, v16}, Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;->findViewById(I)Landroid/view/View;

[COLOR="blue"]move-result-object v15[/COLOR]

[COLOR="blue"]check-cast v15, Landroid/widget/LinearLayout;[/COLOR]

iput-object v15, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mCenterClockLayout:Landroid/widget/LinearLayout;[/COLOR]

.line 630
move-object/from16 v0, p0

iget-object v15, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarView:Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;

const v16, 0x7f0d0040

did try to change those values back to its original form V9 and V10.. but still getting the error and btw whenever i take this whole code from op out im able to recompile :)

iget-object v9, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarView:Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;

const v10, 0x7f0d0120

invoke-virtual {v9, v10}, Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;->findViewById(I)Landroid/view/View;

move-result-object v9

check-cast v9, Landroid/widget/LinearLayout;

iput-object v9, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mCenterClockLayout:Landroid/widget/LinearLayout;