2.2
The main role of this chapter is to modify a someone else's app, increasing the period of your ad code inside.
2.2.1 UAA compiled modify, talked about before installation configuration tools, no need to repeat them. We found a game app's apk,
Found where apk, shown in Figure 1:
figure 1
Click decompile button to bring up the compilation process is shown:
figure 2
In the C: \ UAA_v4.0-bin \ Output \ decompile \ MagicDiamond_d this position, found the source code after compilation.
Modify two: 1, the new directory smali \ jingcheng \ com \ mapshop, copy a file into it, SysApplication.smali, document reads as follows:
.class public Ljingcheng/com/mapshop/SysApplication;
.super Landroid/app/Application;
.source "SysApplication.java"
# direct methods
.method public constructor <init>()V
.locals 0
.prologue
.line 10
invoke-direct {p0}, Landroid/app/Application;-><init>()V
return-void
.end method
# virtual methods
.method public onCreate()V
.locals 3
.prologue
.line 15
invoke-super {p0}, Landroid/app/Application;->onCreate()V
.line 16
invoke-virtual {p0}, Ljingcheng/com/mapshop/SysApplication;->getApplicationContext()Landroid/content/Context;
move-result-object v0
const-string v1, "900036568"
const/4 v2, 0x0
invoke-static {v0, v1, v2}, Lcom/tencent/bugly/crashreport/CrashReport;->initCrashReport(Landroid/content/Context;Ljava/lang/String;Z)V
.line 17
return-void
.end method
The main is to initialize ad
2, modify AndroidManifest.xml file, modified
<application android:enabled="true" android:hardwareAccelerated="false" android:icon="@drawable/icon" android:label="@string/app_name" android:name="jingcheng.com.mapshop.SysApplication">
<meta-data android:name="APP_ID" android:value="7f8ad4d33ee0d5a7a2888f35172953a4"/>
<meta-data android:name="APP_PID" android:value="default"/>
Initialization begins SysApplication application.
Re-compiled apk.
C: \ UAA_v4.0-bin \ Output \ Decompile \ MagicDiamond_d-Sign_zipalign.apk, as apk modified.
2.2.2 Android Killer is even more simple.
1. Open the need to modify apk
There compilation log output:
As an integrated development environment, that function is more powerful, direct interface modifications, additions folder on the screen, you can add files.
Compiled into a new apk:
Figure:
As shown, the file can be found at that location.