求助这里是不是签名验证的地方!来大神解答下....
..method public static getSign(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;
.locals 7
const/4 v4, 0x0
:try_start_0
invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object v5
const/16 v6, 0x40
invoke-virtual {v5, p1, v6}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;
:try_end_0
.catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
move-result-object v2
const/4 v0, 0x0
:goto_0
iget-object v5, v2, Landroid/content/pm/PackageInfo;->signatures:[Landroid/content/pm/Signature;
array-length v5, v5
if-lt v0, v5, :cond_0
:goto_1
return-object v4
:catch_0
move-exception v1
goto :goto_1
:cond_0
iget-object v5, v2, Landroid/content/pm/PackageInfo;->signatures:[Landroid/content/pm/Signature;
aget-object v5, v5, v0
invoke-virtual {v5}, Landroid/content/pm/Signature;->toByteArray()[B
move-result-object v3
if-eqz v3, :cond_1
invoke-static {v3}, Lcom/sina/weibo/sdk/utils/MD5;->hexdigest([B)Ljava/lang/String;
move-result-object v4
goto :goto_1
:cond_1
add-int/lit8 v0, v0, 0x1
goto :goto_0
.end method |