I tried to find an advertisement version of MSN 6.5 on the Internet. I had to do it myself. After suffering for a whole day, I finally got it done.
Successfully removed the login interface advertisement, main interface advertisement, dialog window advertisement, and logout window advertisement.
Test availability (because the signature is modified, we recommend that you uninstall the previous version of MSN and reinstall it ).
Put it on the network disk. The address is:
Http://dl.dbank.com/c0xpo0rzno
Next we will introduce the method:
I. Prerequisites
1. Install JDK
2. decompile classes. Dex using baksmali. jar;
Java-jar baksmali. Jar classes. Dex-O classes
3. Modify the corresponding file;
4. Use smali. jar to package and get classes. Dex. Replace the file with the same name in the APK file;
Java-jar smali. Jar classes-O classes. Dex
5. Use androidresedit to sign the APK.
Note: The following modifications are made in the decompiled files in step 1.
Ii. How to remove the main interface advertisement:
Modify constructor, a constructor of COM/Pica/UI/tools/adimageview, and comment or delete the constructor.
Invoke-virtual {P0, V2, V3}, lcom/Pica/UI/tools/adimageview;-> addview (landroid/View/view; landroid/View/viewgroup $ layoutparams ;) V
In this line of code, note that the annotated symbol is "#".
3. Remove login interface advertisement, dialog window advertisement, and logout window Advertisement
The above method only disables the display of advertisements and does not block the ad download to save traffic. Therefore, there are more important changes:
Modify the following methods for COM/Pica/MSN/Jabber:
. Method public addadvistrequest (ljava/lang/string;) v </P> <p>. method public addfootadrequest (bljava/lang/string; ljava/lang/string; ljava/lang/string;) v </P> <p>. method public addgetadrequest (ljava/lang/string;) v </P> <p>. method public addloginadrequest (ljava/lang/string;) v </P> <p> // comment out the code in the following function if you are interested <br/>. method public advistclick (ljava/lang/string;) V
In this way, the downloading of advertisements is eliminated.
4. About
In the login interface, click about, the default display is the version number and messenger@pica.com
Now you can change this email address to any content you want to display. You only need to modify the constructor of COM/Pica/MSN/loginactivity and find
Const-string V1, "messenger@pica.com"
Replace it with the string to be displayed.