Add Android.mk & fix IOException constructor

Change-Id: Id6b81f12b7d7e13cb5355f1c6a4e535039f5c159