[LG Optimus G (International)] akahroba:
Copy pasted from mobilecity.vn

A guide 2G/3G toggle mod simple, concise steps are not picky, most understandable

Mod Guide to toggle 2G/3G Android devices LG

2G/3G toggle Mod

Posts are made on Docomo LG G2 can be applied on other LG

[IMG="http://mobilecity.vn/pictures/news/vzp1405914340.png"]http://mobilecity.vn/pictures/news/vzp1405914340.png[/IMG]

Preparing for 2G/3G toggle Mod

1. Knowing use apktool and smali code a little understanding.

2. Apktool computer has installed the appropriate version for the Android operating system on your computer.

3. Taking in your computer system

- Framework-res.apk and LGE-res.apk in system / framework

- LGSystemUI.apk and LGPhone.apk have deodex in system / app

Putting it all into the apktool folder (C: drive, so to okay)

Steps 2G/3G toggle Mod

I will guide you how to make one not used to toggle to create a toggle you need here is a 2G/3G toggle (2G Only)

1. Carry sync framework

In apktool folder Shift + Right-click and select Open command window here

In the command window type the following commands, respectively:

apktool if framework-res.apk

LGE-res.apk apktool if

2. Decompile LGPhone and LGSystemUI

In the command window type the following commands, respectively.

apktool d LGSystemUI.apk

a pktool d LGPhone.apk

3. Carry extra code in LGPhone.apk

Open links in LGPhone / smali / com / android / phone / PhoneGlobals.smali file with Notepad + +

- Find the following tag

. MMediaButtonReceiver final private field: Landroid / content / BroadcastReceiver;

Add the following code below that line

. MModeReceiver final private field: Landroid / content / BroadcastReceiver;

Find next following keywords.

Lcom / android / phone / PhoneGlobals; -> mReceiver: Landroid / content / BroadcastReceiver;

Add the following code under it

. Line 236

new-instance v0, Lcom / android / phone / NetworkModeReceiver;

invoke-direct {v0}, Lcom / android / phone / NetworkModeReceiver; -> () V

iput-object v0, p0, Lcom / android / phone / PhoneGlobals; -> mModeReceiver: Landroid / content / BroadcastReceiver;

Find the code to the following:

Lcom/android/phone/PhoneGlobals;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

Add the following code to the bottom line

. Line 633

new-instance v0, Landroid / content / IntentFilter;

const-string v1, "com.android.phone.CHANGE_NETWORK_MODE"

invoke-direct {v0, v1}, Landroid / content / IntentFilter; -> (Ljava / lang / String ;) V

iget-object v1, p0, Lcom / android / phone / PhoneApp; -> mModeReceiver: Landroid / content / BroadcastReceiver;

invoke-virtual {p0, v1, v0}, Lcom/android/phone/PhoneApp;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

PhoneGlobals.smali save the

- Download this file unzip smali copy all files in the folder to the path LGPhone / smali / com / android / phone

- Decompile LGPhone back

Replace the classes.dex file in LGPhone / build / apk on the root LGPhone.apk okay.

4. Conduct LGSystemUI.apk file

a. Edit QuicksettingsItemList.smali

- Open in LGSystemUI / smali / LGE / quicksetting QuicksettingsItemList.smali file in Notepad + +

We will replace the code EcoMode 2G only okay.

- Keyword Search EcoHandler and replace all the 2GOnlyHandler save QuicksettingsItemList.smali

b. Edit bools.xml

- Open in LGSystemUI / res / values ​​bools.xml file

- Find eco edit keywords> false <a> true <save

c. Edit strings.xml in values-en

- Find the following line

sp_quicksettings_eco_mode_NORMAL edit> Eco mode <a> The 2G <save

d. Download the following files . Extract and copy 2GOnlyHandler.smali 2GOnlyHandler $ 1.smali on LGSystemUI / smali / com / LGE / quicksetting / handlers

- Copy images in drawable-xxhdpi

e. Decompile LGSystemUI back

f. Replace the following items in LGSystemUI / build / apk file into the root LGSystemUI.apk

- 2 image file in res / drawable-xxhdpi on LGSystemUI.apk / res / drawable-xxhdpi

- Resources.arsc on LGSystemUI.apk

- Classes.dex into LGSystemUI.apk

That's it.

5. Copy 2 files LGPhone.apk and LGSystemUI.apk to phone memory

- Replace in system / app remember to delete files if any and LGSystemUI.odex and set 644 LGPhone.odex okay.