android: split our generic tooling into smaller programs
This way it's easier to reuse these parts of the logic