This is a copy with android build support of Christian Mueller's hd-idle(http://hd-idle.sourceforge.net/).