Skip to content

testing/sscregistrygen: new aport

Richard Acayan requested to merge flamingradian/aports:sensh-tools-new into master

This adds a generator tool for the sensors registry on the Qualcomm Snapdragon Sensor Core. The tool reads JSON files in a directory specified on the command line, takes options to filter them (e.g. by target SoC or whether it's targeted to an OEM device), and writes JSON files in another specified directory.

On a normal smartphone, the sensors registry would be dynamically generated on Android, either by DSP firmware over FastRPC (not supported by HexagonRPCD), or by a well-hidden userspace program. This tool makes it possible to generate the registry from a factory image on any system, useful for packaging in postmarketOS.

The packaged program is 313 lines: sscregistrygen.c

Edited by Richard Acayan

Merge request reports