[Android] Enable auto detect connectivity state change

1. Enable auto detect connectivity state change.
2. Add permission of ACCESS_WIFI_STATE.

BUG=XWALK-1324