因此,有一个应用程序可以让您在广告中停留的时间长达数秒。因此,例如,如果我花10秒“看”广告,我又获得了10分。 因此,正如您现在可能猜到的那样,我正在尝试对APK文件进行反向工程并对其进行编辑,以使我每秒获得100倍的积分。
因此,我将APK文件反编译为jar文件,然后反编译为.smali格式,现在我不知道此代码的作用和编辑内容。
我相信的罐子代码负责点数: Java:
private String a(long paramLong) {
long l = paramLong / 60L;
String str2 = String.format(Locale.US, "%02d:%02d", new Object[] { Long.valueOf(l), Long.valueOf(paramLong % 60L) });
String str1 = str2;
if (this.na)
str1 = (new StringBuilder(str2)).reverse().toString();
return str1;
}
SMALI:
.method private a(J)Ljava/lang/String;
.locals 4
const-wide/16 v0, 0x3c
div-long v2, p1, v0
rem-long/2addr p1, v0
sget-object v0, Ljava/util/Locale;->US:Ljava/util/Locale;
const/4 v1, 0x2
new-array v1, v1, [Ljava/lang/Object;
invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v2
const/4 v3, 0x0
aput-object v2, v1, v3
invoke-static {p1, p2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object p1
const/4 p2, 0x1
aput-object p1, v1, p2
const-string p1, "%02d:%02d"
invoke-static {v0, p1, v1}, Ljava/lang/String;->format(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
iget-boolean p2, p0, Lcom/rany/albeg/wein/jokesil/jokes/AdDialogFragment;->na:Z
if-eqz p2, :cond_0
new-instance p2, Ljava/lang/StringBuilder;
invoke-direct {p2, p1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {p2}, Ljava/lang/StringBuilder;->reverse()Ljava/lang/StringBuilder;
move-result-object p1
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
:cond_0
return-object p1
.end method
首先,您能告诉我这是否由代码负责吗?如果是,您可以帮我进行更改吗?谢谢。