Announcement

Collapse
No announcement yet.

How to define a rule for smali file

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to define a rule for smali file

    1. how to define a rule to ignore '.line xxx' in smali file?
    2. how define a rule for ' const-string' and it's equivalent 'const-string/jumbo'

    For instance, following two functions are equivalent.

    # direct methods
    .method static constructor <clinit>()V
    .locals 3

    .prologue
    .line 254
    new-instance v0, Landroid/util/SparseArray;

    const-string/jumbo v0 "a string example"
    .end method


    # direct methods
    .method static constructor <clinit>()V
    .locals 3

    .prologue
    .line 258
    new-instance v0, Landroid/util/SparseArray;

    const-string v0 "a string example"
    .end method

  • #2
    Hello,

    1. We have an article on how to define general Unimportant text here:
    http://www.scootersoftware.com/suppo..._unimportantv3

    2. For an equivalent unimportance (instead of always unimportant), you can use a BC3 Pro feature called Text Replacements. In the Text Compare session, go to the Session menu -> Session Settings, Replacements tab. Then here, create a new replacement for 'const-string' = 'const-string/jumbo'

    Let us know if you have any questions.
    Aaron P Scooter Software

    Comment

    Working...
    X