flipperzero icon indicating copy to clipboard operation
flipperzero copied to clipboard

tools: Migrate from text-based CLI to Protobuf RPC

Open str4d opened this issue 1 year ago • 1 comments

Currently the binaries in tools/ use the text-based CLI over the serial port to communicate with a Flipper Zero and run FAPs. We should instead use the start_rpc_session CLI command to drop into the Protobuf RPC control mode, using e.g. the prost crate. This would remove most of the hand-written CLI parsing logic, and probably be more accurate and flexible.

In particular, I am curious about whether PB_App.StartRequest is specifically a request to Applications that enables us to provide arguments to FAPs (which the text CLI loader open Applications foo.fap does not), or whether it is a request to loader (and thus the same as the text CLI).

str4d avatar May 31 '23 05:05 str4d