android: Don't crash on invalid port or UID

Also update Java bindings.
android: New release