首页默认分类正文

实用详细教程,去除GG修改器旧版检测

准备工具:
MT管理器,下载地址:

http://www.nofts.com/?id=132

GG修改器,下载地址:

http://www.nofts.com/?id=355


教程开始!


Dex++打开GG修改器DEX,然后搜索showRequest




删除代码:

  1.    .annotation system Ldalvik/annotation/Signature;

  2.       value = {

  3.          "(",

  4.          "Landroid/fix/SparseArray",

  5.          "<",

  6.          "Landroid/ext/Uninstaller$Info;",

  7.          ">;)V"

  8.       }

  9.    .end annotation


  10.    .prologue

  11.    .local p0, "found":Landroid/fix/SparseArray;, "Landroid/fix/SparseArray<Landroid/ext/Uninstaller$Info;>;"

  12.    const/4 v8, 0x0


  13.    .line 216

  14.    invoke-static {}, Landroid/ext/Debug;->getBuild()I


  15.    move-result v1


  16.    .line 217

  17.    .local v1, "build":I

  18.    const/4 v3, 0x0


  19.    .local v3, "i":I

  20.    :goto_6

  21.    invoke-virtual {p0}, Landroid/fix/SparseArray;->size()I


  22.    move-result v7


  23.    if-lt v3, v7, :cond_18


  24.    .line 225

  25.    invoke-virtual {p0}, Landroid/fix/SparseArray;->size()I


  26.    move-result v7


  27.    if-nez v7, :cond_5c


  28.    .line 226

  29.    const-string v7, "Un: empty"


  30.    invoke-static {v7}, Landroid/ext/Log;->d(Ljava/lang/String;)I


  31.    .line 272

  32.    :goto_17

  33.    return-void


  34.    .line 218

  35.    :cond_18

  36.    invoke-virtual {p0, v3}, Landroid/fix/SparseArray;->valueAt(I)Ljava/lang/Object;


  37.    move-result-object v4


  38.    check-cast v4, Landroid/ext/Uninstaller$Info;


  39.    .line 219

  40.    .local v4, "info":Landroid/ext/Uninstaller$Info;

  41.    iget v7, v4, Landroid/ext/Uninstaller$Info;->code:I


  42.    if-ne v7, v1, :cond_2c


  43.    sget-object v7, Landroid/ext/Apk;->INSTALLER_PACKAGE:Ljava/lang/String;


  44.    iget-object v9, v4, Landroid/ext/Uninstaller$Info;->pkg:Ljava/lang/String;


  45.    invoke-virtual {v7, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z


  46.    move-result v7


  47.    if-eqz v7, :cond_34


  48.    :cond_2c

  49.    iget-object v7, v4, Landroid/ext/Uninstaller$Info;->pkg:Ljava/lang/String;


  50.    invoke-static {v7}, Landroid/ext/Tools;->isPackageInstalled(Ljava/lang/String;)Z


  51.    move-result v7


  52.    if-nez v7, :cond_59


  53.    .line 220

  54.    :cond_34

  55.    invoke-virtual {p0, v3}, Landroid/fix/SparseArray;->removeAt(I)V


  56.    .line 221

  57.    add-int/lit8 v3, v3, -0x1


  58.    .line 222

  59.    new-instance v7, Ljava/lang/StringBuilder;


  60.    const-string v9, "Un: ignore: "


  61.    invoke-direct {v7, v9}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V


  62.    iget-object v9, v4, Landroid/ext/Uninstaller$Info;->pkg:Ljava/lang/String;


  63.    invoke-virtual {v7, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;


  64.    move-result-object v7


  65.    const/16 v9, 0x20


  66.    invoke-virtual {v7, v9}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;


  67.    move-result-object v7


  68.    iget v9, v4, Landroid/ext/Uninstaller$Info;->code:I


  69.    invoke-virtual {v7, v9}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;


  70.    move-result-object v7


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


  72.    move-result-object v7


  73.    invoke-static {v7}, Landroid/ext/Log;->d(Ljava/lang/String;)I


  74.    .line 217

  75.    :cond_59

  76.    add-int/lit8 v3, v3, 0x1


  77.    goto :goto_6


  78.    .line 230

  79.    .end local v4  # "info":Landroid/ext/Uninstaller$Info;

  80.    :cond_5c

  81.    new-instance v5, Ljava/lang/StringBuilder;


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


  83.    .line 231

  84.    .local v5, "msg":Ljava/lang/StringBuilder;

  85.    const v7, 0x7f070090


  86.    invoke-static {v7}, Landroid/ext/Re;->s(I)Ljava/lang/String;


  87.    move-result-object v7


  88.    invoke-virtual {v5, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;


  89.    .line 232

  90.    const/4 v3, 0x0


  91.    :goto_6c

  92.    invoke-virtual {p0}, Landroid/fix/SparseArray;->size()I


  93.    move-result v7


  94.    if-lt v3, v7, :cond_c4


  95.    .line 258

  96.    new-instance v7, Ljava/lang/StringBuilder;


  97.    const-string v9, "Un: alert: "


  98.    invoke-direct {v7, v9}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V


  99.    invoke-virtual {p0}, Landroid/fix/SparseArray;->size()I


  100.    move-result v9


  101.    invoke-virtual {v7, v9}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;


  102.    move-result-object v7


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


  104.    move-result-object v7


  105.    invoke-static {v7}, Landroid/ext/Log;->d(Ljava/lang/String;)I


  106.    .line 259

  107.    invoke-static {}, Landroid/ext/Alert;->create()Landroid/app/AlertDialog$Builder;


  108.    move-result-object v7


  109.    .line 260

  110.    const v9, 0x7f07008f


  111.    invoke-static {v9}, Landroid/ext/Tools;->getCustomTitle(I)Landroid/view/View;


  112.    move-result-object v9


  113.    invoke-virtual {v7, v9}, Landroid/app/AlertDialog$Builder;->setCustomTitle(Landroid/view/View;)Landroid/app/AlertDialog$Builder;


  114.    move-result-object v7


  115.    .line 261

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


  117.    move-result-object v9


  118.    invoke-virtual {v7, v9}, Landroid/app/AlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;


  119.    move-result-object v7


  120.    .line 262

  121.    const/4 v9, 0x0


  122.    invoke-virtual {v7, v9}, Landroid/app/AlertDialog$Builder;->setCancelable(Z)Landroid/app/AlertDialog$Builder;


  123.    move-result-object v7


  124.    .line 263

  125.    const v9, 0x7f070091


  126.    invoke-static {v9}, Landroid/ext/Re;->s(I)Ljava/lang/String;


  127.    move-result-object v9


  128.    new-instance v10, Landroid/ext/Uninstaller$2;


  129.    invoke-direct {v10, p0}, Landroid/ext/Uninstaller$2;-><init>(Landroid/fix/SparseArray;)V


  130.    invoke-virtual {v7, v9, v10}, Landroid/app/AlertDialog$Builder;->setPositiveButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;


  131.    move-result-object v7


  132.    .line 271

  133.    const v9, 0x7f070092


  134.    invoke-static {v9}, Landroid/ext/Re;->s(I)Ljava/lang/String;


  135.    move-result-object v9


  136.    invoke-virtual {v7, v9, v8}, Landroid/app/AlertDialog$Builder;->setNegativeButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;


  137.    move-result-object v7


  138.    .line 259

  139.    invoke-static {v7}, Landroid/ext/Alert;->show(Landroid/app/AlertDialog$Builder;)V


  140.    goto/16 :goto_17


  141.    .line 233

  142.    :cond_c4

  143.    invoke-virtual {p0, v3}, Landroid/fix/SparseArray;->valueAt(I)Ljava/lang/Object;


  144.    move-result-object v4


  145.    check-cast v4, Landroid/ext/Uninstaller$Info;


  146.    .line 234

  147.    .restart local v4  # "info":Landroid/ext/Uninstaller$Info;

  148.    const-string v7, "\n\n"


  149.    invoke-virtual {v5, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;


  150.    .line 235

  151.    const/4 v6, 0x0


  152.    .line 237

  153.    .local v6, "pi":Landroid/content/pm/PackageInfo;

  154.    :try_start_d0

  155.    iget-object v7, v4, Landroid/ext/Uninstaller$Info;->pkg:Ljava/lang/String;


  156.    invoke-static {v7}, Landroid/ext/Tools;->getPackageInfo(Ljava/lang/String;)Landroid/content/pm/PackageInfo;

  157.    :try_end_d5

  158.    .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_d0 .. :try_end_d5} :catch_116


  159.    move-result-object v6


  160.    .line 241

  161.    :goto_d6

  162.    if-eqz v6, :cond_134


  163.    .line 242

  164.    iget-object v0, v6, Landroid/content/pm/PackageInfo;->applicationInfo:Landroid/content/pm/ApplicationInfo;


  165.    .line 243

  166.    .local v0, "ai":Landroid/content/pm/ApplicationInfo;

  167.    if-eqz v0, :cond_12c


  168.    invoke-static {v0}, Landroid/ext/Tools;->getApplicationLabel(Landroid/content/pm/ApplicationInfo;)Ljava/lang/String;


  169.    move-result-object v7


  170.    :goto_e0

  171.    invoke-virtual {v5, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;


  172.    .line 244

  173.    const-string v7, " ("


  174.    invoke-virtual {v5, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;


  175.    .line 245

  176.    iget-object v7, v4, Landroid/ext/Uninstaller$Info;->pkg:Ljava/lang/String;


  177.    invoke-virtual {v5, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;


  178.    .line 246

  179.    const-string v7, ") - "


  180.    invoke-virtual {v5, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;


  181.    .line 247

  182.    iget-object v7, v4, Landroid/ext/Uninstaller$Info;->ver:Ljava/lang/String;


  183.    invoke-virtual {v7}, Ljava/lang/String;->length()I


  184.    move-result v7


  185.    if-lez v7, :cond_12e


  186.    iget-object v7, v4, Landroid/ext/Uninstaller$Info;->ver:Ljava/lang/String;


  187.    :goto_fc

  188.    invoke-virtual {v5, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;


  189.    .line 248

  190.    const-string v7, " ("


  191.    invoke-virtual {v5, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;


  192.    .line 249

  193.    iget v7, v4, Landroid/ext/Uninstaller$Info;->code:I


  194.    if-lez v7, :cond_131


  195.    iget v7, v4, Landroid/ext/Uninstaller$Info;->code:I


  196.    :goto_10a

  197.    invoke-virtual {v5, v7}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;


  198.    .line 250

  199.    const/16 v7, 0x29


  200.    invoke-virtual {v5, v7}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;


  201.    .line 232

  202.    .end local v0  # "ai":Landroid/content/pm/ApplicationInfo;

  203.    :goto_112

  204.    add-int/lit8 v3, v3, 0x1


  205.    goto/16 :goto_6c


  206.    .line 238

  207.    :catch_116

  208.    move-exception v2


  209.    .line 239

  210.    .local v2, "e":Landroid/content/pm/PackageManager$NameNotFoundException;

  211.    new-instance v7, Ljava/lang/StringBuilder;


  212.    const-string v9, "Package not found: "


  213.    invoke-direct {v7, v9}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V


  214.    iget-object v9, v4, Landroid/ext/Uninstaller$Info;->pkg:Ljava/lang/String;


  215.    invoke-virtual {v7, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;


  216.    move-result-object v7


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


  218.    move-result-object v7


  219.    invoke-static {v7, v2}, Landroid/ext/Log;->e(Ljava/lang/String;Ljava/lang/Throwable;)I


  220.    goto :goto_d6


  221.    .end local v2  # "e":Landroid/content/pm/PackageManager$NameNotFoundException;

  222.    .restart local v0  # "ai":Landroid/content/pm/ApplicationInfo;

  223.    :cond_12c

  224.    move-object v7, v8


  225.    .line 243

  226.    goto :goto_e0


  227.    .line 247

  228.    :cond_12e

  229.    iget-object v7, v6, Landroid/content/pm/PackageInfo;->versionName:Ljava/lang/String;


  230.    goto :goto_fc


  231.    .line 249

  232.    :cond_131

  233.    iget v7, v6, Landroid/content/pm/PackageInfo;->versionCode:I


  234.    goto :goto_10a


  235.    .line 252

  236.    .end local v0  # "ai":Landroid/content/pm/ApplicationInfo;

  237.    :cond_134

  238.    iget-object v7, v4, Landroid/ext/Uninstaller$Info;->pkg:Ljava/lang/String;


  239.    invoke-virtual {v5, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;


  240.    .line 253

  241.    const-string v7, " - "


  242.    invoke-virtual {v5, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;


  243.    .line 254

  244.    iget v7, v4, Landroid/ext/Uninstaller$Info;->code:I


  245.    invoke-virtual {v5, v7}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;


  246.    goto :goto_112


评论