Exporting Apps from Raccoon (into F-Droid repositories,…)

The question came up in a support request, but is probably interesting enough to blog about: “How do I write a script to copy apps from Raccoon‘s own repository to some place else?”

First of all, don’t bother with trying to extract anything from Raccoon’s repository using shell or python scripts. There’s a Java API for that! In order to access it, all you need to do is to include the application’s JAR file in your classpath. The code below is a quick and dirty example for listing the contents of a respository on the terminal.

Caveat: the database can only be opened by one process at a time. It is not possible to run the the code above and Raccoon at the same time.

Posted in Coding, Tips and Tricks