This is a native Android executable that listens on port 8080 for commands to control Android system tracing.
- Make sure you have Android NDK installed.
- Run the following command in the project directory:
ndk-build
The built executable will be in the libs
directory.
The server accepts the following commands (each command should end with a newline):
begin
- Starts a trace sectionend
- Ends the current trace section
You can connect to the server using any TCP client, for example:
echo "begin" | nc localhost 8080
echo "end" | nc localhost 8080
-t
: Run in test mode (generate test traces)-p port
: Specify port number (default: 8080)
To start the server in normal mode on a specified port (e.g., 8080):
./traceserver -p 8080
To start the server in test mode on port 9000:
./traceserver -t -p 9000
- Android API level 21 or higher
- Android NDK