Uses injection script so it will work on Android

Not thoroughly tested yet because the file API on Android does not work yet.