title: Is there a way to make my Android app run some custom code upon installation?
body: <p>I have some ideas about running some anti-piracy measures for my app so I wondered if I could do this to sign the application on install. Running the code on first launch is no good, because someone could still copy out the apk without running it.</p>