-
-
[求助]请大神帮忙看看这个验证签名的代码应该如何跳过
-
发表于:
2014-3-29 13:54
6706
-
[求助]请大神帮忙看看这个验证签名的代码应该如何跳过
.method private a(Landroid/content/Context;)Ljava/lang/String;
.registers 6
invoke-virtual {p1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object v0
const/16 v1, 0x40
invoke-virtual {v0, v1}, Landroid/content/pm/PackageManager;->getInstalledPackages(I)Ljava/util/List;
move-result-object v0
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v1
:cond_e
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-nez v0, :cond_16
const/4 v0, 0x0
:goto_15
return-object v0
:cond_16
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/content/pm/PackageInfo;
iget-object v2, v0, Landroid/content/pm/PackageInfo;->packageName:Ljava/lang/String;
invoke-virtual {p1}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
move-result-object v3
invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_e
iget-object v0, v0, Landroid/content/pm/PackageInfo;->signatures:[Landroid/content/pm/Signature;
const/4 v1, 0x0
aget-object v0, v0, v1
invoke-virtual {v0}, Landroid/content/pm/Signature;->toCharsString()Ljava/lang/String;
move-result-object v0
goto :goto_15
.end method
[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!