fix device:init() bug on Android platform