Using smartphone sensors to stabilise DSLR video in post
SteadXp works like you describe, although it is still a product in development.  Also, it uses its own accelerometers, rather than using your cell phone's.  Presumably, this is simpler than relying on the myriad protocols of various cell phone manufacturers.