We should move the signing code to somewhere like here:https://github.com/rapid7/metasploit-framework/blob/master/lib/msf/core/payload/dalvik.rb to avoid code duplication.