Class DexBulkItemRenamer
java.lang.Object
com.pnfsoftware.jeb.core.units.code.android.DexBulkItemRenamer
A bulk renamer for dex items such as classes, fields, and methods. This item can be used directly
or by issuing a
Actions.AUTO_RENAME_ALL
action via the dex unit
's
execution facility.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
very strict: accept only printable, non-WSP asciistatic final int
strict: accept only printable, non-WSP asciistatic final int
moderately strict: accept legal user-defined namesstatic final int
impossibly strict: accept nothingstatic final int
static final int
static final int
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
int
int
int
boolean
process
(boolean interruptible, boolean notifyChanges)
-
Field Details
-
TARGET_FLAG_CLASSES
public static final int TARGET_FLAG_CLASSES- See Also:
-
TARGET_FLAG_FIELDS
public static final int TARGET_FLAG_FIELDS- See Also:
-
TARGET_FLAG_METHODS
public static final int TARGET_FLAG_METHODS- See Also:
-
TARGET_ALL
public static final int TARGET_ALL- See Also:
-
POLICY_LEGAL
public static final int POLICY_LEGALmoderately strict: accept legal user-defined names- See Also:
-
POLICY_ASCII_PRINT
public static final int POLICY_ASCII_PRINTstrict: accept only printable, non-WSP ascii- See Also:
-
POLICY_ASCII_ALPHANUM
public static final int POLICY_ASCII_ALPHANUMvery strict: accept only printable, non-WSP ascii- See Also:
-
POLICY_NOTHING
public static final int POLICY_NOTHINGimpossibly strict: accept nothing- See Also:
-
-
Constructor Details
-
DexBulkItemRenamer
- Parameters:
dex
- the target dex unittargets
- a combination ofTARGET_FLAG_xxx
to determine which kind of items may be renamedpolicy
- one ofPOLICY_xxx
to determine which names items may be candidate for renamingfilter
- an optional 'start of signature' filter, e.g.Lcom/foo/
would only rename items in the com.foo.** packages and subpackages
-
-
Method Details
-
getCountOfCandidates
public int getCountOfCandidates() -
getCountOfExamined
public int getCountOfExamined() -
getCountOfRenames
public int getCountOfRenames() -
getCountOfFailures
public int getCountOfFailures() -
process
public boolean process(boolean interruptible, boolean notifyChanges) - Parameters:
interruptible
-notifyChanges
-- Returns:
- true if the method completed, false if it was interrupted
-