Hello everyone, I'd like some help ..
Well, I have the following problem, I would remove the signature checking on system apps, because I want to modify the manifest.xml ..
I've tried everything and I can not .. :crying:
Services.jar\com\android\server\pm\PackageManagerService.smali
Running CM11 [Defy]
I apologize for my english .. :p
Well, I have the following problem, I would remove the signature checking on system apps, because I want to modify the manifest.xml ..
I've tried everything and I can not .. :crying:
Services.jar\com\android\server\pm\PackageManagerService.smali
Code:
.method static compareSignatures([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I
.registers 9
.param p0, "s1" # [Landroid/content/pm/Signature;
.param p1, "s2" # [Landroid/content/pm/Signature;
.prologue
.line 2613
if-nez p0, :cond_8
.line 2614
if-nez p1, :cond_6
const/4 v6, 0x0
.line 2633
:goto_5
return v6
.line 2614
:cond_6
const/4 v6, -0x1
goto :goto_5
.line 2618
:cond_8
if-nez p1, :cond_c
.line 2619
const/4 v6, -0x2
goto :goto_5
.line 2621
:cond_c
new-instance v3, Ljava/util/HashSet;
invoke-direct {v3}, Ljava/util/HashSet;-><init>()V
.line 2622
.local v3, "set1":Ljava/util/HashSet;, "Ljava/util/HashSet<Landroid/content/pm/Signature;>;"
move-object v0, p0
.local v0, "arr$":[Landroid/content/pm/Signature;
array-length v2, v0
.local v2, "len$":I
const/4 v1, 0x0
.local v1, "i$":I
:goto_14
if-ge v1, v2, :cond_1e
aget-object v5, v0, v1
.line 2623
.local v5, "sig":Landroid/content/pm/Signature;
invoke-virtual {v3, v5}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z
.line 2622
add-int/lit8 v1, v1, 0x1
goto :goto_14
.line 2625
.end local v5 # "sig":Landroid/content/pm/Signature;
:cond_1e
new-instance v4, Ljava/util/HashSet;
invoke-direct {v4}, Ljava/util/HashSet;-><init>()V
.line 2626
.local v4, "set2":Ljava/util/HashSet;, "Ljava/util/HashSet<Landroid/content/pm/Signature;>;"
move-object v0, p1
array-length v2, v0
const/4 v1, 0x0
:goto_26
if-ge v1, v2, :cond_30
aget-object v5, v0, v1
.line 2627
.restart local v5 # "sig":Landroid/content/pm/Signature;
invoke-virtual {v4, v5}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z
.line 2626
add-int/lit8 v1, v1, 0x1
goto :goto_26
.line 2630
.end local v5 # "sig":Landroid/content/pm/Signature;
:cond_30
invoke-virtual {v3, v4}, Ljava/util/HashSet;->equals(Ljava/lang/Object;)Z
move-result v6
if-eqz v6, :cond_38
.line 2631
const/4 v6, 0x0
goto :goto_5
.line 2633
:cond_38
const/4 v6, -0x3
goto :goto_5
.end method
Running CM11 [Defy]
I apologize for my english .. :p
Aucun commentaire:
Enregistrer un commentaire