0%

apk反编译

1
2
3
4
5
java -jar .tools/hack/apktool_2.6.0.jar d -r Desktop/base4.8.1.apk -o Desktop/outdir

java -jar .tools/hack/apktool_2.6.0.jar b Desktop/outdir

Library/Android/sdk/build-tools/25.0.3/apksigner sign --ks Desktop/song.keystore Desktop/base4.8.1.apk

签名生成

1
keytool -genkey -alias song -keyalg RSA -keysize 1024 -keystore /Users/juneleo/Desktop/song.keystore -validity 365

smali

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# virtual methods
.method public main()V
.registers 6

.line 7
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

move-result-wide v0

const-wide/16 v2, 0x3e8

div-long/2addr v0, v2

.line 8
.local v0, "currentTime":J
const-wide/32 v2, 0x1dfe200

add-long/2addr v2, v0

.line 9
.local v2, "b":J
sget-object v4, Ljava/lang/System;->out:Ljava/io/PrintStream;

invoke-virtual {v4, v2, v3}, Ljava/io/PrintStream;->println(J)V

.line 10
return-void
.end method