I use the Android Transform API to manipulate the bytecode. The transformation modifies the existing classes and also generates a new class, e.g. com.abc.NewClass My project