[Android] arnabJ:
​

WELCOME TO MY FIRST GUIDE!!

THIS GUIDE WILL HELP YOU TO PORT LIDROID'S 14 TOGGLES TO SAMSUNG GALAXY POCKET DUOS[GT-S5302] AND ALL OTHER NEW DUAL SIM PHONES VERY EASILY.

[PLZ NOTE THIS GUIDE WOULD NOT HELP YOU TO PORT 14 TOGGLES TO ACE DUOS, Y PRO DUOS & Y DUOS.]

WITHOUT WASTING MUCH OF YOU TIME, HERE I PRESENT THE GUIDE IN EASY STEPS :

PRE - REQUISITES:

A COMPUTER TO WORK ON.

APKTOOL/APK MANAGER/OR ANY OTHER TOOL THAT CAN DE-COMPILE N RECOMPILE APK'S[I PREFER APKTOOL][PLZ DON'T EXPECT ME TO TEACH YOU TO USE THAT ALSO]

SystemUI.apk OF YOUR MOBILE[MUST BE DEODEXED]

Lidroid-res.apk, LidroidSystemUI.apk and QuickPanelSettings.apk[GET THEM FROM HERE]

5-10 MINUTES TIME N SOME BRAIN.

REAL WORK:

DECOMPILE YOUR SYSTEMUI.APK N LIDROIDSYSTEMUI.APK[THROUGH ANY WAY YOU CHOOSE].[NOTE USE lokeshsaini94'S GUIDE TO DECOMPILE N RECOMPILE APKS]

THEN OPEN DECOMPILED LidroidSystemUI FOLDER. COPY SMALI FOLDER N PASTE IT TO THE ROOT OF YOUR DECOMPILED systemui FOLDER N PRESS YES TO OVERWRITE]. THEN CLOSE LidroidSystemUI.apk FOLDER. ITS WORK IS FINISHED NOW.

NOW OPEN systemui/smali/com/android/systemui/statusbar/

StatusBarService.smali

[NOTE: WINDOWS OS USERS USE NOTEPAD++ FOR THIS]

Hit Ctrl+F on your keyboard to open the search window in your text editor.

Type ,of course without quotes, '.line 409' and hit enter key on keyboard.

Replace the followings code:

.line [COLOR=Red]409[/COLOR]
const/4 v12, 0x0

.line [COLOR=Red]413[/COLOR]
.local v12, qsv:Lcom/android/systemui/statusbar/quickpanel/QuickSettingsView;
const v26, 0x7f030002

const/16 v27, 0x0

move-object/from16 v0, p1

move/from16 v1, v26

move-object/from16 v2, v27

invoke-static {v0, v1, v2}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

move-result-object v12

.end local v12 #qsv:Lcom/android/systemui/statusbar/quickpanel/QuickSettingsView;
check-cast v12, Lcom/android/systemui/statusbar/quickpanel/QuickSettingsView;

.line [COLOR=Red]415[/COLOR]
.restart local v12 #qsv:Lcom/android/systemui/statusbar/quickpanel/QuickSettingsView;
move-object/from16 v0, p0

WITH THIS CODE:

.line [COLOR=DeepSkyBlue]409[/COLOR]
const/4 v12, 0x0

.line [COLOR=DeepSkyBlue]413[/COLOR]
const v26, 0x3030003

const/16 v27, 0x0

move-object/from16 v0, p1

move/from16 v1, v26

move-object/from16 v2, v27

invoke-static {v0, v1, v2}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

move-result-object v12

check-cast v12, Lcom/lidroid/systemui/quickpanel/PowerWidget;

.line [COLOR=DeepSkyBlue]415[/COLOR]
.local v12, qsv:Lcom/lidroid/systemui/quickpanel/PowerWidget;
invoke-virtual {v12}, Lcom/lidroid/systemui/quickpanel/PowerWidget;->setupWidget()V

move-object/from16 v0, p0

AND THEN SAVE

StatusBarService.smali

N CLOSE IT. THEN RECOMPILE YOUR SystemUI.apk

NOTE: THE NUMBERS RED IN COLORS MAY BE DIFFERENT IN YOUR

StatusBarService.smali. IF SO THEN CHANGE THE NUMBERS IN BLUE WITH THE ORIGINAL ONES. FOR EXAMPLE YOU HAVE 410 INSTEAD OF 409. THEN CHANGE THE BLUE 409 TO 410 N SO ON.

THE MOST IMPORTANT PART IS TO SIGN YOUR MODDED .APK FILE. THIS GUIDE IS BY LOKESHSAINI94. DON'T FORGET TO THANK HIM:

1. Now open modded apk and stock apk in 7zip

2. Drag/drop meta-inf folder and AndroidManifest.xml from stock apk to modded apk

3. Rename modded apk same as stock apk. (capital/block letters)

example modded > settings.apk >Settings.apk

NOW MOVE YOUR MODDED SystemUI.apk n quickpsnelsettings.apk to /system/app of your mobile through a root browser n change permissions of both the apps to rw-r-r. and then move lidroid-res.apk to /system/framework through a root browser n change its permissions to rw-r-r.

reboot your mob n viola you have successfully ported lidroid's 14 toggles to you mobile.

Always remember to have a backup of your mobile if something goes wrong.

FOLLOW THIS STEP ONLY IF YOUR PHONE DOESN`T HAVE A FLASHLITE WITH THE CAMERA:

GO TO THIS THREAD : http://xdaforums.com/showthread.php?t=1289896

There you will find the way to make your screen act as flashlite.:)

CREDITS:

1ST N FOREMOST THANXXX TO LIDROID FOR HIS AWESOME TWEAK N ORIGINAL PROCEDURE.

arbayong N Millan.sis FOR THE CODES FOR DUAL SIM SAMSUNG PHONES.

ME FOR EDITING Millan.sis'S CODE AS PER POCKET DUOS.

SCREENIES TO PROVE: