added support for FroYo (v2.2) devices and bug fixes