gang2375 发表于 2024-9-1 09:51:59

这个代码怎么搞

.line 20
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v1, p0, Lcom/ChuChenQi/窗口29;->手机1:Lcom/e4a/runtime/components/impl/android/n9/手机;

    invoke-interface {v1}, Lcom/e4a/runtime/components/impl/android/n9/手机;->取IMEI码()Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x2

    const/16 v3, 0x9

    invoke-static {v1, v2, v3}, Lcom/e4a/runtime/文本操作;->取文本中间(Ljava/lang/String;II)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "GBK"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    const-string v1, "GBK"

    invoke-static {v0, v1}, Lcom/e4a/runtime/转换操作;->文本到字节(Ljava/lang/String;Ljava/lang/String;)[B

    move-result-object v0

    invoke-static {v0}, Lcom/e4a/runtime/加密操作;->取MD5值([B)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/ChuChenQi/窗口29;->临时:Ljava/lang/String;

    .line 21
    iget-object v0, p0, Lcom/ChuChenQi/窗口29;->临时:Ljava/lang/String;

    const/16 v1, 0x8

    invoke-static {v0, v1}, Lcom/e4a/runtime/文本操作;->取文本左边(Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/ChuChenQi/窗口29;->临时:Ljava/lang/String;

    .line 22
    iget-object v0, p0, Lcom/ChuChenQi/窗口29;->临时:Ljava/lang/String;

    iget-object v1, p0, Lcom/ChuChenQi/窗口29;->编辑框1:Lcom/e4a/runtime/components/impl/android/n2/编辑框;

    invoke-interface {v1}, Lcom/e4a/runtime/components/impl/android/n2/编辑框;->内容()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_93

    .line 23
    const-string v0, "已注册成功,重新载入程序"

    invoke-static {v0}, Lcom/e4a/runtime/应用操作;->弹出提示(Ljava/lang/String;)V

    .line 24
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "sdcard/CCDATA"

    const-string v3, "GBK"

    invoke-static {v2, v3}, Lcom/e4a/runtime/文件操作;->读入文本文件(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/ChuChenQi/窗口29;->编辑框1:Lcom/e4a/runtime/components/impl/android/n2/编辑框;

    invoke-interface {v2}, Lcom/e4a/runtime/components/impl/android/n2/编辑框;->内容()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "\n"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/ChuChenQi/窗口29;->文件读取:Ljava/lang/String;

    .line 25
    const-string v0, "sdcard/CCDATA"

    iget-object v1, p0, Lcom/ChuChenQi/窗口29;->文件读取:Ljava/lang/String;

    const-string v2, "GBK"

    invoke-static {v0, v1, v2}, Lcom/e4a/runtime/文件操作;->写出文本文件(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z

    .line 26
    iget-object v0, p0, Lcom/ChuChenQi/窗口29;->按钮2:Lcom/e4a/runtime/components/impl/android/n1/按钮;

    const/4 v1, 0x0

    invoke-interface {v0, v1}, Lcom/e4a/runtime/components/impl/android/n1/按钮;->可用(Z)V

    .line 27
    iget-object v0, p0, Lcom/ChuChenQi/窗口29;->时钟1:Lcom/e4a/runtime/components/impl/android/n12/时钟;

    const/4 v1, 0x1

    invoke-interface {v0, v1}, Lcom/e4a/runtime/components/impl/android/n12/时钟;->可用(Z)V

    .line 31
    :goto_92
    return-void

    .line 29
    :cond_93
    const-string v0, "注册末成功,请确认密钥"

    invoke-static {v0}, Lcom/e4a/runtime/应用操作;->弹出提示(Ljava/lang/String;)V

    .line 30
    iget-object v0, p0, Lcom/ChuChenQi/窗口29;->编辑框1:Lcom/e4a/runtime/components/impl/android/n2/编辑框;

    const-string v1, ""

    invoke-interface {v0, v1}, Lcom/e4a/runtime/components/impl/android/n2/编辑框;->内容(Ljava/lang/String;)V

    .line 31
    iget-object v0, p0, Lcom/ChuChenQi/窗口29;->编辑框1:Lcom/e4a/runtime/components/impl/android/n2/编辑框;

    invoke-interface {v0}, Lcom/e4a/runtime/components/impl/android/n2/编辑框;->获取焦点()V

    goto :goto_92
.end method

.method public 按钮2$被按下(II)V
    .registers 7
    .param p1, "横坐标"# I
    .param p2, "纵坐标"# I

    .prologue
    .line 41
    sget-object v0, Lcom/ChuChenQi/窗口29;->窗口29:Lcom/e4a/runtime/components/窗口;

    const/4 v1, 0x2

    const/16 v2, 0x12c

    const/4 v3, 0x0

    invoke-interface {v0, v1, v2, v3}, Lcom/e4a/runtime/components/窗口;->开启特效(IIZ)V

    .line 42
    const-string v0, "主窗口"

    invoke-static {v0}, Lcom/e4a/runtime/应用操作;->读取窗口(Ljava/lang/String;)Lcom/e4a/runtime/components/impl/android/窗口Impl;

    move-result-object v0

    check-cast v0, Lcom/e4a/runtime/components/窗口;

    invoke-static {v0}, Lcom/e4a/runtime/应用操作;->切换窗口(Lcom/e4a/runtime/components/窗口;)V

    return-void
.end method

.method public 时钟1$周期事件()V
    .registers 1

    .prologue
    .line 45
    invoke-static {}, Lcom/e4a/runtime/应用操作;->结束程序()V

    return-void
.end method

.method public 标签1$被长按()V
    .registers 2

    .prologue
    .line 52
    iget-object v0, p0, Lcom/ChuChenQi/窗口29;->手机1:Lcom/e4a/runtime/components/impl/android/n9/手机;

    invoke-interface {v0}, Lcom/e4a/runtime/components/impl/android/n9/手机;->取IMEI码()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/e4a/runtime/系统相关类;->置剪贴板文本(Ljava/lang/String;)V

    .line 53
    const-string v0, "手机码已保存至剪贴板,请到微信内粘贴发送给作者"

    invoke-static {v0}, Lcom/e4a/runtime/应用操作;->弹出提示(Ljava/lang/String;)V

    return-void
.end method

.method public 标签4$被长按()V
    .registers 2

    .prologue
    .line 48
    iget-object v0, p0, Lcom/ChuChenQi/窗口29;->手机1:Lcom/e4a/runtime/components/impl/android/n9/手机;

    invoke-interface {v0}, Lcom/e4a/runtime/components/impl/android/n9/手机;->取IMEI码()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/e4a/runtime/系统相关类;->置剪贴板文本(Ljava/lang/String;)V

    .line 49
    const-string v0, "手机码已保存至剪贴板,请到微信内粘贴发送给作者"

    invoke-static {v0}, Lcom/e4a/runtime/应用操作;->弹出提示(Ljava/lang/String;)V

    return-void
.end method

.method public 窗口29$切换完毕()V
    .registers 6

    .prologue
    const/4 v4, 0x0

    const-string v0, ""

    .line 11
    .local v0, "文本1":Ljava/lang/String;
    sget-object v1, Lcom/ChuChenQi/窗口29;->窗口29:Lcom/e4a/runtime/components/窗口;

    const/4 v2, 0x5

    const/16 v3, 0x12c

    invoke-interface {v1, v2, v3, v4}, Lcom/e4a/runtime/components/窗口;->开启特效(IIZ)V

    .line 12
    iget-object v1, p0, Lcom/ChuChenQi/窗口29;->编辑框1:Lcom/e4a/runtime/components/impl/android/n2/编辑框;

    const-string v2, ""

    invoke-interface {v1, v2}, Lcom/e4a/runtime/components/impl/android/n2/编辑框;->内容(Ljava/lang/String;)V

    .line 13
    iget-object v1, p0, Lcom/ChuChenQi/窗口29;->标签4:Lcom/e4a/runtime/components/impl/android/n3/标签;

    iget-object v2, p0, Lcom/ChuChenQi/窗口29;->手机1:Lcom/e4a/runtime/components/impl/android/n9/手机;

    invoke-interface {v2}, Lcom/e4a/runtime/components/impl/android/n9/手机;->取IMEI码()Ljava/lang/String;

    move-result-object v2

    invoke-interface {v1, v2}, Lcom/e4a/runtime/components/impl/android/n3/标签;->标题(Ljava/lang/String;)V

    .line 14
    const-string v0, "如何获得密钥?\n1、打开微信搜索添加作者微信;\n2、发送手机码(IMEI)给作者;\n3、通过作者回复获得密钥,输入密钥;\n4、输入密钥成功后系统将自动退出程序.重启软件后,显示注册版,软件注册成功.\n 作者历时一年半,利用业余时间完成此软件制作.制作不易,请尊重作者制作成果,万分谢谢!!!"

    .line 15
    iget-object v1, p0, Lcom/ChuChenQi/窗口29;->标签1:Lcom/e4a/runtime/components/impl/android/n3/标签;

    invoke-interface {v1, v0}, Lcom/e4a/runtime/components/impl/android/n3/标签;->标题(Ljava/lang/String;)V

    .line 16
    iget-object v1, p0, Lcom/ChuChenQi/窗口29;->编辑框1:Lcom/e4a/runtime/components/impl/android/n2/编辑框;

    invoke-interface {v1}, Lcom/e4a/runtime/components/impl/android/n2/编辑框;->获取焦点()V

    .line 17
    iget-object v1, p0, Lcom/ChuChenQi/窗口29;->时钟1:Lcom/e4a/runtime/components/impl/android/n12/时钟;

    invoke-interface {v1, v4}, Lcom/e4a/runtime/components/impl/android/n12/时钟;->可用(Z)V

    return-void
.end method

lies2014 发表于 2024-9-1 11:17:32

转成 JAVA 搞清楚逻辑更容易分析

gang2375 发表于 2024-9-1 15:24:28


public void (int paramInt1, int paramInt2) {
    this. = .(.(.(this..(), 2, 9) + "GBK", "GBK"));
    this. = .(this., 8);
    if (this..equals(this..())) {
      .(");
      this. = .("sdcard/CCDATA", "GBK") + this..() + "\n";
      .("sdcard/CCDATA", this., "GBK");
      this..(false);
      this..(true);
      return;
    }
    .(");
    this..("");
    this..();
}

public void (int paramInt, BooleanReferenceParameter paramBooleanReferenceParameter) {
    boolean bool = paramBooleanReferenceParameter.get();
    if (paramInt == 4 && !this..()) {
      .(2, 300, false);
      .(().("));
    }
    paramBooleanReferenceParameter.set(bool);
}

gang2375 发表于 2024-9-1 15:26:34

lies2014 发表于 2024-9-2 10:16:16



这不就是算法?

gang2375 发表于 2024-9-3 10:27:49

lies2014 发表于 2024-9-2 10:16
这不就是算法?

新手小白,不太懂代码

gang2375 发表于 2024-9-3 10:53:47

现在软件装好都无法获取IMEI
页: [1]
查看完整版本: 这个代码怎么搞