8000 GitHub - dvdface/traceserver: a android trace daemon, which can accept begin|<trace tag>\n or end|<trace tag>\n to print trace
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

a android trace daemon, which can accept begin|<trace tag>\n or end|<trace tag>\n to print trace

Notifications You must be signed in to change notification settings

dvdface/traceserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Android Trace Server

This is a native Android executable that listens on port 8080 for commands to control Android system tracing.

Building

  1. Make sure you have Android NDK installed.
  2. Run the following command in the project directory:
    ndk-build

The built executable will be in the libs directory.

Usage

The server accepts the following commands (each command should end with a newline):

  • begin - Starts a trace section
  • end - 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

Command Line Options

  • -t: Run in test mode (generate test traces)
  • -p port: Specify port number (default: 8080)

Example

Normal Mode

To start the server in normal mode on a specified port (e.g., 8080):

./traceserver -p 8080

Test Mode

To start the server in test mode on port 9000:

./traceserver -t -p 9000

Requirements

  • Android API level 21 or higher
  • Android NDK

About

a android trace daemon, which can accept begin|<trace tag>\n or end|<trace tag>\n to print trace

Resources

Stars

Watchers

Forks

Packages

No packages published
0