Android platform MSN 6.5 de-advertising method

Source: Internet
Author: User

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.

 

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.