client should scan APKs for "Master Key" exploits before installing
It turns out that "Master Key" exploits follow a pretty easy pattern to spot: multiple files in a ZIP/JAR with the exact same name. Perhaps some other key exploits are also similarly easy to spot. In any case, fdroidclient can check APKs before installing them to make sure that they don't contain exploits.
Here's some example code: