|
||
CapSearch
CapSearch is a tool that allows you to search a ROM log for binaries with specific capabilities and list them within a report in HTML format.
When using the CapSearch
tool, you need to define the name and location of the ROM log and the Symbian Capability List. You should also specify
whether to search for EXACT
or ALL
capabilities, and whether to include all binaries or only the executables in your search.
Along with the HTML report, a list of binaries and capabilities is printed to standard output, which can be stored as a .txt
file. The standard output facility can also be used to generate the Expected Capability List, which is used as input for
CapCheck
.
The Expected Capability List is created by specifying no capabilities when running CapSearch
, and by setting the -match
option to LEAST
.
The Symbian Capability List is the header file named e32capability.h
, and can be found in the <EPOCROOT>\epoc32\include
directory. It lists all the permissible capabilities by name and corresponding number in hexadecimal format. Either name
or number can be used when defining the capability to be searched.
The command line syntax to be used for CapSearch
is shown below.
>CapSearch.pl -r <rom_log_file> -s <symbian_capability_list> [-c <capability>] [-scope <ALL|EXE>] [-match <EXACT|LEAST>] [-R
<HTML_report>]
The order of the arguments can be modified, as long as the mandatory ones are used, which are -r
and -s
.
The following arguments are used.
|
The name and location of the ROM log file, in relation to the directory where the tool is run from, for example |
|
The name of the Symbian Capability List, listing all the capabilities available to search, and their corresponding values.
This flag is mandatory and the list can be found in |
|
Defines a text string or numerical value for the capability to be searched. This could be specified several times, i.e. |
|
Defines the scope of the search - whether to only search the executables, |
|
Defines how the search should be carried out - whether to report binaries which contain the specified capability only, |
|
Defines the name of the HTML report to be generated in the working directory. If not specified, the default is |
|
Displays help information (optional). |
A full example of how to use the CapSearch
tool is shown below:
>CapSearch.pl -r .\input\rom.log -s e32capability.h -c NetworkControl -c ReadUserData -c WriteUserData -scope ALL -match -least -R results.html