1.AutoMemoryManager 工具:apktool
把com.lim.android.automemman.apk放到apktool同文件夹
Win+R运行CMDE:<回车>
E:\>apktool d com.lim.android.automemman.apk AMM <回车>
I: Baksmaling…
I: Decoding resource table…
I: Decoding resources…
I: Copying assets and libs…
现在文件被decode到E:\AMM了,打开E:\AMM\res\layout\main.xml看,所有都可见了吧~
编辑第59行
<com.admob.android.ads.AdView android:id=”@id/ad”android:layout_width=”fill_parent” android:layout_height=”wrap_content”admobsdk:backgroundColor=”#ff000000″ admobsdk:textColor=”#ffffffff”admobsdk:keywords=”Android application” />
改为
<com.admob.android.ads.AdView android:id=”@id/ad”android:layout_width=”0.0dip” android:layout_height=”0.0dip”admobsdk:backgroundColor=”#ff000000″ admobsdk:textColor=”#ffffffff”admobsdk:keywords=”Android application” />
然后CMD输入
E:\>apktool b AMM
I: Checking whether sources has changed…
I: Smaling…
I: Checking whether resources has changed…
I: Building resources…
I: Building apk file…
用Auto-sign签名E:\AMM\dist\out.apk安装。这样广告就不见了,这其实就是改了AndroidManifest.xml里的ADmob广告ID罢了。