Tools.
apktool
ADT
Command.
decompile
java -jar d
repackaging
java -jar b test
Signature using ADT
Rough understanding of smail language (actually, for modification, it's ok to be familiar with it)
class definition
.class public Lcom/example/MyClass; .
.super Ljava/lang/Object;
.class Specifies the class name and modifiers.
.super Specifies the parent class.
Field Definitions
.field public myField:I
.field Defines the field.
I represents an integer type (int).
Method Definition
.method public myMethod()V
.locals 1
.prologue
.line 10
return-void
.end method
.method Defines the method, V means the return type is void.
.locals declares the number of local variables.
.prologue and .line are used for debugging and code comments.
return-void Indicates that the method ends and returns.
Smali uses assembly language style instructions, here are some common instructions:
Load and store instructions
const/4 v0, 0x1 ; load integer 1 into register v0
arithmetic instruction
add-int v0, v1, v2 ; v0 = v1 + v2
method invocation
invoke-virtual {v0}, Lcom/example/MyClass;->myMethod()
real combat
Samsung Talk app fix
I can't find this class.
increasing category
Repackage the signature and install to test!
ok, reported other kinds of errors, follow the gourd to fix one by one can be accomplished!