1. Use TCSANOW instead of TSAFLUSH to prevent failure on Android 8. 2. Return empty password if failed to read from console, fixes segfault.