First this is not my work. original thread http://forum.xda-developers.com/show....php?t=1952943
credits
@dcsms original poster
@samsoul16 the one i pulledout the codes from his mod
Steps
1.decompile systemUI.apk
2. go to public.xml... find the last id and add one more... in my case the last id is 0x7f090028 ....and then i add one id with name="lidroid" id="0x7f090029"
3. then open ids.xml and add new id name lidroid and give
it values...false
4. open statusbarservice.smali paste these code below #instance fields
.field powerwidget:Landroid/widget/LinearLayout;
5. on the statusbarservice.smali ...go to .line 334 and paste this below thoose group's line
.line 335
const v26, 0x7f090029 //these id must define in public.xml and ids.xml also
move-object v0, v10
move/from16 v1, v26
invoke-virtual {v0, v1}, Lcom/android/systemui/statusbar/ExpandedView;->findViewById(I)Landroid/view/View;
move-result-object v26
check-cast v26, Landroid/widget/LinearLayout;
move-object/from16 v0, v26
move-object/from16 v1, p0
iput-object v0, v1, Lcom/android/systemui/statusbar/StatusBarService;->powerwidget:Landroid/widget/LinearLayout;
6. then search for .line 418 and make it look like this
.line 418
.local v12, qsv:Lcom/lidroid/systemui/quickpanel/PowerWidget;
invoke-virtual {v12}, Lcom/lidroid/systemui/quickpanel/PowerWidget;->setupWidget()V
move-object/from16 v0, p0
iget-object v0, v0, Lcom/android/systemui/statusbar/StatusBarService;->powerwidget:Landroid/widget/LinearLayout;
move-object/from16 v26, v0
const/16 v27, 0x0
move-object/from16 v0, v26
move-object v1, v12
move/from16 v2, v27
invoke-virtual {v0, v1, v2}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;I)V
7.then on statusbar_expanded.xml and statusbar_expanded_dual_sim.xml. paste this in the place u want
<LinearLayout android:orientation="vertical" android:id="@id/lidroid" android:layout_width="fill_parent" android:layout_height="wrap_content" />
then recompile apk and push
this have been tested and worked on galaxy y duos and y pro duos
Attachment 2710461
any questions ???? :D
credits
@dcsms original poster
@samsoul16 the one i pulledout the codes from his mod
Steps
1.decompile systemUI.apk
2. go to public.xml... find the last id and add one more... in my case the last id is 0x7f090028 ....and then i add one id with name="lidroid" id="0x7f090029"
3. then open ids.xml and add new id name lidroid and give
it values...false
4. open statusbarservice.smali paste these code below #instance fields
.field powerwidget:Landroid/widget/LinearLayout;
5. on the statusbarservice.smali ...go to .line 334 and paste this below thoose group's line
.line 335
const v26, 0x7f090029 //these id must define in public.xml and ids.xml also
move-object v0, v10
move/from16 v1, v26
invoke-virtual {v0, v1}, Lcom/android/systemui/statusbar/ExpandedView;->findViewById(I)Landroid/view/View;
move-result-object v26
check-cast v26, Landroid/widget/LinearLayout;
move-object/from16 v0, v26
move-object/from16 v1, p0
iput-object v0, v1, Lcom/android/systemui/statusbar/StatusBarService;->powerwidget:Landroid/widget/LinearLayout;
6. then search for .line 418 and make it look like this
.line 418
.local v12, qsv:Lcom/lidroid/systemui/quickpanel/PowerWidget;
invoke-virtual {v12}, Lcom/lidroid/systemui/quickpanel/PowerWidget;->setupWidget()V
move-object/from16 v0, p0
iget-object v0, v0, Lcom/android/systemui/statusbar/StatusBarService;->powerwidget:Landroid/widget/LinearLayout;
move-object/from16 v26, v0
const/16 v27, 0x0
move-object/from16 v0, v26
move-object v1, v12
move/from16 v2, v27
invoke-virtual {v0, v1, v2}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;I)V
7.then on statusbar_expanded.xml and statusbar_expanded_dual_sim.xml. paste this in the place u want
<LinearLayout android:orientation="vertical" android:id="@id/lidroid" android:layout_width="fill_parent" android:layout_height="wrap_content" />
then recompile apk and push
this have been tested and worked on galaxy y duos and y pro duos
Attachment 2710461
any questions ???? :D