[Guide] Fix USSD In CyanogenMod 12.1

Fix USSD In CM 12.1

A short and sweet guide to permanently fix USSD Bug for all networks in all CM 12.1 and CM 12.1 Based ROM For MTK.

Note : First of all Thanks to Aniruddha Adhikary for fixing USSD and Pawan Diyal

Do not copy any content, re-blog, re-post, duplicate this post and/or anything from this site at all.
This post was written by Ajit Guraya at www.mtkroms.com


Download : USSD Fix
Download : Modded APKTOOL

Steps - 
Replace file from USSD Fix (Which you downloaded) to "telephony_common.jar" of the ROM which you are using Now

- Decompile telephony_common.jar of CM 12.1/CM 12.1 Based ROM and telephony_common.jar which you just downloded
- Now open 
telephony_common.jar>com>android>internal>telephony>gsm> 
- Now delete GSMphone.smali and copy GSMPhone.smali from telephony_common which you just downloaded
- Paste GSMphones.smali in the same folder
- Recompile
- Push to /system/framework/
- Reboot to recovery
- Wipe cache and data (this is a must)

To decompile :
- Double click on Command Prompt.bat after extracting apktool you download from above
- Open telephony_common.jar (which you downloaded) using WinRAR
- Copy classes.dex and paste in apktool folder (download apktool from above)
- Use the following command to decompile it :
java -jar baksmali.jar -o classout/ classes.dex
- You will get a new folder called "classout" rename it to "classout1"
- Now open telephony_common.jar (of the ROM you are using) using WinRAR
- Copy classes.dex and paste in apktool folder (download apktool from above)
- Use the following command to decompile it :
java -jar baksmali.jar -o classout/ classes.dex
- Now follow the above Steps -
- To recompile use :
java -Xmx512M -jar smali.jar classout/ -o new-classes.dex
- You will get a new file called new-classes.dex rename it to "classes.dex" without ""
- Now open telephony_common.jar (of the ROM you are using) using WinRAR
- Delete classes.dex present there and paste the new classes.dex there
- Now follow the above Steps - once you have recompiled it.


Enjoy !
Previous
Next Post »